Initial commit.

This commit is contained in:
Orne Brocaar
2022-04-06 21:18:32 +01:00
commit 96fe672fc7
709 changed files with 335482 additions and 0 deletions

41
api/js/Makefile Normal file
View File

@ -0,0 +1,41 @@
.PHONY: requirements common gw api integration meta
PROTOC_PATH := ./node_modules/grpc-tools/bin/protoc
PROTOC_GEN_TS_PATH := ./node_modules/.bin/protoc-gen-ts
PROTOC_GEN_GRPC_PATH := ./node_modules/.bin/grpc_tools_node_protoc_plugin
PROTOC_ARGS := -I=/googleapis -I=../proto --plugin=protoc-gen-ts=$(PROTOC_GEN_TS_PATH) --plugin=protoc-gen-grpc=$(PROTOC_GEN_GRPC_PATH) --js_out=import_style=commonjs,binary:. --ts_out=service=grpc-node,mode=grpc-js:.
PROTOC_GRPC_ARGS := $(PROTOC_ARGS) --grpc_out=grpc_js:.
all: requirements version common gw api integration meta google-api
requirements:
yarn install
version:
sed -i 's/"version.*/"version": "$(VERSION)",/g' ./package.json
common:
protoc $(PROTOC_ARGS) ../proto/common/common.proto
gw:
protoc $(PROTOC_ARGS) ../proto/gw/gw.proto
api:
protoc ${PROTOC_GRPC_ARGS} ../proto/api/internal.proto
protoc ${PROTOC_GRPC_ARGS} ../proto/api/user.proto
protoc ${PROTOC_GRPC_ARGS} ../proto/api/tenant.proto
protoc ${PROTOC_GRPC_ARGS} ../proto/api/application.proto
protoc ${PROTOC_GRPC_ARGS} ../proto/api/device_profile.proto
protoc ${PROTOC_GRPC_ARGS} ../proto/api/device.proto
protoc ${PROTOC_GRPC_ARGS} ../proto/api/gateway.proto
protoc ${PROTOC_GRPC_ARGS} ../proto/api/frame_log.proto
protoc ${PROTOC_GRPC_ARGS} ../proto/api/multicast_group.proto
integration:
protoc ${PROTOC_ARGS} ../proto/integration/integration.proto
meta:
protoc ${PROTOC_ARGS} ../proto/meta/meta.proto
google-api:
protoc $(PROTOC_ARGS) /googleapis/google/api/*.proto

65
api/js/README.md Normal file
View File

@ -0,0 +1,65 @@
# chirpstack-api
ChirpStack gRPC API message and service wrappers for Javascript. Typescript definitions are included.
## Install
With npm:
```sh
npm install @chirpstack/chirpstack-api --save
```
Or with yarn:
```sh
yarn add @chirpstack/chirpstack-api
```
## Usage
All messages, services, constants, etc. are auto-generated from the ChirpStack protobuf definitions. The result is that
this package structure matches that of the protobuf definitions. There is no ES6 index gathering all of the exports, so
full import/require paths should be used. The generated code is all callback based, but can be promisified.
The protobuf definitions can be found here: https://github.com/brocaar/chirpstack-api/tree/master/protobuf
The generated code all depends on the `grpc` package, and for most use cases you will probably need to make use of the
`grpc` package directly as well. This is seen in the example below.
### Example
This example shows how to log in to ChirpStack via the gRPC API and then create a gRPC metadata object containing the
JWT. This metadata could then be passed to any future requests that require authorization.
```javascript
import * as grpc from '@grpc/grpc-js';
import * as internalService from '@chirpstack/chirpstack-api/as/external/api/internal_grpc_pb';
import * as internalMessages from '@chirpstack/chirpstack-api/as/external/api/internal_pb';
// Create the client for the 'internal' service
const internalServiceClient = new internalService.InternalServiceClient(
'localhost:8080',
grpc.credentials.createInsecure()
);
// Create and build the login request message
const loginRequest = new internalMessages.LoginRequest();
loginRequest.setEmail('email');
loginRequest.setPassword('password');
// Send the login request
internalServiceClient.login(loginRequest, (error, response) => {
// Build a gRPC metadata object, setting the authorization key to the JWT we
// got back from logging in.
const metadata = new grpc.Metadata();
metadata.set('authorization', response.getJwt());
// This metadata can now be passed for requests to APIs that require authorization
// e.g.
// deviceServiceClient.create(createDeviceRequest, metadata, callback);
});
```

235
api/js/api/application_grpc_pb.d.ts vendored Normal file
View File

@ -0,0 +1,235 @@
// 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<grpc.UntypedServiceImplementation> {
create: grpc.MethodDefinition<api_application_pb.CreateApplicationRequest, api_application_pb.CreateApplicationResponse>;
get: grpc.MethodDefinition<api_application_pb.GetApplicationRequest, api_application_pb.GetApplicationResponse>;
update: grpc.MethodDefinition<api_application_pb.UpdateApplicationRequest, google_protobuf_empty_pb.Empty>;
delete: grpc.MethodDefinition<api_application_pb.DeleteApplicationRequest, google_protobuf_empty_pb.Empty>;
list: grpc.MethodDefinition<api_application_pb.ListApplicationsRequest, api_application_pb.ListApplicationsResponse>;
listIntegrations: grpc.MethodDefinition<api_application_pb.ListIntegrationsRequest, api_application_pb.ListIntegrationsResponse>;
createHttpIntegration: grpc.MethodDefinition<api_application_pb.CreateHttpIntegrationRequest, google_protobuf_empty_pb.Empty>;
getHttpIntegration: grpc.MethodDefinition<api_application_pb.GetHttpIntegrationRequest, api_application_pb.GetHttpIntegrationResponse>;
updateHttpIntegration: grpc.MethodDefinition<api_application_pb.UpdateHttpIntegrationRequest, google_protobuf_empty_pb.Empty>;
deleteHttpIntegration: grpc.MethodDefinition<api_application_pb.DeleteHttpIntegrationRequest, google_protobuf_empty_pb.Empty>;
createInfluxDbIntegration: grpc.MethodDefinition<api_application_pb.CreateInfluxDbIntegrationRequest, google_protobuf_empty_pb.Empty>;
getInfluxDbIntegration: grpc.MethodDefinition<api_application_pb.GetInfluxDbIntegrationRequest, api_application_pb.GetInfluxDbIntegrationResponse>;
updateInfluxDbIntegration: grpc.MethodDefinition<api_application_pb.UpdateInfluxDbIntegrationRequest, google_protobuf_empty_pb.Empty>;
deleteInfluxDbIntegration: grpc.MethodDefinition<api_application_pb.DeleteInfluxDbIntegrationRequest, google_protobuf_empty_pb.Empty>;
createThingsBoardIntegration: grpc.MethodDefinition<api_application_pb.CreateThingsBoardIntegrationRequest, google_protobuf_empty_pb.Empty>;
getThingsBoardIntegration: grpc.MethodDefinition<api_application_pb.GetThingsBoardIntegrationRequest, api_application_pb.GetThingsBoardIntegrationResponse>;
updateThingsBoardIntegration: grpc.MethodDefinition<api_application_pb.UpdateThingsBoardIntegrationRequest, google_protobuf_empty_pb.Empty>;
deleteThingsBoardIntegration: grpc.MethodDefinition<api_application_pb.DeleteThingsBoardIntegrationRequest, google_protobuf_empty_pb.Empty>;
createMyDevicesIntegration: grpc.MethodDefinition<api_application_pb.CreateMyDevicesIntegrationRequest, google_protobuf_empty_pb.Empty>;
getMyDevicesIntegration: grpc.MethodDefinition<api_application_pb.GetMyDevicesIntegrationRequest, api_application_pb.GetMyDevicesIntegrationResponse>;
updateMyDevicesIntegration: grpc.MethodDefinition<api_application_pb.UpdateMyDevicesIntegrationRequest, google_protobuf_empty_pb.Empty>;
deleteMyDevicesIntegration: grpc.MethodDefinition<api_application_pb.DeleteMyDevicesIntegrationRequest, google_protobuf_empty_pb.Empty>;
createLoraCloudIntegration: grpc.MethodDefinition<api_application_pb.CreateLoraCloudIntegrationRequest, google_protobuf_empty_pb.Empty>;
getLoraCloudIntegration: grpc.MethodDefinition<api_application_pb.GetLoraCloudIntegrationRequest, api_application_pb.GetLoraCloudIntegrationResponse>;
updateLoraCloudIntegration: grpc.MethodDefinition<api_application_pb.UpdateLoraCloudIntegrationRequest, google_protobuf_empty_pb.Empty>;
deleteLoraCloudIntegration: grpc.MethodDefinition<api_application_pb.DeleteLoraCloudIntegrationRequest, google_protobuf_empty_pb.Empty>;
createGcpPubSubIntegration: grpc.MethodDefinition<api_application_pb.CreateGcpPubSubIntegrationRequest, google_protobuf_empty_pb.Empty>;
getGcpPubSubIntegration: grpc.MethodDefinition<api_application_pb.GetGcpPubSubIntegrationRequest, api_application_pb.GetGcpPubSubIntegrationResponse>;
updateGcpPubSubIntegration: grpc.MethodDefinition<api_application_pb.UpdateGcpPubSubIntegrationRequest, google_protobuf_empty_pb.Empty>;
deleteGcpPubSubIntegration: grpc.MethodDefinition<api_application_pb.DeleteGcpPubSubIntegrationRequest, google_protobuf_empty_pb.Empty>;
createAwsSnsIntegration: grpc.MethodDefinition<api_application_pb.CreateAwsSnsIntegrationRequest, google_protobuf_empty_pb.Empty>;
getAwsSnsIntegration: grpc.MethodDefinition<api_application_pb.GetAwsSnsIntegrationRequest, api_application_pb.GetAwsSnsIntegrationResponse>;
updateAwsSnsIntegration: grpc.MethodDefinition<api_application_pb.UpdateAwsSnsIntegrationRequest, google_protobuf_empty_pb.Empty>;
deleteAwsSnsIntegration: grpc.MethodDefinition<api_application_pb.DeleteAwsSnsIntegrationRequest, google_protobuf_empty_pb.Empty>;
createAzureServiceBusIntegration: grpc.MethodDefinition<api_application_pb.CreateAzureServiceBusIntegrationRequest, google_protobuf_empty_pb.Empty>;
getAzureServiceBusIntegration: grpc.MethodDefinition<api_application_pb.GetAzureServiceBusIntegrationRequest, api_application_pb.GetAzureServiceBusIntegrationResponse>;
updateAzureServiceBusIntegration: grpc.MethodDefinition<api_application_pb.UpdateAzureServiceBusIntegrationRequest, google_protobuf_empty_pb.Empty>;
deleteAzureServiceBusIntegration: grpc.MethodDefinition<api_application_pb.DeleteAzureServiceBusIntegrationRequest, google_protobuf_empty_pb.Empty>;
createPilotThingsIntegration: grpc.MethodDefinition<api_application_pb.CreatePilotThingsIntegrationRequest, google_protobuf_empty_pb.Empty>;
getPilotThingsIntegration: grpc.MethodDefinition<api_application_pb.GetPilotThingsIntegrationRequest, api_application_pb.GetPilotThingsIntegrationResponse>;
updatePilotThingsIntegration: grpc.MethodDefinition<api_application_pb.UpdatePilotThingsIntegrationRequest, google_protobuf_empty_pb.Empty>;
deletePilotThingsIntegration: grpc.MethodDefinition<api_application_pb.DeletePilotThingsIntegrationRequest, google_protobuf_empty_pb.Empty>;
generateMqttIntegrationClientCertificate: grpc.MethodDefinition<api_application_pb.GenerateMqttIntegrationClientCertificateRequest, api_application_pb.GenerateMqttIntegrationClientCertificateResponse>;
}
export const ApplicationServiceService: IApplicationServiceService;
export interface IApplicationServiceServer extends grpc.UntypedServiceImplementation {
create: grpc.handleUnaryCall<api_application_pb.CreateApplicationRequest, api_application_pb.CreateApplicationResponse>;
get: grpc.handleUnaryCall<api_application_pb.GetApplicationRequest, api_application_pb.GetApplicationResponse>;
update: grpc.handleUnaryCall<api_application_pb.UpdateApplicationRequest, google_protobuf_empty_pb.Empty>;
delete: grpc.handleUnaryCall<api_application_pb.DeleteApplicationRequest, google_protobuf_empty_pb.Empty>;
list: grpc.handleUnaryCall<api_application_pb.ListApplicationsRequest, api_application_pb.ListApplicationsResponse>;
listIntegrations: grpc.handleUnaryCall<api_application_pb.ListIntegrationsRequest, api_application_pb.ListIntegrationsResponse>;
createHttpIntegration: grpc.handleUnaryCall<api_application_pb.CreateHttpIntegrationRequest, google_protobuf_empty_pb.Empty>;
getHttpIntegration: grpc.handleUnaryCall<api_application_pb.GetHttpIntegrationRequest, api_application_pb.GetHttpIntegrationResponse>;
updateHttpIntegration: grpc.handleUnaryCall<api_application_pb.UpdateHttpIntegrationRequest, google_protobuf_empty_pb.Empty>;
deleteHttpIntegration: grpc.handleUnaryCall<api_application_pb.DeleteHttpIntegrationRequest, google_protobuf_empty_pb.Empty>;
createInfluxDbIntegration: grpc.handleUnaryCall<api_application_pb.CreateInfluxDbIntegrationRequest, google_protobuf_empty_pb.Empty>;
getInfluxDbIntegration: grpc.handleUnaryCall<api_application_pb.GetInfluxDbIntegrationRequest, api_application_pb.GetInfluxDbIntegrationResponse>;
updateInfluxDbIntegration: grpc.handleUnaryCall<api_application_pb.UpdateInfluxDbIntegrationRequest, google_protobuf_empty_pb.Empty>;
deleteInfluxDbIntegration: grpc.handleUnaryCall<api_application_pb.DeleteInfluxDbIntegrationRequest, google_protobuf_empty_pb.Empty>;
createThingsBoardIntegration: grpc.handleUnaryCall<api_application_pb.CreateThingsBoardIntegrationRequest, google_protobuf_empty_pb.Empty>;
getThingsBoardIntegration: grpc.handleUnaryCall<api_application_pb.GetThingsBoardIntegrationRequest, api_application_pb.GetThingsBoardIntegrationResponse>;
updateThingsBoardIntegration: grpc.handleUnaryCall<api_application_pb.UpdateThingsBoardIntegrationRequest, google_protobuf_empty_pb.Empty>;
deleteThingsBoardIntegration: grpc.handleUnaryCall<api_application_pb.DeleteThingsBoardIntegrationRequest, google_protobuf_empty_pb.Empty>;
createMyDevicesIntegration: grpc.handleUnaryCall<api_application_pb.CreateMyDevicesIntegrationRequest, google_protobuf_empty_pb.Empty>;
getMyDevicesIntegration: grpc.handleUnaryCall<api_application_pb.GetMyDevicesIntegrationRequest, api_application_pb.GetMyDevicesIntegrationResponse>;
updateMyDevicesIntegration: grpc.handleUnaryCall<api_application_pb.UpdateMyDevicesIntegrationRequest, google_protobuf_empty_pb.Empty>;
deleteMyDevicesIntegration: grpc.handleUnaryCall<api_application_pb.DeleteMyDevicesIntegrationRequest, google_protobuf_empty_pb.Empty>;
createLoraCloudIntegration: grpc.handleUnaryCall<api_application_pb.CreateLoraCloudIntegrationRequest, google_protobuf_empty_pb.Empty>;
getLoraCloudIntegration: grpc.handleUnaryCall<api_application_pb.GetLoraCloudIntegrationRequest, api_application_pb.GetLoraCloudIntegrationResponse>;
updateLoraCloudIntegration: grpc.handleUnaryCall<api_application_pb.UpdateLoraCloudIntegrationRequest, google_protobuf_empty_pb.Empty>;
deleteLoraCloudIntegration: grpc.handleUnaryCall<api_application_pb.DeleteLoraCloudIntegrationRequest, google_protobuf_empty_pb.Empty>;
createGcpPubSubIntegration: grpc.handleUnaryCall<api_application_pb.CreateGcpPubSubIntegrationRequest, google_protobuf_empty_pb.Empty>;
getGcpPubSubIntegration: grpc.handleUnaryCall<api_application_pb.GetGcpPubSubIntegrationRequest, api_application_pb.GetGcpPubSubIntegrationResponse>;
updateGcpPubSubIntegration: grpc.handleUnaryCall<api_application_pb.UpdateGcpPubSubIntegrationRequest, google_protobuf_empty_pb.Empty>;
deleteGcpPubSubIntegration: grpc.handleUnaryCall<api_application_pb.DeleteGcpPubSubIntegrationRequest, google_protobuf_empty_pb.Empty>;
createAwsSnsIntegration: grpc.handleUnaryCall<api_application_pb.CreateAwsSnsIntegrationRequest, google_protobuf_empty_pb.Empty>;
getAwsSnsIntegration: grpc.handleUnaryCall<api_application_pb.GetAwsSnsIntegrationRequest, api_application_pb.GetAwsSnsIntegrationResponse>;
updateAwsSnsIntegration: grpc.handleUnaryCall<api_application_pb.UpdateAwsSnsIntegrationRequest, google_protobuf_empty_pb.Empty>;
deleteAwsSnsIntegration: grpc.handleUnaryCall<api_application_pb.DeleteAwsSnsIntegrationRequest, google_protobuf_empty_pb.Empty>;
createAzureServiceBusIntegration: grpc.handleUnaryCall<api_application_pb.CreateAzureServiceBusIntegrationRequest, google_protobuf_empty_pb.Empty>;
getAzureServiceBusIntegration: grpc.handleUnaryCall<api_application_pb.GetAzureServiceBusIntegrationRequest, api_application_pb.GetAzureServiceBusIntegrationResponse>;
updateAzureServiceBusIntegration: grpc.handleUnaryCall<api_application_pb.UpdateAzureServiceBusIntegrationRequest, google_protobuf_empty_pb.Empty>;
deleteAzureServiceBusIntegration: grpc.handleUnaryCall<api_application_pb.DeleteAzureServiceBusIntegrationRequest, google_protobuf_empty_pb.Empty>;
createPilotThingsIntegration: grpc.handleUnaryCall<api_application_pb.CreatePilotThingsIntegrationRequest, google_protobuf_empty_pb.Empty>;
getPilotThingsIntegration: grpc.handleUnaryCall<api_application_pb.GetPilotThingsIntegrationRequest, api_application_pb.GetPilotThingsIntegrationResponse>;
updatePilotThingsIntegration: grpc.handleUnaryCall<api_application_pb.UpdatePilotThingsIntegrationRequest, google_protobuf_empty_pb.Empty>;
deletePilotThingsIntegration: grpc.handleUnaryCall<api_application_pb.DeletePilotThingsIntegrationRequest, google_protobuf_empty_pb.Empty>;
generateMqttIntegrationClientCertificate: grpc.handleUnaryCall<api_application_pb.GenerateMqttIntegrationClientCertificateRequest, api_application_pb.GenerateMqttIntegrationClientCertificateResponse>;
}
export class ApplicationServiceClient extends grpc.Client {
constructor(address: string, credentials: grpc.ChannelCredentials, options?: object);
create(argument: api_application_pb.CreateApplicationRequest, callback: grpc.requestCallback<api_application_pb.CreateApplicationResponse>): grpc.ClientUnaryCall;
create(argument: api_application_pb.CreateApplicationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_application_pb.CreateApplicationResponse>): grpc.ClientUnaryCall;
create(argument: api_application_pb.CreateApplicationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_application_pb.CreateApplicationResponse>): grpc.ClientUnaryCall;
get(argument: api_application_pb.GetApplicationRequest, callback: grpc.requestCallback<api_application_pb.GetApplicationResponse>): grpc.ClientUnaryCall;
get(argument: api_application_pb.GetApplicationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_application_pb.GetApplicationResponse>): grpc.ClientUnaryCall;
get(argument: api_application_pb.GetApplicationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_application_pb.GetApplicationResponse>): grpc.ClientUnaryCall;
update(argument: api_application_pb.UpdateApplicationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
update(argument: api_application_pb.UpdateApplicationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
update(argument: api_application_pb.UpdateApplicationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
delete(argument: api_application_pb.DeleteApplicationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
delete(argument: api_application_pb.DeleteApplicationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
delete(argument: api_application_pb.DeleteApplicationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
list(argument: api_application_pb.ListApplicationsRequest, callback: grpc.requestCallback<api_application_pb.ListApplicationsResponse>): grpc.ClientUnaryCall;
list(argument: api_application_pb.ListApplicationsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_application_pb.ListApplicationsResponse>): grpc.ClientUnaryCall;
list(argument: api_application_pb.ListApplicationsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_application_pb.ListApplicationsResponse>): grpc.ClientUnaryCall;
listIntegrations(argument: api_application_pb.ListIntegrationsRequest, callback: grpc.requestCallback<api_application_pb.ListIntegrationsResponse>): grpc.ClientUnaryCall;
listIntegrations(argument: api_application_pb.ListIntegrationsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_application_pb.ListIntegrationsResponse>): grpc.ClientUnaryCall;
listIntegrations(argument: api_application_pb.ListIntegrationsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_application_pb.ListIntegrationsResponse>): grpc.ClientUnaryCall;
createHttpIntegration(argument: api_application_pb.CreateHttpIntegrationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
createHttpIntegration(argument: api_application_pb.CreateHttpIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
createHttpIntegration(argument: api_application_pb.CreateHttpIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
getHttpIntegration(argument: api_application_pb.GetHttpIntegrationRequest, callback: grpc.requestCallback<api_application_pb.GetHttpIntegrationResponse>): grpc.ClientUnaryCall;
getHttpIntegration(argument: api_application_pb.GetHttpIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_application_pb.GetHttpIntegrationResponse>): grpc.ClientUnaryCall;
getHttpIntegration(argument: api_application_pb.GetHttpIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_application_pb.GetHttpIntegrationResponse>): grpc.ClientUnaryCall;
updateHttpIntegration(argument: api_application_pb.UpdateHttpIntegrationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
updateHttpIntegration(argument: api_application_pb.UpdateHttpIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
updateHttpIntegration(argument: api_application_pb.UpdateHttpIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteHttpIntegration(argument: api_application_pb.DeleteHttpIntegrationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteHttpIntegration(argument: api_application_pb.DeleteHttpIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteHttpIntegration(argument: api_application_pb.DeleteHttpIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
createInfluxDbIntegration(argument: api_application_pb.CreateInfluxDbIntegrationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
createInfluxDbIntegration(argument: api_application_pb.CreateInfluxDbIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
createInfluxDbIntegration(argument: api_application_pb.CreateInfluxDbIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
getInfluxDbIntegration(argument: api_application_pb.GetInfluxDbIntegrationRequest, callback: grpc.requestCallback<api_application_pb.GetInfluxDbIntegrationResponse>): grpc.ClientUnaryCall;
getInfluxDbIntegration(argument: api_application_pb.GetInfluxDbIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_application_pb.GetInfluxDbIntegrationResponse>): grpc.ClientUnaryCall;
getInfluxDbIntegration(argument: api_application_pb.GetInfluxDbIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_application_pb.GetInfluxDbIntegrationResponse>): grpc.ClientUnaryCall;
updateInfluxDbIntegration(argument: api_application_pb.UpdateInfluxDbIntegrationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
updateInfluxDbIntegration(argument: api_application_pb.UpdateInfluxDbIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
updateInfluxDbIntegration(argument: api_application_pb.UpdateInfluxDbIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteInfluxDbIntegration(argument: api_application_pb.DeleteInfluxDbIntegrationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteInfluxDbIntegration(argument: api_application_pb.DeleteInfluxDbIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteInfluxDbIntegration(argument: api_application_pb.DeleteInfluxDbIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
createThingsBoardIntegration(argument: api_application_pb.CreateThingsBoardIntegrationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
createThingsBoardIntegration(argument: api_application_pb.CreateThingsBoardIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
createThingsBoardIntegration(argument: api_application_pb.CreateThingsBoardIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
getThingsBoardIntegration(argument: api_application_pb.GetThingsBoardIntegrationRequest, callback: grpc.requestCallback<api_application_pb.GetThingsBoardIntegrationResponse>): grpc.ClientUnaryCall;
getThingsBoardIntegration(argument: api_application_pb.GetThingsBoardIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_application_pb.GetThingsBoardIntegrationResponse>): grpc.ClientUnaryCall;
getThingsBoardIntegration(argument: api_application_pb.GetThingsBoardIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_application_pb.GetThingsBoardIntegrationResponse>): grpc.ClientUnaryCall;
updateThingsBoardIntegration(argument: api_application_pb.UpdateThingsBoardIntegrationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
updateThingsBoardIntegration(argument: api_application_pb.UpdateThingsBoardIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
updateThingsBoardIntegration(argument: api_application_pb.UpdateThingsBoardIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteThingsBoardIntegration(argument: api_application_pb.DeleteThingsBoardIntegrationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteThingsBoardIntegration(argument: api_application_pb.DeleteThingsBoardIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteThingsBoardIntegration(argument: api_application_pb.DeleteThingsBoardIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
createMyDevicesIntegration(argument: api_application_pb.CreateMyDevicesIntegrationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
createMyDevicesIntegration(argument: api_application_pb.CreateMyDevicesIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
createMyDevicesIntegration(argument: api_application_pb.CreateMyDevicesIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
getMyDevicesIntegration(argument: api_application_pb.GetMyDevicesIntegrationRequest, callback: grpc.requestCallback<api_application_pb.GetMyDevicesIntegrationResponse>): grpc.ClientUnaryCall;
getMyDevicesIntegration(argument: api_application_pb.GetMyDevicesIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_application_pb.GetMyDevicesIntegrationResponse>): grpc.ClientUnaryCall;
getMyDevicesIntegration(argument: api_application_pb.GetMyDevicesIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_application_pb.GetMyDevicesIntegrationResponse>): grpc.ClientUnaryCall;
updateMyDevicesIntegration(argument: api_application_pb.UpdateMyDevicesIntegrationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
updateMyDevicesIntegration(argument: api_application_pb.UpdateMyDevicesIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
updateMyDevicesIntegration(argument: api_application_pb.UpdateMyDevicesIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteMyDevicesIntegration(argument: api_application_pb.DeleteMyDevicesIntegrationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteMyDevicesIntegration(argument: api_application_pb.DeleteMyDevicesIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteMyDevicesIntegration(argument: api_application_pb.DeleteMyDevicesIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
createLoraCloudIntegration(argument: api_application_pb.CreateLoraCloudIntegrationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
createLoraCloudIntegration(argument: api_application_pb.CreateLoraCloudIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
createLoraCloudIntegration(argument: api_application_pb.CreateLoraCloudIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
getLoraCloudIntegration(argument: api_application_pb.GetLoraCloudIntegrationRequest, callback: grpc.requestCallback<api_application_pb.GetLoraCloudIntegrationResponse>): grpc.ClientUnaryCall;
getLoraCloudIntegration(argument: api_application_pb.GetLoraCloudIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_application_pb.GetLoraCloudIntegrationResponse>): grpc.ClientUnaryCall;
getLoraCloudIntegration(argument: api_application_pb.GetLoraCloudIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_application_pb.GetLoraCloudIntegrationResponse>): grpc.ClientUnaryCall;
updateLoraCloudIntegration(argument: api_application_pb.UpdateLoraCloudIntegrationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
updateLoraCloudIntegration(argument: api_application_pb.UpdateLoraCloudIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
updateLoraCloudIntegration(argument: api_application_pb.UpdateLoraCloudIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteLoraCloudIntegration(argument: api_application_pb.DeleteLoraCloudIntegrationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteLoraCloudIntegration(argument: api_application_pb.DeleteLoraCloudIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteLoraCloudIntegration(argument: api_application_pb.DeleteLoraCloudIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
createGcpPubSubIntegration(argument: api_application_pb.CreateGcpPubSubIntegrationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
createGcpPubSubIntegration(argument: api_application_pb.CreateGcpPubSubIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
createGcpPubSubIntegration(argument: api_application_pb.CreateGcpPubSubIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
getGcpPubSubIntegration(argument: api_application_pb.GetGcpPubSubIntegrationRequest, callback: grpc.requestCallback<api_application_pb.GetGcpPubSubIntegrationResponse>): grpc.ClientUnaryCall;
getGcpPubSubIntegration(argument: api_application_pb.GetGcpPubSubIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_application_pb.GetGcpPubSubIntegrationResponse>): grpc.ClientUnaryCall;
getGcpPubSubIntegration(argument: api_application_pb.GetGcpPubSubIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_application_pb.GetGcpPubSubIntegrationResponse>): grpc.ClientUnaryCall;
updateGcpPubSubIntegration(argument: api_application_pb.UpdateGcpPubSubIntegrationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
updateGcpPubSubIntegration(argument: api_application_pb.UpdateGcpPubSubIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
updateGcpPubSubIntegration(argument: api_application_pb.UpdateGcpPubSubIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteGcpPubSubIntegration(argument: api_application_pb.DeleteGcpPubSubIntegrationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteGcpPubSubIntegration(argument: api_application_pb.DeleteGcpPubSubIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteGcpPubSubIntegration(argument: api_application_pb.DeleteGcpPubSubIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
createAwsSnsIntegration(argument: api_application_pb.CreateAwsSnsIntegrationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
createAwsSnsIntegration(argument: api_application_pb.CreateAwsSnsIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
createAwsSnsIntegration(argument: api_application_pb.CreateAwsSnsIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
getAwsSnsIntegration(argument: api_application_pb.GetAwsSnsIntegrationRequest, callback: grpc.requestCallback<api_application_pb.GetAwsSnsIntegrationResponse>): grpc.ClientUnaryCall;
getAwsSnsIntegration(argument: api_application_pb.GetAwsSnsIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_application_pb.GetAwsSnsIntegrationResponse>): grpc.ClientUnaryCall;
getAwsSnsIntegration(argument: api_application_pb.GetAwsSnsIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_application_pb.GetAwsSnsIntegrationResponse>): grpc.ClientUnaryCall;
updateAwsSnsIntegration(argument: api_application_pb.UpdateAwsSnsIntegrationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
updateAwsSnsIntegration(argument: api_application_pb.UpdateAwsSnsIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
updateAwsSnsIntegration(argument: api_application_pb.UpdateAwsSnsIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteAwsSnsIntegration(argument: api_application_pb.DeleteAwsSnsIntegrationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteAwsSnsIntegration(argument: api_application_pb.DeleteAwsSnsIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteAwsSnsIntegration(argument: api_application_pb.DeleteAwsSnsIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
createAzureServiceBusIntegration(argument: api_application_pb.CreateAzureServiceBusIntegrationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
createAzureServiceBusIntegration(argument: api_application_pb.CreateAzureServiceBusIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
createAzureServiceBusIntegration(argument: api_application_pb.CreateAzureServiceBusIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
getAzureServiceBusIntegration(argument: api_application_pb.GetAzureServiceBusIntegrationRequest, callback: grpc.requestCallback<api_application_pb.GetAzureServiceBusIntegrationResponse>): grpc.ClientUnaryCall;
getAzureServiceBusIntegration(argument: api_application_pb.GetAzureServiceBusIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_application_pb.GetAzureServiceBusIntegrationResponse>): grpc.ClientUnaryCall;
getAzureServiceBusIntegration(argument: api_application_pb.GetAzureServiceBusIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_application_pb.GetAzureServiceBusIntegrationResponse>): grpc.ClientUnaryCall;
updateAzureServiceBusIntegration(argument: api_application_pb.UpdateAzureServiceBusIntegrationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
updateAzureServiceBusIntegration(argument: api_application_pb.UpdateAzureServiceBusIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
updateAzureServiceBusIntegration(argument: api_application_pb.UpdateAzureServiceBusIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteAzureServiceBusIntegration(argument: api_application_pb.DeleteAzureServiceBusIntegrationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteAzureServiceBusIntegration(argument: api_application_pb.DeleteAzureServiceBusIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteAzureServiceBusIntegration(argument: api_application_pb.DeleteAzureServiceBusIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
createPilotThingsIntegration(argument: api_application_pb.CreatePilotThingsIntegrationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
createPilotThingsIntegration(argument: api_application_pb.CreatePilotThingsIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
createPilotThingsIntegration(argument: api_application_pb.CreatePilotThingsIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
getPilotThingsIntegration(argument: api_application_pb.GetPilotThingsIntegrationRequest, callback: grpc.requestCallback<api_application_pb.GetPilotThingsIntegrationResponse>): grpc.ClientUnaryCall;
getPilotThingsIntegration(argument: api_application_pb.GetPilotThingsIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_application_pb.GetPilotThingsIntegrationResponse>): grpc.ClientUnaryCall;
getPilotThingsIntegration(argument: api_application_pb.GetPilotThingsIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_application_pb.GetPilotThingsIntegrationResponse>): grpc.ClientUnaryCall;
updatePilotThingsIntegration(argument: api_application_pb.UpdatePilotThingsIntegrationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
updatePilotThingsIntegration(argument: api_application_pb.UpdatePilotThingsIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
updatePilotThingsIntegration(argument: api_application_pb.UpdatePilotThingsIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deletePilotThingsIntegration(argument: api_application_pb.DeletePilotThingsIntegrationRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deletePilotThingsIntegration(argument: api_application_pb.DeletePilotThingsIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deletePilotThingsIntegration(argument: api_application_pb.DeletePilotThingsIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
generateMqttIntegrationClientCertificate(argument: api_application_pb.GenerateMqttIntegrationClientCertificateRequest, callback: grpc.requestCallback<api_application_pb.GenerateMqttIntegrationClientCertificateResponse>): grpc.ClientUnaryCall;
generateMqttIntegrationClientCertificate(argument: api_application_pb.GenerateMqttIntegrationClientCertificateRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_application_pb.GenerateMqttIntegrationClientCertificateResponse>): grpc.ClientUnaryCall;
generateMqttIntegrationClientCertificate(argument: api_application_pb.GenerateMqttIntegrationClientCertificateRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_application_pb.GenerateMqttIntegrationClientCertificateResponse>): grpc.ClientUnaryCall;
}

File diff suppressed because it is too large Load Diff

1766
api/js/api/application_pb.d.ts vendored Normal file

File diff suppressed because it is too large Load Diff

13572
api/js/api/application_pb.js Normal file

File diff suppressed because it is too large Load Diff

110
api/js/api/device_grpc_pb.d.ts vendored Normal file
View File

@ -0,0 +1,110 @@
// 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<grpc.UntypedServiceImplementation> {
create: grpc.MethodDefinition<api_device_pb.CreateDeviceRequest, google_protobuf_empty_pb.Empty>;
get: grpc.MethodDefinition<api_device_pb.GetDeviceRequest, api_device_pb.GetDeviceResponse>;
update: grpc.MethodDefinition<api_device_pb.UpdateDeviceRequest, google_protobuf_empty_pb.Empty>;
delete: grpc.MethodDefinition<api_device_pb.DeleteDeviceRequest, google_protobuf_empty_pb.Empty>;
list: grpc.MethodDefinition<api_device_pb.ListDevicesRequest, api_device_pb.ListDevicesResponse>;
createKeys: grpc.MethodDefinition<api_device_pb.CreateDeviceKeysRequest, google_protobuf_empty_pb.Empty>;
getKeys: grpc.MethodDefinition<api_device_pb.GetDeviceKeysRequest, api_device_pb.GetDeviceKeysResponse>;
updateKeys: grpc.MethodDefinition<api_device_pb.UpdateDeviceKeysRequest, google_protobuf_empty_pb.Empty>;
deleteKeys: grpc.MethodDefinition<api_device_pb.DeleteDeviceKeysRequest, google_protobuf_empty_pb.Empty>;
flushDevNonces: grpc.MethodDefinition<api_device_pb.FlushDevNoncesRequest, google_protobuf_empty_pb.Empty>;
activate: grpc.MethodDefinition<api_device_pb.ActivateDeviceRequest, google_protobuf_empty_pb.Empty>;
deactivate: grpc.MethodDefinition<api_device_pb.DeactivateDeviceRequest, google_protobuf_empty_pb.Empty>;
getActivation: grpc.MethodDefinition<api_device_pb.GetDeviceActivationRequest, api_device_pb.GetDeviceActivationResponse>;
getRandomDevAddr: grpc.MethodDefinition<api_device_pb.GetRandomDevAddrRequest, api_device_pb.GetRandomDevAddrResponse>;
getStats: grpc.MethodDefinition<api_device_pb.GetDeviceStatsRequest, api_device_pb.GetDeviceStatsResponse>;
enqueue: grpc.MethodDefinition<api_device_pb.EnqueueDeviceQueueItemRequest, api_device_pb.EnqueueDeviceQueueItemResponse>;
flushQueue: grpc.MethodDefinition<api_device_pb.FlushDeviceQueueRequest, google_protobuf_empty_pb.Empty>;
getQueue: grpc.MethodDefinition<api_device_pb.GetDeviceQueueItemsRequest, api_device_pb.GetDeviceQueueItemsResponse>;
}
export const DeviceServiceService: IDeviceServiceService;
export interface IDeviceServiceServer extends grpc.UntypedServiceImplementation {
create: grpc.handleUnaryCall<api_device_pb.CreateDeviceRequest, google_protobuf_empty_pb.Empty>;
get: grpc.handleUnaryCall<api_device_pb.GetDeviceRequest, api_device_pb.GetDeviceResponse>;
update: grpc.handleUnaryCall<api_device_pb.UpdateDeviceRequest, google_protobuf_empty_pb.Empty>;
delete: grpc.handleUnaryCall<api_device_pb.DeleteDeviceRequest, google_protobuf_empty_pb.Empty>;
list: grpc.handleUnaryCall<api_device_pb.ListDevicesRequest, api_device_pb.ListDevicesResponse>;
createKeys: grpc.handleUnaryCall<api_device_pb.CreateDeviceKeysRequest, google_protobuf_empty_pb.Empty>;
getKeys: grpc.handleUnaryCall<api_device_pb.GetDeviceKeysRequest, api_device_pb.GetDeviceKeysResponse>;
updateKeys: grpc.handleUnaryCall<api_device_pb.UpdateDeviceKeysRequest, google_protobuf_empty_pb.Empty>;
deleteKeys: grpc.handleUnaryCall<api_device_pb.DeleteDeviceKeysRequest, google_protobuf_empty_pb.Empty>;
flushDevNonces: grpc.handleUnaryCall<api_device_pb.FlushDevNoncesRequest, google_protobuf_empty_pb.Empty>;
activate: grpc.handleUnaryCall<api_device_pb.ActivateDeviceRequest, google_protobuf_empty_pb.Empty>;
deactivate: grpc.handleUnaryCall<api_device_pb.DeactivateDeviceRequest, google_protobuf_empty_pb.Empty>;
getActivation: grpc.handleUnaryCall<api_device_pb.GetDeviceActivationRequest, api_device_pb.GetDeviceActivationResponse>;
getRandomDevAddr: grpc.handleUnaryCall<api_device_pb.GetRandomDevAddrRequest, api_device_pb.GetRandomDevAddrResponse>;
getStats: grpc.handleUnaryCall<api_device_pb.GetDeviceStatsRequest, api_device_pb.GetDeviceStatsResponse>;
enqueue: grpc.handleUnaryCall<api_device_pb.EnqueueDeviceQueueItemRequest, api_device_pb.EnqueueDeviceQueueItemResponse>;
flushQueue: grpc.handleUnaryCall<api_device_pb.FlushDeviceQueueRequest, google_protobuf_empty_pb.Empty>;
getQueue: grpc.handleUnaryCall<api_device_pb.GetDeviceQueueItemsRequest, api_device_pb.GetDeviceQueueItemsResponse>;
}
export class DeviceServiceClient extends grpc.Client {
constructor(address: string, credentials: grpc.ChannelCredentials, options?: object);
create(argument: api_device_pb.CreateDeviceRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
create(argument: api_device_pb.CreateDeviceRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
create(argument: api_device_pb.CreateDeviceRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
get(argument: api_device_pb.GetDeviceRequest, callback: grpc.requestCallback<api_device_pb.GetDeviceResponse>): grpc.ClientUnaryCall;
get(argument: api_device_pb.GetDeviceRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_device_pb.GetDeviceResponse>): grpc.ClientUnaryCall;
get(argument: api_device_pb.GetDeviceRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_device_pb.GetDeviceResponse>): grpc.ClientUnaryCall;
update(argument: api_device_pb.UpdateDeviceRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
update(argument: api_device_pb.UpdateDeviceRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
update(argument: api_device_pb.UpdateDeviceRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
delete(argument: api_device_pb.DeleteDeviceRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
delete(argument: api_device_pb.DeleteDeviceRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
delete(argument: api_device_pb.DeleteDeviceRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
list(argument: api_device_pb.ListDevicesRequest, callback: grpc.requestCallback<api_device_pb.ListDevicesResponse>): grpc.ClientUnaryCall;
list(argument: api_device_pb.ListDevicesRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_device_pb.ListDevicesResponse>): grpc.ClientUnaryCall;
list(argument: api_device_pb.ListDevicesRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_device_pb.ListDevicesResponse>): grpc.ClientUnaryCall;
createKeys(argument: api_device_pb.CreateDeviceKeysRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
createKeys(argument: api_device_pb.CreateDeviceKeysRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
createKeys(argument: api_device_pb.CreateDeviceKeysRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
getKeys(argument: api_device_pb.GetDeviceKeysRequest, callback: grpc.requestCallback<api_device_pb.GetDeviceKeysResponse>): grpc.ClientUnaryCall;
getKeys(argument: api_device_pb.GetDeviceKeysRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_device_pb.GetDeviceKeysResponse>): grpc.ClientUnaryCall;
getKeys(argument: api_device_pb.GetDeviceKeysRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_device_pb.GetDeviceKeysResponse>): grpc.ClientUnaryCall;
updateKeys(argument: api_device_pb.UpdateDeviceKeysRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
updateKeys(argument: api_device_pb.UpdateDeviceKeysRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
updateKeys(argument: api_device_pb.UpdateDeviceKeysRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteKeys(argument: api_device_pb.DeleteDeviceKeysRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteKeys(argument: api_device_pb.DeleteDeviceKeysRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteKeys(argument: api_device_pb.DeleteDeviceKeysRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
flushDevNonces(argument: api_device_pb.FlushDevNoncesRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
flushDevNonces(argument: api_device_pb.FlushDevNoncesRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
flushDevNonces(argument: api_device_pb.FlushDevNoncesRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
activate(argument: api_device_pb.ActivateDeviceRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
activate(argument: api_device_pb.ActivateDeviceRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
activate(argument: api_device_pb.ActivateDeviceRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deactivate(argument: api_device_pb.DeactivateDeviceRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deactivate(argument: api_device_pb.DeactivateDeviceRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deactivate(argument: api_device_pb.DeactivateDeviceRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
getActivation(argument: api_device_pb.GetDeviceActivationRequest, callback: grpc.requestCallback<api_device_pb.GetDeviceActivationResponse>): grpc.ClientUnaryCall;
getActivation(argument: api_device_pb.GetDeviceActivationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_device_pb.GetDeviceActivationResponse>): grpc.ClientUnaryCall;
getActivation(argument: api_device_pb.GetDeviceActivationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_device_pb.GetDeviceActivationResponse>): grpc.ClientUnaryCall;
getRandomDevAddr(argument: api_device_pb.GetRandomDevAddrRequest, callback: grpc.requestCallback<api_device_pb.GetRandomDevAddrResponse>): grpc.ClientUnaryCall;
getRandomDevAddr(argument: api_device_pb.GetRandomDevAddrRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_device_pb.GetRandomDevAddrResponse>): grpc.ClientUnaryCall;
getRandomDevAddr(argument: api_device_pb.GetRandomDevAddrRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_device_pb.GetRandomDevAddrResponse>): grpc.ClientUnaryCall;
getStats(argument: api_device_pb.GetDeviceStatsRequest, callback: grpc.requestCallback<api_device_pb.GetDeviceStatsResponse>): grpc.ClientUnaryCall;
getStats(argument: api_device_pb.GetDeviceStatsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_device_pb.GetDeviceStatsResponse>): grpc.ClientUnaryCall;
getStats(argument: api_device_pb.GetDeviceStatsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_device_pb.GetDeviceStatsResponse>): grpc.ClientUnaryCall;
enqueue(argument: api_device_pb.EnqueueDeviceQueueItemRequest, callback: grpc.requestCallback<api_device_pb.EnqueueDeviceQueueItemResponse>): grpc.ClientUnaryCall;
enqueue(argument: api_device_pb.EnqueueDeviceQueueItemRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_device_pb.EnqueueDeviceQueueItemResponse>): grpc.ClientUnaryCall;
enqueue(argument: api_device_pb.EnqueueDeviceQueueItemRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_device_pb.EnqueueDeviceQueueItemResponse>): grpc.ClientUnaryCall;
flushQueue(argument: api_device_pb.FlushDeviceQueueRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
flushQueue(argument: api_device_pb.FlushDeviceQueueRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
flushQueue(argument: api_device_pb.FlushDeviceQueueRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
getQueue(argument: api_device_pb.GetDeviceQueueItemsRequest, callback: grpc.requestCallback<api_device_pb.GetDeviceQueueItemsResponse>): grpc.ClientUnaryCall;
getQueue(argument: api_device_pb.GetDeviceQueueItemsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_device_pb.GetDeviceQueueItemsResponse>): grpc.ClientUnaryCall;
getQueue(argument: api_device_pb.GetDeviceQueueItemsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_device_pb.GetDeviceQueueItemsResponse>): grpc.ClientUnaryCall;
}

View File

@ -0,0 +1,528 @@
// GENERATED CODE -- DO NOT EDIT!
'use strict';
var grpc = require('@grpc/grpc-js');
var api_device_pb = require('../api/device_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_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_GetDeviceStatsRequest(arg) {
if (!(arg instanceof api_device_pb.GetDeviceStatsRequest)) {
throw new Error('Expected argument of type api.GetDeviceStatsRequest');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_api_GetDeviceStatsRequest(buffer_arg) {
return api_device_pb.GetDeviceStatsRequest.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_api_GetDeviceStatsResponse(arg) {
if (!(arg instanceof api_device_pb.GetDeviceStatsResponse)) {
throw new Error('Expected argument of type api.GetDeviceStatsResponse');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_api_GetDeviceStatsResponse(buffer_arg) {
return api_device_pb.GetDeviceStatsResponse.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,
},
// GetStats returns the device stats.
getStats: {
path: '/api.DeviceService/GetStats',
requestStream: false,
responseStream: false,
requestType: api_device_pb.GetDeviceStatsRequest,
responseType: api_device_pb.GetDeviceStatsResponse,
requestSerialize: serialize_api_GetDeviceStatsRequest,
requestDeserialize: deserialize_api_GetDeviceStatsRequest,
responseSerialize: serialize_api_GetDeviceStatsResponse,
responseDeserialize: deserialize_api_GetDeviceStatsResponse,
},
// 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,
},
};
exports.DeviceServiceClient = grpc.makeGenericClientConstructor(DeviceServiceService);

941
api/js/api/device_pb.d.ts vendored Normal file
View File

@ -0,0 +1,941 @@
// package: api
// file: api/device.proto
import * as jspb from "google-protobuf";
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<string, string>;
clearVariablesMap(): void;
getTagsMap(): jspb.Map<string, string>;
clearTagsMap(): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Device.AsObject;
static toObject(includeInstance: boolean, msg: Device): Device.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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]>,
}
}
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetDeviceResponse.AsObject;
static toObject(includeInstance: boolean, msg: GetDeviceResponse): GetDeviceResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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,
}
}
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<DeviceListItem>;
setResultList(value: Array<DeviceListItem>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<DeviceListItem.AsObject>,
}
}
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetDeviceActivationResponse.AsObject;
static toObject(includeInstance: boolean, msg: GetDeviceActivationResponse): GetDeviceActivationResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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,
}
}
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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 GetDeviceStatsRequest 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;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetDeviceStatsRequest.AsObject;
static toObject(includeInstance: boolean, msg: GetDeviceStatsRequest): GetDeviceStatsRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: GetDeviceStatsRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetDeviceStatsRequest;
static deserializeBinaryFromReader(message: GetDeviceStatsRequest, reader: jspb.BinaryReader): GetDeviceStatsRequest;
}
export namespace GetDeviceStatsRequest {
export type AsObject = {
devEui: string,
start?: google_protobuf_timestamp_pb.Timestamp.AsObject,
end?: google_protobuf_timestamp_pb.Timestamp.AsObject,
}
}
export class GetDeviceStatsResponse extends jspb.Message {
clearResultList(): void;
getResultList(): Array<DeviceStats>;
setResultList(value: Array<DeviceStats>): void;
addResult(value?: DeviceStats, index?: number): DeviceStats;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetDeviceStatsResponse.AsObject;
static toObject(includeInstance: boolean, msg: GetDeviceStatsResponse): GetDeviceStatsResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: GetDeviceStatsResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetDeviceStatsResponse;
static deserializeBinaryFromReader(message: GetDeviceStatsResponse, reader: jspb.BinaryReader): GetDeviceStatsResponse;
}
export namespace GetDeviceStatsResponse {
export type AsObject = {
resultList: Array<DeviceStats.AsObject>,
}
}
export class DeviceStats extends jspb.Message {
hasTime(): boolean;
clearTime(): void;
getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
setTime(value?: google_protobuf_timestamp_pb.Timestamp): void;
getRxPackets(): number;
setRxPackets(value: number): void;
getGwRssi(): number;
setGwRssi(value: number): void;
getGwSnr(): number;
setGwSnr(value: number): void;
getRxPacketsPerFrequencyMap(): jspb.Map<number, number>;
clearRxPacketsPerFrequencyMap(): void;
getRxPacketsPerDrMap(): jspb.Map<number, number>;
clearRxPacketsPerDrMap(): void;
getErrorsMap(): jspb.Map<string, number>;
clearErrorsMap(): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeviceStats.AsObject;
static toObject(includeInstance: boolean, msg: DeviceStats): DeviceStats.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: DeviceStats, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DeviceStats;
static deserializeBinaryFromReader(message: DeviceStats, reader: jspb.BinaryReader): DeviceStats;
}
export namespace DeviceStats {
export type AsObject = {
time?: google_protobuf_timestamp_pb.Timestamp.AsObject,
rxPackets: number,
gwRssi: number,
gwSnr: number,
rxPacketsPerFrequencyMap: Array<[number, number]>,
rxPacketsPerDrMap: Array<[number, number]>,
errorsMap: Array<[string, number]>,
}
}
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;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeviceQueueItem.AsObject;
static toObject(includeInstance: boolean, msg: DeviceQueueItem): DeviceQueueItem.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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,
}
}
export class EnqueueDeviceQueueItemRequest extends jspb.Message {
hasItem(): boolean;
clearItem(): void;
getItem(): DeviceQueueItem | undefined;
setItem(value?: DeviceQueueItem): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): EnqueueDeviceQueueItemRequest.AsObject;
static toObject(includeInstance: boolean, msg: EnqueueDeviceQueueItemRequest): EnqueueDeviceQueueItemRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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 = {
item?: 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<DeviceQueueItem>;
setResultList(value: Array<DeviceQueueItem>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<DeviceQueueItem.AsObject>,
}
}
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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,
}
}

7276
api/js/api/device_pb.js Normal file

File diff suppressed because it is too large Load Diff

50
api/js/api/device_profile_grpc_pb.d.ts vendored Normal file
View File

@ -0,0 +1,50 @@
// 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<grpc.UntypedServiceImplementation> {
create: grpc.MethodDefinition<api_device_profile_pb.CreateDeviceProfileRequest, api_device_profile_pb.CreateDeviceProfileResponse>;
get: grpc.MethodDefinition<api_device_profile_pb.GetDeviceProfileRequest, api_device_profile_pb.GetDeviceProfileResponse>;
update: grpc.MethodDefinition<api_device_profile_pb.UpdateDeviceProfileRequest, google_protobuf_empty_pb.Empty>;
delete: grpc.MethodDefinition<api_device_profile_pb.DeleteDeviceProfileRequest, google_protobuf_empty_pb.Empty>;
list: grpc.MethodDefinition<api_device_profile_pb.ListDeviceProfilesRequest, api_device_profile_pb.ListDeviceProfilesResponse>;
listAdrAlgorithms: grpc.MethodDefinition<google_protobuf_empty_pb.Empty, api_device_profile_pb.ListDeviceProfileAdrAlgorithmsResponse>;
}
export const DeviceProfileServiceService: IDeviceProfileServiceService;
export interface IDeviceProfileServiceServer extends grpc.UntypedServiceImplementation {
create: grpc.handleUnaryCall<api_device_profile_pb.CreateDeviceProfileRequest, api_device_profile_pb.CreateDeviceProfileResponse>;
get: grpc.handleUnaryCall<api_device_profile_pb.GetDeviceProfileRequest, api_device_profile_pb.GetDeviceProfileResponse>;
update: grpc.handleUnaryCall<api_device_profile_pb.UpdateDeviceProfileRequest, google_protobuf_empty_pb.Empty>;
delete: grpc.handleUnaryCall<api_device_profile_pb.DeleteDeviceProfileRequest, google_protobuf_empty_pb.Empty>;
list: grpc.handleUnaryCall<api_device_profile_pb.ListDeviceProfilesRequest, api_device_profile_pb.ListDeviceProfilesResponse>;
listAdrAlgorithms: grpc.handleUnaryCall<google_protobuf_empty_pb.Empty, api_device_profile_pb.ListDeviceProfileAdrAlgorithmsResponse>;
}
export class DeviceProfileServiceClient extends grpc.Client {
constructor(address: string, credentials: grpc.ChannelCredentials, options?: object);
create(argument: api_device_profile_pb.CreateDeviceProfileRequest, callback: grpc.requestCallback<api_device_profile_pb.CreateDeviceProfileResponse>): grpc.ClientUnaryCall;
create(argument: api_device_profile_pb.CreateDeviceProfileRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_device_profile_pb.CreateDeviceProfileResponse>): grpc.ClientUnaryCall;
create(argument: api_device_profile_pb.CreateDeviceProfileRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_device_profile_pb.CreateDeviceProfileResponse>): grpc.ClientUnaryCall;
get(argument: api_device_profile_pb.GetDeviceProfileRequest, callback: grpc.requestCallback<api_device_profile_pb.GetDeviceProfileResponse>): grpc.ClientUnaryCall;
get(argument: api_device_profile_pb.GetDeviceProfileRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_device_profile_pb.GetDeviceProfileResponse>): grpc.ClientUnaryCall;
get(argument: api_device_profile_pb.GetDeviceProfileRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_device_profile_pb.GetDeviceProfileResponse>): grpc.ClientUnaryCall;
update(argument: api_device_profile_pb.UpdateDeviceProfileRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
update(argument: api_device_profile_pb.UpdateDeviceProfileRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
update(argument: api_device_profile_pb.UpdateDeviceProfileRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
delete(argument: api_device_profile_pb.DeleteDeviceProfileRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
delete(argument: api_device_profile_pb.DeleteDeviceProfileRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
delete(argument: api_device_profile_pb.DeleteDeviceProfileRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
list(argument: api_device_profile_pb.ListDeviceProfilesRequest, callback: grpc.requestCallback<api_device_profile_pb.ListDeviceProfilesResponse>): grpc.ClientUnaryCall;
list(argument: api_device_profile_pb.ListDeviceProfilesRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_device_profile_pb.ListDeviceProfilesResponse>): grpc.ClientUnaryCall;
list(argument: api_device_profile_pb.ListDeviceProfilesRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_device_profile_pb.ListDeviceProfilesResponse>): grpc.ClientUnaryCall;
listAdrAlgorithms(argument: google_protobuf_empty_pb.Empty, callback: grpc.requestCallback<api_device_profile_pb.ListDeviceProfileAdrAlgorithmsResponse>): grpc.ClientUnaryCall;
listAdrAlgorithms(argument: google_protobuf_empty_pb.Empty, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_device_profile_pb.ListDeviceProfileAdrAlgorithmsResponse>): grpc.ClientUnaryCall;
listAdrAlgorithms(argument: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_device_profile_pb.ListDeviceProfileAdrAlgorithmsResponse>): grpc.ClientUnaryCall;
}

View File

@ -0,0 +1,197 @@
// 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_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);

437
api/js/api/device_profile_pb.d.ts vendored Normal file
View File

@ -0,0 +1,437 @@
// package: api
// file: api/device_profile.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";
export class DeviceProfile extends jspb.Message {
getId(): string;
setId(value: string): void;
getTenantId(): string;
setTenantId(value: string): 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;
getAdrAlgorithmId(): string;
setAdrAlgorithmId(value: string): void;
getPayloadCodecRuntime(): CodecRuntimeMap[keyof CodecRuntimeMap];
setPayloadCodecRuntime(value: CodecRuntimeMap[keyof CodecRuntimeMap]): void;
getPayloadEncoderConfig(): string;
setPayloadEncoderConfig(value: string): void;
getPayloadDecoderConfig(): string;
setPayloadDecoderConfig(value: string): 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;
getClassBPingSlotPeriod(): number;
setClassBPingSlotPeriod(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<string, string>;
clearTagsMap(): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeviceProfile.AsObject;
static toObject(includeInstance: boolean, msg: DeviceProfile): DeviceProfile.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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,
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],
payloadEncoderConfig: string,
payloadDecoderConfig: string,
uplinkInterval: number,
deviceStatusReqInterval: number,
supportsOtaa: boolean,
supportsClassB: boolean,
supportsClassC: boolean,
classBTimeout: number,
classBPingSlotPeriod: number,
classBPingSlotDr: number,
classBPingSlotFreq: number,
classCTimeout: number,
abpRx1Delay: number,
abpRx1DrOffset: number,
abpRx2Dr: number,
abpRx2Freq: number,
tagsMap: Array<[string, string]>,
}
}
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<DeviceProfileListItem>;
setResultList(value: Array<DeviceProfileListItem>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<DeviceProfileListItem.AsObject>,
}
}
export class ListDeviceProfileAdrAlgorithmsResponse extends jspb.Message {
getTotalCount(): number;
setTotalCount(value: number): void;
clearResultList(): void;
getResultList(): Array<AdrAlgorithmListItem>;
setResultList(value: Array<AdrAlgorithmListItem>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<AdrAlgorithmListItem.AsObject>,
}
}
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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;

File diff suppressed because it is too large Load Diff

1
api/js/api/frame_log_grpc_pb.d.ts vendored Normal file
View File

@ -0,0 +1 @@
// GENERATED CODE -- NO SERVICES IN PROTO

View File

@ -0,0 +1 @@
// GENERATED CODE -- NO SERVICES IN PROTO

114
api/js/api/frame_log_pb.d.ts vendored Normal file
View File

@ -0,0 +1,114 @@
// package: api
// file: api/frame_log.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<gw_gw_pb.UplinkRXInfo>;
setRxInfoList(value: Array<gw_gw_pb.UplinkRXInfo>): 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;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UplinkFrameLog.AsObject;
static toObject(includeInstance: boolean, msg: UplinkFrameLog): UplinkFrameLog.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<gw_gw_pb.UplinkRXInfo.AsObject>,
mType: common_common_pb.MTypeMap[keyof common_common_pb.MTypeMap],
devAddr: string,
devEui: string,
time?: google_protobuf_timestamp_pb.Timestamp.AsObject,
}
}
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(): string;
setDownlinkId(value: string): 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;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DownlinkFrameLog.AsObject;
static toObject(includeInstance: boolean, msg: DownlinkFrameLog): DownlinkFrameLog.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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: string,
gatewayId: string,
mType: common_common_pb.MTypeMap[keyof common_common_pb.MTypeMap],
devAddr: string,
devEui: string,
}
}

821
api/js/api/frame_log_pb.js Normal file
View File

@ -0,0 +1,821 @@
/**
* @fileoverview
* @enhanceable
* @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');
var common_common_pb = require('../common/common_pb.js');
var gw_gw_pb = require('../gw/gw_pb.js');
goog.exportSymbol('proto.api.DownlinkFrameLog', null, global);
goog.exportSymbol('proto.api.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.api.UplinkFrameLog = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.api.UplinkFrameLog.repeatedFields_, null);
};
goog.inherits(proto.api.UplinkFrameLog, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.api.UplinkFrameLog.displayName = 'proto.api.UplinkFrameLog';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.api.UplinkFrameLog.repeatedFields_ = [3];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.api.UplinkFrameLog.prototype.toObject = function(opt_includeInstance) {
return proto.api.UplinkFrameLog.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.api.UplinkFrameLog} msg The msg instance to transform.
* @return {!Object}
*/
proto.api.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: msg.getMType(),
devAddr: msg.getDevAddr(),
devEui: msg.getDevEui(),
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.api.UplinkFrameLog}
*/
proto.api.UplinkFrameLog.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.api.UplinkFrameLog;
return proto.api.UplinkFrameLog.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.api.UplinkFrameLog} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.api.UplinkFrameLog}
*/
proto.api.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.getRxInfoList().push(value);
msg.setRxInfoList(msg.getRxInfoList());
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;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.api.UplinkFrameLog} message
* @param {!jspb.BinaryWriter} writer
*/
proto.api.UplinkFrameLog.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.api.UplinkFrameLog.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
return writer.getResultBuffer();
};
/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* @param {!jspb.BinaryWriter} writer
*/
proto.api.UplinkFrameLog.prototype.serializeBinaryToWriter = function (writer) {
var f = undefined;
f = this.getPhyPayload_asU8();
if (f.length > 0) {
writer.writeBytes(
1,
f
);
}
f = this.getTxInfo();
if (f != null) {
writer.writeMessage(
2,
f,
gw_gw_pb.UplinkTXInfo.serializeBinaryToWriter
);
}
f = this.getRxInfoList();
if (f.length > 0) {
writer.writeRepeatedMessage(
3,
f,
gw_gw_pb.UplinkRXInfo.serializeBinaryToWriter
);
}
f = this.getMType();
if (f !== 0.0) {
writer.writeEnum(
4,
f
);
}
f = this.getDevAddr();
if (f.length > 0) {
writer.writeString(
5,
f
);
}
f = this.getDevEui();
if (f.length > 0) {
writer.writeString(
6,
f
);
}
f = this.getTime();
if (f != null) {
writer.writeMessage(
7,
f,
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
);
}
};
/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.api.UplinkFrameLog} The clone.
*/
proto.api.UplinkFrameLog.prototype.cloneMessage = function() {
return /** @type {!proto.api.UplinkFrameLog} */ (jspb.Message.cloneMessage(this));
};
/**
* optional bytes phy_payload = 1;
* @return {!(string|Uint8Array)}
*/
proto.api.UplinkFrameLog.prototype.getPhyPayload = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldProto3(this, 1, ""));
};
/**
* optional bytes phy_payload = 1;
* This is a type-conversion wrapper around `getPhyPayload()`
* @return {string}
*/
proto.api.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.api.UplinkFrameLog.prototype.getPhyPayload_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getPhyPayload()));
};
/** @param {!(string|Uint8Array)} value */
proto.api.UplinkFrameLog.prototype.setPhyPayload = function(value) {
jspb.Message.setField(this, 1, value);
};
/**
* optional gw.UplinkTXInfo tx_info = 2;
* @return {proto.gw.UplinkTXInfo}
*/
proto.api.UplinkFrameLog.prototype.getTxInfo = function() {
return /** @type{proto.gw.UplinkTXInfo} */ (
jspb.Message.getWrapperField(this, gw_gw_pb.UplinkTXInfo, 2));
};
/** @param {proto.gw.UplinkTXInfo|undefined} value */
proto.api.UplinkFrameLog.prototype.setTxInfo = function(value) {
jspb.Message.setWrapperField(this, 2, value);
};
proto.api.UplinkFrameLog.prototype.clearTxInfo = function() {
this.setTxInfo(undefined);
};
/**
* Returns whether this field is set.
* @return{!boolean}
*/
proto.api.UplinkFrameLog.prototype.hasTxInfo = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* repeated gw.UplinkRXInfo rx_info = 3;
* If you change this array by adding, removing or replacing elements, or if you
* replace the array itself, then you must call the setter to update it.
* @return {!Array.<!proto.gw.UplinkRXInfo>}
*/
proto.api.UplinkFrameLog.prototype.getRxInfoList = function() {
return /** @type{!Array.<!proto.gw.UplinkRXInfo>} */ (
jspb.Message.getRepeatedWrapperField(this, gw_gw_pb.UplinkRXInfo, 3));
};
/** @param {Array.<!proto.gw.UplinkRXInfo>} value */
proto.api.UplinkFrameLog.prototype.setRxInfoList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 3, value);
};
proto.api.UplinkFrameLog.prototype.clearRxInfoList = function() {
this.setRxInfoList([]);
};
/**
* optional common.MType m_type = 4;
* @return {!proto.common.MType}
*/
proto.api.UplinkFrameLog.prototype.getMType = function() {
return /** @type {!proto.common.MType} */ (jspb.Message.getFieldProto3(this, 4, 0));
};
/** @param {!proto.common.MType} value */
proto.api.UplinkFrameLog.prototype.setMType = function(value) {
jspb.Message.setField(this, 4, value);
};
/**
* optional string dev_addr = 5;
* @return {string}
*/
proto.api.UplinkFrameLog.prototype.getDevAddr = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 5, ""));
};
/** @param {string} value */
proto.api.UplinkFrameLog.prototype.setDevAddr = function(value) {
jspb.Message.setField(this, 5, value);
};
/**
* optional string dev_eui = 6;
* @return {string}
*/
proto.api.UplinkFrameLog.prototype.getDevEui = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 6, ""));
};
/** @param {string} value */
proto.api.UplinkFrameLog.prototype.setDevEui = function(value) {
jspb.Message.setField(this, 6, value);
};
/**
* optional google.protobuf.Timestamp time = 7;
* @return {proto.google.protobuf.Timestamp}
*/
proto.api.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 */
proto.api.UplinkFrameLog.prototype.setTime = function(value) {
jspb.Message.setWrapperField(this, 7, value);
};
proto.api.UplinkFrameLog.prototype.clearTime = function() {
this.setTime(undefined);
};
/**
* Returns whether this field is set.
* @return{!boolean}
*/
proto.api.UplinkFrameLog.prototype.hasTime = function() {
return jspb.Message.getField(this, 7) != null;
};
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.api.DownlinkFrameLog = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.api.DownlinkFrameLog, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.api.DownlinkFrameLog.displayName = 'proto.api.DownlinkFrameLog';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.api.DownlinkFrameLog.prototype.toObject = function(opt_includeInstance) {
return proto.api.DownlinkFrameLog.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.api.DownlinkFrameLog} msg The msg instance to transform.
* @return {!Object}
*/
proto.api.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: msg.getDownlinkId(),
gatewayId: msg.getGatewayId(),
mType: msg.getMType(),
devAddr: msg.getDevAddr(),
devEui: msg.getDevEui()
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.api.DownlinkFrameLog}
*/
proto.api.DownlinkFrameLog.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.api.DownlinkFrameLog;
return proto.api.DownlinkFrameLog.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.api.DownlinkFrameLog} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.api.DownlinkFrameLog}
*/
proto.api.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 {string} */ (reader.readString());
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;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.api.DownlinkFrameLog} message
* @param {!jspb.BinaryWriter} writer
*/
proto.api.DownlinkFrameLog.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.api.DownlinkFrameLog.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
return writer.getResultBuffer();
};
/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* @param {!jspb.BinaryWriter} writer
*/
proto.api.DownlinkFrameLog.prototype.serializeBinaryToWriter = function (writer) {
var f = undefined;
f = this.getTime();
if (f != null) {
writer.writeMessage(
1,
f,
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
);
}
f = this.getPhyPayload_asU8();
if (f.length > 0) {
writer.writeBytes(
2,
f
);
}
f = this.getTxInfo();
if (f != null) {
writer.writeMessage(
3,
f,
gw_gw_pb.DownlinkTXInfo.serializeBinaryToWriter
);
}
f = this.getDownlinkId();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
f = this.getGatewayId();
if (f.length > 0) {
writer.writeString(
5,
f
);
}
f = this.getMType();
if (f !== 0.0) {
writer.writeEnum(
6,
f
);
}
f = this.getDevAddr();
if (f.length > 0) {
writer.writeString(
7,
f
);
}
f = this.getDevEui();
if (f.length > 0) {
writer.writeString(
8,
f
);
}
};
/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.api.DownlinkFrameLog} The clone.
*/
proto.api.DownlinkFrameLog.prototype.cloneMessage = function() {
return /** @type {!proto.api.DownlinkFrameLog} */ (jspb.Message.cloneMessage(this));
};
/**
* optional google.protobuf.Timestamp time = 1;
* @return {proto.google.protobuf.Timestamp}
*/
proto.api.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 */
proto.api.DownlinkFrameLog.prototype.setTime = function(value) {
jspb.Message.setWrapperField(this, 1, value);
};
proto.api.DownlinkFrameLog.prototype.clearTime = function() {
this.setTime(undefined);
};
/**
* Returns whether this field is set.
* @return{!boolean}
*/
proto.api.DownlinkFrameLog.prototype.hasTime = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional bytes phy_payload = 2;
* @return {!(string|Uint8Array)}
*/
proto.api.DownlinkFrameLog.prototype.getPhyPayload = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldProto3(this, 2, ""));
};
/**
* optional bytes phy_payload = 2;
* This is a type-conversion wrapper around `getPhyPayload()`
* @return {string}
*/
proto.api.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.api.DownlinkFrameLog.prototype.getPhyPayload_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getPhyPayload()));
};
/** @param {!(string|Uint8Array)} value */
proto.api.DownlinkFrameLog.prototype.setPhyPayload = function(value) {
jspb.Message.setField(this, 2, value);
};
/**
* optional gw.DownlinkTXInfo tx_info = 3;
* @return {proto.gw.DownlinkTXInfo}
*/
proto.api.DownlinkFrameLog.prototype.getTxInfo = function() {
return /** @type{proto.gw.DownlinkTXInfo} */ (
jspb.Message.getWrapperField(this, gw_gw_pb.DownlinkTXInfo, 3));
};
/** @param {proto.gw.DownlinkTXInfo|undefined} value */
proto.api.DownlinkFrameLog.prototype.setTxInfo = function(value) {
jspb.Message.setWrapperField(this, 3, value);
};
proto.api.DownlinkFrameLog.prototype.clearTxInfo = function() {
this.setTxInfo(undefined);
};
/**
* Returns whether this field is set.
* @return{!boolean}
*/
proto.api.DownlinkFrameLog.prototype.hasTxInfo = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional string downlink_id = 4;
* @return {string}
*/
proto.api.DownlinkFrameLog.prototype.getDownlinkId = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 4, ""));
};
/** @param {string} value */
proto.api.DownlinkFrameLog.prototype.setDownlinkId = function(value) {
jspb.Message.setField(this, 4, value);
};
/**
* optional string gateway_id = 5;
* @return {string}
*/
proto.api.DownlinkFrameLog.prototype.getGatewayId = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 5, ""));
};
/** @param {string} value */
proto.api.DownlinkFrameLog.prototype.setGatewayId = function(value) {
jspb.Message.setField(this, 5, value);
};
/**
* optional common.MType m_type = 6;
* @return {!proto.common.MType}
*/
proto.api.DownlinkFrameLog.prototype.getMType = function() {
return /** @type {!proto.common.MType} */ (jspb.Message.getFieldProto3(this, 6, 0));
};
/** @param {!proto.common.MType} value */
proto.api.DownlinkFrameLog.prototype.setMType = function(value) {
jspb.Message.setField(this, 6, value);
};
/**
* optional string dev_addr = 7;
* @return {string}
*/
proto.api.DownlinkFrameLog.prototype.getDevAddr = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 7, ""));
};
/** @param {string} value */
proto.api.DownlinkFrameLog.prototype.setDevAddr = function(value) {
jspb.Message.setField(this, 7, value);
};
/**
* optional string dev_eui = 8;
* @return {string}
*/
proto.api.DownlinkFrameLog.prototype.getDevEui = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 8, ""));
};
/** @param {string} value */
proto.api.DownlinkFrameLog.prototype.setDevEui = function(value) {
jspb.Message.setField(this, 8, value);
};
goog.object.extend(exports, proto.api);

55
api/js/api/gateway_grpc_pb.d.ts vendored Normal file
View File

@ -0,0 +1,55 @@
// 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<grpc.UntypedServiceImplementation> {
create: grpc.MethodDefinition<api_gateway_pb.CreateGatewayRequest, google_protobuf_empty_pb.Empty>;
get: grpc.MethodDefinition<api_gateway_pb.GetGatewayRequest, api_gateway_pb.GetGatewayResponse>;
update: grpc.MethodDefinition<api_gateway_pb.UpdateGatewayRequest, google_protobuf_empty_pb.Empty>;
delete: grpc.MethodDefinition<api_gateway_pb.DeleteGatewayRequest, google_protobuf_empty_pb.Empty>;
list: grpc.MethodDefinition<api_gateway_pb.ListGatewaysRequest, api_gateway_pb.ListGatewaysResponse>;
generateClientCertificate: grpc.MethodDefinition<api_gateway_pb.GenerateGatewayClientCertificateRequest, api_gateway_pb.GenerateGatewayClientCertificateResponse>;
getStats: grpc.MethodDefinition<api_gateway_pb.GetGatewayStatsRequest, api_gateway_pb.GetGatewayStatsResponse>;
}
export const GatewayServiceService: IGatewayServiceService;
export interface IGatewayServiceServer extends grpc.UntypedServiceImplementation {
create: grpc.handleUnaryCall<api_gateway_pb.CreateGatewayRequest, google_protobuf_empty_pb.Empty>;
get: grpc.handleUnaryCall<api_gateway_pb.GetGatewayRequest, api_gateway_pb.GetGatewayResponse>;
update: grpc.handleUnaryCall<api_gateway_pb.UpdateGatewayRequest, google_protobuf_empty_pb.Empty>;
delete: grpc.handleUnaryCall<api_gateway_pb.DeleteGatewayRequest, google_protobuf_empty_pb.Empty>;
list: grpc.handleUnaryCall<api_gateway_pb.ListGatewaysRequest, api_gateway_pb.ListGatewaysResponse>;
generateClientCertificate: grpc.handleUnaryCall<api_gateway_pb.GenerateGatewayClientCertificateRequest, api_gateway_pb.GenerateGatewayClientCertificateResponse>;
getStats: grpc.handleUnaryCall<api_gateway_pb.GetGatewayStatsRequest, api_gateway_pb.GetGatewayStatsResponse>;
}
export class GatewayServiceClient extends grpc.Client {
constructor(address: string, credentials: grpc.ChannelCredentials, options?: object);
create(argument: api_gateway_pb.CreateGatewayRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
create(argument: api_gateway_pb.CreateGatewayRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
create(argument: api_gateway_pb.CreateGatewayRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
get(argument: api_gateway_pb.GetGatewayRequest, callback: grpc.requestCallback<api_gateway_pb.GetGatewayResponse>): grpc.ClientUnaryCall;
get(argument: api_gateway_pb.GetGatewayRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_gateway_pb.GetGatewayResponse>): grpc.ClientUnaryCall;
get(argument: api_gateway_pb.GetGatewayRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_gateway_pb.GetGatewayResponse>): grpc.ClientUnaryCall;
update(argument: api_gateway_pb.UpdateGatewayRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
update(argument: api_gateway_pb.UpdateGatewayRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
update(argument: api_gateway_pb.UpdateGatewayRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
delete(argument: api_gateway_pb.DeleteGatewayRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
delete(argument: api_gateway_pb.DeleteGatewayRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
delete(argument: api_gateway_pb.DeleteGatewayRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
list(argument: api_gateway_pb.ListGatewaysRequest, callback: grpc.requestCallback<api_gateway_pb.ListGatewaysResponse>): grpc.ClientUnaryCall;
list(argument: api_gateway_pb.ListGatewaysRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_gateway_pb.ListGatewaysResponse>): grpc.ClientUnaryCall;
list(argument: api_gateway_pb.ListGatewaysRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_gateway_pb.ListGatewaysResponse>): grpc.ClientUnaryCall;
generateClientCertificate(argument: api_gateway_pb.GenerateGatewayClientCertificateRequest, callback: grpc.requestCallback<api_gateway_pb.GenerateGatewayClientCertificateResponse>): grpc.ClientUnaryCall;
generateClientCertificate(argument: api_gateway_pb.GenerateGatewayClientCertificateRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_gateway_pb.GenerateGatewayClientCertificateResponse>): grpc.ClientUnaryCall;
generateClientCertificate(argument: api_gateway_pb.GenerateGatewayClientCertificateRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_gateway_pb.GenerateGatewayClientCertificateResponse>): grpc.ClientUnaryCall;
getStats(argument: api_gateway_pb.GetGatewayStatsRequest, callback: grpc.requestCallback<api_gateway_pb.GetGatewayStatsResponse>): grpc.ClientUnaryCall;
getStats(argument: api_gateway_pb.GetGatewayStatsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_gateway_pb.GetGatewayStatsResponse>): grpc.ClientUnaryCall;
getStats(argument: api_gateway_pb.GetGatewayStatsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_gateway_pb.GetGatewayStatsResponse>): grpc.ClientUnaryCall;
}

View File

@ -0,0 +1,231 @@
// GENERATED CODE -- DO NOT EDIT!
'use strict';
var grpc = require('@grpc/grpc-js');
var api_gateway_pb = require('../api/gateway_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_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_GetGatewayStatsRequest(arg) {
if (!(arg instanceof api_gateway_pb.GetGatewayStatsRequest)) {
throw new Error('Expected argument of type api.GetGatewayStatsRequest');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_api_GetGatewayStatsRequest(buffer_arg) {
return api_gateway_pb.GetGatewayStatsRequest.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_api_GetGatewayStatsResponse(arg) {
if (!(arg instanceof api_gateway_pb.GetGatewayStatsResponse)) {
throw new Error('Expected argument of type api.GetGatewayStatsResponse');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_api_GetGatewayStatsResponse(buffer_arg) {
return api_gateway_pb.GetGatewayStatsResponse.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,
},
// GetStats returns the gateway stats.
getStats: {
path: '/api.GatewayService/GetStats',
requestStream: false,
responseStream: false,
requestType: api_gateway_pb.GetGatewayStatsRequest,
responseType: api_gateway_pb.GetGatewayStatsResponse,
requestSerialize: serialize_api_GetGatewayStatsRequest,
requestDeserialize: deserialize_api_GetGatewayStatsRequest,
responseSerialize: serialize_api_GetGatewayStatsResponse,
responseDeserialize: deserialize_api_GetGatewayStatsResponse,
},
};
exports.GatewayServiceClient = grpc.makeGenericClientConstructor(GatewayServiceService);

446
api/js/api/gateway_pb.d.ts vendored Normal file
View File

@ -0,0 +1,446 @@
// package: api
// file: api/gateway.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";
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<string, string>;
clearTagsMap(): void;
getPropertiesMap(): jspb.Map<string, string>;
clearPropertiesMap(): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Gateway.AsObject;
static toObject(includeInstance: boolean, msg: Gateway): Gateway.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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]>,
propertiesMap: Array<[string, string]>,
}
}
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<string, string>;
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;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GatewayListItem.AsObject;
static toObject(includeInstance: boolean, msg: GatewayListItem): GatewayListItem.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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,
}
}
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListGatewaysRequest.AsObject;
static toObject(includeInstance: boolean, msg: ListGatewaysRequest): ListGatewaysRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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,
}
}
export class ListGatewaysResponse extends jspb.Message {
getTotalCount(): number;
setTotalCount(value: number): void;
clearResultList(): void;
getResultList(): Array<GatewayListItem>;
setResultList(value: Array<GatewayListItem>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<GatewayListItem.AsObject>,
}
}
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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 GetGatewayStatsRequest 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;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetGatewayStatsRequest.AsObject;
static toObject(includeInstance: boolean, msg: GetGatewayStatsRequest): GetGatewayStatsRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: GetGatewayStatsRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetGatewayStatsRequest;
static deserializeBinaryFromReader(message: GetGatewayStatsRequest, reader: jspb.BinaryReader): GetGatewayStatsRequest;
}
export namespace GetGatewayStatsRequest {
export type AsObject = {
gatewayId: string,
start?: google_protobuf_timestamp_pb.Timestamp.AsObject,
end?: google_protobuf_timestamp_pb.Timestamp.AsObject,
}
}
export class GetGatewayStatsResponse extends jspb.Message {
clearResultList(): void;
getResultList(): Array<GatewayStats>;
setResultList(value: Array<GatewayStats>): void;
addResult(value?: GatewayStats, index?: number): GatewayStats;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetGatewayStatsResponse.AsObject;
static toObject(includeInstance: boolean, msg: GetGatewayStatsResponse): GetGatewayStatsResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: GetGatewayStatsResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetGatewayStatsResponse;
static deserializeBinaryFromReader(message: GetGatewayStatsResponse, reader: jspb.BinaryReader): GetGatewayStatsResponse;
}
export namespace GetGatewayStatsResponse {
export type AsObject = {
resultList: Array<GatewayStats.AsObject>,
}
}
export class GatewayStats extends jspb.Message {
hasTime(): boolean;
clearTime(): void;
getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
setTime(value?: google_protobuf_timestamp_pb.Timestamp): void;
getRxPackets(): number;
setRxPackets(value: number): void;
getTxPackets(): number;
setTxPackets(value: number): void;
getTxPacketsPerFrequencyMap(): jspb.Map<number, number>;
clearTxPacketsPerFrequencyMap(): void;
getRxPacketsPerFrequencyMap(): jspb.Map<number, number>;
clearRxPacketsPerFrequencyMap(): void;
getTxPacketsPerDrMap(): jspb.Map<number, number>;
clearTxPacketsPerDrMap(): void;
getRxPacketsPerDrMap(): jspb.Map<number, number>;
clearRxPacketsPerDrMap(): void;
getTxPacketsPerStatusMap(): jspb.Map<string, number>;
clearTxPacketsPerStatusMap(): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GatewayStats.AsObject;
static toObject(includeInstance: boolean, msg: GatewayStats): GatewayStats.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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 = {
time?: google_protobuf_timestamp_pb.Timestamp.AsObject,
rxPackets: number,
txPackets: number,
txPacketsPerFrequencyMap: Array<[number, number]>,
rxPacketsPerFrequencyMap: Array<[number, number]>,
txPacketsPerDrMap: Array<[number, number]>,
rxPacketsPerDrMap: Array<[number, number]>,
txPacketsPerStatusMap: Array<[string, number]>,
}
}

3415
api/js/api/gateway_pb.js Normal file

File diff suppressed because it is too large Load Diff

82
api/js/api/internal_grpc_pb.d.ts vendored Normal file
View File

@ -0,0 +1,82 @@
// 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<grpc.UntypedServiceImplementation> {
login: grpc.MethodDefinition<api_internal_pb.LoginRequest, api_internal_pb.LoginResponse>;
profile: grpc.MethodDefinition<google_protobuf_empty_pb.Empty, api_internal_pb.ProfileResponse>;
globalSearch: grpc.MethodDefinition<api_internal_pb.GlobalSearchRequest, api_internal_pb.GlobalSearchResponse>;
createApiKey: grpc.MethodDefinition<api_internal_pb.CreateApiKeyRequest, api_internal_pb.CreateApiKeyResponse>;
deleteApiKey: grpc.MethodDefinition<api_internal_pb.DeleteApiKeyRequest, google_protobuf_empty_pb.Empty>;
listApiKeys: grpc.MethodDefinition<api_internal_pb.ListApiKeysRequest, api_internal_pb.ListApiKeysResponse>;
settings: grpc.MethodDefinition<google_protobuf_empty_pb.Empty, api_internal_pb.SettingsResponse>;
openIdConnectLogin: grpc.MethodDefinition<api_internal_pb.OpenIdConnectLoginRequest, api_internal_pb.OpenIdConnectLoginResponse>;
getDevicesSummary: grpc.MethodDefinition<api_internal_pb.GetDevicesSummaryRequest, api_internal_pb.GetDevicesSummaryResponse>;
getGatewaysSummary: grpc.MethodDefinition<api_internal_pb.GetGatewaysSummaryRequest, api_internal_pb.GetGatewaysSummaryResponse>;
streamGatewayFrames: grpc.MethodDefinition<api_internal_pb.StreamGatewayFramesRequest, api_internal_pb.LogItem>;
streamDeviceFrames: grpc.MethodDefinition<api_internal_pb.StreamDeviceFramesRequest, api_internal_pb.LogItem>;
streamDeviceEvents: grpc.MethodDefinition<api_internal_pb.StreamDeviceEventsRequest, api_internal_pb.LogItem>;
}
export const InternalServiceService: IInternalServiceService;
export interface IInternalServiceServer extends grpc.UntypedServiceImplementation {
login: grpc.handleUnaryCall<api_internal_pb.LoginRequest, api_internal_pb.LoginResponse>;
profile: grpc.handleUnaryCall<google_protobuf_empty_pb.Empty, api_internal_pb.ProfileResponse>;
globalSearch: grpc.handleUnaryCall<api_internal_pb.GlobalSearchRequest, api_internal_pb.GlobalSearchResponse>;
createApiKey: grpc.handleUnaryCall<api_internal_pb.CreateApiKeyRequest, api_internal_pb.CreateApiKeyResponse>;
deleteApiKey: grpc.handleUnaryCall<api_internal_pb.DeleteApiKeyRequest, google_protobuf_empty_pb.Empty>;
listApiKeys: grpc.handleUnaryCall<api_internal_pb.ListApiKeysRequest, api_internal_pb.ListApiKeysResponse>;
settings: grpc.handleUnaryCall<google_protobuf_empty_pb.Empty, api_internal_pb.SettingsResponse>;
openIdConnectLogin: grpc.handleUnaryCall<api_internal_pb.OpenIdConnectLoginRequest, api_internal_pb.OpenIdConnectLoginResponse>;
getDevicesSummary: grpc.handleUnaryCall<api_internal_pb.GetDevicesSummaryRequest, api_internal_pb.GetDevicesSummaryResponse>;
getGatewaysSummary: grpc.handleUnaryCall<api_internal_pb.GetGatewaysSummaryRequest, api_internal_pb.GetGatewaysSummaryResponse>;
streamGatewayFrames: grpc.handleServerStreamingCall<api_internal_pb.StreamGatewayFramesRequest, api_internal_pb.LogItem>;
streamDeviceFrames: grpc.handleServerStreamingCall<api_internal_pb.StreamDeviceFramesRequest, api_internal_pb.LogItem>;
streamDeviceEvents: grpc.handleServerStreamingCall<api_internal_pb.StreamDeviceEventsRequest, api_internal_pb.LogItem>;
}
export class InternalServiceClient extends grpc.Client {
constructor(address: string, credentials: grpc.ChannelCredentials, options?: object);
login(argument: api_internal_pb.LoginRequest, callback: grpc.requestCallback<api_internal_pb.LoginResponse>): grpc.ClientUnaryCall;
login(argument: api_internal_pb.LoginRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_internal_pb.LoginResponse>): grpc.ClientUnaryCall;
login(argument: api_internal_pb.LoginRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_internal_pb.LoginResponse>): grpc.ClientUnaryCall;
profile(argument: google_protobuf_empty_pb.Empty, callback: grpc.requestCallback<api_internal_pb.ProfileResponse>): grpc.ClientUnaryCall;
profile(argument: google_protobuf_empty_pb.Empty, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_internal_pb.ProfileResponse>): grpc.ClientUnaryCall;
profile(argument: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_internal_pb.ProfileResponse>): grpc.ClientUnaryCall;
globalSearch(argument: api_internal_pb.GlobalSearchRequest, callback: grpc.requestCallback<api_internal_pb.GlobalSearchResponse>): grpc.ClientUnaryCall;
globalSearch(argument: api_internal_pb.GlobalSearchRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_internal_pb.GlobalSearchResponse>): grpc.ClientUnaryCall;
globalSearch(argument: api_internal_pb.GlobalSearchRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_internal_pb.GlobalSearchResponse>): grpc.ClientUnaryCall;
createApiKey(argument: api_internal_pb.CreateApiKeyRequest, callback: grpc.requestCallback<api_internal_pb.CreateApiKeyResponse>): grpc.ClientUnaryCall;
createApiKey(argument: api_internal_pb.CreateApiKeyRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_internal_pb.CreateApiKeyResponse>): grpc.ClientUnaryCall;
createApiKey(argument: api_internal_pb.CreateApiKeyRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_internal_pb.CreateApiKeyResponse>): grpc.ClientUnaryCall;
deleteApiKey(argument: api_internal_pb.DeleteApiKeyRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteApiKey(argument: api_internal_pb.DeleteApiKeyRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteApiKey(argument: api_internal_pb.DeleteApiKeyRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
listApiKeys(argument: api_internal_pb.ListApiKeysRequest, callback: grpc.requestCallback<api_internal_pb.ListApiKeysResponse>): grpc.ClientUnaryCall;
listApiKeys(argument: api_internal_pb.ListApiKeysRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_internal_pb.ListApiKeysResponse>): grpc.ClientUnaryCall;
listApiKeys(argument: api_internal_pb.ListApiKeysRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_internal_pb.ListApiKeysResponse>): grpc.ClientUnaryCall;
settings(argument: google_protobuf_empty_pb.Empty, callback: grpc.requestCallback<api_internal_pb.SettingsResponse>): grpc.ClientUnaryCall;
settings(argument: google_protobuf_empty_pb.Empty, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_internal_pb.SettingsResponse>): grpc.ClientUnaryCall;
settings(argument: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_internal_pb.SettingsResponse>): grpc.ClientUnaryCall;
openIdConnectLogin(argument: api_internal_pb.OpenIdConnectLoginRequest, callback: grpc.requestCallback<api_internal_pb.OpenIdConnectLoginResponse>): grpc.ClientUnaryCall;
openIdConnectLogin(argument: api_internal_pb.OpenIdConnectLoginRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_internal_pb.OpenIdConnectLoginResponse>): grpc.ClientUnaryCall;
openIdConnectLogin(argument: api_internal_pb.OpenIdConnectLoginRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_internal_pb.OpenIdConnectLoginResponse>): grpc.ClientUnaryCall;
getDevicesSummary(argument: api_internal_pb.GetDevicesSummaryRequest, callback: grpc.requestCallback<api_internal_pb.GetDevicesSummaryResponse>): grpc.ClientUnaryCall;
getDevicesSummary(argument: api_internal_pb.GetDevicesSummaryRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_internal_pb.GetDevicesSummaryResponse>): grpc.ClientUnaryCall;
getDevicesSummary(argument: api_internal_pb.GetDevicesSummaryRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_internal_pb.GetDevicesSummaryResponse>): grpc.ClientUnaryCall;
getGatewaysSummary(argument: api_internal_pb.GetGatewaysSummaryRequest, callback: grpc.requestCallback<api_internal_pb.GetGatewaysSummaryResponse>): grpc.ClientUnaryCall;
getGatewaysSummary(argument: api_internal_pb.GetGatewaysSummaryRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_internal_pb.GetGatewaysSummaryResponse>): grpc.ClientUnaryCall;
getGatewaysSummary(argument: api_internal_pb.GetGatewaysSummaryRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_internal_pb.GetGatewaysSummaryResponse>): grpc.ClientUnaryCall;
streamGatewayFrames(argument: api_internal_pb.StreamGatewayFramesRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream<api_internal_pb.LogItem>;
streamGatewayFrames(argument: api_internal_pb.StreamGatewayFramesRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream<api_internal_pb.LogItem>;
streamDeviceFrames(argument: api_internal_pb.StreamDeviceFramesRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream<api_internal_pb.LogItem>;
streamDeviceFrames(argument: api_internal_pb.StreamDeviceFramesRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream<api_internal_pb.LogItem>;
streamDeviceEvents(argument: api_internal_pb.StreamDeviceEventsRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream<api_internal_pb.LogItem>;
streamDeviceEvents(argument: api_internal_pb.StreamDeviceEventsRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream<api_internal_pb.LogItem>;
}

View File

@ -0,0 +1,413 @@
// 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 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_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_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_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,
},
// 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,
},
};
exports.InternalServiceClient = grpc.makeGenericClientConstructor(InternalServiceService);

680
api/js/api/internal_pb.d.ts vendored Normal file
View File

@ -0,0 +1,680 @@
// 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 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<ApiKey>;
setResultList(value: Array<ApiKey>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<ApiKey.AsObject>,
}
}
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<UserTenantLink>;
setTenantsList(value: Array<UserTenantLink>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<UserTenantLink.AsObject>,
}
}
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<GlobalSearchResult>;
setResultList(value: Array<GlobalSearchResult>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<GlobalSearchResult.AsObject>,
}
}
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): SettingsResponse.AsObject;
static toObject(includeInstance: boolean, msg: SettingsResponse): SettingsResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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,
}
}
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;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): OpenIdConnect.AsObject;
static toObject(includeInstance: boolean, msg: OpenIdConnect): OpenIdConnect.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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,
}
}
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<number, number>;
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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 {
getActiveCount(): number;
setActiveCount(value: number): void;
getInactiveCount(): number;
setInactiveCount(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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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 = {
activeCount: number,
inactiveCount: 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<string, string>;
clearPropertiesMap(): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): LogItem.AsObject;
static toObject(includeInstance: boolean, msg: LogItem): LogItem.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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,
}
}

5233
api/js/api/internal_pb.js Normal file

File diff suppressed because it is too large Load Diff

70
api/js/api/multicast_group_grpc_pb.d.ts vendored Normal file
View File

@ -0,0 +1,70 @@
// 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<grpc.UntypedServiceImplementation> {
create: grpc.MethodDefinition<api_multicast_group_pb.CreateMulticastGroupRequest, api_multicast_group_pb.CreateMulticastGroupResponse>;
get: grpc.MethodDefinition<api_multicast_group_pb.GetMulticastGroupRequest, api_multicast_group_pb.GetMulticastGroupResponse>;
update: grpc.MethodDefinition<api_multicast_group_pb.UpdateMulticastGroupRequest, google_protobuf_empty_pb.Empty>;
delete: grpc.MethodDefinition<api_multicast_group_pb.DeleteMulticastGroupRequest, google_protobuf_empty_pb.Empty>;
list: grpc.MethodDefinition<api_multicast_group_pb.ListMulticastGroupsRequest, api_multicast_group_pb.ListMulticastGroupsResponse>;
addDevice: grpc.MethodDefinition<api_multicast_group_pb.AddDeviceToMulticastGroupRequest, google_protobuf_empty_pb.Empty>;
removeDevice: grpc.MethodDefinition<api_multicast_group_pb.RemoveDeviceFromMulticastGroupRequest, google_protobuf_empty_pb.Empty>;
enqueue: grpc.MethodDefinition<api_multicast_group_pb.EnqueueMulticastGroupQueueItemRequest, api_multicast_group_pb.EnqueueMulticastGroupQueueItemResponse>;
flushQueue: grpc.MethodDefinition<api_multicast_group_pb.FlushMulticastGroupQueueRequest, google_protobuf_empty_pb.Empty>;
listQueue: grpc.MethodDefinition<api_multicast_group_pb.ListMulticastGroupQueueRequest, api_multicast_group_pb.ListMulticastGroupQueueResponse>;
}
export const MulticastGroupServiceService: IMulticastGroupServiceService;
export interface IMulticastGroupServiceServer extends grpc.UntypedServiceImplementation {
create: grpc.handleUnaryCall<api_multicast_group_pb.CreateMulticastGroupRequest, api_multicast_group_pb.CreateMulticastGroupResponse>;
get: grpc.handleUnaryCall<api_multicast_group_pb.GetMulticastGroupRequest, api_multicast_group_pb.GetMulticastGroupResponse>;
update: grpc.handleUnaryCall<api_multicast_group_pb.UpdateMulticastGroupRequest, google_protobuf_empty_pb.Empty>;
delete: grpc.handleUnaryCall<api_multicast_group_pb.DeleteMulticastGroupRequest, google_protobuf_empty_pb.Empty>;
list: grpc.handleUnaryCall<api_multicast_group_pb.ListMulticastGroupsRequest, api_multicast_group_pb.ListMulticastGroupsResponse>;
addDevice: grpc.handleUnaryCall<api_multicast_group_pb.AddDeviceToMulticastGroupRequest, google_protobuf_empty_pb.Empty>;
removeDevice: grpc.handleUnaryCall<api_multicast_group_pb.RemoveDeviceFromMulticastGroupRequest, google_protobuf_empty_pb.Empty>;
enqueue: grpc.handleUnaryCall<api_multicast_group_pb.EnqueueMulticastGroupQueueItemRequest, api_multicast_group_pb.EnqueueMulticastGroupQueueItemResponse>;
flushQueue: grpc.handleUnaryCall<api_multicast_group_pb.FlushMulticastGroupQueueRequest, google_protobuf_empty_pb.Empty>;
listQueue: grpc.handleUnaryCall<api_multicast_group_pb.ListMulticastGroupQueueRequest, api_multicast_group_pb.ListMulticastGroupQueueResponse>;
}
export class MulticastGroupServiceClient extends grpc.Client {
constructor(address: string, credentials: grpc.ChannelCredentials, options?: object);
create(argument: api_multicast_group_pb.CreateMulticastGroupRequest, callback: grpc.requestCallback<api_multicast_group_pb.CreateMulticastGroupResponse>): grpc.ClientUnaryCall;
create(argument: api_multicast_group_pb.CreateMulticastGroupRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_multicast_group_pb.CreateMulticastGroupResponse>): grpc.ClientUnaryCall;
create(argument: api_multicast_group_pb.CreateMulticastGroupRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_multicast_group_pb.CreateMulticastGroupResponse>): grpc.ClientUnaryCall;
get(argument: api_multicast_group_pb.GetMulticastGroupRequest, callback: grpc.requestCallback<api_multicast_group_pb.GetMulticastGroupResponse>): grpc.ClientUnaryCall;
get(argument: api_multicast_group_pb.GetMulticastGroupRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_multicast_group_pb.GetMulticastGroupResponse>): grpc.ClientUnaryCall;
get(argument: api_multicast_group_pb.GetMulticastGroupRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_multicast_group_pb.GetMulticastGroupResponse>): grpc.ClientUnaryCall;
update(argument: api_multicast_group_pb.UpdateMulticastGroupRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
update(argument: api_multicast_group_pb.UpdateMulticastGroupRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
update(argument: api_multicast_group_pb.UpdateMulticastGroupRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
delete(argument: api_multicast_group_pb.DeleteMulticastGroupRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
delete(argument: api_multicast_group_pb.DeleteMulticastGroupRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
delete(argument: api_multicast_group_pb.DeleteMulticastGroupRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
list(argument: api_multicast_group_pb.ListMulticastGroupsRequest, callback: grpc.requestCallback<api_multicast_group_pb.ListMulticastGroupsResponse>): grpc.ClientUnaryCall;
list(argument: api_multicast_group_pb.ListMulticastGroupsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_multicast_group_pb.ListMulticastGroupsResponse>): grpc.ClientUnaryCall;
list(argument: api_multicast_group_pb.ListMulticastGroupsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_multicast_group_pb.ListMulticastGroupsResponse>): grpc.ClientUnaryCall;
addDevice(argument: api_multicast_group_pb.AddDeviceToMulticastGroupRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
addDevice(argument: api_multicast_group_pb.AddDeviceToMulticastGroupRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
addDevice(argument: api_multicast_group_pb.AddDeviceToMulticastGroupRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
removeDevice(argument: api_multicast_group_pb.RemoveDeviceFromMulticastGroupRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
removeDevice(argument: api_multicast_group_pb.RemoveDeviceFromMulticastGroupRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
removeDevice(argument: api_multicast_group_pb.RemoveDeviceFromMulticastGroupRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
enqueue(argument: api_multicast_group_pb.EnqueueMulticastGroupQueueItemRequest, callback: grpc.requestCallback<api_multicast_group_pb.EnqueueMulticastGroupQueueItemResponse>): grpc.ClientUnaryCall;
enqueue(argument: api_multicast_group_pb.EnqueueMulticastGroupQueueItemRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_multicast_group_pb.EnqueueMulticastGroupQueueItemResponse>): grpc.ClientUnaryCall;
enqueue(argument: api_multicast_group_pb.EnqueueMulticastGroupQueueItemRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_multicast_group_pb.EnqueueMulticastGroupQueueItemResponse>): grpc.ClientUnaryCall;
flushQueue(argument: api_multicast_group_pb.FlushMulticastGroupQueueRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
flushQueue(argument: api_multicast_group_pb.FlushMulticastGroupQueueRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
flushQueue(argument: api_multicast_group_pb.FlushMulticastGroupQueueRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
listQueue(argument: api_multicast_group_pb.ListMulticastGroupQueueRequest, callback: grpc.requestCallback<api_multicast_group_pb.ListMulticastGroupQueueResponse>): grpc.ClientUnaryCall;
listQueue(argument: api_multicast_group_pb.ListMulticastGroupQueueRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_multicast_group_pb.ListMulticastGroupQueueResponse>): grpc.ClientUnaryCall;
listQueue(argument: api_multicast_group_pb.ListMulticastGroupQueueRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_multicast_group_pb.ListMulticastGroupQueueResponse>): grpc.ClientUnaryCall;
}

View File

@ -0,0 +1,312 @@
// 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_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_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 the given item to the multcast 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);

506
api/js/api/multicast_group_pb.d.ts vendored Normal file
View File

@ -0,0 +1,506 @@
// 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;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): MulticastGroup.AsObject;
static toObject(includeInstance: boolean, msg: MulticastGroup): MulticastGroup.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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,
}
}
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<MulticastGroupListItem>;
setResultList(value: Array<MulticastGroupListItem>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<MulticastGroupListItem.AsObject>,
}
}
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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 {
hasMulticastGroupQueueItem(): boolean;
clearMulticastGroupQueueItem(): void;
getMulticastGroupQueueItem(): MulticastGroupQueueItem | undefined;
setMulticastGroupQueueItem(value?: MulticastGroupQueueItem): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): EnqueueMulticastGroupQueueItemRequest.AsObject;
static toObject(includeInstance: boolean, msg: EnqueueMulticastGroupQueueItemRequest): EnqueueMulticastGroupQueueItemRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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 = {
multicastGroupQueueItem?: 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<MulticastGroupQueueItem>;
setItemsList(value: Array<MulticastGroupQueueItem>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<MulticastGroupQueueItem.AsObject>,
}
}
export interface MulticastGroupTypeMap {
CLASS_C: 0;
CLASS_B: 1;
}
export const MulticastGroupType: MulticastGroupTypeMap;

File diff suppressed because it is too large Load Diff

70
api/js/api/tenant_grpc_pb.d.ts vendored Normal file
View File

@ -0,0 +1,70 @@
// 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<grpc.UntypedServiceImplementation> {
create: grpc.MethodDefinition<api_tenant_pb.CreateTenantRequest, api_tenant_pb.CreateTenantResponse>;
get: grpc.MethodDefinition<api_tenant_pb.GetTenantRequest, api_tenant_pb.GetTenantResponse>;
update: grpc.MethodDefinition<api_tenant_pb.UpdateTenantRequest, google_protobuf_empty_pb.Empty>;
delete: grpc.MethodDefinition<api_tenant_pb.DeleteTenantRequest, google_protobuf_empty_pb.Empty>;
list: grpc.MethodDefinition<api_tenant_pb.ListTenantsRequest, api_tenant_pb.ListTenantsResponse>;
addUser: grpc.MethodDefinition<api_tenant_pb.AddTenantUserRequest, google_protobuf_empty_pb.Empty>;
getUser: grpc.MethodDefinition<api_tenant_pb.GetTenantUserRequest, api_tenant_pb.GetTenantUserResponse>;
updateUser: grpc.MethodDefinition<api_tenant_pb.UpdateTenantUserRequest, google_protobuf_empty_pb.Empty>;
deleteUser: grpc.MethodDefinition<api_tenant_pb.DeleteTenantUserRequest, google_protobuf_empty_pb.Empty>;
listUsers: grpc.MethodDefinition<api_tenant_pb.ListTenantUsersRequest, api_tenant_pb.ListTenantUsersResponse>;
}
export const TenantServiceService: ITenantServiceService;
export interface ITenantServiceServer extends grpc.UntypedServiceImplementation {
create: grpc.handleUnaryCall<api_tenant_pb.CreateTenantRequest, api_tenant_pb.CreateTenantResponse>;
get: grpc.handleUnaryCall<api_tenant_pb.GetTenantRequest, api_tenant_pb.GetTenantResponse>;
update: grpc.handleUnaryCall<api_tenant_pb.UpdateTenantRequest, google_protobuf_empty_pb.Empty>;
delete: grpc.handleUnaryCall<api_tenant_pb.DeleteTenantRequest, google_protobuf_empty_pb.Empty>;
list: grpc.handleUnaryCall<api_tenant_pb.ListTenantsRequest, api_tenant_pb.ListTenantsResponse>;
addUser: grpc.handleUnaryCall<api_tenant_pb.AddTenantUserRequest, google_protobuf_empty_pb.Empty>;
getUser: grpc.handleUnaryCall<api_tenant_pb.GetTenantUserRequest, api_tenant_pb.GetTenantUserResponse>;
updateUser: grpc.handleUnaryCall<api_tenant_pb.UpdateTenantUserRequest, google_protobuf_empty_pb.Empty>;
deleteUser: grpc.handleUnaryCall<api_tenant_pb.DeleteTenantUserRequest, google_protobuf_empty_pb.Empty>;
listUsers: grpc.handleUnaryCall<api_tenant_pb.ListTenantUsersRequest, api_tenant_pb.ListTenantUsersResponse>;
}
export class TenantServiceClient extends grpc.Client {
constructor(address: string, credentials: grpc.ChannelCredentials, options?: object);
create(argument: api_tenant_pb.CreateTenantRequest, callback: grpc.requestCallback<api_tenant_pb.CreateTenantResponse>): grpc.ClientUnaryCall;
create(argument: api_tenant_pb.CreateTenantRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_tenant_pb.CreateTenantResponse>): grpc.ClientUnaryCall;
create(argument: api_tenant_pb.CreateTenantRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_tenant_pb.CreateTenantResponse>): grpc.ClientUnaryCall;
get(argument: api_tenant_pb.GetTenantRequest, callback: grpc.requestCallback<api_tenant_pb.GetTenantResponse>): grpc.ClientUnaryCall;
get(argument: api_tenant_pb.GetTenantRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_tenant_pb.GetTenantResponse>): grpc.ClientUnaryCall;
get(argument: api_tenant_pb.GetTenantRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_tenant_pb.GetTenantResponse>): grpc.ClientUnaryCall;
update(argument: api_tenant_pb.UpdateTenantRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
update(argument: api_tenant_pb.UpdateTenantRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
update(argument: api_tenant_pb.UpdateTenantRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
delete(argument: api_tenant_pb.DeleteTenantRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
delete(argument: api_tenant_pb.DeleteTenantRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
delete(argument: api_tenant_pb.DeleteTenantRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
list(argument: api_tenant_pb.ListTenantsRequest, callback: grpc.requestCallback<api_tenant_pb.ListTenantsResponse>): grpc.ClientUnaryCall;
list(argument: api_tenant_pb.ListTenantsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_tenant_pb.ListTenantsResponse>): grpc.ClientUnaryCall;
list(argument: api_tenant_pb.ListTenantsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_tenant_pb.ListTenantsResponse>): grpc.ClientUnaryCall;
addUser(argument: api_tenant_pb.AddTenantUserRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
addUser(argument: api_tenant_pb.AddTenantUserRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
addUser(argument: api_tenant_pb.AddTenantUserRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
getUser(argument: api_tenant_pb.GetTenantUserRequest, callback: grpc.requestCallback<api_tenant_pb.GetTenantUserResponse>): grpc.ClientUnaryCall;
getUser(argument: api_tenant_pb.GetTenantUserRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_tenant_pb.GetTenantUserResponse>): grpc.ClientUnaryCall;
getUser(argument: api_tenant_pb.GetTenantUserRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_tenant_pb.GetTenantUserResponse>): grpc.ClientUnaryCall;
updateUser(argument: api_tenant_pb.UpdateTenantUserRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
updateUser(argument: api_tenant_pb.UpdateTenantUserRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
updateUser(argument: api_tenant_pb.UpdateTenantUserRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteUser(argument: api_tenant_pb.DeleteTenantUserRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteUser(argument: api_tenant_pb.DeleteTenantUserRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
deleteUser(argument: api_tenant_pb.DeleteTenantUserRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
listUsers(argument: api_tenant_pb.ListTenantUsersRequest, callback: grpc.requestCallback<api_tenant_pb.ListTenantUsersResponse>): grpc.ClientUnaryCall;
listUsers(argument: api_tenant_pb.ListTenantUsersRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_tenant_pb.ListTenantUsersResponse>): grpc.ClientUnaryCall;
listUsers(argument: api_tenant_pb.ListTenantUsersRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_tenant_pb.ListTenantUsersResponse>): grpc.ClientUnaryCall;
}

View File

@ -0,0 +1,311 @@
// GENERATED CODE -- DO NOT EDIT!
'use strict';
var grpc = require('@grpc/grpc-js');
var api_tenant_pb = require('../api/tenant_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);

567
api/js/api/tenant_pb.d.ts vendored Normal file
View File

@ -0,0 +1,567 @@
// package: api
// file: api/tenant.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";
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;
getPrivateGateways(): boolean;
setPrivateGateways(value: boolean): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Tenant.AsObject;
static toObject(includeInstance: boolean, msg: Tenant): Tenant.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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,
privateGateways: boolean,
}
}
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;
getPrivateGateways(): boolean;
setPrivateGateways(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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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,
privateGateways: 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListTenantsRequest.AsObject;
static toObject(includeInstance: boolean, msg: ListTenantsRequest): ListTenantsRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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,
}
}
export class ListTenantsResponse extends jspb.Message {
getTotalCount(): number;
setTotalCount(value: number): void;
clearResultList(): void;
getResultList(): Array<TenantListItem>;
setResultList(value: Array<TenantListItem>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<TenantListItem.AsObject>,
}
}
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<TenantUserListItem>;
setResultList(value: Array<TenantUserListItem>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<TenantUserListItem.AsObject>,
}
}

4349
api/js/api/tenant_pb.js Normal file

File diff suppressed because it is too large Load Diff

50
api/js/api/user_grpc_pb.d.ts vendored Normal file
View File

@ -0,0 +1,50 @@
// 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<grpc.UntypedServiceImplementation> {
create: grpc.MethodDefinition<api_user_pb.CreateUserRequest, api_user_pb.CreateUserResponse>;
get: grpc.MethodDefinition<api_user_pb.GetUserRequest, api_user_pb.GetUserResponse>;
update: grpc.MethodDefinition<api_user_pb.UpdateUserRequest, google_protobuf_empty_pb.Empty>;
delete: grpc.MethodDefinition<api_user_pb.DeleteUserRequest, google_protobuf_empty_pb.Empty>;
list: grpc.MethodDefinition<api_user_pb.ListUsersRequest, api_user_pb.ListUsersResponse>;
updatePassword: grpc.MethodDefinition<api_user_pb.UpdateUserPasswordRequest, google_protobuf_empty_pb.Empty>;
}
export const UserServiceService: IUserServiceService;
export interface IUserServiceServer extends grpc.UntypedServiceImplementation {
create: grpc.handleUnaryCall<api_user_pb.CreateUserRequest, api_user_pb.CreateUserResponse>;
get: grpc.handleUnaryCall<api_user_pb.GetUserRequest, api_user_pb.GetUserResponse>;
update: grpc.handleUnaryCall<api_user_pb.UpdateUserRequest, google_protobuf_empty_pb.Empty>;
delete: grpc.handleUnaryCall<api_user_pb.DeleteUserRequest, google_protobuf_empty_pb.Empty>;
list: grpc.handleUnaryCall<api_user_pb.ListUsersRequest, api_user_pb.ListUsersResponse>;
updatePassword: grpc.handleUnaryCall<api_user_pb.UpdateUserPasswordRequest, google_protobuf_empty_pb.Empty>;
}
export class UserServiceClient extends grpc.Client {
constructor(address: string, credentials: grpc.ChannelCredentials, options?: object);
create(argument: api_user_pb.CreateUserRequest, callback: grpc.requestCallback<api_user_pb.CreateUserResponse>): grpc.ClientUnaryCall;
create(argument: api_user_pb.CreateUserRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_user_pb.CreateUserResponse>): grpc.ClientUnaryCall;
create(argument: api_user_pb.CreateUserRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_user_pb.CreateUserResponse>): grpc.ClientUnaryCall;
get(argument: api_user_pb.GetUserRequest, callback: grpc.requestCallback<api_user_pb.GetUserResponse>): grpc.ClientUnaryCall;
get(argument: api_user_pb.GetUserRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_user_pb.GetUserResponse>): grpc.ClientUnaryCall;
get(argument: api_user_pb.GetUserRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_user_pb.GetUserResponse>): grpc.ClientUnaryCall;
update(argument: api_user_pb.UpdateUserRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
update(argument: api_user_pb.UpdateUserRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
update(argument: api_user_pb.UpdateUserRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
delete(argument: api_user_pb.DeleteUserRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
delete(argument: api_user_pb.DeleteUserRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
delete(argument: api_user_pb.DeleteUserRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
list(argument: api_user_pb.ListUsersRequest, callback: grpc.requestCallback<api_user_pb.ListUsersResponse>): grpc.ClientUnaryCall;
list(argument: api_user_pb.ListUsersRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_user_pb.ListUsersResponse>): grpc.ClientUnaryCall;
list(argument: api_user_pb.ListUsersRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_user_pb.ListUsersResponse>): grpc.ClientUnaryCall;
updatePassword(argument: api_user_pb.UpdateUserPasswordRequest, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
updatePassword(argument: api_user_pb.UpdateUserPasswordRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
updatePassword(argument: api_user_pb.UpdateUserPasswordRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
}

196
api/js/api/user_grpc_pb.js Normal file
View File

@ -0,0 +1,196 @@
// GENERATED CODE -- DO NOT EDIT!
'use strict';
var grpc = require('@grpc/grpc-js');
var api_user_pb = require('../api/user_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);

341
api/js/api/user_pb.d.ts vendored Normal file
View File

@ -0,0 +1,341 @@
// package: api
// file: api/user.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";
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<UserTenant>;
setTenantsList(value: Array<UserTenant>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<UserTenant.AsObject>,
}
}
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<UserListItem>;
setResultList(value: Array<UserListItem>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<UserListItem.AsObject>,
}
}
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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,
}
}

2618
api/js/api/user_pb.js Normal file

File diff suppressed because it is too large Load Diff

1
api/js/common/common_grpc_pb.d.ts vendored Normal file
View File

@ -0,0 +1 @@
// GENERATED CODE -- NO SERVICES IN PROTO

141
api/js/common/common_pb.d.ts vendored Normal file
View File

@ -0,0 +1,141 @@
// package: common
// file: common/common.proto
import * as jspb from "google-protobuf";
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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 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;

577
api/js/common/common_pb.js Normal file
View File

@ -0,0 +1,577 @@
/**
* @fileoverview
* @enhanceable
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();
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.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) {
proto.common.Location.displayName = 'proto.common.Location';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance 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 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}
*/
proto.common.Location.toObject = function(includeInstance, msg) {
var f, obj = {
latitude: msg.getLatitude(),
longitude: msg.getLongitude(),
altitude: msg.getAltitude(),
source: msg.getSource(),
accuracy: msg.getAccuracy()
};
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;
};
/**
* Class method variant: 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
*/
proto.common.Location.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.common.Location.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
return writer.getResultBuffer();
};
/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* @param {!jspb.BinaryWriter} writer
*/
proto.common.Location.prototype.serializeBinaryToWriter = function (writer) {
var f = undefined;
f = this.getLatitude();
if (f !== 0.0) {
writer.writeDouble(
1,
f
);
}
f = this.getLongitude();
if (f !== 0.0) {
writer.writeDouble(
2,
f
);
}
f = this.getAltitude();
if (f !== 0.0) {
writer.writeDouble(
3,
f
);
}
f = this.getSource();
if (f !== 0.0) {
writer.writeEnum(
4,
f
);
}
f = this.getAccuracy();
if (f !== 0.0) {
writer.writeFloat(
5,
f
);
}
};
/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.common.Location} The clone.
*/
proto.common.Location.prototype.cloneMessage = function() {
return /** @type {!proto.common.Location} */ (jspb.Message.cloneMessage(this));
};
/**
* optional double latitude = 1;
* @return {number}
*/
proto.common.Location.prototype.getLatitude = function() {
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
};
/** @param {number} value */
proto.common.Location.prototype.setLatitude = function(value) {
jspb.Message.setField(this, 1, value);
};
/**
* optional double longitude = 2;
* @return {number}
*/
proto.common.Location.prototype.getLongitude = function() {
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
};
/** @param {number} value */
proto.common.Location.prototype.setLongitude = function(value) {
jspb.Message.setField(this, 2, value);
};
/**
* optional double altitude = 3;
* @return {number}
*/
proto.common.Location.prototype.getAltitude = function() {
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 3, 0));
};
/** @param {number} value */
proto.common.Location.prototype.setAltitude = function(value) {
jspb.Message.setField(this, 3, value);
};
/**
* optional LocationSource source = 4;
* @return {!proto.common.LocationSource}
*/
proto.common.Location.prototype.getSource = function() {
return /** @type {!proto.common.LocationSource} */ (jspb.Message.getFieldProto3(this, 4, 0));
};
/** @param {!proto.common.LocationSource} value */
proto.common.Location.prototype.setSource = function(value) {
jspb.Message.setField(this, 4, value);
};
/**
* optional float accuracy = 5;
* @return {number}
*/
proto.common.Location.prototype.getAccuracy = function() {
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 5, 0));
};
/** @param {number} value */
proto.common.Location.prototype.setAccuracy = function(value) {
jspb.Message.setField(this, 5, value);
};
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed 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) {
proto.common.KeyEnvelope.displayName = 'proto.common.KeyEnvelope';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance 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 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}
*/
proto.common.KeyEnvelope.toObject = function(includeInstance, msg) {
var f, obj = {
kekLabel: msg.getKekLabel(),
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;
};
/**
* Class method variant: 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
*/
proto.common.KeyEnvelope.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.common.KeyEnvelope.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
return writer.getResultBuffer();
};
/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* @param {!jspb.BinaryWriter} writer
*/
proto.common.KeyEnvelope.prototype.serializeBinaryToWriter = function (writer) {
var f = undefined;
f = this.getKekLabel();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = this.getAesKey_asU8();
if (f.length > 0) {
writer.writeBytes(
2,
f
);
}
};
/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.common.KeyEnvelope} The clone.
*/
proto.common.KeyEnvelope.prototype.cloneMessage = function() {
return /** @type {!proto.common.KeyEnvelope} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string kek_label = 1;
* @return {string}
*/
proto.common.KeyEnvelope.prototype.getKekLabel = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
};
/** @param {string} value */
proto.common.KeyEnvelope.prototype.setKekLabel = function(value) {
jspb.Message.setField(this, 1, value);
};
/**
* optional bytes aes_key = 2;
* @return {!(string|Uint8Array)}
*/
proto.common.KeyEnvelope.prototype.getAesKey = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldProto3(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 */
proto.common.KeyEnvelope.prototype.setAesKey = function(value) {
jspb.Message.setField(this, 2, value);
};
/**
* @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
};
goog.object.extend(exports, proto.common);

View File

@ -0,0 +1 @@
// GENERATED CODE -- NO SERVICES IN PROTO

9
api/js/google/api/annotations_pb.d.ts vendored Normal file
View File

@ -0,0 +1,9 @@
// 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<google_api_http_pb.HttpRule>;

View File

@ -0,0 +1,40 @@
/**
* @fileoverview
* @enhanceable
* @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');
var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
goog.exportSymbol('google.api.http', null, global);
/**
* A tuple of {field number, class constructor} for the extension
* field named `http`.
* @type {!jspb.ExtensionFieldInfo.<!proto.google.api.HttpRule>}
*/
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);

1
api/js/google/api/auth_grpc_pb.d.ts vendored Normal file
View File

@ -0,0 +1 @@
// GENERATED CODE -- NO SERVICES IN PROTO

194
api/js/google/api/auth_pb.d.ts vendored Normal file
View File

@ -0,0 +1,194 @@
// package: google.api
// file: google/api/auth.proto
import * as jspb from "google-protobuf";
export class Authentication extends jspb.Message {
clearRulesList(): void;
getRulesList(): Array<AuthenticationRule>;
setRulesList(value: Array<AuthenticationRule>): void;
addRules(value?: AuthenticationRule, index?: number): AuthenticationRule;
clearProvidersList(): void;
getProvidersList(): Array<AuthProvider>;
setProvidersList(value: Array<AuthProvider>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<AuthenticationRule.AsObject>,
providersList: Array<AuthProvider.AsObject>,
}
}
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<AuthRequirement>;
setRequirementsList(value: Array<AuthRequirement>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<AuthRequirement.AsObject>,
}
}
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;
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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,
valuePrefix: string,
}
export enum InCase {
IN_NOT_SET = 0,
HEADER = 1,
QUERY = 2,
}
}
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<JwtLocation>;
setJwtLocationsList(value: Array<JwtLocation>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<JwtLocation.AsObject>,
}
}
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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,
}
}

1438
api/js/google/api/auth_pb.js Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1 @@
// GENERATED CODE -- NO SERVICES IN PROTO

98
api/js/google/api/backend_pb.d.ts vendored Normal file
View File

@ -0,0 +1,98 @@
// package: google.api
// file: google/api/backend.proto
import * as jspb from "google-protobuf";
export class Backend extends jspb.Message {
clearRulesList(): void;
getRulesList(): Array<BackendRule>;
setRulesList(value: Array<BackendRule>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<BackendRule.AsObject>,
}
}
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;
getAuthenticationCase(): BackendRule.AuthenticationCase;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): BackendRule.AsObject;
static toObject(includeInstance: boolean, msg: BackendRule): BackendRule.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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,
}
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,
}
}

View File

@ -0,0 +1,633 @@
/**
* @fileoverview
* @enhanceable
* @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.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) {
proto.google.api.Backend.displayName = 'proto.google.api.Backend';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.google.api.Backend.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance 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 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}
*/
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.getRulesList().push(value);
msg.setRulesList(msg.getRulesList());
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Class method variant: 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
*/
proto.google.api.Backend.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.api.Backend.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
return writer.getResultBuffer();
};
/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* @param {!jspb.BinaryWriter} writer
*/
proto.google.api.Backend.prototype.serializeBinaryToWriter = function (writer) {
var f = undefined;
f = this.getRulesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.google.api.BackendRule.serializeBinaryToWriter
);
}
};
/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.api.Backend} The clone.
*/
proto.google.api.Backend.prototype.cloneMessage = function() {
return /** @type {!proto.google.api.Backend} */ (jspb.Message.cloneMessage(this));
};
/**
* repeated BackendRule rules = 1;
* If you change this array by adding, removing or replacing elements, or if you
* replace the array itself, then you must call the setter to update it.
* @return {!Array.<!proto.google.api.BackendRule>}
*/
proto.google.api.Backend.prototype.getRulesList = function() {
return /** @type{!Array.<!proto.google.api.BackendRule>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.google.api.BackendRule, 1));
};
/** @param {Array.<!proto.google.api.BackendRule>} value */
proto.google.api.Backend.prototype.setRulesList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 1, value);
};
proto.google.api.Backend.prototype.clearRulesList = function() {
this.setRulesList([]);
};
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed 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) {
proto.google.api.BackendRule.displayName = 'proto.google.api.BackendRule';
}
/**
* 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<!Array<number>>}
* @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 suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance 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 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}
*/
proto.google.api.BackendRule.toObject = function(includeInstance, msg) {
var f, obj = {
selector: msg.getSelector(),
address: msg.getAddress(),
deadline: msg.getDeadline(),
minDeadline: msg.getMinDeadline(),
operationDeadline: msg.getOperationDeadline(),
pathTranslation: msg.getPathTranslation(),
jwtAudience: jspb.Message.getField(msg, 7),
disableAuth: jspb.Message.getField(msg, 8),
protocol: msg.getProtocol()
};
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;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Class method variant: 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
*/
proto.google.api.BackendRule.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.api.BackendRule.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
return writer.getResultBuffer();
};
/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* @param {!jspb.BinaryWriter} writer
*/
proto.google.api.BackendRule.prototype.serializeBinaryToWriter = function (writer) {
var f = undefined;
f = this.getSelector();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = this.getAddress();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = this.getDeadline();
if (f !== 0.0) {
writer.writeDouble(
3,
f
);
}
f = this.getMinDeadline();
if (f !== 0.0) {
writer.writeDouble(
4,
f
);
}
f = this.getOperationDeadline();
if (f !== 0.0) {
writer.writeDouble(
5,
f
);
}
f = this.getPathTranslation();
if (f !== 0.0) {
writer.writeEnum(
6,
f
);
}
f = jspb.Message.getField(this, 7);
if (f != null) {
writer.writeString(
7,
f
);
}
f = jspb.Message.getField(this, 8);
if (f != null) {
writer.writeBool(
8,
f
);
}
f = this.getProtocol();
if (f.length > 0) {
writer.writeString(
9,
f
);
}
};
/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.api.BackendRule} The clone.
*/
proto.google.api.BackendRule.prototype.cloneMessage = function() {
return /** @type {!proto.google.api.BackendRule} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string selector = 1;
* @return {string}
*/
proto.google.api.BackendRule.prototype.getSelector = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
};
/** @param {string} value */
proto.google.api.BackendRule.prototype.setSelector = function(value) {
jspb.Message.setField(this, 1, value);
};
/**
* optional string address = 2;
* @return {string}
*/
proto.google.api.BackendRule.prototype.getAddress = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
};
/** @param {string} value */
proto.google.api.BackendRule.prototype.setAddress = function(value) {
jspb.Message.setField(this, 2, value);
};
/**
* optional double deadline = 3;
* @return {number}
*/
proto.google.api.BackendRule.prototype.getDeadline = function() {
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 3, 0));
};
/** @param {number} value */
proto.google.api.BackendRule.prototype.setDeadline = function(value) {
jspb.Message.setField(this, 3, value);
};
/**
* optional double min_deadline = 4;
* @return {number}
*/
proto.google.api.BackendRule.prototype.getMinDeadline = function() {
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 4, 0));
};
/** @param {number} value */
proto.google.api.BackendRule.prototype.setMinDeadline = function(value) {
jspb.Message.setField(this, 4, value);
};
/**
* optional double operation_deadline = 5;
* @return {number}
*/
proto.google.api.BackendRule.prototype.getOperationDeadline = function() {
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 5, 0));
};
/** @param {number} value */
proto.google.api.BackendRule.prototype.setOperationDeadline = function(value) {
jspb.Message.setField(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.getFieldProto3(this, 6, 0));
};
/** @param {!proto.google.api.BackendRule.PathTranslation} value */
proto.google.api.BackendRule.prototype.setPathTranslation = function(value) {
jspb.Message.setField(this, 6, value);
};
/**
* optional string jwt_audience = 7;
* @return {string}
*/
proto.google.api.BackendRule.prototype.getJwtAudience = function() {
return /** @type {string} */ (!this.hasJwtAudience() ? "" : jspb.Message.getField(this, 7));
};
/** @param {string?|undefined} value */
proto.google.api.BackendRule.prototype.setJwtAudience = function(value) {
jspb.Message.setOneofField(this, 7, proto.google.api.BackendRule.oneofGroups_[0], value);
};
proto.google.api.BackendRule.prototype.clearJwtAudience = function() {
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;
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
* You should avoid comparisons like {@code val === true/false} in those cases.
* @return {boolean}
*/
proto.google.api.BackendRule.prototype.getDisableAuth = function() {
return /** @type {boolean} */ (!this.hasDisableAuth() ? false : jspb.Message.getField(this, 8));
};
/** @param {boolean?|undefined} value */
proto.google.api.BackendRule.prototype.setDisableAuth = function(value) {
jspb.Message.setOneofField(this, 8, proto.google.api.BackendRule.oneofGroups_[0], value);
};
proto.google.api.BackendRule.prototype.clearDisableAuth = function() {
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.getFieldProto3(this, 9, ""));
};
/** @param {string} value */
proto.google.api.BackendRule.prototype.setProtocol = function(value) {
jspb.Message.setField(this, 9, value);
};
/**
* @enum {number}
*/
proto.google.api.BackendRule.PathTranslation = {
PATH_TRANSLATION_UNSPECIFIED: 0,
CONSTANT_ADDRESS: 1,
APPEND_PATH_TO_ADDRESS: 2
};
goog.object.extend(exports, proto.google.api);

View File

@ -0,0 +1 @@
// GENERATED CODE -- NO SERVICES IN PROTO

54
api/js/google/api/billing_pb.d.ts vendored Normal file
View File

@ -0,0 +1,54 @@
// package: google.api
// file: google/api/billing.proto
import * as jspb from "google-protobuf";
import * as google_api_metric_pb from "../../google/api/metric_pb";
export class Billing extends jspb.Message {
clearConsumerDestinationsList(): void;
getConsumerDestinationsList(): Array<Billing.BillingDestination>;
setConsumerDestinationsList(value: Array<Billing.BillingDestination>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<Billing.BillingDestination.AsObject>,
}
export class BillingDestination extends jspb.Message {
getMonitoredResource(): string;
setMonitoredResource(value: string): void;
clearMetricsList(): void;
getMetricsList(): Array<string>;
setMetricsList(value: Array<string>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<string>,
}
}
}

View File

@ -0,0 +1,394 @@
/**
* @fileoverview
* @enhanceable
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();
var google_api_metric_pb = require('../../google/api/metric_pb.js');
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) {
proto.google.api.Billing.displayName = 'proto.google.api.Billing';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.google.api.Billing.repeatedFields_ = [8];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance 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 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}
*/
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.getConsumerDestinationsList().push(value);
msg.setConsumerDestinationsList(msg.getConsumerDestinationsList());
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Class method variant: 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
*/
proto.google.api.Billing.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.api.Billing.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
return writer.getResultBuffer();
};
/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* @param {!jspb.BinaryWriter} writer
*/
proto.google.api.Billing.prototype.serializeBinaryToWriter = function (writer) {
var f = undefined;
f = this.getConsumerDestinationsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
8,
f,
proto.google.api.Billing.BillingDestination.serializeBinaryToWriter
);
}
};
/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.api.Billing} The clone.
*/
proto.google.api.Billing.prototype.cloneMessage = function() {
return /** @type {!proto.google.api.Billing} */ (jspb.Message.cloneMessage(this));
};
/**
* repeated BillingDestination consumer_destinations = 8;
* If you change this array by adding, removing or replacing elements, or if you
* replace the array itself, then you must call the setter to update it.
* @return {!Array.<!proto.google.api.Billing.BillingDestination>}
*/
proto.google.api.Billing.prototype.getConsumerDestinationsList = function() {
return /** @type{!Array.<!proto.google.api.Billing.BillingDestination>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.google.api.Billing.BillingDestination, 8));
};
/** @param {Array.<!proto.google.api.Billing.BillingDestination>} value */
proto.google.api.Billing.prototype.setConsumerDestinationsList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 8, value);
};
proto.google.api.Billing.prototype.clearConsumerDestinationsList = function() {
this.setConsumerDestinationsList([]);
};
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed 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) {
proto.google.api.Billing.BillingDestination.displayName = 'proto.google.api.Billing.BillingDestination';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.google.api.Billing.BillingDestination.repeatedFields_ = [2];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance 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 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}
*/
proto.google.api.Billing.BillingDestination.toObject = function(includeInstance, msg) {
var f, obj = {
monitoredResource: msg.getMonitoredResource(),
metricsList: jspb.Message.getField(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.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.getMetricsList().push(value);
msg.setMetricsList(msg.getMetricsList());
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Class method variant: 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
*/
proto.google.api.Billing.BillingDestination.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* 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();
this.serializeBinaryToWriter(writer);
return writer.getResultBuffer();
};
/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* @param {!jspb.BinaryWriter} writer
*/
proto.google.api.Billing.BillingDestination.prototype.serializeBinaryToWriter = function (writer) {
var f = undefined;
f = this.getMonitoredResource();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = this.getMetricsList();
if (f.length > 0) {
writer.writeRepeatedString(
2,
f
);
}
};
/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.api.Billing.BillingDestination} The clone.
*/
proto.google.api.Billing.BillingDestination.prototype.cloneMessage = function() {
return /** @type {!proto.google.api.Billing.BillingDestination} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string monitored_resource = 1;
* @return {string}
*/
proto.google.api.Billing.BillingDestination.prototype.getMonitoredResource = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
};
/** @param {string} value */
proto.google.api.Billing.BillingDestination.prototype.setMonitoredResource = function(value) {
jspb.Message.setField(this, 1, value);
};
/**
* repeated string metrics = 2;
* If you change this array by adding, removing or replacing elements, or if you
* replace the array itself, then you must call the setter to update it.
* @return {!Array.<string>}
*/
proto.google.api.Billing.BillingDestination.prototype.getMetricsList = function() {
return /** @type {!Array.<string>} */ (jspb.Message.getField(this, 2));
};
/** @param {Array.<string>} value */
proto.google.api.Billing.BillingDestination.prototype.setMetricsList = function(value) {
jspb.Message.setField(this, 2, value || []);
};
proto.google.api.Billing.BillingDestination.prototype.clearMetricsList = function() {
jspb.Message.setField(this, 2, []);
};
goog.object.extend(exports, proto.google.api);

1
api/js/google/api/client_grpc_pb.d.ts vendored Normal file
View File

@ -0,0 +1 @@
// GENERATED CODE -- NO SERVICES IN PROTO

12
api/js/google/api/client_pb.d.ts vendored Normal file
View File

@ -0,0 +1,12 @@
// package: google.api
// file: google/api/client.proto
import * as jspb from "google-protobuf";
import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb";
export const methodSignature: jspb.ExtensionFieldInfo<string>;
export const defaultHost: jspb.ExtensionFieldInfo<string>;
export const oauthScopes: jspb.ExtensionFieldInfo<string>;

View File

@ -0,0 +1,91 @@
/**
* @fileoverview
* @enhanceable
* @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.exportSymbol('google.api.default_host', null, global);
goog.exportSymbol('google.api.method_signature', null, global);
goog.exportSymbol('google.api.oauth_scopes', null, global);
/**
* A tuple of {field number, class constructor} for the extension
* field named `methodSignatureList`.
* @type {!jspb.ExtensionFieldInfo.<!Array.<string>>}
*/
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,
null,
null,
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.<string>}
*/
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,
null,
null,
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.<string>}
*/
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,
null,
null,
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);

View File

@ -0,0 +1 @@
// GENERATED CODE -- NO SERVICES IN PROTO

72
api/js/google/api/config_change_pb.d.ts vendored Normal file
View File

@ -0,0 +1,72 @@
// 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<Advice>;
setAdvicesList(value: Array<Advice>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<Advice.AsObject>,
}
}
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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;

View File

@ -0,0 +1,470 @@
/**
* @fileoverview
* @enhanceable
* @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) {
proto.google.api.ConfigChange.displayName = 'proto.google.api.ConfigChange';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.google.api.ConfigChange.repeatedFields_ = [5];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance 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 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}
*/
proto.google.api.ConfigChange.toObject = function(includeInstance, msg) {
var f, obj = {
element: msg.getElement(),
oldValue: msg.getOldValue(),
newValue: msg.getNewValue(),
changeType: msg.getChangeType(),
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.getAdvicesList().push(value);
msg.setAdvicesList(msg.getAdvicesList());
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Class method variant: 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
*/
proto.google.api.ConfigChange.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.api.ConfigChange.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
return writer.getResultBuffer();
};
/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* @param {!jspb.BinaryWriter} writer
*/
proto.google.api.ConfigChange.prototype.serializeBinaryToWriter = function (writer) {
var f = undefined;
f = this.getElement();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = this.getOldValue();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = this.getNewValue();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = this.getChangeType();
if (f !== 0.0) {
writer.writeEnum(
4,
f
);
}
f = this.getAdvicesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
5,
f,
proto.google.api.Advice.serializeBinaryToWriter
);
}
};
/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.api.ConfigChange} The clone.
*/
proto.google.api.ConfigChange.prototype.cloneMessage = function() {
return /** @type {!proto.google.api.ConfigChange} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string element = 1;
* @return {string}
*/
proto.google.api.ConfigChange.prototype.getElement = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
};
/** @param {string} value */
proto.google.api.ConfigChange.prototype.setElement = function(value) {
jspb.Message.setField(this, 1, value);
};
/**
* optional string old_value = 2;
* @return {string}
*/
proto.google.api.ConfigChange.prototype.getOldValue = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
};
/** @param {string} value */
proto.google.api.ConfigChange.prototype.setOldValue = function(value) {
jspb.Message.setField(this, 2, value);
};
/**
* optional string new_value = 3;
* @return {string}
*/
proto.google.api.ConfigChange.prototype.getNewValue = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
};
/** @param {string} value */
proto.google.api.ConfigChange.prototype.setNewValue = function(value) {
jspb.Message.setField(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.getFieldProto3(this, 4, 0));
};
/** @param {!proto.google.api.ChangeType} value */
proto.google.api.ConfigChange.prototype.setChangeType = function(value) {
jspb.Message.setField(this, 4, value);
};
/**
* repeated Advice advices = 5;
* If you change this array by adding, removing or replacing elements, or if you
* replace the array itself, then you must call the setter to update it.
* @return {!Array.<!proto.google.api.Advice>}
*/
proto.google.api.ConfigChange.prototype.getAdvicesList = function() {
return /** @type{!Array.<!proto.google.api.Advice>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.google.api.Advice, 5));
};
/** @param {Array.<!proto.google.api.Advice>} value */
proto.google.api.ConfigChange.prototype.setAdvicesList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 5, value);
};
proto.google.api.ConfigChange.prototype.clearAdvicesList = function() {
this.setAdvicesList([]);
};
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed 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) {
proto.google.api.Advice.displayName = 'proto.google.api.Advice';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance 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 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}
*/
proto.google.api.Advice.toObject = function(includeInstance, msg) {
var f, obj = {
description: msg.getDescription()
};
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;
};
/**
* Class method variant: 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
*/
proto.google.api.Advice.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.api.Advice.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
return writer.getResultBuffer();
};
/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* @param {!jspb.BinaryWriter} writer
*/
proto.google.api.Advice.prototype.serializeBinaryToWriter = function (writer) {
var f = undefined;
f = this.getDescription();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
};
/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.api.Advice} The clone.
*/
proto.google.api.Advice.prototype.cloneMessage = function() {
return /** @type {!proto.google.api.Advice} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string description = 2;
* @return {string}
*/
proto.google.api.Advice.prototype.getDescription = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
};
/** @param {string} value */
proto.google.api.Advice.prototype.setDescription = function(value) {
jspb.Message.setField(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);

View File

@ -0,0 +1 @@
// GENERATED CODE -- NO SERVICES IN PROTO

65
api/js/google/api/consumer_pb.d.ts vendored Normal file
View File

@ -0,0 +1,65 @@
// package: google.api
// file: google/api/consumer.proto
import * as jspb from "google-protobuf";
export class ProjectProperties extends jspb.Message {
clearPropertiesList(): void;
getPropertiesList(): Array<Property>;
setPropertiesList(value: Array<Property>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<Property.AsObject>,
}
}
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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;
}

View File

@ -0,0 +1,417 @@
/**
* @fileoverview
* @enhanceable
* @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) {
proto.google.api.ProjectProperties.displayName = 'proto.google.api.ProjectProperties';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.google.api.ProjectProperties.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance 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 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}
*/
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.getPropertiesList().push(value);
msg.setPropertiesList(msg.getPropertiesList());
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Class method variant: 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
*/
proto.google.api.ProjectProperties.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.api.ProjectProperties.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
return writer.getResultBuffer();
};
/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* @param {!jspb.BinaryWriter} writer
*/
proto.google.api.ProjectProperties.prototype.serializeBinaryToWriter = function (writer) {
var f = undefined;
f = this.getPropertiesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.google.api.Property.serializeBinaryToWriter
);
}
};
/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.api.ProjectProperties} The clone.
*/
proto.google.api.ProjectProperties.prototype.cloneMessage = function() {
return /** @type {!proto.google.api.ProjectProperties} */ (jspb.Message.cloneMessage(this));
};
/**
* repeated Property properties = 1;
* If you change this array by adding, removing or replacing elements, or if you
* replace the array itself, then you must call the setter to update it.
* @return {!Array.<!proto.google.api.Property>}
*/
proto.google.api.ProjectProperties.prototype.getPropertiesList = function() {
return /** @type{!Array.<!proto.google.api.Property>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.google.api.Property, 1));
};
/** @param {Array.<!proto.google.api.Property>} value */
proto.google.api.ProjectProperties.prototype.setPropertiesList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 1, value);
};
proto.google.api.ProjectProperties.prototype.clearPropertiesList = function() {
this.setPropertiesList([]);
};
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed 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) {
proto.google.api.Property.displayName = 'proto.google.api.Property';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance 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 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}
*/
proto.google.api.Property.toObject = function(includeInstance, msg) {
var f, obj = {
name: msg.getName(),
type: msg.getType(),
description: msg.getDescription()
};
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;
};
/**
* Class method variant: 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
*/
proto.google.api.Property.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.api.Property.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
return writer.getResultBuffer();
};
/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* @param {!jspb.BinaryWriter} writer
*/
proto.google.api.Property.prototype.serializeBinaryToWriter = function (writer) {
var f = undefined;
f = this.getName();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = this.getType();
if (f !== 0.0) {
writer.writeEnum(
2,
f
);
}
f = this.getDescription();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
};
/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.api.Property} The clone.
*/
proto.google.api.Property.prototype.cloneMessage = function() {
return /** @type {!proto.google.api.Property} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string name = 1;
* @return {string}
*/
proto.google.api.Property.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
};
/** @param {string} value */
proto.google.api.Property.prototype.setName = function(value) {
jspb.Message.setField(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.getFieldProto3(this, 2, 0));
};
/** @param {!proto.google.api.Property.PropertyType} value */
proto.google.api.Property.prototype.setType = function(value) {
jspb.Message.setField(this, 2, value);
};
/**
* optional string description = 3;
* @return {string}
*/
proto.google.api.Property.prototype.getDescription = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
};
/** @param {string} value */
proto.google.api.Property.prototype.setDescription = function(value) {
jspb.Message.setField(this, 3, value);
};
/**
* @enum {number}
*/
proto.google.api.Property.PropertyType = {
UNSPECIFIED: 0,
INT64: 1,
BOOL: 2,
STRING: 3,
DOUBLE: 4
};
goog.object.extend(exports, proto.google.api);

View File

@ -0,0 +1 @@
// GENERATED CODE -- NO SERVICES IN PROTO

71
api/js/google/api/context_pb.d.ts vendored Normal file
View File

@ -0,0 +1,71 @@
// package: google.api
// file: google/api/context.proto
import * as jspb from "google-protobuf";
export class Context extends jspb.Message {
clearRulesList(): void;
getRulesList(): Array<ContextRule>;
setRulesList(value: Array<ContextRule>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<ContextRule.AsObject>,
}
}
export class ContextRule extends jspb.Message {
getSelector(): string;
setSelector(value: string): void;
clearRequestedList(): void;
getRequestedList(): Array<string>;
setRequestedList(value: Array<string>): void;
addRequested(value: string, index?: number): string;
clearProvidedList(): void;
getProvidedList(): Array<string>;
setProvidedList(value: Array<string>): void;
addProvided(value: string, index?: number): string;
clearAllowedRequestExtensionsList(): void;
getAllowedRequestExtensionsList(): Array<string>;
setAllowedRequestExtensionsList(value: Array<string>): void;
addAllowedRequestExtensions(value: string, index?: number): string;
clearAllowedResponseExtensionsList(): void;
getAllowedResponseExtensionsList(): Array<string>;
setAllowedResponseExtensionsList(value: Array<string>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<string>,
providedList: Array<string>,
allowedRequestExtensionsList: Array<string>,
allowedResponseExtensionsList: Array<string>,
}
}

View File

@ -0,0 +1,498 @@
/**
* @fileoverview
* @enhanceable
* @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) {
proto.google.api.Context.displayName = 'proto.google.api.Context';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.google.api.Context.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance 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 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}
*/
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.getRulesList().push(value);
msg.setRulesList(msg.getRulesList());
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Class method variant: 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
*/
proto.google.api.Context.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.api.Context.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
return writer.getResultBuffer();
};
/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* @param {!jspb.BinaryWriter} writer
*/
proto.google.api.Context.prototype.serializeBinaryToWriter = function (writer) {
var f = undefined;
f = this.getRulesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.google.api.ContextRule.serializeBinaryToWriter
);
}
};
/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.api.Context} The clone.
*/
proto.google.api.Context.prototype.cloneMessage = function() {
return /** @type {!proto.google.api.Context} */ (jspb.Message.cloneMessage(this));
};
/**
* repeated ContextRule rules = 1;
* If you change this array by adding, removing or replacing elements, or if you
* replace the array itself, then you must call the setter to update it.
* @return {!Array.<!proto.google.api.ContextRule>}
*/
proto.google.api.Context.prototype.getRulesList = function() {
return /** @type{!Array.<!proto.google.api.ContextRule>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.google.api.ContextRule, 1));
};
/** @param {Array.<!proto.google.api.ContextRule>} value */
proto.google.api.Context.prototype.setRulesList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 1, value);
};
proto.google.api.Context.prototype.clearRulesList = function() {
this.setRulesList([]);
};
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed 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) {
proto.google.api.ContextRule.displayName = 'proto.google.api.ContextRule';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.google.api.ContextRule.repeatedFields_ = [2,3,4,5];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance 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 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}
*/
proto.google.api.ContextRule.toObject = function(includeInstance, msg) {
var f, obj = {
selector: msg.getSelector(),
requestedList: jspb.Message.getField(msg, 2),
providedList: jspb.Message.getField(msg, 3),
allowedRequestExtensionsList: jspb.Message.getField(msg, 4),
allowedResponseExtensionsList: jspb.Message.getField(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.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.getRequestedList().push(value);
msg.setRequestedList(msg.getRequestedList());
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.getProvidedList().push(value);
msg.setProvidedList(msg.getProvidedList());
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.getAllowedRequestExtensionsList().push(value);
msg.setAllowedRequestExtensionsList(msg.getAllowedRequestExtensionsList());
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.getAllowedResponseExtensionsList().push(value);
msg.setAllowedResponseExtensionsList(msg.getAllowedResponseExtensionsList());
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Class method variant: 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
*/
proto.google.api.ContextRule.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.api.ContextRule.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
return writer.getResultBuffer();
};
/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* @param {!jspb.BinaryWriter} writer
*/
proto.google.api.ContextRule.prototype.serializeBinaryToWriter = function (writer) {
var f = undefined;
f = this.getSelector();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = this.getRequestedList();
if (f.length > 0) {
writer.writeRepeatedString(
2,
f
);
}
f = this.getProvidedList();
if (f.length > 0) {
writer.writeRepeatedString(
3,
f
);
}
f = this.getAllowedRequestExtensionsList();
if (f.length > 0) {
writer.writeRepeatedString(
4,
f
);
}
f = this.getAllowedResponseExtensionsList();
if (f.length > 0) {
writer.writeRepeatedString(
5,
f
);
}
};
/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.api.ContextRule} The clone.
*/
proto.google.api.ContextRule.prototype.cloneMessage = function() {
return /** @type {!proto.google.api.ContextRule} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string selector = 1;
* @return {string}
*/
proto.google.api.ContextRule.prototype.getSelector = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
};
/** @param {string} value */
proto.google.api.ContextRule.prototype.setSelector = function(value) {
jspb.Message.setField(this, 1, value);
};
/**
* repeated string requested = 2;
* If you change this array by adding, removing or replacing elements, or if you
* replace the array itself, then you must call the setter to update it.
* @return {!Array.<string>}
*/
proto.google.api.ContextRule.prototype.getRequestedList = function() {
return /** @type {!Array.<string>} */ (jspb.Message.getField(this, 2));
};
/** @param {Array.<string>} value */
proto.google.api.ContextRule.prototype.setRequestedList = function(value) {
jspb.Message.setField(this, 2, value || []);
};
proto.google.api.ContextRule.prototype.clearRequestedList = function() {
jspb.Message.setField(this, 2, []);
};
/**
* repeated string provided = 3;
* If you change this array by adding, removing or replacing elements, or if you
* replace the array itself, then you must call the setter to update it.
* @return {!Array.<string>}
*/
proto.google.api.ContextRule.prototype.getProvidedList = function() {
return /** @type {!Array.<string>} */ (jspb.Message.getField(this, 3));
};
/** @param {Array.<string>} value */
proto.google.api.ContextRule.prototype.setProvidedList = function(value) {
jspb.Message.setField(this, 3, value || []);
};
proto.google.api.ContextRule.prototype.clearProvidedList = function() {
jspb.Message.setField(this, 3, []);
};
/**
* repeated string allowed_request_extensions = 4;
* If you change this array by adding, removing or replacing elements, or if you
* replace the array itself, then you must call the setter to update it.
* @return {!Array.<string>}
*/
proto.google.api.ContextRule.prototype.getAllowedRequestExtensionsList = function() {
return /** @type {!Array.<string>} */ (jspb.Message.getField(this, 4));
};
/** @param {Array.<string>} value */
proto.google.api.ContextRule.prototype.setAllowedRequestExtensionsList = function(value) {
jspb.Message.setField(this, 4, value || []);
};
proto.google.api.ContextRule.prototype.clearAllowedRequestExtensionsList = function() {
jspb.Message.setField(this, 4, []);
};
/**
* repeated string allowed_response_extensions = 5;
* If you change this array by adding, removing or replacing elements, or if you
* replace the array itself, then you must call the setter to update it.
* @return {!Array.<string>}
*/
proto.google.api.ContextRule.prototype.getAllowedResponseExtensionsList = function() {
return /** @type {!Array.<string>} */ (jspb.Message.getField(this, 5));
};
/** @param {Array.<string>} value */
proto.google.api.ContextRule.prototype.setAllowedResponseExtensionsList = function(value) {
jspb.Message.setField(this, 5, value || []);
};
proto.google.api.ContextRule.prototype.clearAllowedResponseExtensionsList = function() {
jspb.Message.setField(this, 5, []);
};
goog.object.extend(exports, proto.google.api);

View File

@ -0,0 +1 @@
// GENERATED CODE -- NO SERVICES IN PROTO

25
api/js/google/api/control_pb.d.ts vendored Normal file
View File

@ -0,0 +1,25 @@
// 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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,
}
}

View File

@ -0,0 +1,172 @@
/**
* @fileoverview
* @enhanceable
* @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) {
proto.google.api.Control.displayName = 'proto.google.api.Control';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance 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 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}
*/
proto.google.api.Control.toObject = function(includeInstance, msg) {
var f, obj = {
environment: msg.getEnvironment()
};
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;
};
/**
* Class method variant: 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
*/
proto.google.api.Control.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.api.Control.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
return writer.getResultBuffer();
};
/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* @param {!jspb.BinaryWriter} writer
*/
proto.google.api.Control.prototype.serializeBinaryToWriter = function (writer) {
var f = undefined;
f = this.getEnvironment();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
};
/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.api.Control} The clone.
*/
proto.google.api.Control.prototype.cloneMessage = function() {
return /** @type {!proto.google.api.Control} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string environment = 1;
* @return {string}
*/
proto.google.api.Control.prototype.getEnvironment = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
};
/** @param {string} value */
proto.google.api.Control.prototype.setEnvironment = function(value) {
jspb.Message.setField(this, 1, value);
};
goog.object.extend(exports, proto.google.api);

View File

@ -0,0 +1 @@
// GENERATED CODE -- NO SERVICES IN PROTO

235
api/js/google/api/distribution_pb.d.ts vendored Normal file
View File

@ -0,0 +1,235 @@
// 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<number>;
setBucketCountsList(value: Array<number>): void;
addBucketCounts(value: number, index?: number): number;
clearExemplarsList(): void;
getExemplarsList(): Array<Distribution.Exemplar>;
setExemplarsList(value: Array<Distribution.Exemplar>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<number>,
exemplarsList: Array<Distribution.Exemplar.AsObject>,
}
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<number>;
setBoundsList(value: Array<number>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<number>,
}
}
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<google_protobuf_any_pb.Any>;
setAttachmentsList(value: Array<google_protobuf_any_pb.Any>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<google_protobuf_any_pb.Any.AsObject>,
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1 @@
// GENERATED CODE -- NO SERVICES IN PROTO

107
api/js/google/api/documentation_pb.d.ts vendored Normal file
View File

@ -0,0 +1,107 @@
// 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<Page>;
setPagesList(value: Array<Page>): void;
addPages(value?: Page, index?: number): Page;
clearRulesList(): void;
getRulesList(): Array<DocumentationRule>;
setRulesList(value: Array<DocumentationRule>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<Page.AsObject>,
rulesList: Array<DocumentationRule.AsObject>,
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<Page>;
setSubpagesList(value: Array<Page>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<Page.AsObject>,
}
}

View File

@ -0,0 +1,785 @@
/**
* @fileoverview
* @enhanceable
* @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) {
proto.google.api.Documentation.displayName = 'proto.google.api.Documentation';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.google.api.Documentation.repeatedFields_ = [5,3];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance 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 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}
*/
proto.google.api.Documentation.toObject = function(includeInstance, msg) {
var f, obj = {
summary: msg.getSummary(),
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: msg.getDocumentationRootUrl(),
serviceRootUrl: msg.getServiceRootUrl(),
overview: msg.getOverview()
};
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.getPagesList().push(value);
msg.setPagesList(msg.getPagesList());
break;
case 3:
var value = new proto.google.api.DocumentationRule;
reader.readMessage(value,proto.google.api.DocumentationRule.deserializeBinaryFromReader);
msg.getRulesList().push(value);
msg.setRulesList(msg.getRulesList());
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;
};
/**
* Class method variant: 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
*/
proto.google.api.Documentation.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.api.Documentation.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
return writer.getResultBuffer();
};
/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* @param {!jspb.BinaryWriter} writer
*/
proto.google.api.Documentation.prototype.serializeBinaryToWriter = function (writer) {
var f = undefined;
f = this.getSummary();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = this.getPagesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
5,
f,
proto.google.api.Page.serializeBinaryToWriter
);
}
f = this.getRulesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
3,
f,
proto.google.api.DocumentationRule.serializeBinaryToWriter
);
}
f = this.getDocumentationRootUrl();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
f = this.getServiceRootUrl();
if (f.length > 0) {
writer.writeString(
6,
f
);
}
f = this.getOverview();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
};
/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.api.Documentation} The clone.
*/
proto.google.api.Documentation.prototype.cloneMessage = function() {
return /** @type {!proto.google.api.Documentation} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string summary = 1;
* @return {string}
*/
proto.google.api.Documentation.prototype.getSummary = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
};
/** @param {string} value */
proto.google.api.Documentation.prototype.setSummary = function(value) {
jspb.Message.setField(this, 1, value);
};
/**
* repeated Page pages = 5;
* If you change this array by adding, removing or replacing elements, or if you
* replace the array itself, then you must call the setter to update it.
* @return {!Array.<!proto.google.api.Page>}
*/
proto.google.api.Documentation.prototype.getPagesList = function() {
return /** @type{!Array.<!proto.google.api.Page>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.google.api.Page, 5));
};
/** @param {Array.<!proto.google.api.Page>} value */
proto.google.api.Documentation.prototype.setPagesList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 5, value);
};
proto.google.api.Documentation.prototype.clearPagesList = function() {
this.setPagesList([]);
};
/**
* repeated DocumentationRule rules = 3;
* If you change this array by adding, removing or replacing elements, or if you
* replace the array itself, then you must call the setter to update it.
* @return {!Array.<!proto.google.api.DocumentationRule>}
*/
proto.google.api.Documentation.prototype.getRulesList = function() {
return /** @type{!Array.<!proto.google.api.DocumentationRule>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.google.api.DocumentationRule, 3));
};
/** @param {Array.<!proto.google.api.DocumentationRule>} value */
proto.google.api.Documentation.prototype.setRulesList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 3, value);
};
proto.google.api.Documentation.prototype.clearRulesList = function() {
this.setRulesList([]);
};
/**
* optional string documentation_root_url = 4;
* @return {string}
*/
proto.google.api.Documentation.prototype.getDocumentationRootUrl = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 4, ""));
};
/** @param {string} value */
proto.google.api.Documentation.prototype.setDocumentationRootUrl = function(value) {
jspb.Message.setField(this, 4, value);
};
/**
* optional string service_root_url = 6;
* @return {string}
*/
proto.google.api.Documentation.prototype.getServiceRootUrl = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 6, ""));
};
/** @param {string} value */
proto.google.api.Documentation.prototype.setServiceRootUrl = function(value) {
jspb.Message.setField(this, 6, value);
};
/**
* optional string overview = 2;
* @return {string}
*/
proto.google.api.Documentation.prototype.getOverview = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
};
/** @param {string} value */
proto.google.api.Documentation.prototype.setOverview = function(value) {
jspb.Message.setField(this, 2, value);
};
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed 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) {
proto.google.api.DocumentationRule.displayName = 'proto.google.api.DocumentationRule';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance 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 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}
*/
proto.google.api.DocumentationRule.toObject = function(includeInstance, msg) {
var f, obj = {
selector: msg.getSelector(),
description: msg.getDescription(),
deprecationDescription: msg.getDeprecationDescription()
};
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;
};
/**
* Class method variant: 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
*/
proto.google.api.DocumentationRule.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.api.DocumentationRule.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
return writer.getResultBuffer();
};
/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* @param {!jspb.BinaryWriter} writer
*/
proto.google.api.DocumentationRule.prototype.serializeBinaryToWriter = function (writer) {
var f = undefined;
f = this.getSelector();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = this.getDescription();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = this.getDeprecationDescription();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
};
/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.api.DocumentationRule} The clone.
*/
proto.google.api.DocumentationRule.prototype.cloneMessage = function() {
return /** @type {!proto.google.api.DocumentationRule} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string selector = 1;
* @return {string}
*/
proto.google.api.DocumentationRule.prototype.getSelector = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
};
/** @param {string} value */
proto.google.api.DocumentationRule.prototype.setSelector = function(value) {
jspb.Message.setField(this, 1, value);
};
/**
* optional string description = 2;
* @return {string}
*/
proto.google.api.DocumentationRule.prototype.getDescription = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
};
/** @param {string} value */
proto.google.api.DocumentationRule.prototype.setDescription = function(value) {
jspb.Message.setField(this, 2, value);
};
/**
* optional string deprecation_description = 3;
* @return {string}
*/
proto.google.api.DocumentationRule.prototype.getDeprecationDescription = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
};
/** @param {string} value */
proto.google.api.DocumentationRule.prototype.setDeprecationDescription = function(value) {
jspb.Message.setField(this, 3, value);
};
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed 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) {
proto.google.api.Page.displayName = 'proto.google.api.Page';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.google.api.Page.repeatedFields_ = [3];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance 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 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}
*/
proto.google.api.Page.toObject = function(includeInstance, msg) {
var f, obj = {
name: msg.getName(),
content: msg.getContent(),
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.getSubpagesList().push(value);
msg.setSubpagesList(msg.getSubpagesList());
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Class method variant: 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
*/
proto.google.api.Page.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.api.Page.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
return writer.getResultBuffer();
};
/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* @param {!jspb.BinaryWriter} writer
*/
proto.google.api.Page.prototype.serializeBinaryToWriter = function (writer) {
var f = undefined;
f = this.getName();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = this.getContent();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = this.getSubpagesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
3,
f,
proto.google.api.Page.serializeBinaryToWriter
);
}
};
/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.api.Page} The clone.
*/
proto.google.api.Page.prototype.cloneMessage = function() {
return /** @type {!proto.google.api.Page} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string name = 1;
* @return {string}
*/
proto.google.api.Page.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
};
/** @param {string} value */
proto.google.api.Page.prototype.setName = function(value) {
jspb.Message.setField(this, 1, value);
};
/**
* optional string content = 2;
* @return {string}
*/
proto.google.api.Page.prototype.getContent = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
};
/** @param {string} value */
proto.google.api.Page.prototype.setContent = function(value) {
jspb.Message.setField(this, 2, value);
};
/**
* repeated Page subpages = 3;
* If you change this array by adding, removing or replacing elements, or if you
* replace the array itself, then you must call the setter to update it.
* @return {!Array.<!proto.google.api.Page>}
*/
proto.google.api.Page.prototype.getSubpagesList = function() {
return /** @type{!Array.<!proto.google.api.Page>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.google.api.Page, 3));
};
/** @param {Array.<!proto.google.api.Page>} value */
proto.google.api.Page.prototype.setSubpagesList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 3, value);
};
proto.google.api.Page.prototype.clearSubpagesList = function() {
this.setSubpagesList([]);
};
goog.object.extend(exports, proto.google.api);

View File

@ -0,0 +1 @@
// GENERATED CODE -- NO SERVICES IN PROTO

39
api/js/google/api/endpoint_pb.d.ts vendored Normal file
View File

@ -0,0 +1,39 @@
// 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<string>;
setAliasesList(value: Array<string>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<string>,
target: string,
allowCors: boolean,
}
}

View File

@ -0,0 +1,270 @@
/**
* @fileoverview
* @enhanceable
* @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) {
proto.google.api.Endpoint.displayName = 'proto.google.api.Endpoint';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.google.api.Endpoint.repeatedFields_ = [2];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance 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 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}
*/
proto.google.api.Endpoint.toObject = function(includeInstance, msg) {
var f, obj = {
name: msg.getName(),
aliasesList: jspb.Message.getField(msg, 2),
target: msg.getTarget(),
allowCors: msg.getAllowCors()
};
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.getAliasesList().push(value);
msg.setAliasesList(msg.getAliasesList());
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;
};
/**
* Class method variant: 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
*/
proto.google.api.Endpoint.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.api.Endpoint.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
return writer.getResultBuffer();
};
/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* @param {!jspb.BinaryWriter} writer
*/
proto.google.api.Endpoint.prototype.serializeBinaryToWriter = function (writer) {
var f = undefined;
f = this.getName();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = this.getAliasesList();
if (f.length > 0) {
writer.writeRepeatedString(
2,
f
);
}
f = this.getTarget();
if (f.length > 0) {
writer.writeString(
101,
f
);
}
f = this.getAllowCors();
if (f) {
writer.writeBool(
5,
f
);
}
};
/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.api.Endpoint} The clone.
*/
proto.google.api.Endpoint.prototype.cloneMessage = function() {
return /** @type {!proto.google.api.Endpoint} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string name = 1;
* @return {string}
*/
proto.google.api.Endpoint.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
};
/** @param {string} value */
proto.google.api.Endpoint.prototype.setName = function(value) {
jspb.Message.setField(this, 1, value);
};
/**
* repeated string aliases = 2;
* If you change this array by adding, removing or replacing elements, or if you
* replace the array itself, then you must call the setter to update it.
* @return {!Array.<string>}
*/
proto.google.api.Endpoint.prototype.getAliasesList = function() {
return /** @type {!Array.<string>} */ (jspb.Message.getField(this, 2));
};
/** @param {Array.<string>} value */
proto.google.api.Endpoint.prototype.setAliasesList = function(value) {
jspb.Message.setField(this, 2, value || []);
};
proto.google.api.Endpoint.prototype.clearAliasesList = function() {
jspb.Message.setField(this, 2, []);
};
/**
* optional string target = 101;
* @return {string}
*/
proto.google.api.Endpoint.prototype.getTarget = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 101, ""));
};
/** @param {string} value */
proto.google.api.Endpoint.prototype.setTarget = function(value) {
jspb.Message.setField(this, 101, value);
};
/**
* optional bool allow_cors = 5;
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
* You should avoid comparisons like {@code val === true/false} in those cases.
* @return {boolean}
*/
proto.google.api.Endpoint.prototype.getAllowCors = function() {
return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 5, false));
};
/** @param {boolean} value */
proto.google.api.Endpoint.prototype.setAllowCors = function(value) {
jspb.Message.setField(this, 5, value);
};
goog.object.extend(exports, proto.google.api);

View File

@ -0,0 +1 @@
// GENERATED CODE -- NO SERVICES IN PROTO

30
api/js/google/api/error_reason_pb.d.ts vendored Normal file
View File

@ -0,0 +1,30 @@
// 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;
}
export const ErrorReason: ErrorReasonMap;

View File

@ -0,0 +1,39 @@
/**
* @fileoverview
* @enhanceable
* @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
};
goog.object.extend(exports, proto.google.api);

View File

@ -0,0 +1 @@
// GENERATED CODE -- NO SERVICES IN PROTO

View File

@ -0,0 +1,21 @@
// 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<FieldBehaviorMap>;
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;

View File

@ -0,0 +1,54 @@
/**
* @fileoverview
* @enhanceable
* @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.exportSymbol('google.api.field_behavior', null, global);
goog.exportSymbol('proto.google.api.FieldBehavior', 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.<!Array.<!proto.google.api.FieldBehavior>>}
*/
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,
null,
null,
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);

1
api/js/google/api/http_grpc_pb.d.ts vendored Normal file
View File

@ -0,0 +1 @@
// GENERATED CODE -- NO SERVICES IN PROTO

136
api/js/google/api/http_pb.d.ts vendored Normal file
View File

@ -0,0 +1,136 @@
// package: google.api
// file: google/api/http.proto
import * as jspb from "google-protobuf";
export class Http extends jspb.Message {
clearRulesList(): void;
getRulesList(): Array<HttpRule>;
setRulesList(value: Array<HttpRule>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<HttpRule.AsObject>,
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<HttpRule>;
setAdditionalBindingsList(value: Array<HttpRule>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<HttpRule.AsObject>,
}
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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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,
}
}

View File

@ -0,0 +1,946 @@
/**
* @fileoverview
* @enhanceable
* @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);
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed 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) {
proto.google.api.Http.displayName = 'proto.google.api.Http';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.google.api.Http.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance 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 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}
*/
proto.google.api.Http.toObject = function(includeInstance, msg) {
var f, obj = {
rulesList: jspb.Message.toObjectList(msg.getRulesList(),
proto.google.api.HttpRule.toObject, includeInstance),
fullyDecodeReservedExpansion: msg.getFullyDecodeReservedExpansion()
};
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.getRulesList().push(value);
msg.setRulesList(msg.getRulesList());
break;
case 2:
var value = /** @type {boolean} */ (reader.readBool());
msg.setFullyDecodeReservedExpansion(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Class method variant: 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
*/
proto.google.api.Http.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.api.Http.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
return writer.getResultBuffer();
};
/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* @param {!jspb.BinaryWriter} writer
*/
proto.google.api.Http.prototype.serializeBinaryToWriter = function (writer) {
var f = undefined;
f = this.getRulesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.google.api.HttpRule.serializeBinaryToWriter
);
}
f = this.getFullyDecodeReservedExpansion();
if (f) {
writer.writeBool(
2,
f
);
}
};
/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.api.Http} The clone.
*/
proto.google.api.Http.prototype.cloneMessage = function() {
return /** @type {!proto.google.api.Http} */ (jspb.Message.cloneMessage(this));
};
/**
* repeated HttpRule rules = 1;
* If you change this array by adding, removing or replacing elements, or if you
* replace the array itself, then you must call the setter to update it.
* @return {!Array.<!proto.google.api.HttpRule>}
*/
proto.google.api.Http.prototype.getRulesList = function() {
return /** @type{!Array.<!proto.google.api.HttpRule>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.google.api.HttpRule, 1));
};
/** @param {Array.<!proto.google.api.HttpRule>} value */
proto.google.api.Http.prototype.setRulesList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 1, value);
};
proto.google.api.Http.prototype.clearRulesList = function() {
this.setRulesList([]);
};
/**
* optional bool fully_decode_reserved_expansion = 2;
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
* You should avoid comparisons like {@code val === true/false} in those cases.
* @return {boolean}
*/
proto.google.api.Http.prototype.getFullyDecodeReservedExpansion = function() {
return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 2, false));
};
/** @param {boolean} value */
proto.google.api.Http.prototype.setFullyDecodeReservedExpansion = function(value) {
jspb.Message.setField(this, 2, value);
};
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed 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) {
proto.google.api.HttpRule.displayName = 'proto.google.api.HttpRule';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @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<!Array<number>>}
* @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 suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance 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 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}
*/
proto.google.api.HttpRule.toObject = function(includeInstance, msg) {
var f, obj = {
selector: msg.getSelector(),
get: jspb.Message.getField(msg, 2),
put: jspb.Message.getField(msg, 3),
post: jspb.Message.getField(msg, 4),
pb_delete: jspb.Message.getField(msg, 5),
patch: jspb.Message.getField(msg, 6),
custom: (f = msg.getCustom()) && proto.google.api.CustomHttpPattern.toObject(includeInstance, f),
body: msg.getBody(),
responseBody: msg.getResponseBody(),
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.getAdditionalBindingsList().push(value);
msg.setAdditionalBindingsList(msg.getAdditionalBindingsList());
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Class method variant: 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
*/
proto.google.api.HttpRule.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.api.HttpRule.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
return writer.getResultBuffer();
};
/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* @param {!jspb.BinaryWriter} writer
*/
proto.google.api.HttpRule.prototype.serializeBinaryToWriter = function (writer) {
var f = undefined;
f = this.getSelector();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = jspb.Message.getField(this, 2);
if (f != null) {
writer.writeString(
2,
f
);
}
f = jspb.Message.getField(this, 3);
if (f != null) {
writer.writeString(
3,
f
);
}
f = jspb.Message.getField(this, 4);
if (f != null) {
writer.writeString(
4,
f
);
}
f = jspb.Message.getField(this, 5);
if (f != null) {
writer.writeString(
5,
f
);
}
f = jspb.Message.getField(this, 6);
if (f != null) {
writer.writeString(
6,
f
);
}
f = this.getCustom();
if (f != null) {
writer.writeMessage(
8,
f,
proto.google.api.CustomHttpPattern.serializeBinaryToWriter
);
}
f = this.getBody();
if (f.length > 0) {
writer.writeString(
7,
f
);
}
f = this.getResponseBody();
if (f.length > 0) {
writer.writeString(
12,
f
);
}
f = this.getAdditionalBindingsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
11,
f,
proto.google.api.HttpRule.serializeBinaryToWriter
);
}
};
/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.api.HttpRule} The clone.
*/
proto.google.api.HttpRule.prototype.cloneMessage = function() {
return /** @type {!proto.google.api.HttpRule} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string selector = 1;
* @return {string}
*/
proto.google.api.HttpRule.prototype.getSelector = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
};
/** @param {string} value */
proto.google.api.HttpRule.prototype.setSelector = function(value) {
jspb.Message.setField(this, 1, value);
};
/**
* optional string get = 2;
* @return {string}
*/
proto.google.api.HttpRule.prototype.getGet = function() {
return /** @type {string} */ (!this.hasGet() ? "" : jspb.Message.getField(this, 2));
};
/** @param {string?|undefined} value */
proto.google.api.HttpRule.prototype.setGet = function(value) {
jspb.Message.setOneofField(this, 2, proto.google.api.HttpRule.oneofGroups_[0], value);
};
proto.google.api.HttpRule.prototype.clearGet = function() {
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} */ (!this.hasPut() ? "" : jspb.Message.getField(this, 3));
};
/** @param {string?|undefined} value */
proto.google.api.HttpRule.prototype.setPut = function(value) {
jspb.Message.setOneofField(this, 3, proto.google.api.HttpRule.oneofGroups_[0], value);
};
proto.google.api.HttpRule.prototype.clearPut = function() {
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} */ (!this.hasPost() ? "" : jspb.Message.getField(this, 4));
};
/** @param {string?|undefined} value */
proto.google.api.HttpRule.prototype.setPost = function(value) {
jspb.Message.setOneofField(this, 4, proto.google.api.HttpRule.oneofGroups_[0], value);
};
proto.google.api.HttpRule.prototype.clearPost = function() {
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} */ (!this.hasDelete() ? "" : jspb.Message.getField(this, 5));
};
/** @param {string?|undefined} value */
proto.google.api.HttpRule.prototype.setDelete = function(value) {
jspb.Message.setOneofField(this, 5, proto.google.api.HttpRule.oneofGroups_[0], value);
};
proto.google.api.HttpRule.prototype.clearDelete = function() {
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} */ (!this.hasPatch() ? "" : jspb.Message.getField(this, 6));
};
/** @param {string?|undefined} value */
proto.google.api.HttpRule.prototype.setPatch = function(value) {
jspb.Message.setOneofField(this, 6, proto.google.api.HttpRule.oneofGroups_[0], value);
};
proto.google.api.HttpRule.prototype.clearPatch = function() {
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 */
proto.google.api.HttpRule.prototype.setCustom = function(value) {
jspb.Message.setOneofWrapperField(this, 8, proto.google.api.HttpRule.oneofGroups_[0], value);
};
proto.google.api.HttpRule.prototype.clearCustom = function() {
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.getFieldProto3(this, 7, ""));
};
/** @param {string} value */
proto.google.api.HttpRule.prototype.setBody = function(value) {
jspb.Message.setField(this, 7, value);
};
/**
* optional string response_body = 12;
* @return {string}
*/
proto.google.api.HttpRule.prototype.getResponseBody = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 12, ""));
};
/** @param {string} value */
proto.google.api.HttpRule.prototype.setResponseBody = function(value) {
jspb.Message.setField(this, 12, value);
};
/**
* repeated HttpRule additional_bindings = 11;
* If you change this array by adding, removing or replacing elements, or if you
* replace the array itself, then you must call the setter to update it.
* @return {!Array.<!proto.google.api.HttpRule>}
*/
proto.google.api.HttpRule.prototype.getAdditionalBindingsList = function() {
return /** @type{!Array.<!proto.google.api.HttpRule>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.google.api.HttpRule, 11));
};
/** @param {Array.<!proto.google.api.HttpRule>} value */
proto.google.api.HttpRule.prototype.setAdditionalBindingsList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 11, value);
};
proto.google.api.HttpRule.prototype.clearAdditionalBindingsList = function() {
this.setAdditionalBindingsList([]);
};
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed 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) {
proto.google.api.CustomHttpPattern.displayName = 'proto.google.api.CustomHttpPattern';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance 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 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}
*/
proto.google.api.CustomHttpPattern.toObject = function(includeInstance, msg) {
var f, obj = {
kind: msg.getKind(),
path: msg.getPath()
};
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;
};
/**
* Class method variant: 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
*/
proto.google.api.CustomHttpPattern.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.api.CustomHttpPattern.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
return writer.getResultBuffer();
};
/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* @param {!jspb.BinaryWriter} writer
*/
proto.google.api.CustomHttpPattern.prototype.serializeBinaryToWriter = function (writer) {
var f = undefined;
f = this.getKind();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = this.getPath();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
};
/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.api.CustomHttpPattern} The clone.
*/
proto.google.api.CustomHttpPattern.prototype.cloneMessage = function() {
return /** @type {!proto.google.api.CustomHttpPattern} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string kind = 1;
* @return {string}
*/
proto.google.api.CustomHttpPattern.prototype.getKind = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
};
/** @param {string} value */
proto.google.api.CustomHttpPattern.prototype.setKind = function(value) {
jspb.Message.setField(this, 1, value);
};
/**
* optional string path = 2;
* @return {string}
*/
proto.google.api.CustomHttpPattern.prototype.getPath = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
};
/** @param {string} value */
proto.google.api.CustomHttpPattern.prototype.setPath = function(value) {
jspb.Message.setField(this, 2, value);
};
goog.object.extend(exports, proto.google.api);

View File

@ -0,0 +1 @@
// GENERATED CODE -- NO SERVICES IN PROTO

38
api/js/google/api/httpbody_pb.d.ts vendored Normal file
View File

@ -0,0 +1,38 @@
// 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<google_protobuf_any_pb.Any>;
setExtensionsList(value: Array<google_protobuf_any_pb.Any>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<google_protobuf_any_pb.Any.AsObject>,
}
}

View File

@ -0,0 +1,270 @@
/**
* @fileoverview
* @enhanceable
* @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.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) {
proto.google.api.HttpBody.displayName = 'proto.google.api.HttpBody';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.google.api.HttpBody.repeatedFields_ = [3];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance 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 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}
*/
proto.google.api.HttpBody.toObject = function(includeInstance, msg) {
var f, obj = {
contentType: msg.getContentType(),
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.getExtensionsList().push(value);
msg.setExtensionsList(msg.getExtensionsList());
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Class method variant: 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
*/
proto.google.api.HttpBody.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.api.HttpBody.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
return writer.getResultBuffer();
};
/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* @param {!jspb.BinaryWriter} writer
*/
proto.google.api.HttpBody.prototype.serializeBinaryToWriter = function (writer) {
var f = undefined;
f = this.getContentType();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = this.getData_asU8();
if (f.length > 0) {
writer.writeBytes(
2,
f
);
}
f = this.getExtensionsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
3,
f,
google_protobuf_any_pb.Any.serializeBinaryToWriter
);
}
};
/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.api.HttpBody} The clone.
*/
proto.google.api.HttpBody.prototype.cloneMessage = function() {
return /** @type {!proto.google.api.HttpBody} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string content_type = 1;
* @return {string}
*/
proto.google.api.HttpBody.prototype.getContentType = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
};
/** @param {string} value */
proto.google.api.HttpBody.prototype.setContentType = function(value) {
jspb.Message.setField(this, 1, value);
};
/**
* optional bytes data = 2;
* @return {!(string|Uint8Array)}
*/
proto.google.api.HttpBody.prototype.getData = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldProto3(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 */
proto.google.api.HttpBody.prototype.setData = function(value) {
jspb.Message.setField(this, 2, value);
};
/**
* repeated google.protobuf.Any extensions = 3;
* If you change this array by adding, removing or replacing elements, or if you
* replace the array itself, then you must call the setter to update it.
* @return {!Array.<!proto.google.protobuf.Any>}
*/
proto.google.api.HttpBody.prototype.getExtensionsList = function() {
return /** @type{!Array.<!proto.google.protobuf.Any>} */ (
jspb.Message.getRepeatedWrapperField(this, google_protobuf_any_pb.Any, 3));
};
/** @param {Array.<!proto.google.protobuf.Any>} value */
proto.google.api.HttpBody.prototype.setExtensionsList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 3, value);
};
proto.google.api.HttpBody.prototype.clearExtensionsList = function() {
this.setExtensionsList([]);
};
goog.object.extend(exports, proto.google.api);

1
api/js/google/api/label_grpc_pb.d.ts vendored Normal file
View File

@ -0,0 +1 @@
// GENERATED CODE -- NO SERVICES IN PROTO

41
api/js/google/api/label_pb.d.ts vendored Normal file
View File

@ -0,0 +1,41 @@
// 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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;
}

View File

@ -0,0 +1,236 @@
/**
* @fileoverview
* @enhanceable
* @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) {
proto.google.api.LabelDescriptor.displayName = 'proto.google.api.LabelDescriptor';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance 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 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}
*/
proto.google.api.LabelDescriptor.toObject = function(includeInstance, msg) {
var f, obj = {
key: msg.getKey(),
valueType: msg.getValueType(),
description: msg.getDescription()
};
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;
};
/**
* Class method variant: 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
*/
proto.google.api.LabelDescriptor.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.api.LabelDescriptor.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
return writer.getResultBuffer();
};
/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* @param {!jspb.BinaryWriter} writer
*/
proto.google.api.LabelDescriptor.prototype.serializeBinaryToWriter = function (writer) {
var f = undefined;
f = this.getKey();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = this.getValueType();
if (f !== 0.0) {
writer.writeEnum(
2,
f
);
}
f = this.getDescription();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
};
/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.api.LabelDescriptor} The clone.
*/
proto.google.api.LabelDescriptor.prototype.cloneMessage = function() {
return /** @type {!proto.google.api.LabelDescriptor} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string key = 1;
* @return {string}
*/
proto.google.api.LabelDescriptor.prototype.getKey = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
};
/** @param {string} value */
proto.google.api.LabelDescriptor.prototype.setKey = function(value) {
jspb.Message.setField(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.getFieldProto3(this, 2, 0));
};
/** @param {!proto.google.api.LabelDescriptor.ValueType} value */
proto.google.api.LabelDescriptor.prototype.setValueType = function(value) {
jspb.Message.setField(this, 2, value);
};
/**
* optional string description = 3;
* @return {string}
*/
proto.google.api.LabelDescriptor.prototype.getDescription = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
};
/** @param {string} value */
proto.google.api.LabelDescriptor.prototype.setDescription = function(value) {
jspb.Message.setField(this, 3, value);
};
/**
* @enum {number}
*/
proto.google.api.LabelDescriptor.ValueType = {
STRING: 0,
BOOL: 1,
INT64: 2
};
goog.object.extend(exports, proto.google.api);

View File

@ -0,0 +1 @@
// GENERATED CODE -- NO SERVICES IN PROTO

18
api/js/google/api/launch_stage_pb.d.ts vendored Normal file
View File

@ -0,0 +1,18 @@
// 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;

View File

@ -0,0 +1,27 @@
/**
* @fileoverview
* @enhanceable
* @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);

1
api/js/google/api/log_grpc_pb.d.ts vendored Normal file
View File

@ -0,0 +1 @@
// GENERATED CODE -- NO SERVICES IN PROTO

40
api/js/google/api/log_pb.d.ts vendored Normal file
View File

@ -0,0 +1,40 @@
// 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<google_api_label_pb.LabelDescriptor>;
setLabelsList(value: Array<google_api_label_pb.LabelDescriptor>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<google_api_label_pb.LabelDescriptor.AsObject>,
description: string,
displayName: string,
}
}

273
api/js/google/api/log_pb.js Normal file
View File

@ -0,0 +1,273 @@
/**
* @fileoverview
* @enhanceable
* @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.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) {
proto.google.api.LogDescriptor.displayName = 'proto.google.api.LogDescriptor';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.google.api.LogDescriptor.repeatedFields_ = [2];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance 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 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}
*/
proto.google.api.LogDescriptor.toObject = function(includeInstance, msg) {
var f, obj = {
name: msg.getName(),
labelsList: jspb.Message.toObjectList(msg.getLabelsList(),
google_api_label_pb.LabelDescriptor.toObject, includeInstance),
description: msg.getDescription(),
displayName: msg.getDisplayName()
};
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.getLabelsList().push(value);
msg.setLabelsList(msg.getLabelsList());
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;
};
/**
* Class method variant: 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
*/
proto.google.api.LogDescriptor.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.api.LogDescriptor.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
return writer.getResultBuffer();
};
/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* @param {!jspb.BinaryWriter} writer
*/
proto.google.api.LogDescriptor.prototype.serializeBinaryToWriter = function (writer) {
var f = undefined;
f = this.getName();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = this.getLabelsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
2,
f,
google_api_label_pb.LabelDescriptor.serializeBinaryToWriter
);
}
f = this.getDescription();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = this.getDisplayName();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
};
/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.api.LogDescriptor} The clone.
*/
proto.google.api.LogDescriptor.prototype.cloneMessage = function() {
return /** @type {!proto.google.api.LogDescriptor} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string name = 1;
* @return {string}
*/
proto.google.api.LogDescriptor.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
};
/** @param {string} value */
proto.google.api.LogDescriptor.prototype.setName = function(value) {
jspb.Message.setField(this, 1, value);
};
/**
* repeated LabelDescriptor labels = 2;
* If you change this array by adding, removing or replacing elements, or if you
* replace the array itself, then you must call the setter to update it.
* @return {!Array.<!proto.google.api.LabelDescriptor>}
*/
proto.google.api.LogDescriptor.prototype.getLabelsList = function() {
return /** @type{!Array.<!proto.google.api.LabelDescriptor>} */ (
jspb.Message.getRepeatedWrapperField(this, google_api_label_pb.LabelDescriptor, 2));
};
/** @param {Array.<!proto.google.api.LabelDescriptor>} value */
proto.google.api.LogDescriptor.prototype.setLabelsList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 2, value);
};
proto.google.api.LogDescriptor.prototype.clearLabelsList = function() {
this.setLabelsList([]);
};
/**
* optional string description = 3;
* @return {string}
*/
proto.google.api.LogDescriptor.prototype.getDescription = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
};
/** @param {string} value */
proto.google.api.LogDescriptor.prototype.setDescription = function(value) {
jspb.Message.setField(this, 3, value);
};
/**
* optional string display_name = 4;
* @return {string}
*/
proto.google.api.LogDescriptor.prototype.getDisplayName = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 4, ""));
};
/** @param {string} value */
proto.google.api.LogDescriptor.prototype.setDisplayName = function(value) {
jspb.Message.setField(this, 4, value);
};
goog.object.extend(exports, proto.google.api);

View File

@ -0,0 +1 @@
// GENERATED CODE -- NO SERVICES IN PROTO

59
api/js/google/api/logging_pb.d.ts vendored Normal file
View File

@ -0,0 +1,59 @@
// package: google.api
// file: google/api/logging.proto
import * as jspb from "google-protobuf";
export class Logging extends jspb.Message {
clearProducerDestinationsList(): void;
getProducerDestinationsList(): Array<Logging.LoggingDestination>;
setProducerDestinationsList(value: Array<Logging.LoggingDestination>): void;
addProducerDestinations(value?: Logging.LoggingDestination, index?: number): Logging.LoggingDestination;
clearConsumerDestinationsList(): void;
getConsumerDestinationsList(): Array<Logging.LoggingDestination>;
setConsumerDestinationsList(value: Array<Logging.LoggingDestination>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<Logging.LoggingDestination.AsObject>,
consumerDestinationsList: Array<Logging.LoggingDestination.AsObject>,
}
export class LoggingDestination extends jspb.Message {
getMonitoredResource(): string;
setMonitoredResource(value: string): void;
clearLogsList(): void;
getLogsList(): Array<string>;
setLogsList(value: Array<string>): 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<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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<string>,
}
}
}

Some files were not shown because too many files have changed in this diff Show More