mirror of
https://github.com/chirpstack/chirpstack.git
synced 2024-12-18 20:57:55 +00:00
Initial commit.
This commit is contained in:
commit
96fe672fc7
7
.docker-compose/postgresql/initdb/0001-init_chirpstack.sh
Executable file
7
.docker-compose/postgresql/initdb/0001-init_chirpstack.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL
|
||||
create role chirpstack with login password 'chirpstack';
|
||||
create database chirpstack with owner chirpstack;
|
||||
EOSQL
|
7
.docker-compose/postgresql/initdb/0002-chirpstack_extensions.sh
Executable file
7
.docker-compose/postgresql/initdb/0002-chirpstack_extensions.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname="chirpstack" <<-EOSQL
|
||||
create extension pg_trgm;
|
||||
create extension hstore;
|
||||
EOSQL
|
7
.docker-compose/postgresql/initdb/0003-init_chirpstack_integration.sh
Executable file
7
.docker-compose/postgresql/initdb/0003-init_chirpstack_integration.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL
|
||||
create role chirpstack_integration with login password 'chirpstack_integration';
|
||||
create database chirpstack_integration with owner chirpstack_integration;
|
||||
EOSQL
|
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname="chirpstack_integration" <<-EOSQL
|
||||
create extension hstore;
|
||||
EOSQL
|
7
.docker-compose/postgresql/initdb/0005-init_chirpstack_test.sh
Executable file
7
.docker-compose/postgresql/initdb/0005-init_chirpstack_test.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL
|
||||
create role chirpstack_test with login password 'chirpstack_test';
|
||||
create database chirpstack_test with owner chirpstack_test;
|
||||
EOSQL
|
7
.docker-compose/postgresql/initdb/0006-chirpstack_test_extensions.sh
Executable file
7
.docker-compose/postgresql/initdb/0006-chirpstack_test_extensions.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname="chirpstack_test" <<-EOSQL
|
||||
create extension pg_trgm;
|
||||
create extension hstore;
|
||||
EOSQL
|
4
.dockerignore
Normal file
4
.dockerignore
Normal file
@ -0,0 +1,4 @@
|
||||
.git
|
||||
**/target
|
||||
**/node_modules
|
||||
Dockerfile
|
35
.github/workflows/main.yml
vendored
Normal file
35
.github/workflows/main.yml
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
name: CI
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '*'
|
||||
tags:
|
||||
- 'v*'
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
-
|
||||
name: Cargo cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
.cargo/registry/index/
|
||||
.cargo/registry/cache/
|
||||
.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
|
||||
|
||||
-
|
||||
name: Build UI
|
||||
run: make build-ui
|
||||
|
||||
-
|
||||
name: Run tests
|
||||
run: make test
|
19
.gitignore
vendored
Normal file
19
.gitignore
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
# hidden files
|
||||
.*
|
||||
|
||||
# Log files
|
||||
*.log
|
||||
|
||||
# Rust target directory
|
||||
**/target
|
||||
|
||||
# Certificates
|
||||
/chirpstack/configuration/certs
|
||||
/chirpstack/configuration/private_*.toml
|
||||
|
||||
# UI
|
||||
/ui/node_modules
|
||||
/ui/build
|
||||
|
||||
# API
|
||||
/api/js/node_modules
|
4303
Cargo.lock
generated
Normal file
4303
Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
15
Cargo.toml
Normal file
15
Cargo.toml
Normal file
@ -0,0 +1,15 @@
|
||||
[workspace]
|
||||
members = [
|
||||
"chirpstack",
|
||||
"lrwn",
|
||||
"backend",
|
||||
"api/rust",
|
||||
]
|
||||
|
||||
[profile.release]
|
||||
opt-level = 'z'
|
||||
lto = true
|
||||
codegen-units = 1
|
||||
|
||||
#[patch.crates-io]
|
||||
#quick-js = { path = "../quickjs-rs" }
|
26
Dockerfile
Normal file
26
Dockerfile
Normal file
@ -0,0 +1,26 @@
|
||||
FROM rust:1.59.0-alpine as development
|
||||
|
||||
ENV PROJECT_PATH=/chirpstack
|
||||
|
||||
# See: https://github.com/diesel-rs/diesel/issues/700
|
||||
ENV RUSTFLAGS="-C target-feature=-crt-static"
|
||||
|
||||
RUN apk --no-cache add \
|
||||
make cmake build-base clang perl protobuf libpq-dev \
|
||||
nodejs npm yarn
|
||||
|
||||
RUN rustup component add rustfmt
|
||||
|
||||
RUN mkdir -p $PROJECT_PATH
|
||||
COPY . $PROJECT_PATH
|
||||
|
||||
RUN cd $PROJECT_PATH/ui && yarn install && yarn build
|
||||
RUN cd $PROJECT_PATH/chirpstack && cargo build --release
|
||||
|
||||
FROM alpine:3.15.0 as production
|
||||
|
||||
run apk --no-cache add ca-certificates tzdata libpq
|
||||
COPY --from=development /chirpstack/target/release/chirpstack /usr/bin/chirpstack
|
||||
COPY --from=development /chirpstack/chirpstack/configuration/* /etc/chirpstack/
|
||||
USER nobody:nogroup
|
||||
ENTRYPOINT ["/usr/bin/chirpstack"]
|
31
Dockerfile-devel
Normal file
31
Dockerfile-devel
Normal file
@ -0,0 +1,31 @@
|
||||
FROM rust:1.59.0-buster
|
||||
|
||||
ENV PROJECT_PATH=/chirpstack
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y \
|
||||
make \
|
||||
cmake \
|
||||
git \
|
||||
bash \
|
||||
screen \
|
||||
postgresql-client \
|
||||
mosquitto-clients \
|
||||
redis-tools \
|
||||
rpm \
|
||||
clang \
|
||||
gcc-arm-linux-gnueabi \
|
||||
g++-arm-linux-gnueabi \
|
||||
gcc-arm-linux-gnueabihf \
|
||||
g++-arm-linux-gnueabihf \
|
||||
gcc-aarch64-linux-gnu \
|
||||
g++-aarch64-linux-gnu \
|
||||
&& apt-get clean
|
||||
|
||||
RUN rustup component add rustfmt clippy
|
||||
RUN cargo install diesel_cli --no-default-features --features postgres
|
||||
RUN cargo install cargo-deb
|
||||
RUN cargo install cargo-rpm
|
||||
|
||||
RUN mkdir -p $PROJECT_PATH
|
||||
WORKDIR $PROJECT_PATH/chirpstack
|
22
LICENSE
Normal file
22
LICENSE
Normal file
@ -0,0 +1,22 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2022 Orne Brocaar
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
34
Makefile
Normal file
34
Makefile
Normal file
@ -0,0 +1,34 @@
|
||||
.PHONY: build-development build-release build-ui devshell devshell-ui test test-server update-images
|
||||
|
||||
# Builds a debug / development binary.
|
||||
build-debug: build-ui
|
||||
docker-compose run --rm chirpstack make debug
|
||||
|
||||
build-release: build-ui
|
||||
docker-compose run --rm chirpstack make release
|
||||
|
||||
# Builds the UI.
|
||||
build-ui:
|
||||
docker-compose run --rm chirpstack-ui make build
|
||||
|
||||
# Enters the devshell for ChirpStack development.
|
||||
devshell:
|
||||
docker-compose run --rm --service-ports chirpstack bash
|
||||
|
||||
# Enters the devshell for ChirpStack UI development.
|
||||
devshell-ui:
|
||||
docker-compose run --rm --service-ports chirpstack-ui bash
|
||||
|
||||
# Runs the tests
|
||||
test:
|
||||
docker-compose run --rm chirpstack make test
|
||||
docker-compose run --rm chirpstack make test-lrwn
|
||||
|
||||
# Starts the ChirpStack server (for testing only).
|
||||
test-server: build-ui
|
||||
docker-compose run --rm --service-ports chirpstack make test-server
|
||||
|
||||
# Update the Docker development images
|
||||
update-images:
|
||||
docker-compose build chirpstack
|
||||
docker-compose build chirpstack-ui
|
31
README.md
Normal file
31
README.md
Normal file
@ -0,0 +1,31 @@
|
||||
# ChirpStack open-source LoRaWAN Network Server
|
||||
|
||||
![CI](https://github.com/chirpstack/chirpstack/actions/workflows/main.yml/badge.svg?branch=master)
|
||||
|
||||
ChirpStack is an open-source LoRaWAN Network Server, part of the
|
||||
[ChirpStack](https://www.chirpstack.io/) project.
|
||||
|
||||
**Note:** this repository contains the source of what is going to be
|
||||
ChirpStack v4. This release merges the ChirpStack Network Server and
|
||||
ChirpStack Application Server components into a single service, making
|
||||
it a lot easier to setup a multi-region ChirpStack instance. This is
|
||||
still work in progress.
|
||||
|
||||
Please refer to the forum announcement for background information:
|
||||
https://forum.chirpstack.io/t/changes-coming-to-chirpstack/13101
|
||||
|
||||
## Testing / building from source
|
||||
|
||||
To build ChirpStack from source, run the following command:
|
||||
|
||||
```bash
|
||||
make test-server
|
||||
```
|
||||
|
||||
Note: this requires a Linux environment With Docker and Docker Compose
|
||||
setup. Pre-compiled (test) binaries will be provided soon.
|
||||
|
||||
## License
|
||||
|
||||
ChirpStack Network Server is distributed under the MIT license. See also
|
||||
[LICENSE](https://github.com/brocaar/chirpstack/blob/master/LICENSE).
|
9
api/Dockerfile-go
Normal file
9
api/Dockerfile-go
Normal file
@ -0,0 +1,9 @@
|
||||
FROM golang:1.18-alpine
|
||||
|
||||
ENV PROJECT_PATH=/chirpstack/api
|
||||
RUN apk add --no-cache make git bash protobuf protobuf-dev
|
||||
|
||||
RUN git clone https://github.com/googleapis/googleapis.git /googleapis
|
||||
|
||||
RUN mkdir -p $PROJECT_PATH
|
||||
WORKDIR $PROJECT_PATH
|
12
api/Dockerfile-grpc-web
Normal file
12
api/Dockerfile-grpc-web
Normal file
@ -0,0 +1,12 @@
|
||||
FROM alpine:3
|
||||
|
||||
ENV PROJECT_PATH=/chirpstack/api
|
||||
RUN apk add --no-cache protobuf protobuf-dev make bash git
|
||||
|
||||
RUN git clone https://github.com/googleapis/googleapis.git /googleapis
|
||||
|
||||
ADD https://github.com/grpc/grpc-web/releases/download/1.2.1/protoc-gen-grpc-web-1.2.1-linux-x86_64 /usr/bin/protoc-gen-grpc-web
|
||||
RUN chmod +x /usr/bin/protoc-gen-grpc-web
|
||||
|
||||
RUN mkdir -p $PROJECT_PATH
|
||||
WORKDIR $PROJECT_PATH
|
9
api/Dockerfile-js
Normal file
9
api/Dockerfile-js
Normal file
@ -0,0 +1,9 @@
|
||||
FROM node:12
|
||||
|
||||
ENV PROJECT_PATH=/chirpstack/api
|
||||
RUN apt update && apt install -y protobuf-compiler libprotobuf-dev git bash
|
||||
|
||||
RUN git clone https://github.com/googleapis/googleapis.git /googleapis
|
||||
|
||||
RUN mkdir -p $PROJECT_PATH
|
||||
WORKDIR $PROJECT_PATH
|
9
api/Dockerfile-python
Normal file
9
api/Dockerfile-python
Normal file
@ -0,0 +1,9 @@
|
||||
FROM python:3.8
|
||||
|
||||
ENV PROJECT_PATH=/chirpstack/api
|
||||
|
||||
RUN git clone https://github.com/protocolbuffers/protobuf.git /protobuf
|
||||
RUN git clone https://github.com/googleapis/googleapis.git /googleapis
|
||||
|
||||
RUN mkdir -p PROJECT_PATH
|
||||
WORKDIR $PROJECT_PATH
|
13
api/Dockerfile-rust
Normal file
13
api/Dockerfile-rust
Normal file
@ -0,0 +1,13 @@
|
||||
FROM rust:1.56
|
||||
|
||||
ENV PROJECT_PATH=/chirpstack/api
|
||||
RUN apt-get update && \
|
||||
apt-get install -y make git bash && \
|
||||
apt-get clean
|
||||
|
||||
RUN git clone https://github.com/googleapis/googleapis.git /googleapis
|
||||
|
||||
RUN rustup component add rustfmt
|
||||
|
||||
RUN mkdir -p $PROJECT_PATH
|
||||
WORKDIR $PROJECT_PATH
|
13
api/Makefile
Normal file
13
api/Makefile
Normal file
@ -0,0 +1,13 @@
|
||||
.PHONY: rust grpc-web go
|
||||
|
||||
all:
|
||||
docker-compose up
|
||||
|
||||
rust:
|
||||
docker-compose run --rm chirpstack-api-rust
|
||||
|
||||
grpc-web:
|
||||
docker-compose run --rm chirpstack-api-grpc-web
|
||||
|
||||
go:
|
||||
docker-compose run --rm chirpstack-api-go
|
45
api/docker-compose.yml
Normal file
45
api/docker-compose.yml
Normal file
@ -0,0 +1,45 @@
|
||||
version: "2"
|
||||
services:
|
||||
chirpstack-api-rust:
|
||||
environment:
|
||||
- VERSION=4.0.0
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile-rust
|
||||
command: bash -c "cd rust && make all"
|
||||
volumes:
|
||||
- ./:/chirpstack/api
|
||||
chirpstack-api-go:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile-go
|
||||
command: bash -c "cd go && make all"
|
||||
volumes:
|
||||
- ./:/chirpstack/api
|
||||
chirpstack-api-grpc-web:
|
||||
environment:
|
||||
- VERSION=4.0.0
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile-grpc-web
|
||||
command: bash -c "cd grpc-web && make all"
|
||||
volumes:
|
||||
- ./:/chirpstack/api
|
||||
chirpstack-api-js:
|
||||
environment:
|
||||
- VERSION=4.0.0
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile-js
|
||||
command: bash -c "cd js && make all"
|
||||
volumes:
|
||||
- ./:/chirpstack/api
|
||||
chirpstack-api-python:
|
||||
environment:
|
||||
- VERSION=4.0.0
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile-python
|
||||
command: bash -c "cd js && make all"
|
||||
volumes:
|
||||
- ./:/chirpstack/api
|
33
api/go/Makefile
Normal file
33
api/go/Makefile
Normal file
@ -0,0 +1,33 @@
|
||||
.PHONY: requirements common gw api integration meta
|
||||
|
||||
PROTOC_ARGS := -I=/googleapis -I=../proto --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative
|
||||
|
||||
all: requirements common gw api integration meta
|
||||
|
||||
requirements:
|
||||
go mod download
|
||||
go install google.golang.org/protobuf/cmd/protoc-gen-go
|
||||
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc
|
||||
|
||||
common:
|
||||
protoc ${PROTOC_ARGS} common/common.proto
|
||||
|
||||
gw:
|
||||
protoc ${PROTOC_ARGS} gw/gw.proto
|
||||
|
||||
api:
|
||||
protoc ${PROTOC_ARGS} api/internal.proto
|
||||
protoc ${PROTOC_ARGS} api/user.proto
|
||||
protoc ${PROTOC_ARGS} api/tenant.proto
|
||||
protoc ${PROTOC_ARGS} api/application.proto
|
||||
protoc ${PROTOC_ARGS} api/device_profile.proto
|
||||
protoc ${PROTOC_ARGS} api/device.proto
|
||||
protoc ${PROTOC_ARGS} api/gateway.proto
|
||||
protoc ${PROTOC_ARGS} api/frame_log.proto
|
||||
protoc ${PROTOC_ARGS} api/multicast_group.proto
|
||||
|
||||
integration:
|
||||
protoc ${PROTOC_ARGS} integration/integration.proto
|
||||
|
||||
meta:
|
||||
protoc ${PROTOC_ARGS} meta/meta.proto
|
6082
api/go/api/application.pb.go
Normal file
6082
api/go/api/application.pb.go
Normal file
File diff suppressed because it is too large
Load Diff
1704
api/go/api/application_grpc.pb.go
Normal file
1704
api/go/api/application_grpc.pb.go
Normal file
File diff suppressed because it is too large
Load Diff
3059
api/go/api/device.pb.go
Normal file
3059
api/go/api/device.pb.go
Normal file
File diff suppressed because it is too large
Load Diff
754
api/go/api/device_grpc.pb.go
Normal file
754
api/go/api/device_grpc.pb.go
Normal file
@ -0,0 +1,754 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.2.0
|
||||
// - protoc v3.18.1
|
||||
// source: api/device.proto
|
||||
|
||||
package v4
|
||||
|
||||
import (
|
||||
context "context"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||
)
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
// Requires gRPC-Go v1.32.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion7
|
||||
|
||||
// DeviceServiceClient is the client API for DeviceService service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||
type DeviceServiceClient interface {
|
||||
// Create the given device.
|
||||
Create(ctx context.Context, in *CreateDeviceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// Get returns the device for the given DevEUI.
|
||||
Get(ctx context.Context, in *GetDeviceRequest, opts ...grpc.CallOption) (*GetDeviceResponse, error)
|
||||
// Update the given device.
|
||||
Update(ctx context.Context, in *UpdateDeviceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// Delete the device with the given DevEUI.
|
||||
Delete(ctx context.Context, in *DeleteDeviceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// Get the list of devices.
|
||||
List(ctx context.Context, in *ListDevicesRequest, opts ...grpc.CallOption) (*ListDevicesResponse, error)
|
||||
// Create the given device-keys.
|
||||
CreateKeys(ctx context.Context, in *CreateDeviceKeysRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// Get the device-keys for the given DevEUI.
|
||||
GetKeys(ctx context.Context, in *GetDeviceKeysRequest, opts ...grpc.CallOption) (*GetDeviceKeysResponse, error)
|
||||
// Update the given device-keys.
|
||||
UpdateKeys(ctx context.Context, in *UpdateDeviceKeysRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// Delete the device-keys for the given DevEUI.
|
||||
DeleteKeys(ctx context.Context, in *DeleteDeviceKeysRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// FlushDevNonces flushes the OTAA device nonces.
|
||||
FlushDevNonces(ctx context.Context, in *FlushDevNoncesRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// Activate (re)activates the device with the given parameters (for ABP or for importing OTAA activations).
|
||||
Activate(ctx context.Context, in *ActivateDeviceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// Deactivate de-activates the device.
|
||||
Deactivate(ctx context.Context, in *DeactivateDeviceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// GetActivation returns the current activation details of the device (OTAA or ABP).
|
||||
GetActivation(ctx context.Context, in *GetDeviceActivationRequest, opts ...grpc.CallOption) (*GetDeviceActivationResponse, error)
|
||||
// GetRandomDevAddr returns a random DevAddr taking the NwkID prefix into account.
|
||||
GetRandomDevAddr(ctx context.Context, in *GetRandomDevAddrRequest, opts ...grpc.CallOption) (*GetRandomDevAddrResponse, error)
|
||||
// GetStats returns the device stats.
|
||||
GetStats(ctx context.Context, in *GetDeviceStatsRequest, opts ...grpc.CallOption) (*GetDeviceStatsResponse, error)
|
||||
// Enqueue adds the given item to the downlink queue.
|
||||
Enqueue(ctx context.Context, in *EnqueueDeviceQueueItemRequest, opts ...grpc.CallOption) (*EnqueueDeviceQueueItemResponse, error)
|
||||
// FlushQueue flushes the downlink device-queue.
|
||||
FlushQueue(ctx context.Context, in *FlushDeviceQueueRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// GetQueue returns the downlink device-queue.
|
||||
GetQueue(ctx context.Context, in *GetDeviceQueueItemsRequest, opts ...grpc.CallOption) (*GetDeviceQueueItemsResponse, error)
|
||||
}
|
||||
|
||||
type deviceServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewDeviceServiceClient(cc grpc.ClientConnInterface) DeviceServiceClient {
|
||||
return &deviceServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *deviceServiceClient) Create(ctx context.Context, in *CreateDeviceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.DeviceService/Create", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *deviceServiceClient) Get(ctx context.Context, in *GetDeviceRequest, opts ...grpc.CallOption) (*GetDeviceResponse, error) {
|
||||
out := new(GetDeviceResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.DeviceService/Get", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *deviceServiceClient) Update(ctx context.Context, in *UpdateDeviceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.DeviceService/Update", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *deviceServiceClient) Delete(ctx context.Context, in *DeleteDeviceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.DeviceService/Delete", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *deviceServiceClient) List(ctx context.Context, in *ListDevicesRequest, opts ...grpc.CallOption) (*ListDevicesResponse, error) {
|
||||
out := new(ListDevicesResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.DeviceService/List", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *deviceServiceClient) CreateKeys(ctx context.Context, in *CreateDeviceKeysRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.DeviceService/CreateKeys", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *deviceServiceClient) GetKeys(ctx context.Context, in *GetDeviceKeysRequest, opts ...grpc.CallOption) (*GetDeviceKeysResponse, error) {
|
||||
out := new(GetDeviceKeysResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.DeviceService/GetKeys", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *deviceServiceClient) UpdateKeys(ctx context.Context, in *UpdateDeviceKeysRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.DeviceService/UpdateKeys", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *deviceServiceClient) DeleteKeys(ctx context.Context, in *DeleteDeviceKeysRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.DeviceService/DeleteKeys", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *deviceServiceClient) FlushDevNonces(ctx context.Context, in *FlushDevNoncesRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.DeviceService/FlushDevNonces", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *deviceServiceClient) Activate(ctx context.Context, in *ActivateDeviceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.DeviceService/Activate", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *deviceServiceClient) Deactivate(ctx context.Context, in *DeactivateDeviceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.DeviceService/Deactivate", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *deviceServiceClient) GetActivation(ctx context.Context, in *GetDeviceActivationRequest, opts ...grpc.CallOption) (*GetDeviceActivationResponse, error) {
|
||||
out := new(GetDeviceActivationResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.DeviceService/GetActivation", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *deviceServiceClient) GetRandomDevAddr(ctx context.Context, in *GetRandomDevAddrRequest, opts ...grpc.CallOption) (*GetRandomDevAddrResponse, error) {
|
||||
out := new(GetRandomDevAddrResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.DeviceService/GetRandomDevAddr", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *deviceServiceClient) GetStats(ctx context.Context, in *GetDeviceStatsRequest, opts ...grpc.CallOption) (*GetDeviceStatsResponse, error) {
|
||||
out := new(GetDeviceStatsResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.DeviceService/GetStats", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *deviceServiceClient) Enqueue(ctx context.Context, in *EnqueueDeviceQueueItemRequest, opts ...grpc.CallOption) (*EnqueueDeviceQueueItemResponse, error) {
|
||||
out := new(EnqueueDeviceQueueItemResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.DeviceService/Enqueue", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *deviceServiceClient) FlushQueue(ctx context.Context, in *FlushDeviceQueueRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.DeviceService/FlushQueue", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *deviceServiceClient) GetQueue(ctx context.Context, in *GetDeviceQueueItemsRequest, opts ...grpc.CallOption) (*GetDeviceQueueItemsResponse, error) {
|
||||
out := new(GetDeviceQueueItemsResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.DeviceService/GetQueue", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// DeviceServiceServer is the server API for DeviceService service.
|
||||
// All implementations must embed UnimplementedDeviceServiceServer
|
||||
// for forward compatibility
|
||||
type DeviceServiceServer interface {
|
||||
// Create the given device.
|
||||
Create(context.Context, *CreateDeviceRequest) (*emptypb.Empty, error)
|
||||
// Get returns the device for the given DevEUI.
|
||||
Get(context.Context, *GetDeviceRequest) (*GetDeviceResponse, error)
|
||||
// Update the given device.
|
||||
Update(context.Context, *UpdateDeviceRequest) (*emptypb.Empty, error)
|
||||
// Delete the device with the given DevEUI.
|
||||
Delete(context.Context, *DeleteDeviceRequest) (*emptypb.Empty, error)
|
||||
// Get the list of devices.
|
||||
List(context.Context, *ListDevicesRequest) (*ListDevicesResponse, error)
|
||||
// Create the given device-keys.
|
||||
CreateKeys(context.Context, *CreateDeviceKeysRequest) (*emptypb.Empty, error)
|
||||
// Get the device-keys for the given DevEUI.
|
||||
GetKeys(context.Context, *GetDeviceKeysRequest) (*GetDeviceKeysResponse, error)
|
||||
// Update the given device-keys.
|
||||
UpdateKeys(context.Context, *UpdateDeviceKeysRequest) (*emptypb.Empty, error)
|
||||
// Delete the device-keys for the given DevEUI.
|
||||
DeleteKeys(context.Context, *DeleteDeviceKeysRequest) (*emptypb.Empty, error)
|
||||
// FlushDevNonces flushes the OTAA device nonces.
|
||||
FlushDevNonces(context.Context, *FlushDevNoncesRequest) (*emptypb.Empty, error)
|
||||
// Activate (re)activates the device with the given parameters (for ABP or for importing OTAA activations).
|
||||
Activate(context.Context, *ActivateDeviceRequest) (*emptypb.Empty, error)
|
||||
// Deactivate de-activates the device.
|
||||
Deactivate(context.Context, *DeactivateDeviceRequest) (*emptypb.Empty, error)
|
||||
// GetActivation returns the current activation details of the device (OTAA or ABP).
|
||||
GetActivation(context.Context, *GetDeviceActivationRequest) (*GetDeviceActivationResponse, error)
|
||||
// GetRandomDevAddr returns a random DevAddr taking the NwkID prefix into account.
|
||||
GetRandomDevAddr(context.Context, *GetRandomDevAddrRequest) (*GetRandomDevAddrResponse, error)
|
||||
// GetStats returns the device stats.
|
||||
GetStats(context.Context, *GetDeviceStatsRequest) (*GetDeviceStatsResponse, error)
|
||||
// Enqueue adds the given item to the downlink queue.
|
||||
Enqueue(context.Context, *EnqueueDeviceQueueItemRequest) (*EnqueueDeviceQueueItemResponse, error)
|
||||
// FlushQueue flushes the downlink device-queue.
|
||||
FlushQueue(context.Context, *FlushDeviceQueueRequest) (*emptypb.Empty, error)
|
||||
// GetQueue returns the downlink device-queue.
|
||||
GetQueue(context.Context, *GetDeviceQueueItemsRequest) (*GetDeviceQueueItemsResponse, error)
|
||||
mustEmbedUnimplementedDeviceServiceServer()
|
||||
}
|
||||
|
||||
// UnimplementedDeviceServiceServer must be embedded to have forward compatible implementations.
|
||||
type UnimplementedDeviceServiceServer struct {
|
||||
}
|
||||
|
||||
func (UnimplementedDeviceServiceServer) Create(context.Context, *CreateDeviceRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
|
||||
}
|
||||
func (UnimplementedDeviceServiceServer) Get(context.Context, *GetDeviceRequest) (*GetDeviceResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
|
||||
}
|
||||
func (UnimplementedDeviceServiceServer) Update(context.Context, *UpdateDeviceRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
|
||||
}
|
||||
func (UnimplementedDeviceServiceServer) Delete(context.Context, *DeleteDeviceRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
||||
}
|
||||
func (UnimplementedDeviceServiceServer) List(context.Context, *ListDevicesRequest) (*ListDevicesResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
|
||||
}
|
||||
func (UnimplementedDeviceServiceServer) CreateKeys(context.Context, *CreateDeviceKeysRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CreateKeys not implemented")
|
||||
}
|
||||
func (UnimplementedDeviceServiceServer) GetKeys(context.Context, *GetDeviceKeysRequest) (*GetDeviceKeysResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetKeys not implemented")
|
||||
}
|
||||
func (UnimplementedDeviceServiceServer) UpdateKeys(context.Context, *UpdateDeviceKeysRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateKeys not implemented")
|
||||
}
|
||||
func (UnimplementedDeviceServiceServer) DeleteKeys(context.Context, *DeleteDeviceKeysRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DeleteKeys not implemented")
|
||||
}
|
||||
func (UnimplementedDeviceServiceServer) FlushDevNonces(context.Context, *FlushDevNoncesRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method FlushDevNonces not implemented")
|
||||
}
|
||||
func (UnimplementedDeviceServiceServer) Activate(context.Context, *ActivateDeviceRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Activate not implemented")
|
||||
}
|
||||
func (UnimplementedDeviceServiceServer) Deactivate(context.Context, *DeactivateDeviceRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Deactivate not implemented")
|
||||
}
|
||||
func (UnimplementedDeviceServiceServer) GetActivation(context.Context, *GetDeviceActivationRequest) (*GetDeviceActivationResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetActivation not implemented")
|
||||
}
|
||||
func (UnimplementedDeviceServiceServer) GetRandomDevAddr(context.Context, *GetRandomDevAddrRequest) (*GetRandomDevAddrResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetRandomDevAddr not implemented")
|
||||
}
|
||||
func (UnimplementedDeviceServiceServer) GetStats(context.Context, *GetDeviceStatsRequest) (*GetDeviceStatsResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetStats not implemented")
|
||||
}
|
||||
func (UnimplementedDeviceServiceServer) Enqueue(context.Context, *EnqueueDeviceQueueItemRequest) (*EnqueueDeviceQueueItemResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Enqueue not implemented")
|
||||
}
|
||||
func (UnimplementedDeviceServiceServer) FlushQueue(context.Context, *FlushDeviceQueueRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method FlushQueue not implemented")
|
||||
}
|
||||
func (UnimplementedDeviceServiceServer) GetQueue(context.Context, *GetDeviceQueueItemsRequest) (*GetDeviceQueueItemsResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetQueue not implemented")
|
||||
}
|
||||
func (UnimplementedDeviceServiceServer) mustEmbedUnimplementedDeviceServiceServer() {}
|
||||
|
||||
// UnsafeDeviceServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to DeviceServiceServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeDeviceServiceServer interface {
|
||||
mustEmbedUnimplementedDeviceServiceServer()
|
||||
}
|
||||
|
||||
func RegisterDeviceServiceServer(s grpc.ServiceRegistrar, srv DeviceServiceServer) {
|
||||
s.RegisterService(&DeviceService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _DeviceService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateDeviceRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DeviceServiceServer).Create(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.DeviceService/Create",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DeviceServiceServer).Create(ctx, req.(*CreateDeviceRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _DeviceService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetDeviceRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DeviceServiceServer).Get(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.DeviceService/Get",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DeviceServiceServer).Get(ctx, req.(*GetDeviceRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _DeviceService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateDeviceRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DeviceServiceServer).Update(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.DeviceService/Update",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DeviceServiceServer).Update(ctx, req.(*UpdateDeviceRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _DeviceService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteDeviceRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DeviceServiceServer).Delete(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.DeviceService/Delete",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DeviceServiceServer).Delete(ctx, req.(*DeleteDeviceRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _DeviceService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListDevicesRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DeviceServiceServer).List(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.DeviceService/List",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DeviceServiceServer).List(ctx, req.(*ListDevicesRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _DeviceService_CreateKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateDeviceKeysRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DeviceServiceServer).CreateKeys(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.DeviceService/CreateKeys",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DeviceServiceServer).CreateKeys(ctx, req.(*CreateDeviceKeysRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _DeviceService_GetKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetDeviceKeysRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DeviceServiceServer).GetKeys(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.DeviceService/GetKeys",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DeviceServiceServer).GetKeys(ctx, req.(*GetDeviceKeysRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _DeviceService_UpdateKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateDeviceKeysRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DeviceServiceServer).UpdateKeys(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.DeviceService/UpdateKeys",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DeviceServiceServer).UpdateKeys(ctx, req.(*UpdateDeviceKeysRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _DeviceService_DeleteKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteDeviceKeysRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DeviceServiceServer).DeleteKeys(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.DeviceService/DeleteKeys",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DeviceServiceServer).DeleteKeys(ctx, req.(*DeleteDeviceKeysRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _DeviceService_FlushDevNonces_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(FlushDevNoncesRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DeviceServiceServer).FlushDevNonces(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.DeviceService/FlushDevNonces",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DeviceServiceServer).FlushDevNonces(ctx, req.(*FlushDevNoncesRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _DeviceService_Activate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ActivateDeviceRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DeviceServiceServer).Activate(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.DeviceService/Activate",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DeviceServiceServer).Activate(ctx, req.(*ActivateDeviceRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _DeviceService_Deactivate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeactivateDeviceRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DeviceServiceServer).Deactivate(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.DeviceService/Deactivate",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DeviceServiceServer).Deactivate(ctx, req.(*DeactivateDeviceRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _DeviceService_GetActivation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetDeviceActivationRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DeviceServiceServer).GetActivation(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.DeviceService/GetActivation",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DeviceServiceServer).GetActivation(ctx, req.(*GetDeviceActivationRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _DeviceService_GetRandomDevAddr_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetRandomDevAddrRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DeviceServiceServer).GetRandomDevAddr(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.DeviceService/GetRandomDevAddr",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DeviceServiceServer).GetRandomDevAddr(ctx, req.(*GetRandomDevAddrRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _DeviceService_GetStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetDeviceStatsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DeviceServiceServer).GetStats(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.DeviceService/GetStats",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DeviceServiceServer).GetStats(ctx, req.(*GetDeviceStatsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _DeviceService_Enqueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(EnqueueDeviceQueueItemRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DeviceServiceServer).Enqueue(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.DeviceService/Enqueue",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DeviceServiceServer).Enqueue(ctx, req.(*EnqueueDeviceQueueItemRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _DeviceService_FlushQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(FlushDeviceQueueRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DeviceServiceServer).FlushQueue(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.DeviceService/FlushQueue",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DeviceServiceServer).FlushQueue(ctx, req.(*FlushDeviceQueueRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _DeviceService_GetQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetDeviceQueueItemsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DeviceServiceServer).GetQueue(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.DeviceService/GetQueue",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DeviceServiceServer).GetQueue(ctx, req.(*GetDeviceQueueItemsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// DeviceService_ServiceDesc is the grpc.ServiceDesc for DeviceService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var DeviceService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "api.DeviceService",
|
||||
HandlerType: (*DeviceServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "Create",
|
||||
Handler: _DeviceService_Create_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Get",
|
||||
Handler: _DeviceService_Get_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Update",
|
||||
Handler: _DeviceService_Update_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Delete",
|
||||
Handler: _DeviceService_Delete_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "List",
|
||||
Handler: _DeviceService_List_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "CreateKeys",
|
||||
Handler: _DeviceService_CreateKeys_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetKeys",
|
||||
Handler: _DeviceService_GetKeys_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdateKeys",
|
||||
Handler: _DeviceService_UpdateKeys_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "DeleteKeys",
|
||||
Handler: _DeviceService_DeleteKeys_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "FlushDevNonces",
|
||||
Handler: _DeviceService_FlushDevNonces_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Activate",
|
||||
Handler: _DeviceService_Activate_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Deactivate",
|
||||
Handler: _DeviceService_Deactivate_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetActivation",
|
||||
Handler: _DeviceService_GetActivation_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetRandomDevAddr",
|
||||
Handler: _DeviceService_GetRandomDevAddr_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetStats",
|
||||
Handler: _DeviceService_GetStats_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Enqueue",
|
||||
Handler: _DeviceService_Enqueue_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "FlushQueue",
|
||||
Handler: _DeviceService_FlushQueue_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetQueue",
|
||||
Handler: _DeviceService_GetQueue_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "api/device.proto",
|
||||
}
|
1487
api/go/api/device_profile.pb.go
Normal file
1487
api/go/api/device_profile.pb.go
Normal file
File diff suppressed because it is too large
Load Diff
298
api/go/api/device_profile_grpc.pb.go
Normal file
298
api/go/api/device_profile_grpc.pb.go
Normal file
@ -0,0 +1,298 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.2.0
|
||||
// - protoc v3.18.1
|
||||
// source: api/device_profile.proto
|
||||
|
||||
package v4
|
||||
|
||||
import (
|
||||
context "context"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||
)
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
// Requires gRPC-Go v1.32.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion7
|
||||
|
||||
// DeviceProfileServiceClient is the client API for DeviceProfileService service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||
type DeviceProfileServiceClient interface {
|
||||
// Create the given device-profile.
|
||||
Create(ctx context.Context, in *CreateDeviceProfileRequest, opts ...grpc.CallOption) (*CreateDeviceProfileResponse, error)
|
||||
// Get the device-profile for the given ID.
|
||||
Get(ctx context.Context, in *GetDeviceProfileRequest, opts ...grpc.CallOption) (*GetDeviceProfileResponse, error)
|
||||
// Update the given device-profile.
|
||||
Update(ctx context.Context, in *UpdateDeviceProfileRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// Delete the device-profile with the given ID.
|
||||
Delete(ctx context.Context, in *DeleteDeviceProfileRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// List the available device-profiles.
|
||||
List(ctx context.Context, in *ListDeviceProfilesRequest, opts ...grpc.CallOption) (*ListDeviceProfilesResponse, error)
|
||||
// List available ADR algorithms.
|
||||
ListAdrAlgorithms(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListDeviceProfileAdrAlgorithmsResponse, error)
|
||||
}
|
||||
|
||||
type deviceProfileServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewDeviceProfileServiceClient(cc grpc.ClientConnInterface) DeviceProfileServiceClient {
|
||||
return &deviceProfileServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *deviceProfileServiceClient) Create(ctx context.Context, in *CreateDeviceProfileRequest, opts ...grpc.CallOption) (*CreateDeviceProfileResponse, error) {
|
||||
out := new(CreateDeviceProfileResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.DeviceProfileService/Create", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *deviceProfileServiceClient) Get(ctx context.Context, in *GetDeviceProfileRequest, opts ...grpc.CallOption) (*GetDeviceProfileResponse, error) {
|
||||
out := new(GetDeviceProfileResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.DeviceProfileService/Get", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *deviceProfileServiceClient) Update(ctx context.Context, in *UpdateDeviceProfileRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.DeviceProfileService/Update", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *deviceProfileServiceClient) Delete(ctx context.Context, in *DeleteDeviceProfileRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.DeviceProfileService/Delete", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *deviceProfileServiceClient) List(ctx context.Context, in *ListDeviceProfilesRequest, opts ...grpc.CallOption) (*ListDeviceProfilesResponse, error) {
|
||||
out := new(ListDeviceProfilesResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.DeviceProfileService/List", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *deviceProfileServiceClient) ListAdrAlgorithms(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListDeviceProfileAdrAlgorithmsResponse, error) {
|
||||
out := new(ListDeviceProfileAdrAlgorithmsResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.DeviceProfileService/ListAdrAlgorithms", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// DeviceProfileServiceServer is the server API for DeviceProfileService service.
|
||||
// All implementations must embed UnimplementedDeviceProfileServiceServer
|
||||
// for forward compatibility
|
||||
type DeviceProfileServiceServer interface {
|
||||
// Create the given device-profile.
|
||||
Create(context.Context, *CreateDeviceProfileRequest) (*CreateDeviceProfileResponse, error)
|
||||
// Get the device-profile for the given ID.
|
||||
Get(context.Context, *GetDeviceProfileRequest) (*GetDeviceProfileResponse, error)
|
||||
// Update the given device-profile.
|
||||
Update(context.Context, *UpdateDeviceProfileRequest) (*emptypb.Empty, error)
|
||||
// Delete the device-profile with the given ID.
|
||||
Delete(context.Context, *DeleteDeviceProfileRequest) (*emptypb.Empty, error)
|
||||
// List the available device-profiles.
|
||||
List(context.Context, *ListDeviceProfilesRequest) (*ListDeviceProfilesResponse, error)
|
||||
// List available ADR algorithms.
|
||||
ListAdrAlgorithms(context.Context, *emptypb.Empty) (*ListDeviceProfileAdrAlgorithmsResponse, error)
|
||||
mustEmbedUnimplementedDeviceProfileServiceServer()
|
||||
}
|
||||
|
||||
// UnimplementedDeviceProfileServiceServer must be embedded to have forward compatible implementations.
|
||||
type UnimplementedDeviceProfileServiceServer struct {
|
||||
}
|
||||
|
||||
func (UnimplementedDeviceProfileServiceServer) Create(context.Context, *CreateDeviceProfileRequest) (*CreateDeviceProfileResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
|
||||
}
|
||||
func (UnimplementedDeviceProfileServiceServer) Get(context.Context, *GetDeviceProfileRequest) (*GetDeviceProfileResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
|
||||
}
|
||||
func (UnimplementedDeviceProfileServiceServer) Update(context.Context, *UpdateDeviceProfileRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
|
||||
}
|
||||
func (UnimplementedDeviceProfileServiceServer) Delete(context.Context, *DeleteDeviceProfileRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
||||
}
|
||||
func (UnimplementedDeviceProfileServiceServer) List(context.Context, *ListDeviceProfilesRequest) (*ListDeviceProfilesResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
|
||||
}
|
||||
func (UnimplementedDeviceProfileServiceServer) ListAdrAlgorithms(context.Context, *emptypb.Empty) (*ListDeviceProfileAdrAlgorithmsResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ListAdrAlgorithms not implemented")
|
||||
}
|
||||
func (UnimplementedDeviceProfileServiceServer) mustEmbedUnimplementedDeviceProfileServiceServer() {}
|
||||
|
||||
// UnsafeDeviceProfileServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to DeviceProfileServiceServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeDeviceProfileServiceServer interface {
|
||||
mustEmbedUnimplementedDeviceProfileServiceServer()
|
||||
}
|
||||
|
||||
func RegisterDeviceProfileServiceServer(s grpc.ServiceRegistrar, srv DeviceProfileServiceServer) {
|
||||
s.RegisterService(&DeviceProfileService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _DeviceProfileService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateDeviceProfileRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DeviceProfileServiceServer).Create(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.DeviceProfileService/Create",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DeviceProfileServiceServer).Create(ctx, req.(*CreateDeviceProfileRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _DeviceProfileService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetDeviceProfileRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DeviceProfileServiceServer).Get(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.DeviceProfileService/Get",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DeviceProfileServiceServer).Get(ctx, req.(*GetDeviceProfileRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _DeviceProfileService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateDeviceProfileRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DeviceProfileServiceServer).Update(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.DeviceProfileService/Update",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DeviceProfileServiceServer).Update(ctx, req.(*UpdateDeviceProfileRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _DeviceProfileService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteDeviceProfileRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DeviceProfileServiceServer).Delete(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.DeviceProfileService/Delete",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DeviceProfileServiceServer).Delete(ctx, req.(*DeleteDeviceProfileRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _DeviceProfileService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListDeviceProfilesRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DeviceProfileServiceServer).List(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.DeviceProfileService/List",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DeviceProfileServiceServer).List(ctx, req.(*ListDeviceProfilesRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _DeviceProfileService_ListAdrAlgorithms_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(emptypb.Empty)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DeviceProfileServiceServer).ListAdrAlgorithms(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.DeviceProfileService/ListAdrAlgorithms",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DeviceProfileServiceServer).ListAdrAlgorithms(ctx, req.(*emptypb.Empty))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// DeviceProfileService_ServiceDesc is the grpc.ServiceDesc for DeviceProfileService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var DeviceProfileService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "api.DeviceProfileService",
|
||||
HandlerType: (*DeviceProfileServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "Create",
|
||||
Handler: _DeviceProfileService_Create_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Get",
|
||||
Handler: _DeviceProfileService_Get_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Update",
|
||||
Handler: _DeviceProfileService_Update_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Delete",
|
||||
Handler: _DeviceProfileService_Delete_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "List",
|
||||
Handler: _DeviceProfileService_List_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ListAdrAlgorithms",
|
||||
Handler: _DeviceProfileService_ListAdrAlgorithms_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "api/device_profile.proto",
|
||||
}
|
378
api/go/api/frame_log.pb.go
Normal file
378
api/go/api/frame_log.pb.go
Normal file
@ -0,0 +1,378 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.28.0
|
||||
// protoc v3.18.1
|
||||
// source: api/frame_log.proto
|
||||
|
||||
package v4
|
||||
|
||||
import (
|
||||
gw "github.com/chirpstack/chirpstack-api/go/v4/gw"
|
||||
common "github.com/chirpstack/chirpstack/api/go/v4/common"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type UplinkFrameLog struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// PHYPayload.
|
||||
PhyPayload []byte `protobuf:"bytes,1,opt,name=phy_payload,json=phyPayload,proto3" json:"phy_payload,omitempty"`
|
||||
// TX meta-data.
|
||||
TxInfo *gw.UplinkTXInfo `protobuf:"bytes,2,opt,name=tx_info,json=txInfo,proto3" json:"tx_info,omitempty"`
|
||||
// RX meta-data.
|
||||
RxInfo []*gw.UplinkRXInfo `protobuf:"bytes,3,rep,name=rx_info,json=rxInfo,proto3" json:"rx_info,omitempty"`
|
||||
// Message type.
|
||||
MType common.MType `protobuf:"varint,4,opt,name=m_type,json=mType,proto3,enum=common.MType" json:"m_type,omitempty"`
|
||||
// Device address (optional).
|
||||
DevAddr string `protobuf:"bytes,5,opt,name=dev_addr,json=devAddr,proto3" json:"dev_addr,omitempty"`
|
||||
// Device EUI (optional).
|
||||
DevEui string `protobuf:"bytes,6,opt,name=dev_eui,json=devEui,proto3" json:"dev_eui,omitempty"`
|
||||
// Time.
|
||||
Time *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=time,proto3" json:"time,omitempty"`
|
||||
}
|
||||
|
||||
func (x *UplinkFrameLog) Reset() {
|
||||
*x = UplinkFrameLog{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_api_frame_log_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *UplinkFrameLog) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UplinkFrameLog) ProtoMessage() {}
|
||||
|
||||
func (x *UplinkFrameLog) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_api_frame_log_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use UplinkFrameLog.ProtoReflect.Descriptor instead.
|
||||
func (*UplinkFrameLog) Descriptor() ([]byte, []int) {
|
||||
return file_api_frame_log_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *UplinkFrameLog) GetPhyPayload() []byte {
|
||||
if x != nil {
|
||||
return x.PhyPayload
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *UplinkFrameLog) GetTxInfo() *gw.UplinkTXInfo {
|
||||
if x != nil {
|
||||
return x.TxInfo
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *UplinkFrameLog) GetRxInfo() []*gw.UplinkRXInfo {
|
||||
if x != nil {
|
||||
return x.RxInfo
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *UplinkFrameLog) GetMType() common.MType {
|
||||
if x != nil {
|
||||
return x.MType
|
||||
}
|
||||
return common.MType(0)
|
||||
}
|
||||
|
||||
func (x *UplinkFrameLog) GetDevAddr() string {
|
||||
if x != nil {
|
||||
return x.DevAddr
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UplinkFrameLog) GetDevEui() string {
|
||||
if x != nil {
|
||||
return x.DevEui
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UplinkFrameLog) GetTime() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.Time
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type DownlinkFrameLog struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// Time.
|
||||
Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
|
||||
// PHYPayload.
|
||||
PhyPayload []byte `protobuf:"bytes,2,opt,name=phy_payload,json=phyPayload,proto3" json:"phy_payload,omitempty"`
|
||||
// TX meta-data.
|
||||
TxInfo *gw.DownlinkTXInfo `protobuf:"bytes,3,opt,name=tx_info,json=txInfo,proto3" json:"tx_info,omitempty"`
|
||||
// Downlink ID (UUID).
|
||||
DownlinkId string `protobuf:"bytes,4,opt,name=downlink_id,json=downlinkId,proto3" json:"downlink_id,omitempty"`
|
||||
// Gateway ID (EUI64).
|
||||
GatewayId string `protobuf:"bytes,5,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"`
|
||||
// Message type.
|
||||
MType common.MType `protobuf:"varint,6,opt,name=m_type,json=mType,proto3,enum=common.MType" json:"m_type,omitempty"`
|
||||
// Device address (optional).
|
||||
DevAddr string `protobuf:"bytes,7,opt,name=dev_addr,json=devAddr,proto3" json:"dev_addr,omitempty"`
|
||||
// Device EUI (optional).
|
||||
DevEui string `protobuf:"bytes,8,opt,name=dev_eui,json=devEui,proto3" json:"dev_eui,omitempty"`
|
||||
}
|
||||
|
||||
func (x *DownlinkFrameLog) Reset() {
|
||||
*x = DownlinkFrameLog{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_api_frame_log_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *DownlinkFrameLog) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*DownlinkFrameLog) ProtoMessage() {}
|
||||
|
||||
func (x *DownlinkFrameLog) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_api_frame_log_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use DownlinkFrameLog.ProtoReflect.Descriptor instead.
|
||||
func (*DownlinkFrameLog) Descriptor() ([]byte, []int) {
|
||||
return file_api_frame_log_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *DownlinkFrameLog) GetTime() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.Time
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DownlinkFrameLog) GetPhyPayload() []byte {
|
||||
if x != nil {
|
||||
return x.PhyPayload
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DownlinkFrameLog) GetTxInfo() *gw.DownlinkTXInfo {
|
||||
if x != nil {
|
||||
return x.TxInfo
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DownlinkFrameLog) GetDownlinkId() string {
|
||||
if x != nil {
|
||||
return x.DownlinkId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *DownlinkFrameLog) GetGatewayId() string {
|
||||
if x != nil {
|
||||
return x.GatewayId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *DownlinkFrameLog) GetMType() common.MType {
|
||||
if x != nil {
|
||||
return x.MType
|
||||
}
|
||||
return common.MType(0)
|
||||
}
|
||||
|
||||
func (x *DownlinkFrameLog) GetDevAddr() string {
|
||||
if x != nil {
|
||||
return x.DevAddr
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *DownlinkFrameLog) GetDevEui() string {
|
||||
if x != nil {
|
||||
return x.DevEui
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_api_frame_log_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_api_frame_log_proto_rawDesc = []byte{
|
||||
0x0a, 0x13, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x5f, 0x6c, 0x6f, 0x67, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x61, 0x70, 0x69, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67,
|
||||
0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65,
|
||||
0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x63, 0x6f, 0x6d,
|
||||
0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x1a, 0x0b, 0x67, 0x77, 0x2f, 0x67, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x91, 0x02,
|
||||
0x0a, 0x0e, 0x55, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x4c, 0x6f, 0x67,
|
||||
0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x68, 0x79, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x70, 0x68, 0x79, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61,
|
||||
0x64, 0x12, 0x29, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x77, 0x2e, 0x55, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x54, 0x58,
|
||||
0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x74, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x29, 0x0a, 0x07,
|
||||
0x72, 0x78, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e,
|
||||
0x67, 0x77, 0x2e, 0x55, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x52, 0x58, 0x49, 0x6e, 0x66, 0x6f, 0x52,
|
||||
0x06, 0x72, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x24, 0x0a, 0x06, 0x6d, 0x5f, 0x74, 0x79, 0x70,
|
||||
0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
|
||||
0x2e, 0x4d, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a,
|
||||
0x08, 0x64, 0x65, 0x76, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x07, 0x64, 0x65, 0x76, 0x41, 0x64, 0x64, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x64, 0x65, 0x76, 0x5f,
|
||||
0x65, 0x75, 0x69, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x76, 0x45, 0x75,
|
||||
0x69, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
|
||||
0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x22, 0xaa, 0x02, 0x0a, 0x10, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x46, 0x72,
|
||||
0x61, 0x6d, 0x65, 0x4c, 0x6f, 0x67, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01,
|
||||
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
|
||||
0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x68, 0x79, 0x5f, 0x70, 0x61,
|
||||
0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x70, 0x68, 0x79,
|
||||
0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x2b, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x69, 0x6e,
|
||||
0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x77, 0x2e, 0x44, 0x6f,
|
||||
0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x54, 0x58, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x74, 0x78,
|
||||
0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b,
|
||||
0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x6f, 0x77, 0x6e, 0x6c,
|
||||
0x69, 0x6e, 0x6b, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79,
|
||||
0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x61, 0x74, 0x65, 0x77,
|
||||
0x61, 0x79, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x06, 0x6d, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06,
|
||||
0x20, 0x01, 0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4d, 0x54,
|
||||
0x79, 0x70, 0x65, 0x52, 0x05, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x64, 0x65,
|
||||
0x76, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65,
|
||||
0x76, 0x41, 0x64, 0x64, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x64, 0x65, 0x76, 0x5f, 0x65, 0x75, 0x69,
|
||||
0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x76, 0x45, 0x75, 0x69, 0x42, 0x50,
|
||||
0x0a, 0x11, 0x69, 0x6f, 0x2e, 0x63, 0x68, 0x69, 0x72, 0x70, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e,
|
||||
0x61, 0x70, 0x69, 0x42, 0x0d, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x4c, 0x6f, 0x67, 0x50, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
|
||||
0x2f, 0x63, 0x68, 0x69, 0x72, 0x70, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2f, 0x63, 0x68, 0x69, 0x72,
|
||||
0x70, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x34,
|
||||
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_api_frame_log_proto_rawDescOnce sync.Once
|
||||
file_api_frame_log_proto_rawDescData = file_api_frame_log_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_api_frame_log_proto_rawDescGZIP() []byte {
|
||||
file_api_frame_log_proto_rawDescOnce.Do(func() {
|
||||
file_api_frame_log_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_frame_log_proto_rawDescData)
|
||||
})
|
||||
return file_api_frame_log_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_api_frame_log_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_api_frame_log_proto_goTypes = []interface{}{
|
||||
(*UplinkFrameLog)(nil), // 0: api.UplinkFrameLog
|
||||
(*DownlinkFrameLog)(nil), // 1: api.DownlinkFrameLog
|
||||
(*gw.UplinkTXInfo)(nil), // 2: gw.UplinkTXInfo
|
||||
(*gw.UplinkRXInfo)(nil), // 3: gw.UplinkRXInfo
|
||||
(common.MType)(0), // 4: common.MType
|
||||
(*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp
|
||||
(*gw.DownlinkTXInfo)(nil), // 6: gw.DownlinkTXInfo
|
||||
}
|
||||
var file_api_frame_log_proto_depIdxs = []int32{
|
||||
2, // 0: api.UplinkFrameLog.tx_info:type_name -> gw.UplinkTXInfo
|
||||
3, // 1: api.UplinkFrameLog.rx_info:type_name -> gw.UplinkRXInfo
|
||||
4, // 2: api.UplinkFrameLog.m_type:type_name -> common.MType
|
||||
5, // 3: api.UplinkFrameLog.time:type_name -> google.protobuf.Timestamp
|
||||
5, // 4: api.DownlinkFrameLog.time:type_name -> google.protobuf.Timestamp
|
||||
6, // 5: api.DownlinkFrameLog.tx_info:type_name -> gw.DownlinkTXInfo
|
||||
4, // 6: api.DownlinkFrameLog.m_type:type_name -> common.MType
|
||||
7, // [7:7] is the sub-list for method output_type
|
||||
7, // [7:7] is the sub-list for method input_type
|
||||
7, // [7:7] is the sub-list for extension type_name
|
||||
7, // [7:7] is the sub-list for extension extendee
|
||||
0, // [0:7] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_api_frame_log_proto_init() }
|
||||
func file_api_frame_log_proto_init() {
|
||||
if File_api_frame_log_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_api_frame_log_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*UplinkFrameLog); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_api_frame_log_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DownlinkFrameLog); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_api_frame_log_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 2,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_api_frame_log_proto_goTypes,
|
||||
DependencyIndexes: file_api_frame_log_proto_depIdxs,
|
||||
MessageInfos: file_api_frame_log_proto_msgTypes,
|
||||
}.Build()
|
||||
File_api_frame_log_proto = out.File
|
||||
file_api_frame_log_proto_rawDesc = nil
|
||||
file_api_frame_log_proto_goTypes = nil
|
||||
file_api_frame_log_proto_depIdxs = nil
|
||||
}
|
1514
api/go/api/gateway.pb.go
Normal file
1514
api/go/api/gateway.pb.go
Normal file
File diff suppressed because it is too large
Load Diff
336
api/go/api/gateway_grpc.pb.go
Normal file
336
api/go/api/gateway_grpc.pb.go
Normal file
@ -0,0 +1,336 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.2.0
|
||||
// - protoc v3.18.1
|
||||
// source: api/gateway.proto
|
||||
|
||||
package v4
|
||||
|
||||
import (
|
||||
context "context"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||
)
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
// Requires gRPC-Go v1.32.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion7
|
||||
|
||||
// GatewayServiceClient is the client API for GatewayService service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||
type GatewayServiceClient interface {
|
||||
// Create creates the given gateway.
|
||||
Create(ctx context.Context, in *CreateGatewayRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// Get returns the gateway for the given Gateway ID.
|
||||
Get(ctx context.Context, in *GetGatewayRequest, opts ...grpc.CallOption) (*GetGatewayResponse, error)
|
||||
// Update updates the given gateway.
|
||||
Update(ctx context.Context, in *UpdateGatewayRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// Delete deletes the gateway matching the given Gateway ID.
|
||||
Delete(ctx context.Context, in *DeleteGatewayRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// Get the list of gateways.
|
||||
List(ctx context.Context, in *ListGatewaysRequest, opts ...grpc.CallOption) (*ListGatewaysResponse, error)
|
||||
// Generate client-certificate for the gateway.
|
||||
GenerateClientCertificate(ctx context.Context, in *GenerateGatewayClientCertificateRequest, opts ...grpc.CallOption) (*GenerateGatewayClientCertificateResponse, error)
|
||||
// GetStats returns the gateway stats.
|
||||
GetStats(ctx context.Context, in *GetGatewayStatsRequest, opts ...grpc.CallOption) (*GetGatewayStatsResponse, error)
|
||||
}
|
||||
|
||||
type gatewayServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewGatewayServiceClient(cc grpc.ClientConnInterface) GatewayServiceClient {
|
||||
return &gatewayServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *gatewayServiceClient) Create(ctx context.Context, in *CreateGatewayRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.GatewayService/Create", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *gatewayServiceClient) Get(ctx context.Context, in *GetGatewayRequest, opts ...grpc.CallOption) (*GetGatewayResponse, error) {
|
||||
out := new(GetGatewayResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.GatewayService/Get", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *gatewayServiceClient) Update(ctx context.Context, in *UpdateGatewayRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.GatewayService/Update", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *gatewayServiceClient) Delete(ctx context.Context, in *DeleteGatewayRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.GatewayService/Delete", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *gatewayServiceClient) List(ctx context.Context, in *ListGatewaysRequest, opts ...grpc.CallOption) (*ListGatewaysResponse, error) {
|
||||
out := new(ListGatewaysResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.GatewayService/List", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *gatewayServiceClient) GenerateClientCertificate(ctx context.Context, in *GenerateGatewayClientCertificateRequest, opts ...grpc.CallOption) (*GenerateGatewayClientCertificateResponse, error) {
|
||||
out := new(GenerateGatewayClientCertificateResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.GatewayService/GenerateClientCertificate", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *gatewayServiceClient) GetStats(ctx context.Context, in *GetGatewayStatsRequest, opts ...grpc.CallOption) (*GetGatewayStatsResponse, error) {
|
||||
out := new(GetGatewayStatsResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.GatewayService/GetStats", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// GatewayServiceServer is the server API for GatewayService service.
|
||||
// All implementations must embed UnimplementedGatewayServiceServer
|
||||
// for forward compatibility
|
||||
type GatewayServiceServer interface {
|
||||
// Create creates the given gateway.
|
||||
Create(context.Context, *CreateGatewayRequest) (*emptypb.Empty, error)
|
||||
// Get returns the gateway for the given Gateway ID.
|
||||
Get(context.Context, *GetGatewayRequest) (*GetGatewayResponse, error)
|
||||
// Update updates the given gateway.
|
||||
Update(context.Context, *UpdateGatewayRequest) (*emptypb.Empty, error)
|
||||
// Delete deletes the gateway matching the given Gateway ID.
|
||||
Delete(context.Context, *DeleteGatewayRequest) (*emptypb.Empty, error)
|
||||
// Get the list of gateways.
|
||||
List(context.Context, *ListGatewaysRequest) (*ListGatewaysResponse, error)
|
||||
// Generate client-certificate for the gateway.
|
||||
GenerateClientCertificate(context.Context, *GenerateGatewayClientCertificateRequest) (*GenerateGatewayClientCertificateResponse, error)
|
||||
// GetStats returns the gateway stats.
|
||||
GetStats(context.Context, *GetGatewayStatsRequest) (*GetGatewayStatsResponse, error)
|
||||
mustEmbedUnimplementedGatewayServiceServer()
|
||||
}
|
||||
|
||||
// UnimplementedGatewayServiceServer must be embedded to have forward compatible implementations.
|
||||
type UnimplementedGatewayServiceServer struct {
|
||||
}
|
||||
|
||||
func (UnimplementedGatewayServiceServer) Create(context.Context, *CreateGatewayRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
|
||||
}
|
||||
func (UnimplementedGatewayServiceServer) Get(context.Context, *GetGatewayRequest) (*GetGatewayResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
|
||||
}
|
||||
func (UnimplementedGatewayServiceServer) Update(context.Context, *UpdateGatewayRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
|
||||
}
|
||||
func (UnimplementedGatewayServiceServer) Delete(context.Context, *DeleteGatewayRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
||||
}
|
||||
func (UnimplementedGatewayServiceServer) List(context.Context, *ListGatewaysRequest) (*ListGatewaysResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
|
||||
}
|
||||
func (UnimplementedGatewayServiceServer) GenerateClientCertificate(context.Context, *GenerateGatewayClientCertificateRequest) (*GenerateGatewayClientCertificateResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GenerateClientCertificate not implemented")
|
||||
}
|
||||
func (UnimplementedGatewayServiceServer) GetStats(context.Context, *GetGatewayStatsRequest) (*GetGatewayStatsResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetStats not implemented")
|
||||
}
|
||||
func (UnimplementedGatewayServiceServer) mustEmbedUnimplementedGatewayServiceServer() {}
|
||||
|
||||
// UnsafeGatewayServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to GatewayServiceServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeGatewayServiceServer interface {
|
||||
mustEmbedUnimplementedGatewayServiceServer()
|
||||
}
|
||||
|
||||
func RegisterGatewayServiceServer(s grpc.ServiceRegistrar, srv GatewayServiceServer) {
|
||||
s.RegisterService(&GatewayService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _GatewayService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateGatewayRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(GatewayServiceServer).Create(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.GatewayService/Create",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(GatewayServiceServer).Create(ctx, req.(*CreateGatewayRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _GatewayService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetGatewayRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(GatewayServiceServer).Get(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.GatewayService/Get",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(GatewayServiceServer).Get(ctx, req.(*GetGatewayRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _GatewayService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateGatewayRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(GatewayServiceServer).Update(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.GatewayService/Update",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(GatewayServiceServer).Update(ctx, req.(*UpdateGatewayRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _GatewayService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteGatewayRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(GatewayServiceServer).Delete(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.GatewayService/Delete",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(GatewayServiceServer).Delete(ctx, req.(*DeleteGatewayRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _GatewayService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListGatewaysRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(GatewayServiceServer).List(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.GatewayService/List",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(GatewayServiceServer).List(ctx, req.(*ListGatewaysRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _GatewayService_GenerateClientCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GenerateGatewayClientCertificateRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(GatewayServiceServer).GenerateClientCertificate(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.GatewayService/GenerateClientCertificate",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(GatewayServiceServer).GenerateClientCertificate(ctx, req.(*GenerateGatewayClientCertificateRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _GatewayService_GetStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetGatewayStatsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(GatewayServiceServer).GetStats(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.GatewayService/GetStats",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(GatewayServiceServer).GetStats(ctx, req.(*GetGatewayStatsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// GatewayService_ServiceDesc is the grpc.ServiceDesc for GatewayService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var GatewayService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "api.GatewayService",
|
||||
HandlerType: (*GatewayServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "Create",
|
||||
Handler: _GatewayService_Create_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Get",
|
||||
Handler: _GatewayService_Get_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Update",
|
||||
Handler: _GatewayService_Update_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Delete",
|
||||
Handler: _GatewayService_Delete_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "List",
|
||||
Handler: _GatewayService_List_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GenerateClientCertificate",
|
||||
Handler: _GatewayService_GenerateClientCertificate_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetStats",
|
||||
Handler: _GatewayService_GetStats_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "api/gateway.proto",
|
||||
}
|
2246
api/go/api/internal.pb.go
Normal file
2246
api/go/api/internal.pb.go
Normal file
File diff suppressed because it is too large
Load Diff
646
api/go/api/internal_grpc.pb.go
Normal file
646
api/go/api/internal_grpc.pb.go
Normal file
@ -0,0 +1,646 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.2.0
|
||||
// - protoc v3.18.1
|
||||
// source: api/internal.proto
|
||||
|
||||
package v4
|
||||
|
||||
import (
|
||||
context "context"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||
)
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
// Requires gRPC-Go v1.32.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion7
|
||||
|
||||
// InternalServiceClient is the client API for InternalService service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||
type InternalServiceClient interface {
|
||||
// Log in a user
|
||||
Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
|
||||
// Get the current user's profile
|
||||
Profile(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ProfileResponse, error)
|
||||
// Perform a global search.
|
||||
GlobalSearch(ctx context.Context, in *GlobalSearchRequest, opts ...grpc.CallOption) (*GlobalSearchResponse, error)
|
||||
// CreateApiKey creates the given API key.
|
||||
CreateApiKey(ctx context.Context, in *CreateApiKeyRequest, opts ...grpc.CallOption) (*CreateApiKeyResponse, error)
|
||||
// DeleteApiKey deletes the API key.
|
||||
DeleteApiKey(ctx context.Context, in *DeleteApiKeyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// ListApiKeys lists the available API keys.
|
||||
ListApiKeys(ctx context.Context, in *ListApiKeysRequest, opts ...grpc.CallOption) (*ListApiKeysResponse, error)
|
||||
// Get the global settings.
|
||||
Settings(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SettingsResponse, error)
|
||||
// OpenId Connect login.
|
||||
OpenIdConnectLogin(ctx context.Context, in *OpenIdConnectLoginRequest, opts ...grpc.CallOption) (*OpenIdConnectLoginResponse, error)
|
||||
// GetDevicesSummary returns an aggregated summary of the devices.
|
||||
GetDevicesSummary(ctx context.Context, in *GetDevicesSummaryRequest, opts ...grpc.CallOption) (*GetDevicesSummaryResponse, error)
|
||||
// GetGatewaysSummary returns an aggregated summary of the gateways.
|
||||
GetGatewaysSummary(ctx context.Context, in *GetGatewaysSummaryRequest, opts ...grpc.CallOption) (*GetGatewaysSummaryResponse, error)
|
||||
// Stream frame for the given Gateway ID.
|
||||
StreamGatewayFrames(ctx context.Context, in *StreamGatewayFramesRequest, opts ...grpc.CallOption) (InternalService_StreamGatewayFramesClient, error)
|
||||
// Stream frames for the given Device EUI.
|
||||
StreamDeviceFrames(ctx context.Context, in *StreamDeviceFramesRequest, opts ...grpc.CallOption) (InternalService_StreamDeviceFramesClient, error)
|
||||
// Stream events for the given Device EUI.
|
||||
StreamDeviceEvents(ctx context.Context, in *StreamDeviceEventsRequest, opts ...grpc.CallOption) (InternalService_StreamDeviceEventsClient, error)
|
||||
}
|
||||
|
||||
type internalServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewInternalServiceClient(cc grpc.ClientConnInterface) InternalServiceClient {
|
||||
return &internalServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *internalServiceClient) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) {
|
||||
out := new(LoginResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.InternalService/Login", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *internalServiceClient) Profile(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ProfileResponse, error) {
|
||||
out := new(ProfileResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.InternalService/Profile", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *internalServiceClient) GlobalSearch(ctx context.Context, in *GlobalSearchRequest, opts ...grpc.CallOption) (*GlobalSearchResponse, error) {
|
||||
out := new(GlobalSearchResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.InternalService/GlobalSearch", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *internalServiceClient) CreateApiKey(ctx context.Context, in *CreateApiKeyRequest, opts ...grpc.CallOption) (*CreateApiKeyResponse, error) {
|
||||
out := new(CreateApiKeyResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.InternalService/CreateApiKey", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *internalServiceClient) DeleteApiKey(ctx context.Context, in *DeleteApiKeyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.InternalService/DeleteApiKey", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *internalServiceClient) ListApiKeys(ctx context.Context, in *ListApiKeysRequest, opts ...grpc.CallOption) (*ListApiKeysResponse, error) {
|
||||
out := new(ListApiKeysResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.InternalService/ListApiKeys", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *internalServiceClient) Settings(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SettingsResponse, error) {
|
||||
out := new(SettingsResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.InternalService/Settings", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *internalServiceClient) OpenIdConnectLogin(ctx context.Context, in *OpenIdConnectLoginRequest, opts ...grpc.CallOption) (*OpenIdConnectLoginResponse, error) {
|
||||
out := new(OpenIdConnectLoginResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.InternalService/OpenIdConnectLogin", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *internalServiceClient) GetDevicesSummary(ctx context.Context, in *GetDevicesSummaryRequest, opts ...grpc.CallOption) (*GetDevicesSummaryResponse, error) {
|
||||
out := new(GetDevicesSummaryResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.InternalService/GetDevicesSummary", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *internalServiceClient) GetGatewaysSummary(ctx context.Context, in *GetGatewaysSummaryRequest, opts ...grpc.CallOption) (*GetGatewaysSummaryResponse, error) {
|
||||
out := new(GetGatewaysSummaryResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.InternalService/GetGatewaysSummary", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *internalServiceClient) StreamGatewayFrames(ctx context.Context, in *StreamGatewayFramesRequest, opts ...grpc.CallOption) (InternalService_StreamGatewayFramesClient, error) {
|
||||
stream, err := c.cc.NewStream(ctx, &InternalService_ServiceDesc.Streams[0], "/api.InternalService/StreamGatewayFrames", opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
x := &internalServiceStreamGatewayFramesClient{stream}
|
||||
if err := x.ClientStream.SendMsg(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err := x.ClientStream.CloseSend(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return x, nil
|
||||
}
|
||||
|
||||
type InternalService_StreamGatewayFramesClient interface {
|
||||
Recv() (*LogItem, error)
|
||||
grpc.ClientStream
|
||||
}
|
||||
|
||||
type internalServiceStreamGatewayFramesClient struct {
|
||||
grpc.ClientStream
|
||||
}
|
||||
|
||||
func (x *internalServiceStreamGatewayFramesClient) Recv() (*LogItem, error) {
|
||||
m := new(LogItem)
|
||||
if err := x.ClientStream.RecvMsg(m); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return m, nil
|
||||
}
|
||||
|
||||
func (c *internalServiceClient) StreamDeviceFrames(ctx context.Context, in *StreamDeviceFramesRequest, opts ...grpc.CallOption) (InternalService_StreamDeviceFramesClient, error) {
|
||||
stream, err := c.cc.NewStream(ctx, &InternalService_ServiceDesc.Streams[1], "/api.InternalService/StreamDeviceFrames", opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
x := &internalServiceStreamDeviceFramesClient{stream}
|
||||
if err := x.ClientStream.SendMsg(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err := x.ClientStream.CloseSend(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return x, nil
|
||||
}
|
||||
|
||||
type InternalService_StreamDeviceFramesClient interface {
|
||||
Recv() (*LogItem, error)
|
||||
grpc.ClientStream
|
||||
}
|
||||
|
||||
type internalServiceStreamDeviceFramesClient struct {
|
||||
grpc.ClientStream
|
||||
}
|
||||
|
||||
func (x *internalServiceStreamDeviceFramesClient) Recv() (*LogItem, error) {
|
||||
m := new(LogItem)
|
||||
if err := x.ClientStream.RecvMsg(m); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return m, nil
|
||||
}
|
||||
|
||||
func (c *internalServiceClient) StreamDeviceEvents(ctx context.Context, in *StreamDeviceEventsRequest, opts ...grpc.CallOption) (InternalService_StreamDeviceEventsClient, error) {
|
||||
stream, err := c.cc.NewStream(ctx, &InternalService_ServiceDesc.Streams[2], "/api.InternalService/StreamDeviceEvents", opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
x := &internalServiceStreamDeviceEventsClient{stream}
|
||||
if err := x.ClientStream.SendMsg(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err := x.ClientStream.CloseSend(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return x, nil
|
||||
}
|
||||
|
||||
type InternalService_StreamDeviceEventsClient interface {
|
||||
Recv() (*LogItem, error)
|
||||
grpc.ClientStream
|
||||
}
|
||||
|
||||
type internalServiceStreamDeviceEventsClient struct {
|
||||
grpc.ClientStream
|
||||
}
|
||||
|
||||
func (x *internalServiceStreamDeviceEventsClient) Recv() (*LogItem, error) {
|
||||
m := new(LogItem)
|
||||
if err := x.ClientStream.RecvMsg(m); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return m, nil
|
||||
}
|
||||
|
||||
// InternalServiceServer is the server API for InternalService service.
|
||||
// All implementations must embed UnimplementedInternalServiceServer
|
||||
// for forward compatibility
|
||||
type InternalServiceServer interface {
|
||||
// Log in a user
|
||||
Login(context.Context, *LoginRequest) (*LoginResponse, error)
|
||||
// Get the current user's profile
|
||||
Profile(context.Context, *emptypb.Empty) (*ProfileResponse, error)
|
||||
// Perform a global search.
|
||||
GlobalSearch(context.Context, *GlobalSearchRequest) (*GlobalSearchResponse, error)
|
||||
// CreateApiKey creates the given API key.
|
||||
CreateApiKey(context.Context, *CreateApiKeyRequest) (*CreateApiKeyResponse, error)
|
||||
// DeleteApiKey deletes the API key.
|
||||
DeleteApiKey(context.Context, *DeleteApiKeyRequest) (*emptypb.Empty, error)
|
||||
// ListApiKeys lists the available API keys.
|
||||
ListApiKeys(context.Context, *ListApiKeysRequest) (*ListApiKeysResponse, error)
|
||||
// Get the global settings.
|
||||
Settings(context.Context, *emptypb.Empty) (*SettingsResponse, error)
|
||||
// OpenId Connect login.
|
||||
OpenIdConnectLogin(context.Context, *OpenIdConnectLoginRequest) (*OpenIdConnectLoginResponse, error)
|
||||
// GetDevicesSummary returns an aggregated summary of the devices.
|
||||
GetDevicesSummary(context.Context, *GetDevicesSummaryRequest) (*GetDevicesSummaryResponse, error)
|
||||
// GetGatewaysSummary returns an aggregated summary of the gateways.
|
||||
GetGatewaysSummary(context.Context, *GetGatewaysSummaryRequest) (*GetGatewaysSummaryResponse, error)
|
||||
// Stream frame for the given Gateway ID.
|
||||
StreamGatewayFrames(*StreamGatewayFramesRequest, InternalService_StreamGatewayFramesServer) error
|
||||
// Stream frames for the given Device EUI.
|
||||
StreamDeviceFrames(*StreamDeviceFramesRequest, InternalService_StreamDeviceFramesServer) error
|
||||
// Stream events for the given Device EUI.
|
||||
StreamDeviceEvents(*StreamDeviceEventsRequest, InternalService_StreamDeviceEventsServer) error
|
||||
mustEmbedUnimplementedInternalServiceServer()
|
||||
}
|
||||
|
||||
// UnimplementedInternalServiceServer must be embedded to have forward compatible implementations.
|
||||
type UnimplementedInternalServiceServer struct {
|
||||
}
|
||||
|
||||
func (UnimplementedInternalServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Login not implemented")
|
||||
}
|
||||
func (UnimplementedInternalServiceServer) Profile(context.Context, *emptypb.Empty) (*ProfileResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Profile not implemented")
|
||||
}
|
||||
func (UnimplementedInternalServiceServer) GlobalSearch(context.Context, *GlobalSearchRequest) (*GlobalSearchResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GlobalSearch not implemented")
|
||||
}
|
||||
func (UnimplementedInternalServiceServer) CreateApiKey(context.Context, *CreateApiKeyRequest) (*CreateApiKeyResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CreateApiKey not implemented")
|
||||
}
|
||||
func (UnimplementedInternalServiceServer) DeleteApiKey(context.Context, *DeleteApiKeyRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DeleteApiKey not implemented")
|
||||
}
|
||||
func (UnimplementedInternalServiceServer) ListApiKeys(context.Context, *ListApiKeysRequest) (*ListApiKeysResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ListApiKeys not implemented")
|
||||
}
|
||||
func (UnimplementedInternalServiceServer) Settings(context.Context, *emptypb.Empty) (*SettingsResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Settings not implemented")
|
||||
}
|
||||
func (UnimplementedInternalServiceServer) OpenIdConnectLogin(context.Context, *OpenIdConnectLoginRequest) (*OpenIdConnectLoginResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method OpenIdConnectLogin not implemented")
|
||||
}
|
||||
func (UnimplementedInternalServiceServer) GetDevicesSummary(context.Context, *GetDevicesSummaryRequest) (*GetDevicesSummaryResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetDevicesSummary not implemented")
|
||||
}
|
||||
func (UnimplementedInternalServiceServer) GetGatewaysSummary(context.Context, *GetGatewaysSummaryRequest) (*GetGatewaysSummaryResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetGatewaysSummary not implemented")
|
||||
}
|
||||
func (UnimplementedInternalServiceServer) StreamGatewayFrames(*StreamGatewayFramesRequest, InternalService_StreamGatewayFramesServer) error {
|
||||
return status.Errorf(codes.Unimplemented, "method StreamGatewayFrames not implemented")
|
||||
}
|
||||
func (UnimplementedInternalServiceServer) StreamDeviceFrames(*StreamDeviceFramesRequest, InternalService_StreamDeviceFramesServer) error {
|
||||
return status.Errorf(codes.Unimplemented, "method StreamDeviceFrames not implemented")
|
||||
}
|
||||
func (UnimplementedInternalServiceServer) StreamDeviceEvents(*StreamDeviceEventsRequest, InternalService_StreamDeviceEventsServer) error {
|
||||
return status.Errorf(codes.Unimplemented, "method StreamDeviceEvents not implemented")
|
||||
}
|
||||
func (UnimplementedInternalServiceServer) mustEmbedUnimplementedInternalServiceServer() {}
|
||||
|
||||
// UnsafeInternalServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to InternalServiceServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeInternalServiceServer interface {
|
||||
mustEmbedUnimplementedInternalServiceServer()
|
||||
}
|
||||
|
||||
func RegisterInternalServiceServer(s grpc.ServiceRegistrar, srv InternalServiceServer) {
|
||||
s.RegisterService(&InternalService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _InternalService_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(LoginRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(InternalServiceServer).Login(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.InternalService/Login",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(InternalServiceServer).Login(ctx, req.(*LoginRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _InternalService_Profile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(emptypb.Empty)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(InternalServiceServer).Profile(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.InternalService/Profile",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(InternalServiceServer).Profile(ctx, req.(*emptypb.Empty))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _InternalService_GlobalSearch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GlobalSearchRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(InternalServiceServer).GlobalSearch(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.InternalService/GlobalSearch",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(InternalServiceServer).GlobalSearch(ctx, req.(*GlobalSearchRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _InternalService_CreateApiKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateApiKeyRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(InternalServiceServer).CreateApiKey(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.InternalService/CreateApiKey",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(InternalServiceServer).CreateApiKey(ctx, req.(*CreateApiKeyRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _InternalService_DeleteApiKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteApiKeyRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(InternalServiceServer).DeleteApiKey(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.InternalService/DeleteApiKey",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(InternalServiceServer).DeleteApiKey(ctx, req.(*DeleteApiKeyRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _InternalService_ListApiKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListApiKeysRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(InternalServiceServer).ListApiKeys(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.InternalService/ListApiKeys",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(InternalServiceServer).ListApiKeys(ctx, req.(*ListApiKeysRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _InternalService_Settings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(emptypb.Empty)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(InternalServiceServer).Settings(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.InternalService/Settings",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(InternalServiceServer).Settings(ctx, req.(*emptypb.Empty))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _InternalService_OpenIdConnectLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(OpenIdConnectLoginRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(InternalServiceServer).OpenIdConnectLogin(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.InternalService/OpenIdConnectLogin",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(InternalServiceServer).OpenIdConnectLogin(ctx, req.(*OpenIdConnectLoginRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _InternalService_GetDevicesSummary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetDevicesSummaryRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(InternalServiceServer).GetDevicesSummary(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.InternalService/GetDevicesSummary",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(InternalServiceServer).GetDevicesSummary(ctx, req.(*GetDevicesSummaryRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _InternalService_GetGatewaysSummary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetGatewaysSummaryRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(InternalServiceServer).GetGatewaysSummary(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.InternalService/GetGatewaysSummary",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(InternalServiceServer).GetGatewaysSummary(ctx, req.(*GetGatewaysSummaryRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _InternalService_StreamGatewayFrames_Handler(srv interface{}, stream grpc.ServerStream) error {
|
||||
m := new(StreamGatewayFramesRequest)
|
||||
if err := stream.RecvMsg(m); err != nil {
|
||||
return err
|
||||
}
|
||||
return srv.(InternalServiceServer).StreamGatewayFrames(m, &internalServiceStreamGatewayFramesServer{stream})
|
||||
}
|
||||
|
||||
type InternalService_StreamGatewayFramesServer interface {
|
||||
Send(*LogItem) error
|
||||
grpc.ServerStream
|
||||
}
|
||||
|
||||
type internalServiceStreamGatewayFramesServer struct {
|
||||
grpc.ServerStream
|
||||
}
|
||||
|
||||
func (x *internalServiceStreamGatewayFramesServer) Send(m *LogItem) error {
|
||||
return x.ServerStream.SendMsg(m)
|
||||
}
|
||||
|
||||
func _InternalService_StreamDeviceFrames_Handler(srv interface{}, stream grpc.ServerStream) error {
|
||||
m := new(StreamDeviceFramesRequest)
|
||||
if err := stream.RecvMsg(m); err != nil {
|
||||
return err
|
||||
}
|
||||
return srv.(InternalServiceServer).StreamDeviceFrames(m, &internalServiceStreamDeviceFramesServer{stream})
|
||||
}
|
||||
|
||||
type InternalService_StreamDeviceFramesServer interface {
|
||||
Send(*LogItem) error
|
||||
grpc.ServerStream
|
||||
}
|
||||
|
||||
type internalServiceStreamDeviceFramesServer struct {
|
||||
grpc.ServerStream
|
||||
}
|
||||
|
||||
func (x *internalServiceStreamDeviceFramesServer) Send(m *LogItem) error {
|
||||
return x.ServerStream.SendMsg(m)
|
||||
}
|
||||
|
||||
func _InternalService_StreamDeviceEvents_Handler(srv interface{}, stream grpc.ServerStream) error {
|
||||
m := new(StreamDeviceEventsRequest)
|
||||
if err := stream.RecvMsg(m); err != nil {
|
||||
return err
|
||||
}
|
||||
return srv.(InternalServiceServer).StreamDeviceEvents(m, &internalServiceStreamDeviceEventsServer{stream})
|
||||
}
|
||||
|
||||
type InternalService_StreamDeviceEventsServer interface {
|
||||
Send(*LogItem) error
|
||||
grpc.ServerStream
|
||||
}
|
||||
|
||||
type internalServiceStreamDeviceEventsServer struct {
|
||||
grpc.ServerStream
|
||||
}
|
||||
|
||||
func (x *internalServiceStreamDeviceEventsServer) Send(m *LogItem) error {
|
||||
return x.ServerStream.SendMsg(m)
|
||||
}
|
||||
|
||||
// InternalService_ServiceDesc is the grpc.ServiceDesc for InternalService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var InternalService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "api.InternalService",
|
||||
HandlerType: (*InternalServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "Login",
|
||||
Handler: _InternalService_Login_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Profile",
|
||||
Handler: _InternalService_Profile_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GlobalSearch",
|
||||
Handler: _InternalService_GlobalSearch_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "CreateApiKey",
|
||||
Handler: _InternalService_CreateApiKey_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "DeleteApiKey",
|
||||
Handler: _InternalService_DeleteApiKey_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ListApiKeys",
|
||||
Handler: _InternalService_ListApiKeys_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Settings",
|
||||
Handler: _InternalService_Settings_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "OpenIdConnectLogin",
|
||||
Handler: _InternalService_OpenIdConnectLogin_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetDevicesSummary",
|
||||
Handler: _InternalService_GetDevicesSummary_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetGatewaysSummary",
|
||||
Handler: _InternalService_GetGatewaysSummary_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{
|
||||
{
|
||||
StreamName: "StreamGatewayFrames",
|
||||
Handler: _InternalService_StreamGatewayFrames_Handler,
|
||||
ServerStreams: true,
|
||||
},
|
||||
{
|
||||
StreamName: "StreamDeviceFrames",
|
||||
Handler: _InternalService_StreamDeviceFrames_Handler,
|
||||
ServerStreams: true,
|
||||
},
|
||||
{
|
||||
StreamName: "StreamDeviceEvents",
|
||||
Handler: _InternalService_StreamDeviceEvents_Handler,
|
||||
ServerStreams: true,
|
||||
},
|
||||
},
|
||||
Metadata: "api/internal.proto",
|
||||
}
|
1724
api/go/api/multicast_group.pb.go
Normal file
1724
api/go/api/multicast_group.pb.go
Normal file
File diff suppressed because it is too large
Load Diff
450
api/go/api/multicast_group_grpc.pb.go
Normal file
450
api/go/api/multicast_group_grpc.pb.go
Normal file
@ -0,0 +1,450 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.2.0
|
||||
// - protoc v3.18.1
|
||||
// source: api/multicast_group.proto
|
||||
|
||||
package v4
|
||||
|
||||
import (
|
||||
context "context"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||
)
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
// Requires gRPC-Go v1.32.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion7
|
||||
|
||||
// MulticastGroupServiceClient is the client API for MulticastGroupService service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||
type MulticastGroupServiceClient interface {
|
||||
// Create the given multicast group.
|
||||
Create(ctx context.Context, in *CreateMulticastGroupRequest, opts ...grpc.CallOption) (*CreateMulticastGroupResponse, error)
|
||||
// Get returns the multicast group for the given ID.
|
||||
Get(ctx context.Context, in *GetMulticastGroupRequest, opts ...grpc.CallOption) (*GetMulticastGroupResponse, error)
|
||||
// Update the given multicast group.
|
||||
Update(ctx context.Context, in *UpdateMulticastGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// Delete the multicast-group with the given ID.
|
||||
Delete(ctx context.Context, in *DeleteMulticastGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// List the available multicast groups.
|
||||
List(ctx context.Context, in *ListMulticastGroupsRequest, opts ...grpc.CallOption) (*ListMulticastGroupsResponse, error)
|
||||
// Add a device to the multicast group.
|
||||
AddDevice(ctx context.Context, in *AddDeviceToMulticastGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// Remove a device from the multicast group.
|
||||
RemoveDevice(ctx context.Context, in *RemoveDeviceFromMulticastGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// Add the given item to the multcast group queue.
|
||||
Enqueue(ctx context.Context, in *EnqueueMulticastGroupQueueItemRequest, opts ...grpc.CallOption) (*EnqueueMulticastGroupQueueItemResponse, error)
|
||||
// Flush the queue for the given multicast group.
|
||||
FlushQueue(ctx context.Context, in *FlushMulticastGroupQueueRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// List the items in the multicast group queue.
|
||||
ListQueue(ctx context.Context, in *ListMulticastGroupQueueRequest, opts ...grpc.CallOption) (*ListMulticastGroupQueueResponse, error)
|
||||
}
|
||||
|
||||
type multicastGroupServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewMulticastGroupServiceClient(cc grpc.ClientConnInterface) MulticastGroupServiceClient {
|
||||
return &multicastGroupServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *multicastGroupServiceClient) Create(ctx context.Context, in *CreateMulticastGroupRequest, opts ...grpc.CallOption) (*CreateMulticastGroupResponse, error) {
|
||||
out := new(CreateMulticastGroupResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.MulticastGroupService/Create", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *multicastGroupServiceClient) Get(ctx context.Context, in *GetMulticastGroupRequest, opts ...grpc.CallOption) (*GetMulticastGroupResponse, error) {
|
||||
out := new(GetMulticastGroupResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.MulticastGroupService/Get", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *multicastGroupServiceClient) Update(ctx context.Context, in *UpdateMulticastGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.MulticastGroupService/Update", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *multicastGroupServiceClient) Delete(ctx context.Context, in *DeleteMulticastGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.MulticastGroupService/Delete", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *multicastGroupServiceClient) List(ctx context.Context, in *ListMulticastGroupsRequest, opts ...grpc.CallOption) (*ListMulticastGroupsResponse, error) {
|
||||
out := new(ListMulticastGroupsResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.MulticastGroupService/List", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *multicastGroupServiceClient) AddDevice(ctx context.Context, in *AddDeviceToMulticastGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.MulticastGroupService/AddDevice", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *multicastGroupServiceClient) RemoveDevice(ctx context.Context, in *RemoveDeviceFromMulticastGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.MulticastGroupService/RemoveDevice", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *multicastGroupServiceClient) Enqueue(ctx context.Context, in *EnqueueMulticastGroupQueueItemRequest, opts ...grpc.CallOption) (*EnqueueMulticastGroupQueueItemResponse, error) {
|
||||
out := new(EnqueueMulticastGroupQueueItemResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.MulticastGroupService/Enqueue", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *multicastGroupServiceClient) FlushQueue(ctx context.Context, in *FlushMulticastGroupQueueRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.MulticastGroupService/FlushQueue", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *multicastGroupServiceClient) ListQueue(ctx context.Context, in *ListMulticastGroupQueueRequest, opts ...grpc.CallOption) (*ListMulticastGroupQueueResponse, error) {
|
||||
out := new(ListMulticastGroupQueueResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.MulticastGroupService/ListQueue", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// MulticastGroupServiceServer is the server API for MulticastGroupService service.
|
||||
// All implementations must embed UnimplementedMulticastGroupServiceServer
|
||||
// for forward compatibility
|
||||
type MulticastGroupServiceServer interface {
|
||||
// Create the given multicast group.
|
||||
Create(context.Context, *CreateMulticastGroupRequest) (*CreateMulticastGroupResponse, error)
|
||||
// Get returns the multicast group for the given ID.
|
||||
Get(context.Context, *GetMulticastGroupRequest) (*GetMulticastGroupResponse, error)
|
||||
// Update the given multicast group.
|
||||
Update(context.Context, *UpdateMulticastGroupRequest) (*emptypb.Empty, error)
|
||||
// Delete the multicast-group with the given ID.
|
||||
Delete(context.Context, *DeleteMulticastGroupRequest) (*emptypb.Empty, error)
|
||||
// List the available multicast groups.
|
||||
List(context.Context, *ListMulticastGroupsRequest) (*ListMulticastGroupsResponse, error)
|
||||
// Add a device to the multicast group.
|
||||
AddDevice(context.Context, *AddDeviceToMulticastGroupRequest) (*emptypb.Empty, error)
|
||||
// Remove a device from the multicast group.
|
||||
RemoveDevice(context.Context, *RemoveDeviceFromMulticastGroupRequest) (*emptypb.Empty, error)
|
||||
// Add the given item to the multcast group queue.
|
||||
Enqueue(context.Context, *EnqueueMulticastGroupQueueItemRequest) (*EnqueueMulticastGroupQueueItemResponse, error)
|
||||
// Flush the queue for the given multicast group.
|
||||
FlushQueue(context.Context, *FlushMulticastGroupQueueRequest) (*emptypb.Empty, error)
|
||||
// List the items in the multicast group queue.
|
||||
ListQueue(context.Context, *ListMulticastGroupQueueRequest) (*ListMulticastGroupQueueResponse, error)
|
||||
mustEmbedUnimplementedMulticastGroupServiceServer()
|
||||
}
|
||||
|
||||
// UnimplementedMulticastGroupServiceServer must be embedded to have forward compatible implementations.
|
||||
type UnimplementedMulticastGroupServiceServer struct {
|
||||
}
|
||||
|
||||
func (UnimplementedMulticastGroupServiceServer) Create(context.Context, *CreateMulticastGroupRequest) (*CreateMulticastGroupResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
|
||||
}
|
||||
func (UnimplementedMulticastGroupServiceServer) Get(context.Context, *GetMulticastGroupRequest) (*GetMulticastGroupResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
|
||||
}
|
||||
func (UnimplementedMulticastGroupServiceServer) Update(context.Context, *UpdateMulticastGroupRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
|
||||
}
|
||||
func (UnimplementedMulticastGroupServiceServer) Delete(context.Context, *DeleteMulticastGroupRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
||||
}
|
||||
func (UnimplementedMulticastGroupServiceServer) List(context.Context, *ListMulticastGroupsRequest) (*ListMulticastGroupsResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
|
||||
}
|
||||
func (UnimplementedMulticastGroupServiceServer) AddDevice(context.Context, *AddDeviceToMulticastGroupRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method AddDevice not implemented")
|
||||
}
|
||||
func (UnimplementedMulticastGroupServiceServer) RemoveDevice(context.Context, *RemoveDeviceFromMulticastGroupRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method RemoveDevice not implemented")
|
||||
}
|
||||
func (UnimplementedMulticastGroupServiceServer) Enqueue(context.Context, *EnqueueMulticastGroupQueueItemRequest) (*EnqueueMulticastGroupQueueItemResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Enqueue not implemented")
|
||||
}
|
||||
func (UnimplementedMulticastGroupServiceServer) FlushQueue(context.Context, *FlushMulticastGroupQueueRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method FlushQueue not implemented")
|
||||
}
|
||||
func (UnimplementedMulticastGroupServiceServer) ListQueue(context.Context, *ListMulticastGroupQueueRequest) (*ListMulticastGroupQueueResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ListQueue not implemented")
|
||||
}
|
||||
func (UnimplementedMulticastGroupServiceServer) mustEmbedUnimplementedMulticastGroupServiceServer() {}
|
||||
|
||||
// UnsafeMulticastGroupServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to MulticastGroupServiceServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeMulticastGroupServiceServer interface {
|
||||
mustEmbedUnimplementedMulticastGroupServiceServer()
|
||||
}
|
||||
|
||||
func RegisterMulticastGroupServiceServer(s grpc.ServiceRegistrar, srv MulticastGroupServiceServer) {
|
||||
s.RegisterService(&MulticastGroupService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _MulticastGroupService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateMulticastGroupRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MulticastGroupServiceServer).Create(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.MulticastGroupService/Create",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MulticastGroupServiceServer).Create(ctx, req.(*CreateMulticastGroupRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MulticastGroupService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetMulticastGroupRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MulticastGroupServiceServer).Get(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.MulticastGroupService/Get",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MulticastGroupServiceServer).Get(ctx, req.(*GetMulticastGroupRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MulticastGroupService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateMulticastGroupRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MulticastGroupServiceServer).Update(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.MulticastGroupService/Update",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MulticastGroupServiceServer).Update(ctx, req.(*UpdateMulticastGroupRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MulticastGroupService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteMulticastGroupRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MulticastGroupServiceServer).Delete(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.MulticastGroupService/Delete",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MulticastGroupServiceServer).Delete(ctx, req.(*DeleteMulticastGroupRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MulticastGroupService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListMulticastGroupsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MulticastGroupServiceServer).List(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.MulticastGroupService/List",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MulticastGroupServiceServer).List(ctx, req.(*ListMulticastGroupsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MulticastGroupService_AddDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(AddDeviceToMulticastGroupRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MulticastGroupServiceServer).AddDevice(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.MulticastGroupService/AddDevice",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MulticastGroupServiceServer).AddDevice(ctx, req.(*AddDeviceToMulticastGroupRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MulticastGroupService_RemoveDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(RemoveDeviceFromMulticastGroupRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MulticastGroupServiceServer).RemoveDevice(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.MulticastGroupService/RemoveDevice",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MulticastGroupServiceServer).RemoveDevice(ctx, req.(*RemoveDeviceFromMulticastGroupRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MulticastGroupService_Enqueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(EnqueueMulticastGroupQueueItemRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MulticastGroupServiceServer).Enqueue(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.MulticastGroupService/Enqueue",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MulticastGroupServiceServer).Enqueue(ctx, req.(*EnqueueMulticastGroupQueueItemRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MulticastGroupService_FlushQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(FlushMulticastGroupQueueRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MulticastGroupServiceServer).FlushQueue(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.MulticastGroupService/FlushQueue",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MulticastGroupServiceServer).FlushQueue(ctx, req.(*FlushMulticastGroupQueueRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MulticastGroupService_ListQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListMulticastGroupQueueRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MulticastGroupServiceServer).ListQueue(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.MulticastGroupService/ListQueue",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MulticastGroupServiceServer).ListQueue(ctx, req.(*ListMulticastGroupQueueRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// MulticastGroupService_ServiceDesc is the grpc.ServiceDesc for MulticastGroupService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var MulticastGroupService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "api.MulticastGroupService",
|
||||
HandlerType: (*MulticastGroupServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "Create",
|
||||
Handler: _MulticastGroupService_Create_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Get",
|
||||
Handler: _MulticastGroupService_Get_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Update",
|
||||
Handler: _MulticastGroupService_Update_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Delete",
|
||||
Handler: _MulticastGroupService_Delete_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "List",
|
||||
Handler: _MulticastGroupService_List_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "AddDevice",
|
||||
Handler: _MulticastGroupService_AddDevice_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "RemoveDevice",
|
||||
Handler: _MulticastGroupService_RemoveDevice_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Enqueue",
|
||||
Handler: _MulticastGroupService_Enqueue_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "FlushQueue",
|
||||
Handler: _MulticastGroupService_FlushQueue_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ListQueue",
|
||||
Handler: _MulticastGroupService_ListQueue_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "api/multicast_group.proto",
|
||||
}
|
1824
api/go/api/tenant.pb.go
Normal file
1824
api/go/api/tenant.pb.go
Normal file
File diff suppressed because it is too large
Load Diff
452
api/go/api/tenant_grpc.pb.go
Normal file
452
api/go/api/tenant_grpc.pb.go
Normal file
@ -0,0 +1,452 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.2.0
|
||||
// - protoc v3.18.1
|
||||
// source: api/tenant.proto
|
||||
|
||||
package v4
|
||||
|
||||
import (
|
||||
context "context"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||
)
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
// Requires gRPC-Go v1.32.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion7
|
||||
|
||||
// TenantServiceClient is the client API for TenantService service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||
type TenantServiceClient interface {
|
||||
// Create a new tenant.
|
||||
Create(ctx context.Context, in *CreateTenantRequest, opts ...grpc.CallOption) (*CreateTenantResponse, error)
|
||||
// Get the tenant for the given ID.
|
||||
Get(ctx context.Context, in *GetTenantRequest, opts ...grpc.CallOption) (*GetTenantResponse, error)
|
||||
// Update the given tenant.
|
||||
Update(ctx context.Context, in *UpdateTenantRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// Delete the tenant with the given ID.
|
||||
Delete(ctx context.Context, in *DeleteTenantRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// Get the list of tenants.
|
||||
List(ctx context.Context, in *ListTenantsRequest, opts ...grpc.CallOption) (*ListTenantsResponse, error)
|
||||
// Add an user to the tenant.
|
||||
// Note: the user must already exist.
|
||||
AddUser(ctx context.Context, in *AddTenantUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// Get the the tenant user for the given tenant and user IDs.
|
||||
GetUser(ctx context.Context, in *GetTenantUserRequest, opts ...grpc.CallOption) (*GetTenantUserResponse, error)
|
||||
// Update the given tenant user.
|
||||
UpdateUser(ctx context.Context, in *UpdateTenantUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// Delete the given tenant user.
|
||||
DeleteUser(ctx context.Context, in *DeleteTenantUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// Get the list of tenant users.
|
||||
ListUsers(ctx context.Context, in *ListTenantUsersRequest, opts ...grpc.CallOption) (*ListTenantUsersResponse, error)
|
||||
}
|
||||
|
||||
type tenantServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewTenantServiceClient(cc grpc.ClientConnInterface) TenantServiceClient {
|
||||
return &tenantServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *tenantServiceClient) Create(ctx context.Context, in *CreateTenantRequest, opts ...grpc.CallOption) (*CreateTenantResponse, error) {
|
||||
out := new(CreateTenantResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.TenantService/Create", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *tenantServiceClient) Get(ctx context.Context, in *GetTenantRequest, opts ...grpc.CallOption) (*GetTenantResponse, error) {
|
||||
out := new(GetTenantResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.TenantService/Get", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *tenantServiceClient) Update(ctx context.Context, in *UpdateTenantRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.TenantService/Update", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *tenantServiceClient) Delete(ctx context.Context, in *DeleteTenantRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.TenantService/Delete", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *tenantServiceClient) List(ctx context.Context, in *ListTenantsRequest, opts ...grpc.CallOption) (*ListTenantsResponse, error) {
|
||||
out := new(ListTenantsResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.TenantService/List", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *tenantServiceClient) AddUser(ctx context.Context, in *AddTenantUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.TenantService/AddUser", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *tenantServiceClient) GetUser(ctx context.Context, in *GetTenantUserRequest, opts ...grpc.CallOption) (*GetTenantUserResponse, error) {
|
||||
out := new(GetTenantUserResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.TenantService/GetUser", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *tenantServiceClient) UpdateUser(ctx context.Context, in *UpdateTenantUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.TenantService/UpdateUser", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *tenantServiceClient) DeleteUser(ctx context.Context, in *DeleteTenantUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.TenantService/DeleteUser", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *tenantServiceClient) ListUsers(ctx context.Context, in *ListTenantUsersRequest, opts ...grpc.CallOption) (*ListTenantUsersResponse, error) {
|
||||
out := new(ListTenantUsersResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.TenantService/ListUsers", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// TenantServiceServer is the server API for TenantService service.
|
||||
// All implementations must embed UnimplementedTenantServiceServer
|
||||
// for forward compatibility
|
||||
type TenantServiceServer interface {
|
||||
// Create a new tenant.
|
||||
Create(context.Context, *CreateTenantRequest) (*CreateTenantResponse, error)
|
||||
// Get the tenant for the given ID.
|
||||
Get(context.Context, *GetTenantRequest) (*GetTenantResponse, error)
|
||||
// Update the given tenant.
|
||||
Update(context.Context, *UpdateTenantRequest) (*emptypb.Empty, error)
|
||||
// Delete the tenant with the given ID.
|
||||
Delete(context.Context, *DeleteTenantRequest) (*emptypb.Empty, error)
|
||||
// Get the list of tenants.
|
||||
List(context.Context, *ListTenantsRequest) (*ListTenantsResponse, error)
|
||||
// Add an user to the tenant.
|
||||
// Note: the user must already exist.
|
||||
AddUser(context.Context, *AddTenantUserRequest) (*emptypb.Empty, error)
|
||||
// Get the the tenant user for the given tenant and user IDs.
|
||||
GetUser(context.Context, *GetTenantUserRequest) (*GetTenantUserResponse, error)
|
||||
// Update the given tenant user.
|
||||
UpdateUser(context.Context, *UpdateTenantUserRequest) (*emptypb.Empty, error)
|
||||
// Delete the given tenant user.
|
||||
DeleteUser(context.Context, *DeleteTenantUserRequest) (*emptypb.Empty, error)
|
||||
// Get the list of tenant users.
|
||||
ListUsers(context.Context, *ListTenantUsersRequest) (*ListTenantUsersResponse, error)
|
||||
mustEmbedUnimplementedTenantServiceServer()
|
||||
}
|
||||
|
||||
// UnimplementedTenantServiceServer must be embedded to have forward compatible implementations.
|
||||
type UnimplementedTenantServiceServer struct {
|
||||
}
|
||||
|
||||
func (UnimplementedTenantServiceServer) Create(context.Context, *CreateTenantRequest) (*CreateTenantResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
|
||||
}
|
||||
func (UnimplementedTenantServiceServer) Get(context.Context, *GetTenantRequest) (*GetTenantResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
|
||||
}
|
||||
func (UnimplementedTenantServiceServer) Update(context.Context, *UpdateTenantRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
|
||||
}
|
||||
func (UnimplementedTenantServiceServer) Delete(context.Context, *DeleteTenantRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
||||
}
|
||||
func (UnimplementedTenantServiceServer) List(context.Context, *ListTenantsRequest) (*ListTenantsResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
|
||||
}
|
||||
func (UnimplementedTenantServiceServer) AddUser(context.Context, *AddTenantUserRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method AddUser not implemented")
|
||||
}
|
||||
func (UnimplementedTenantServiceServer) GetUser(context.Context, *GetTenantUserRequest) (*GetTenantUserResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented")
|
||||
}
|
||||
func (UnimplementedTenantServiceServer) UpdateUser(context.Context, *UpdateTenantUserRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateUser not implemented")
|
||||
}
|
||||
func (UnimplementedTenantServiceServer) DeleteUser(context.Context, *DeleteTenantUserRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DeleteUser not implemented")
|
||||
}
|
||||
func (UnimplementedTenantServiceServer) ListUsers(context.Context, *ListTenantUsersRequest) (*ListTenantUsersResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ListUsers not implemented")
|
||||
}
|
||||
func (UnimplementedTenantServiceServer) mustEmbedUnimplementedTenantServiceServer() {}
|
||||
|
||||
// UnsafeTenantServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to TenantServiceServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeTenantServiceServer interface {
|
||||
mustEmbedUnimplementedTenantServiceServer()
|
||||
}
|
||||
|
||||
func RegisterTenantServiceServer(s grpc.ServiceRegistrar, srv TenantServiceServer) {
|
||||
s.RegisterService(&TenantService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _TenantService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateTenantRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(TenantServiceServer).Create(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.TenantService/Create",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(TenantServiceServer).Create(ctx, req.(*CreateTenantRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _TenantService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetTenantRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(TenantServiceServer).Get(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.TenantService/Get",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(TenantServiceServer).Get(ctx, req.(*GetTenantRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _TenantService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateTenantRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(TenantServiceServer).Update(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.TenantService/Update",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(TenantServiceServer).Update(ctx, req.(*UpdateTenantRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _TenantService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteTenantRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(TenantServiceServer).Delete(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.TenantService/Delete",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(TenantServiceServer).Delete(ctx, req.(*DeleteTenantRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _TenantService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListTenantsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(TenantServiceServer).List(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.TenantService/List",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(TenantServiceServer).List(ctx, req.(*ListTenantsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _TenantService_AddUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(AddTenantUserRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(TenantServiceServer).AddUser(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.TenantService/AddUser",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(TenantServiceServer).AddUser(ctx, req.(*AddTenantUserRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _TenantService_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetTenantUserRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(TenantServiceServer).GetUser(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.TenantService/GetUser",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(TenantServiceServer).GetUser(ctx, req.(*GetTenantUserRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _TenantService_UpdateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateTenantUserRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(TenantServiceServer).UpdateUser(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.TenantService/UpdateUser",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(TenantServiceServer).UpdateUser(ctx, req.(*UpdateTenantUserRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _TenantService_DeleteUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteTenantUserRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(TenantServiceServer).DeleteUser(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.TenantService/DeleteUser",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(TenantServiceServer).DeleteUser(ctx, req.(*DeleteTenantUserRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _TenantService_ListUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListTenantUsersRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(TenantServiceServer).ListUsers(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.TenantService/ListUsers",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(TenantServiceServer).ListUsers(ctx, req.(*ListTenantUsersRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// TenantService_ServiceDesc is the grpc.ServiceDesc for TenantService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var TenantService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "api.TenantService",
|
||||
HandlerType: (*TenantServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "Create",
|
||||
Handler: _TenantService_Create_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Get",
|
||||
Handler: _TenantService_Get_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Update",
|
||||
Handler: _TenantService_Update_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Delete",
|
||||
Handler: _TenantService_Delete_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "List",
|
||||
Handler: _TenantService_List_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "AddUser",
|
||||
Handler: _TenantService_AddUser_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetUser",
|
||||
Handler: _TenantService_GetUser_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdateUser",
|
||||
Handler: _TenantService_UpdateUser_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "DeleteUser",
|
||||
Handler: _TenantService_DeleteUser_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ListUsers",
|
||||
Handler: _TenantService_ListUsers_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "api/tenant.proto",
|
||||
}
|
1117
api/go/api/user.pb.go
Normal file
1117
api/go/api/user.pb.go
Normal file
File diff suppressed because it is too large
Load Diff
298
api/go/api/user_grpc.pb.go
Normal file
298
api/go/api/user_grpc.pb.go
Normal file
@ -0,0 +1,298 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.2.0
|
||||
// - protoc v3.18.1
|
||||
// source: api/user.proto
|
||||
|
||||
package v4
|
||||
|
||||
import (
|
||||
context "context"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||
)
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
// Requires gRPC-Go v1.32.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion7
|
||||
|
||||
// UserServiceClient is the client API for UserService service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||
type UserServiceClient interface {
|
||||
// Create a new user.
|
||||
Create(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error)
|
||||
// Get the user for the given ID.
|
||||
Get(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error)
|
||||
// Update the given user.
|
||||
Update(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// Delete the user with the given ID.
|
||||
Delete(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// Get the list of users.
|
||||
List(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error)
|
||||
// Update the password for the given user.
|
||||
UpdatePassword(ctx context.Context, in *UpdateUserPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
}
|
||||
|
||||
type userServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient {
|
||||
return &userServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *userServiceClient) Create(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error) {
|
||||
out := new(CreateUserResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.UserService/Create", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *userServiceClient) Get(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) {
|
||||
out := new(GetUserResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.UserService/Get", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *userServiceClient) Update(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.UserService/Update", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *userServiceClient) Delete(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.UserService/Delete", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *userServiceClient) List(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error) {
|
||||
out := new(ListUsersResponse)
|
||||
err := c.cc.Invoke(ctx, "/api.UserService/List", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *userServiceClient) UpdatePassword(ctx context.Context, in *UpdateUserPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/api.UserService/UpdatePassword", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// UserServiceServer is the server API for UserService service.
|
||||
// All implementations must embed UnimplementedUserServiceServer
|
||||
// for forward compatibility
|
||||
type UserServiceServer interface {
|
||||
// Create a new user.
|
||||
Create(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
|
||||
// Get the user for the given ID.
|
||||
Get(context.Context, *GetUserRequest) (*GetUserResponse, error)
|
||||
// Update the given user.
|
||||
Update(context.Context, *UpdateUserRequest) (*emptypb.Empty, error)
|
||||
// Delete the user with the given ID.
|
||||
Delete(context.Context, *DeleteUserRequest) (*emptypb.Empty, error)
|
||||
// Get the list of users.
|
||||
List(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
|
||||
// Update the password for the given user.
|
||||
UpdatePassword(context.Context, *UpdateUserPasswordRequest) (*emptypb.Empty, error)
|
||||
mustEmbedUnimplementedUserServiceServer()
|
||||
}
|
||||
|
||||
// UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
|
||||
type UnimplementedUserServiceServer struct {
|
||||
}
|
||||
|
||||
func (UnimplementedUserServiceServer) Create(context.Context, *CreateUserRequest) (*CreateUserResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
|
||||
}
|
||||
func (UnimplementedUserServiceServer) Get(context.Context, *GetUserRequest) (*GetUserResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
|
||||
}
|
||||
func (UnimplementedUserServiceServer) Update(context.Context, *UpdateUserRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
|
||||
}
|
||||
func (UnimplementedUserServiceServer) Delete(context.Context, *DeleteUserRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
||||
}
|
||||
func (UnimplementedUserServiceServer) List(context.Context, *ListUsersRequest) (*ListUsersResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
|
||||
}
|
||||
func (UnimplementedUserServiceServer) UpdatePassword(context.Context, *UpdateUserPasswordRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdatePassword not implemented")
|
||||
}
|
||||
func (UnimplementedUserServiceServer) mustEmbedUnimplementedUserServiceServer() {}
|
||||
|
||||
// UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to UserServiceServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeUserServiceServer interface {
|
||||
mustEmbedUnimplementedUserServiceServer()
|
||||
}
|
||||
|
||||
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer) {
|
||||
s.RegisterService(&UserService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _UserService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateUserRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(UserServiceServer).Create(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.UserService/Create",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(UserServiceServer).Create(ctx, req.(*CreateUserRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _UserService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetUserRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(UserServiceServer).Get(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.UserService/Get",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(UserServiceServer).Get(ctx, req.(*GetUserRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _UserService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateUserRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(UserServiceServer).Update(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.UserService/Update",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(UserServiceServer).Update(ctx, req.(*UpdateUserRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _UserService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteUserRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(UserServiceServer).Delete(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.UserService/Delete",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(UserServiceServer).Delete(ctx, req.(*DeleteUserRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _UserService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListUsersRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(UserServiceServer).List(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.UserService/List",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(UserServiceServer).List(ctx, req.(*ListUsersRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _UserService_UpdatePassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateUserPasswordRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(UserServiceServer).UpdatePassword(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/api.UserService/UpdatePassword",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(UserServiceServer).UpdatePassword(ctx, req.(*UpdateUserPasswordRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// UserService_ServiceDesc is the grpc.ServiceDesc for UserService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var UserService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "api.UserService",
|
||||
HandlerType: (*UserServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "Create",
|
||||
Handler: _UserService_Create_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Get",
|
||||
Handler: _UserService_Get_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Update",
|
||||
Handler: _UserService_Update_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Delete",
|
||||
Handler: _UserService_Delete_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "List",
|
||||
Handler: _UserService_List_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdatePassword",
|
||||
Handler: _UserService_UpdatePassword_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "api/user.proto",
|
||||
}
|
728
api/go/common/common.pb.go
Normal file
728
api/go/common/common.pb.go
Normal file
@ -0,0 +1,728 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.28.0
|
||||
// protoc v3.18.1
|
||||
// source: common/common.proto
|
||||
|
||||
package common
|
||||
|
||||
import (
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type Modulation int32
|
||||
|
||||
const (
|
||||
// LoRa
|
||||
Modulation_LORA Modulation = 0
|
||||
// FSK
|
||||
Modulation_FSK Modulation = 1
|
||||
// LR-FHSS
|
||||
Modulation_LR_FHSS Modulation = 2
|
||||
)
|
||||
|
||||
// Enum value maps for Modulation.
|
||||
var (
|
||||
Modulation_name = map[int32]string{
|
||||
0: "LORA",
|
||||
1: "FSK",
|
||||
2: "LR_FHSS",
|
||||
}
|
||||
Modulation_value = map[string]int32{
|
||||
"LORA": 0,
|
||||
"FSK": 1,
|
||||
"LR_FHSS": 2,
|
||||
}
|
||||
)
|
||||
|
||||
func (x Modulation) Enum() *Modulation {
|
||||
p := new(Modulation)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x Modulation) String() string {
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||
}
|
||||
|
||||
func (Modulation) Descriptor() protoreflect.EnumDescriptor {
|
||||
return file_common_common_proto_enumTypes[0].Descriptor()
|
||||
}
|
||||
|
||||
func (Modulation) Type() protoreflect.EnumType {
|
||||
return &file_common_common_proto_enumTypes[0]
|
||||
}
|
||||
|
||||
func (x Modulation) Number() protoreflect.EnumNumber {
|
||||
return protoreflect.EnumNumber(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use Modulation.Descriptor instead.
|
||||
func (Modulation) EnumDescriptor() ([]byte, []int) {
|
||||
return file_common_common_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
type Region int32
|
||||
|
||||
const (
|
||||
// EU868
|
||||
Region_EU868 Region = 0
|
||||
// US915
|
||||
Region_US915 Region = 2
|
||||
// CN779
|
||||
Region_CN779 Region = 3
|
||||
// EU433
|
||||
Region_EU433 Region = 4
|
||||
// AU915
|
||||
Region_AU915 Region = 5
|
||||
// CN470
|
||||
Region_CN470 Region = 6
|
||||
// AS923
|
||||
Region_AS923 Region = 7
|
||||
// AS923 with -1.80 MHz frequency offset
|
||||
Region_AS923_2 Region = 12
|
||||
// AS923 with -6.60 MHz frequency offset
|
||||
Region_AS923_3 Region = 13
|
||||
// (AS923 with -5.90 MHz frequency offset).
|
||||
Region_AS923_4 Region = 14
|
||||
// KR920
|
||||
Region_KR920 Region = 8
|
||||
// IN865
|
||||
Region_IN865 Region = 9
|
||||
// RU864
|
||||
Region_RU864 Region = 10
|
||||
// ISM2400 (LoRaWAN 2.4 GHz)
|
||||
Region_ISM2400 Region = 11
|
||||
)
|
||||
|
||||
// Enum value maps for Region.
|
||||
var (
|
||||
Region_name = map[int32]string{
|
||||
0: "EU868",
|
||||
2: "US915",
|
||||
3: "CN779",
|
||||
4: "EU433",
|
||||
5: "AU915",
|
||||
6: "CN470",
|
||||
7: "AS923",
|
||||
12: "AS923_2",
|
||||
13: "AS923_3",
|
||||
14: "AS923_4",
|
||||
8: "KR920",
|
||||
9: "IN865",
|
||||
10: "RU864",
|
||||
11: "ISM2400",
|
||||
}
|
||||
Region_value = map[string]int32{
|
||||
"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,
|
||||
}
|
||||
)
|
||||
|
||||
func (x Region) Enum() *Region {
|
||||
p := new(Region)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x Region) String() string {
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||
}
|
||||
|
||||
func (Region) Descriptor() protoreflect.EnumDescriptor {
|
||||
return file_common_common_proto_enumTypes[1].Descriptor()
|
||||
}
|
||||
|
||||
func (Region) Type() protoreflect.EnumType {
|
||||
return &file_common_common_proto_enumTypes[1]
|
||||
}
|
||||
|
||||
func (x Region) Number() protoreflect.EnumNumber {
|
||||
return protoreflect.EnumNumber(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use Region.Descriptor instead.
|
||||
func (Region) EnumDescriptor() ([]byte, []int) {
|
||||
return file_common_common_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
type MType int32
|
||||
|
||||
const (
|
||||
// JoinRequest.
|
||||
MType_JOIN_REQUEST MType = 0
|
||||
// JoinAccept.
|
||||
MType_JOIN_ACCEPT MType = 1
|
||||
// UnconfirmedDataUp.
|
||||
MType_UNCONFIRMED_DATA_UP MType = 2
|
||||
// UnconfirmedDataDown.
|
||||
MType_UNCONFIRMED_DATA_DOWN MType = 3
|
||||
// ConfirmedDataUp.
|
||||
MType_CONFIRMED_DATA_UP MType = 4
|
||||
// ConfirmedDataDown.
|
||||
MType_CONFIRMED_DATA_DOWN MType = 5
|
||||
// RejoinRequest.
|
||||
MType_REJOIN_REQUEST MType = 6
|
||||
// Proprietary.
|
||||
MType_PROPRIETARY MType = 7
|
||||
)
|
||||
|
||||
// Enum value maps for MType.
|
||||
var (
|
||||
MType_name = map[int32]string{
|
||||
0: "JOIN_REQUEST",
|
||||
1: "JOIN_ACCEPT",
|
||||
2: "UNCONFIRMED_DATA_UP",
|
||||
3: "UNCONFIRMED_DATA_DOWN",
|
||||
4: "CONFIRMED_DATA_UP",
|
||||
5: "CONFIRMED_DATA_DOWN",
|
||||
6: "REJOIN_REQUEST",
|
||||
7: "PROPRIETARY",
|
||||
}
|
||||
MType_value = map[string]int32{
|
||||
"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,
|
||||
}
|
||||
)
|
||||
|
||||
func (x MType) Enum() *MType {
|
||||
p := new(MType)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x MType) String() string {
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||
}
|
||||
|
||||
func (MType) Descriptor() protoreflect.EnumDescriptor {
|
||||
return file_common_common_proto_enumTypes[2].Descriptor()
|
||||
}
|
||||
|
||||
func (MType) Type() protoreflect.EnumType {
|
||||
return &file_common_common_proto_enumTypes[2]
|
||||
}
|
||||
|
||||
func (x MType) Number() protoreflect.EnumNumber {
|
||||
return protoreflect.EnumNumber(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use MType.Descriptor instead.
|
||||
func (MType) EnumDescriptor() ([]byte, []int) {
|
||||
return file_common_common_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
type MacVersion int32
|
||||
|
||||
const (
|
||||
MacVersion_LORAWAN_1_0_0 MacVersion = 0
|
||||
MacVersion_LORAWAN_1_0_1 MacVersion = 1
|
||||
MacVersion_LORAWAN_1_0_2 MacVersion = 2
|
||||
MacVersion_LORAWAN_1_0_3 MacVersion = 3
|
||||
MacVersion_LORAWAN_1_0_4 MacVersion = 4
|
||||
MacVersion_LORAWAN_1_1_0 MacVersion = 5
|
||||
)
|
||||
|
||||
// Enum value maps for MacVersion.
|
||||
var (
|
||||
MacVersion_name = map[int32]string{
|
||||
0: "LORAWAN_1_0_0",
|
||||
1: "LORAWAN_1_0_1",
|
||||
2: "LORAWAN_1_0_2",
|
||||
3: "LORAWAN_1_0_3",
|
||||
4: "LORAWAN_1_0_4",
|
||||
5: "LORAWAN_1_1_0",
|
||||
}
|
||||
MacVersion_value = map[string]int32{
|
||||
"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,
|
||||
}
|
||||
)
|
||||
|
||||
func (x MacVersion) Enum() *MacVersion {
|
||||
p := new(MacVersion)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x MacVersion) String() string {
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||
}
|
||||
|
||||
func (MacVersion) Descriptor() protoreflect.EnumDescriptor {
|
||||
return file_common_common_proto_enumTypes[3].Descriptor()
|
||||
}
|
||||
|
||||
func (MacVersion) Type() protoreflect.EnumType {
|
||||
return &file_common_common_proto_enumTypes[3]
|
||||
}
|
||||
|
||||
func (x MacVersion) Number() protoreflect.EnumNumber {
|
||||
return protoreflect.EnumNumber(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use MacVersion.Descriptor instead.
|
||||
func (MacVersion) EnumDescriptor() ([]byte, []int) {
|
||||
return file_common_common_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
type RegParamsRevision int32
|
||||
|
||||
const (
|
||||
RegParamsRevision_A RegParamsRevision = 0
|
||||
RegParamsRevision_B RegParamsRevision = 1
|
||||
RegParamsRevision_RP002_1_0_0 RegParamsRevision = 2
|
||||
RegParamsRevision_RP002_1_0_1 RegParamsRevision = 3
|
||||
RegParamsRevision_RP002_1_0_2 RegParamsRevision = 4
|
||||
RegParamsRevision_RP002_1_0_3 RegParamsRevision = 5
|
||||
)
|
||||
|
||||
// Enum value maps for RegParamsRevision.
|
||||
var (
|
||||
RegParamsRevision_name = map[int32]string{
|
||||
0: "A",
|
||||
1: "B",
|
||||
2: "RP002_1_0_0",
|
||||
3: "RP002_1_0_1",
|
||||
4: "RP002_1_0_2",
|
||||
5: "RP002_1_0_3",
|
||||
}
|
||||
RegParamsRevision_value = map[string]int32{
|
||||
"A": 0,
|
||||
"B": 1,
|
||||
"RP002_1_0_0": 2,
|
||||
"RP002_1_0_1": 3,
|
||||
"RP002_1_0_2": 4,
|
||||
"RP002_1_0_3": 5,
|
||||
}
|
||||
)
|
||||
|
||||
func (x RegParamsRevision) Enum() *RegParamsRevision {
|
||||
p := new(RegParamsRevision)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x RegParamsRevision) String() string {
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||
}
|
||||
|
||||
func (RegParamsRevision) Descriptor() protoreflect.EnumDescriptor {
|
||||
return file_common_common_proto_enumTypes[4].Descriptor()
|
||||
}
|
||||
|
||||
func (RegParamsRevision) Type() protoreflect.EnumType {
|
||||
return &file_common_common_proto_enumTypes[4]
|
||||
}
|
||||
|
||||
func (x RegParamsRevision) Number() protoreflect.EnumNumber {
|
||||
return protoreflect.EnumNumber(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use RegParamsRevision.Descriptor instead.
|
||||
func (RegParamsRevision) EnumDescriptor() ([]byte, []int) {
|
||||
return file_common_common_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
type LocationSource int32
|
||||
|
||||
const (
|
||||
// Unknown.
|
||||
LocationSource_UNKNOWN LocationSource = 0
|
||||
// GPS.
|
||||
LocationSource_GPS LocationSource = 1
|
||||
// Manually configured.
|
||||
LocationSource_CONFIG LocationSource = 2
|
||||
// Geo resolver (TDOA).
|
||||
LocationSource_GEO_RESOLVER_TDOA LocationSource = 3
|
||||
// Geo resolver (RSSI).
|
||||
LocationSource_GEO_RESOLVER_RSSI LocationSource = 4
|
||||
// Geo resolver (GNSS).
|
||||
LocationSource_GEO_RESOLVER_GNSS LocationSource = 5
|
||||
// Geo resolver (WIFI).
|
||||
LocationSource_GEO_RESOLVER_WIFI LocationSource = 6
|
||||
)
|
||||
|
||||
// Enum value maps for LocationSource.
|
||||
var (
|
||||
LocationSource_name = map[int32]string{
|
||||
0: "UNKNOWN",
|
||||
1: "GPS",
|
||||
2: "CONFIG",
|
||||
3: "GEO_RESOLVER_TDOA",
|
||||
4: "GEO_RESOLVER_RSSI",
|
||||
5: "GEO_RESOLVER_GNSS",
|
||||
6: "GEO_RESOLVER_WIFI",
|
||||
}
|
||||
LocationSource_value = map[string]int32{
|
||||
"UNKNOWN": 0,
|
||||
"GPS": 1,
|
||||
"CONFIG": 2,
|
||||
"GEO_RESOLVER_TDOA": 3,
|
||||
"GEO_RESOLVER_RSSI": 4,
|
||||
"GEO_RESOLVER_GNSS": 5,
|
||||
"GEO_RESOLVER_WIFI": 6,
|
||||
}
|
||||
)
|
||||
|
||||
func (x LocationSource) Enum() *LocationSource {
|
||||
p := new(LocationSource)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x LocationSource) String() string {
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||
}
|
||||
|
||||
func (LocationSource) Descriptor() protoreflect.EnumDescriptor {
|
||||
return file_common_common_proto_enumTypes[5].Descriptor()
|
||||
}
|
||||
|
||||
func (LocationSource) Type() protoreflect.EnumType {
|
||||
return &file_common_common_proto_enumTypes[5]
|
||||
}
|
||||
|
||||
func (x LocationSource) Number() protoreflect.EnumNumber {
|
||||
return protoreflect.EnumNumber(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use LocationSource.Descriptor instead.
|
||||
func (LocationSource) EnumDescriptor() ([]byte, []int) {
|
||||
return file_common_common_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
type Location struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// Latitude.
|
||||
Latitude float64 `protobuf:"fixed64,1,opt,name=latitude,proto3" json:"latitude,omitempty"`
|
||||
// Longitude.
|
||||
Longitude float64 `protobuf:"fixed64,2,opt,name=longitude,proto3" json:"longitude,omitempty"`
|
||||
// Altitude.
|
||||
Altitude float64 `protobuf:"fixed64,3,opt,name=altitude,proto3" json:"altitude,omitempty"`
|
||||
// Location source.
|
||||
Source LocationSource `protobuf:"varint,4,opt,name=source,proto3,enum=common.LocationSource" json:"source,omitempty"`
|
||||
// Accuracy.
|
||||
Accuracy float32 `protobuf:"fixed32,5,opt,name=accuracy,proto3" json:"accuracy,omitempty"`
|
||||
}
|
||||
|
||||
func (x *Location) Reset() {
|
||||
*x = Location{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_common_common_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *Location) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Location) ProtoMessage() {}
|
||||
|
||||
func (x *Location) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_common_common_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use Location.ProtoReflect.Descriptor instead.
|
||||
func (*Location) Descriptor() ([]byte, []int) {
|
||||
return file_common_common_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *Location) GetLatitude() float64 {
|
||||
if x != nil {
|
||||
return x.Latitude
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *Location) GetLongitude() float64 {
|
||||
if x != nil {
|
||||
return x.Longitude
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *Location) GetAltitude() float64 {
|
||||
if x != nil {
|
||||
return x.Altitude
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *Location) GetSource() LocationSource {
|
||||
if x != nil {
|
||||
return x.Source
|
||||
}
|
||||
return LocationSource_UNKNOWN
|
||||
}
|
||||
|
||||
func (x *Location) GetAccuracy() float32 {
|
||||
if x != nil {
|
||||
return x.Accuracy
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type KeyEnvelope struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// KEK label.
|
||||
KekLabel string `protobuf:"bytes,1,opt,name=kek_label,json=kekLabel,proto3" json:"kek_label,omitempty"`
|
||||
// AES key (when the kek_label is set, this value must first be decrypted).
|
||||
AesKey []byte `protobuf:"bytes,2,opt,name=aes_key,json=aesKey,proto3" json:"aes_key,omitempty"`
|
||||
}
|
||||
|
||||
func (x *KeyEnvelope) Reset() {
|
||||
*x = KeyEnvelope{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_common_common_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *KeyEnvelope) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*KeyEnvelope) ProtoMessage() {}
|
||||
|
||||
func (x *KeyEnvelope) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_common_common_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use KeyEnvelope.ProtoReflect.Descriptor instead.
|
||||
func (*KeyEnvelope) Descriptor() ([]byte, []int) {
|
||||
return file_common_common_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *KeyEnvelope) GetKekLabel() string {
|
||||
if x != nil {
|
||||
return x.KekLabel
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *KeyEnvelope) GetAesKey() []byte {
|
||||
if x != nil {
|
||||
return x.AesKey
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_common_common_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_common_common_proto_rawDesc = []byte{
|
||||
0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x22, 0xac, 0x01,
|
||||
0x0a, 0x08, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61,
|
||||
0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x08, 0x6c, 0x61,
|
||||
0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74,
|
||||
0x75, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69,
|
||||
0x74, 0x75, 0x64, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x6c, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65,
|
||||
0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x52, 0x08, 0x61, 0x6c, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65,
|
||||
0x12, 0x2e, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e,
|
||||
0x32, 0x16, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69,
|
||||
0x6f, 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
|
||||
0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x75, 0x72, 0x61, 0x63, 0x79, 0x18, 0x05, 0x20, 0x01,
|
||||
0x28, 0x02, 0x52, 0x08, 0x61, 0x63, 0x63, 0x75, 0x72, 0x61, 0x63, 0x79, 0x22, 0x43, 0x0a, 0x0b,
|
||||
0x4b, 0x65, 0x79, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6b,
|
||||
0x65, 0x6b, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
|
||||
0x6b, 0x65, 0x6b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x61, 0x65, 0x73, 0x5f,
|
||||
0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x61, 0x65, 0x73, 0x4b, 0x65,
|
||||
0x79, 0x2a, 0x2c, 0x0a, 0x0a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12,
|
||||
0x08, 0x0a, 0x04, 0x4c, 0x4f, 0x52, 0x41, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x46, 0x53, 0x4b,
|
||||
0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4c, 0x52, 0x5f, 0x46, 0x48, 0x53, 0x53, 0x10, 0x02, 0x2a,
|
||||
0xaa, 0x01, 0x0a, 0x06, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x55,
|
||||
0x38, 0x36, 0x38, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x53, 0x39, 0x31, 0x35, 0x10, 0x02,
|
||||
0x12, 0x09, 0x0a, 0x05, 0x43, 0x4e, 0x37, 0x37, 0x39, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x45,
|
||||
0x55, 0x34, 0x33, 0x33, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x55, 0x39, 0x31, 0x35, 0x10,
|
||||
0x05, 0x12, 0x09, 0x0a, 0x05, 0x43, 0x4e, 0x34, 0x37, 0x30, 0x10, 0x06, 0x12, 0x09, 0x0a, 0x05,
|
||||
0x41, 0x53, 0x39, 0x32, 0x33, 0x10, 0x07, 0x12, 0x0b, 0x0a, 0x07, 0x41, 0x53, 0x39, 0x32, 0x33,
|
||||
0x5f, 0x32, 0x10, 0x0c, 0x12, 0x0b, 0x0a, 0x07, 0x41, 0x53, 0x39, 0x32, 0x33, 0x5f, 0x33, 0x10,
|
||||
0x0d, 0x12, 0x0b, 0x0a, 0x07, 0x41, 0x53, 0x39, 0x32, 0x33, 0x5f, 0x34, 0x10, 0x0e, 0x12, 0x09,
|
||||
0x0a, 0x05, 0x4b, 0x52, 0x39, 0x32, 0x30, 0x10, 0x08, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x38,
|
||||
0x36, 0x35, 0x10, 0x09, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x55, 0x38, 0x36, 0x34, 0x10, 0x0a, 0x12,
|
||||
0x0b, 0x0a, 0x07, 0x49, 0x53, 0x4d, 0x32, 0x34, 0x30, 0x30, 0x10, 0x0b, 0x2a, 0xb3, 0x01, 0x0a,
|
||||
0x05, 0x4d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x4a, 0x4f, 0x49, 0x4e, 0x5f, 0x52,
|
||||
0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x4a, 0x4f, 0x49, 0x4e,
|
||||
0x5f, 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x55, 0x4e, 0x43,
|
||||
0x4f, 0x4e, 0x46, 0x49, 0x52, 0x4d, 0x45, 0x44, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x55, 0x50,
|
||||
0x10, 0x02, 0x12, 0x19, 0x0a, 0x15, 0x55, 0x4e, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x52, 0x4d, 0x45,
|
||||
0x44, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x03, 0x12, 0x15, 0x0a,
|
||||
0x11, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x52, 0x4d, 0x45, 0x44, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x5f,
|
||||
0x55, 0x50, 0x10, 0x04, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x52, 0x4d, 0x45,
|
||||
0x44, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x05, 0x12, 0x12, 0x0a,
|
||||
0x0e, 0x52, 0x45, 0x4a, 0x4f, 0x49, 0x4e, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x10,
|
||||
0x06, 0x12, 0x0f, 0x0a, 0x0b, 0x50, 0x52, 0x4f, 0x50, 0x52, 0x49, 0x45, 0x54, 0x41, 0x52, 0x59,
|
||||
0x10, 0x07, 0x2a, 0x7e, 0x0a, 0x0a, 0x4d, 0x61, 0x63, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
|
||||
0x12, 0x11, 0x0a, 0x0d, 0x4c, 0x4f, 0x52, 0x41, 0x57, 0x41, 0x4e, 0x5f, 0x31, 0x5f, 0x30, 0x5f,
|
||||
0x30, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x4c, 0x4f, 0x52, 0x41, 0x57, 0x41, 0x4e, 0x5f, 0x31,
|
||||
0x5f, 0x30, 0x5f, 0x31, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x4c, 0x4f, 0x52, 0x41, 0x57, 0x41,
|
||||
0x4e, 0x5f, 0x31, 0x5f, 0x30, 0x5f, 0x32, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x4c, 0x4f, 0x52,
|
||||
0x41, 0x57, 0x41, 0x4e, 0x5f, 0x31, 0x5f, 0x30, 0x5f, 0x33, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d,
|
||||
0x4c, 0x4f, 0x52, 0x41, 0x57, 0x41, 0x4e, 0x5f, 0x31, 0x5f, 0x30, 0x5f, 0x34, 0x10, 0x04, 0x12,
|
||||
0x11, 0x0a, 0x0d, 0x4c, 0x4f, 0x52, 0x41, 0x57, 0x41, 0x4e, 0x5f, 0x31, 0x5f, 0x31, 0x5f, 0x30,
|
||||
0x10, 0x05, 0x2a, 0x65, 0x0a, 0x11, 0x52, 0x65, 0x67, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52,
|
||||
0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x05, 0x0a, 0x01, 0x41, 0x10, 0x00, 0x12, 0x05,
|
||||
0x0a, 0x01, 0x42, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x50, 0x30, 0x30, 0x32, 0x5f, 0x31,
|
||||
0x5f, 0x30, 0x5f, 0x30, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x50, 0x30, 0x30, 0x32, 0x5f,
|
||||
0x31, 0x5f, 0x30, 0x5f, 0x31, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x50, 0x30, 0x30, 0x32,
|
||||
0x5f, 0x31, 0x5f, 0x30, 0x5f, 0x32, 0x10, 0x04, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x50, 0x30, 0x30,
|
||||
0x32, 0x5f, 0x31, 0x5f, 0x30, 0x5f, 0x33, 0x10, 0x05, 0x2a, 0x8e, 0x01, 0x0a, 0x0e, 0x4c, 0x6f,
|
||||
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x0b, 0x0a, 0x07,
|
||||
0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x47, 0x50, 0x53,
|
||||
0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x10, 0x02, 0x12, 0x15,
|
||||
0x0a, 0x11, 0x47, 0x45, 0x4f, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x4c, 0x56, 0x45, 0x52, 0x5f, 0x54,
|
||||
0x44, 0x4f, 0x41, 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, 0x47, 0x45, 0x4f, 0x5f, 0x52, 0x45, 0x53,
|
||||
0x4f, 0x4c, 0x56, 0x45, 0x52, 0x5f, 0x52, 0x53, 0x53, 0x49, 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11,
|
||||
0x47, 0x45, 0x4f, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x4c, 0x56, 0x45, 0x52, 0x5f, 0x47, 0x4e, 0x53,
|
||||
0x53, 0x10, 0x05, 0x12, 0x15, 0x0a, 0x11, 0x47, 0x45, 0x4f, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x4c,
|
||||
0x56, 0x45, 0x52, 0x5f, 0x57, 0x49, 0x46, 0x49, 0x10, 0x06, 0x42, 0x55, 0x0a, 0x11, 0x69, 0x6f,
|
||||
0x2e, 0x63, 0x68, 0x69, 0x72, 0x70, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x61, 0x70, 0x69, 0x42,
|
||||
0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x31,
|
||||
0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x68, 0x69, 0x72, 0x70,
|
||||
0x73, 0x74, 0x61, 0x63, 0x6b, 0x2f, 0x63, 0x68, 0x69, 0x72, 0x70, 0x73, 0x74, 0x61, 0x63, 0x6b,
|
||||
0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x34, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
|
||||
0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_common_common_proto_rawDescOnce sync.Once
|
||||
file_common_common_proto_rawDescData = file_common_common_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_common_common_proto_rawDescGZIP() []byte {
|
||||
file_common_common_proto_rawDescOnce.Do(func() {
|
||||
file_common_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_common_proto_rawDescData)
|
||||
})
|
||||
return file_common_common_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_common_common_proto_enumTypes = make([]protoimpl.EnumInfo, 6)
|
||||
var file_common_common_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_common_common_proto_goTypes = []interface{}{
|
||||
(Modulation)(0), // 0: common.Modulation
|
||||
(Region)(0), // 1: common.Region
|
||||
(MType)(0), // 2: common.MType
|
||||
(MacVersion)(0), // 3: common.MacVersion
|
||||
(RegParamsRevision)(0), // 4: common.RegParamsRevision
|
||||
(LocationSource)(0), // 5: common.LocationSource
|
||||
(*Location)(nil), // 6: common.Location
|
||||
(*KeyEnvelope)(nil), // 7: common.KeyEnvelope
|
||||
}
|
||||
var file_common_common_proto_depIdxs = []int32{
|
||||
5, // 0: common.Location.source:type_name -> common.LocationSource
|
||||
1, // [1:1] is the sub-list for method output_type
|
||||
1, // [1:1] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
1, // [1:1] is the sub-list for extension extendee
|
||||
0, // [0:1] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_common_common_proto_init() }
|
||||
func file_common_common_proto_init() {
|
||||
if File_common_common_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_common_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Location); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_common_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*KeyEnvelope); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_common_common_proto_rawDesc,
|
||||
NumEnums: 6,
|
||||
NumMessages: 2,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_common_common_proto_goTypes,
|
||||
DependencyIndexes: file_common_common_proto_depIdxs,
|
||||
EnumInfos: file_common_common_proto_enumTypes,
|
||||
MessageInfos: file_common_common_proto_msgTypes,
|
||||
}.Build()
|
||||
File_common_common_proto = out.File
|
||||
file_common_common_proto_rawDesc = nil
|
||||
file_common_common_proto_goTypes = nil
|
||||
file_common_common_proto_depIdxs = nil
|
||||
}
|
9
api/go/go.mod
Normal file
9
api/go/go.mod
Normal file
@ -0,0 +1,9 @@
|
||||
module github.com/chirpstack/api/go/v4
|
||||
|
||||
go 1.16
|
||||
|
||||
require (
|
||||
google.golang.org/grpc v1.45.0 // indirect
|
||||
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.2.0 // indirect
|
||||
google.golang.org/protobuf v1.28.0 // indirect
|
||||
)
|
122
api/go/go.sum
Normal file
122
api/go/go.sum
Normal file
@ -0,0 +1,122 @@
|
||||
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
||||
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||
github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
|
||||
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
|
||||
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
|
||||
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
|
||||
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
|
||||
github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
|
||||
github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI=
|
||||
github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
|
||||
github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
|
||||
github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
|
||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
|
||||
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
|
||||
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
|
||||
github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
|
||||
github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0=
|
||||
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
|
||||
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
|
||||
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
|
||||
github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
|
||||
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
|
||||
github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
|
||||
github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
|
||||
github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
|
||||
github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
|
||||
github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
|
||||
github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
|
||||
github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
|
||||
github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
|
||||
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
|
||||
github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw=
|
||||
github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
|
||||
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
|
||||
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw=
|
||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
|
||||
github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
|
||||
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI=
|
||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
||||
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
|
||||
golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
|
||||
golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
||||
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
golang.org/x/net v0.0.0-20200822124328-c89045814202 h1:VvcQYSHwXgi7W+TpUR6A9g6Up98WAHf3f/ulnJ62IyA=
|
||||
golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
||||
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd h1:xhmwyvizuTgC2qz7ZlMluP20uW+C3Rm0FD/WLDX8884=
|
||||
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
|
||||
golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
||||
golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
|
||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
|
||||
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
||||
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
|
||||
google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
|
||||
google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 h1:+kGHl1aib/qcwaRi1CbqBZ1rk19r85MNUf8HaBghugY=
|
||||
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
|
||||
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
|
||||
google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
|
||||
google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
|
||||
google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
|
||||
google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0=
|
||||
google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
|
||||
google.golang.org/grpc v1.45.0 h1:NEpgUqV3Z+ZjkqMsxMg11IaDrXY4RY6CQukSGK0uI1M=
|
||||
google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ=
|
||||
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.2.0 h1:TLkBREm4nIsEcexnCjgQd5GQWaHcqMzwQV0TX9pq8S0=
|
||||
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.2.0/go.mod h1:DNq5QpG7LJqD2AamLZ7zvKE0DEpVl2BSEVjFycAAjRY=
|
||||
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
|
||||
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
|
||||
google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
|
||||
google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
|
||||
google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
|
||||
google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||
google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||
google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||
google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
|
||||
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
|
||||
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
||||
google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
||||
google.golang.org/protobuf v1.28.0 h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw=
|
||||
google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
3709
api/go/gw/gw.pb.go
Normal file
3709
api/go/gw/gw.pb.go
Normal file
File diff suppressed because it is too large
Load Diff
1511
api/go/integration/integration.pb.go
Normal file
1511
api/go/integration/integration.pb.go
Normal file
File diff suppressed because it is too large
Load Diff
382
api/go/meta/meta.pb.go
Normal file
382
api/go/meta/meta.pb.go
Normal file
@ -0,0 +1,382 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.28.0
|
||||
// protoc v3.18.1
|
||||
// source: meta/meta.proto
|
||||
|
||||
package meta
|
||||
|
||||
import (
|
||||
gw "github.com/chirpstack/chirpstack-api/go/v4/gw"
|
||||
common "github.com/chirpstack/chirpstack/api/go/v4/common"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type UplinkMeta struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// Device EUI (EUI64).
|
||||
DevEui string `protobuf:"bytes,1,opt,name=dev_eui,json=devEui,proto3" json:"dev_eui,omitempty"`
|
||||
// TX meta-data.
|
||||
TxInfo *gw.UplinkTXInfo `protobuf:"bytes,2,opt,name=tx_info,json=txInfo,proto3" json:"tx_info,omitempty"`
|
||||
// RX meta-data.
|
||||
RxInfo []*gw.UplinkRXInfo `protobuf:"bytes,3,rep,name=rx_info,json=rxInfo,proto3" json:"rx_info,omitempty"`
|
||||
// PHYPayload byte count.
|
||||
PhyPayloadByteCount uint32 `protobuf:"varint,4,opt,name=phy_payload_byte_count,json=phyPayloadByteCount,proto3" json:"phy_payload_byte_count,omitempty"`
|
||||
// MAC-Command byte count.
|
||||
MacCommandByteCount uint32 `protobuf:"varint,5,opt,name=mac_command_byte_count,json=macCommandByteCount,proto3" json:"mac_command_byte_count,omitempty"`
|
||||
// Application payload byte count.
|
||||
ApplicationPayloadByteCount uint32 `protobuf:"varint,6,opt,name=application_payload_byte_count,json=applicationPayloadByteCount,proto3" json:"application_payload_byte_count,omitempty"`
|
||||
// Message type.
|
||||
MessageType common.MType `protobuf:"varint,7,opt,name=message_type,json=messageType,proto3,enum=common.MType" json:"message_type,omitempty"`
|
||||
}
|
||||
|
||||
func (x *UplinkMeta) Reset() {
|
||||
*x = UplinkMeta{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_meta_meta_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *UplinkMeta) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UplinkMeta) ProtoMessage() {}
|
||||
|
||||
func (x *UplinkMeta) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_meta_meta_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use UplinkMeta.ProtoReflect.Descriptor instead.
|
||||
func (*UplinkMeta) Descriptor() ([]byte, []int) {
|
||||
return file_meta_meta_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *UplinkMeta) GetDevEui() string {
|
||||
if x != nil {
|
||||
return x.DevEui
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UplinkMeta) GetTxInfo() *gw.UplinkTXInfo {
|
||||
if x != nil {
|
||||
return x.TxInfo
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *UplinkMeta) GetRxInfo() []*gw.UplinkRXInfo {
|
||||
if x != nil {
|
||||
return x.RxInfo
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *UplinkMeta) GetPhyPayloadByteCount() uint32 {
|
||||
if x != nil {
|
||||
return x.PhyPayloadByteCount
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UplinkMeta) GetMacCommandByteCount() uint32 {
|
||||
if x != nil {
|
||||
return x.MacCommandByteCount
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UplinkMeta) GetApplicationPayloadByteCount() uint32 {
|
||||
if x != nil {
|
||||
return x.ApplicationPayloadByteCount
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UplinkMeta) GetMessageType() common.MType {
|
||||
if x != nil {
|
||||
return x.MessageType
|
||||
}
|
||||
return common.MType(0)
|
||||
}
|
||||
|
||||
type DownlinkMeta struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// Device EUI (EUI64).
|
||||
DevEui string `protobuf:"bytes,1,opt,name=dev_eui,json=devEui,proto3" json:"dev_eui,omitempty"`
|
||||
// Multicast Group ID (UUID).
|
||||
MulticastGroupId string `protobuf:"bytes,2,opt,name=multicast_group_id,json=multicastGroupId,proto3" json:"multicast_group_id,omitempty"`
|
||||
// TX meta-data.
|
||||
TxInfo *gw.DownlinkTXInfo `protobuf:"bytes,3,opt,name=tx_info,json=txInfo,proto3" json:"tx_info,omitempty"`
|
||||
// PHYPayload byte count.
|
||||
PhyPayloadByteCount uint32 `protobuf:"varint,4,opt,name=phy_payload_byte_count,json=phyPayloadByteCount,proto3" json:"phy_payload_byte_count,omitempty"`
|
||||
// MAC-Command byte count.
|
||||
MacCommandByteCount uint32 `protobuf:"varint,5,opt,name=mac_command_byte_count,json=macCommandByteCount,proto3" json:"mac_command_byte_count,omitempty"`
|
||||
// Application payload byte count.
|
||||
ApplicationPayloadByteCount uint32 `protobuf:"varint,6,opt,name=application_payload_byte_count,json=applicationPayloadByteCount,proto3" json:"application_payload_byte_count,omitempty"`
|
||||
// Message type.
|
||||
MessageType common.MType `protobuf:"varint,7,opt,name=message_type,json=messageType,proto3,enum=common.MType" json:"message_type,omitempty"`
|
||||
// Gateway ID (EUI64).
|
||||
GatewayId string `protobuf:"bytes,8,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"`
|
||||
}
|
||||
|
||||
func (x *DownlinkMeta) Reset() {
|
||||
*x = DownlinkMeta{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_meta_meta_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *DownlinkMeta) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*DownlinkMeta) ProtoMessage() {}
|
||||
|
||||
func (x *DownlinkMeta) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_meta_meta_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use DownlinkMeta.ProtoReflect.Descriptor instead.
|
||||
func (*DownlinkMeta) Descriptor() ([]byte, []int) {
|
||||
return file_meta_meta_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *DownlinkMeta) GetDevEui() string {
|
||||
if x != nil {
|
||||
return x.DevEui
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *DownlinkMeta) GetMulticastGroupId() string {
|
||||
if x != nil {
|
||||
return x.MulticastGroupId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *DownlinkMeta) GetTxInfo() *gw.DownlinkTXInfo {
|
||||
if x != nil {
|
||||
return x.TxInfo
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DownlinkMeta) GetPhyPayloadByteCount() uint32 {
|
||||
if x != nil {
|
||||
return x.PhyPayloadByteCount
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DownlinkMeta) GetMacCommandByteCount() uint32 {
|
||||
if x != nil {
|
||||
return x.MacCommandByteCount
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DownlinkMeta) GetApplicationPayloadByteCount() uint32 {
|
||||
if x != nil {
|
||||
return x.ApplicationPayloadByteCount
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DownlinkMeta) GetMessageType() common.MType {
|
||||
if x != nil {
|
||||
return x.MessageType
|
||||
}
|
||||
return common.MType(0)
|
||||
}
|
||||
|
||||
func (x *DownlinkMeta) GetGatewayId() string {
|
||||
if x != nil {
|
||||
return x.GatewayId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_meta_meta_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_meta_meta_proto_rawDesc = []byte{
|
||||
0x0a, 0x0f, 0x6d, 0x65, 0x74, 0x61, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x12, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x1a, 0x13, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f,
|
||||
0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0b, 0x67, 0x77,
|
||||
0x2f, 0x67, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdc, 0x02, 0x0a, 0x0a, 0x55, 0x70,
|
||||
0x6c, 0x69, 0x6e, 0x6b, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x17, 0x0a, 0x07, 0x64, 0x65, 0x76, 0x5f,
|
||||
0x65, 0x75, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x76, 0x45, 0x75,
|
||||
0x69, 0x12, 0x29, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x77, 0x2e, 0x55, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x54, 0x58,
|
||||
0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x74, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x29, 0x0a, 0x07,
|
||||
0x72, 0x78, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e,
|
||||
0x67, 0x77, 0x2e, 0x55, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x52, 0x58, 0x49, 0x6e, 0x66, 0x6f, 0x52,
|
||||
0x06, 0x72, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x33, 0x0a, 0x16, 0x70, 0x68, 0x79, 0x5f, 0x70,
|
||||
0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e,
|
||||
0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x13, 0x70, 0x68, 0x79, 0x50, 0x61, 0x79, 0x6c,
|
||||
0x6f, 0x61, 0x64, 0x42, 0x79, 0x74, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x33, 0x0a, 0x16,
|
||||
0x6d, 0x61, 0x63, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65,
|
||||
0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x13, 0x6d, 0x61,
|
||||
0x63, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x42, 0x79, 0x74, 0x65, 0x43, 0x6f, 0x75, 0x6e,
|
||||
0x74, 0x12, 0x43, 0x0a, 0x1e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
||||
0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x5f, 0x63, 0x6f,
|
||||
0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x1b, 0x61, 0x70, 0x70, 0x6c, 0x69,
|
||||
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x79, 0x74,
|
||||
0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
||||
0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x63,
|
||||
0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4d, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x6d, 0x65, 0x73,
|
||||
0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0x82, 0x03, 0x0a, 0x0c, 0x44, 0x6f, 0x77,
|
||||
0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x17, 0x0a, 0x07, 0x64, 0x65, 0x76,
|
||||
0x5f, 0x65, 0x75, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x76, 0x45,
|
||||
0x75, 0x69, 0x12, 0x2c, 0x0a, 0x12, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x63, 0x61, 0x73, 0x74, 0x5f,
|
||||
0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10,
|
||||
0x6d, 0x75, 0x6c, 0x74, 0x69, 0x63, 0x61, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64,
|
||||
0x12, 0x2b, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 0x12, 0x2e, 0x67, 0x77, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x54,
|
||||
0x58, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x74, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x33, 0x0a,
|
||||
0x16, 0x70, 0x68, 0x79, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x62, 0x79, 0x74,
|
||||
0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x13, 0x70,
|
||||
0x68, 0x79, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x79, 0x74, 0x65, 0x43, 0x6f, 0x75,
|
||||
0x6e, 0x74, 0x12, 0x33, 0x0a, 0x16, 0x6d, 0x61, 0x63, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,
|
||||
0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01,
|
||||
0x28, 0x0d, 0x52, 0x13, 0x6d, 0x61, 0x63, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x42, 0x79,
|
||||
0x74, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x43, 0x0a, 0x1e, 0x61, 0x70, 0x70, 0x6c, 0x69,
|
||||
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x62,
|
||||
0x79, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52,
|
||||
0x1b, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x79, 0x6c,
|
||||
0x6f, 0x61, 0x64, 0x42, 0x79, 0x74, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x0c,
|
||||
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01,
|
||||
0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4d, 0x54, 0x79, 0x70,
|
||||
0x65, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d,
|
||||
0x0a, 0x0a, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x09, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x49, 0x64, 0x42, 0x56, 0x0a,
|
||||
0x16, 0x69, 0x6f, 0x2e, 0x63, 0x68, 0x69, 0x72, 0x70, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x61,
|
||||
0x70, 0x69, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x42, 0x09, 0x4d, 0x65, 0x74, 0x61, 0x50, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
|
||||
0x2f, 0x63, 0x68, 0x69, 0x72, 0x70, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2f, 0x63, 0x68, 0x69, 0x72,
|
||||
0x70, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x34,
|
||||
0x2f, 0x6d, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_meta_meta_proto_rawDescOnce sync.Once
|
||||
file_meta_meta_proto_rawDescData = file_meta_meta_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_meta_meta_proto_rawDescGZIP() []byte {
|
||||
file_meta_meta_proto_rawDescOnce.Do(func() {
|
||||
file_meta_meta_proto_rawDescData = protoimpl.X.CompressGZIP(file_meta_meta_proto_rawDescData)
|
||||
})
|
||||
return file_meta_meta_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_meta_meta_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_meta_meta_proto_goTypes = []interface{}{
|
||||
(*UplinkMeta)(nil), // 0: meta.UplinkMeta
|
||||
(*DownlinkMeta)(nil), // 1: meta.DownlinkMeta
|
||||
(*gw.UplinkTXInfo)(nil), // 2: gw.UplinkTXInfo
|
||||
(*gw.UplinkRXInfo)(nil), // 3: gw.UplinkRXInfo
|
||||
(common.MType)(0), // 4: common.MType
|
||||
(*gw.DownlinkTXInfo)(nil), // 5: gw.DownlinkTXInfo
|
||||
}
|
||||
var file_meta_meta_proto_depIdxs = []int32{
|
||||
2, // 0: meta.UplinkMeta.tx_info:type_name -> gw.UplinkTXInfo
|
||||
3, // 1: meta.UplinkMeta.rx_info:type_name -> gw.UplinkRXInfo
|
||||
4, // 2: meta.UplinkMeta.message_type:type_name -> common.MType
|
||||
5, // 3: meta.DownlinkMeta.tx_info:type_name -> gw.DownlinkTXInfo
|
||||
4, // 4: meta.DownlinkMeta.message_type:type_name -> common.MType
|
||||
5, // [5:5] is the sub-list for method output_type
|
||||
5, // [5:5] is the sub-list for method input_type
|
||||
5, // [5:5] is the sub-list for extension type_name
|
||||
5, // [5:5] is the sub-list for extension extendee
|
||||
0, // [0:5] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_meta_meta_proto_init() }
|
||||
func file_meta_meta_proto_init() {
|
||||
if File_meta_meta_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_meta_meta_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*UplinkMeta); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_meta_meta_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DownlinkMeta); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_meta_meta_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 2,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_meta_meta_proto_goTypes,
|
||||
DependencyIndexes: file_meta_meta_proto_depIdxs,
|
||||
MessageInfos: file_meta_meta_proto_msgTypes,
|
||||
}.Build()
|
||||
File_meta_meta_proto = out.File
|
||||
file_meta_meta_proto_rawDesc = nil
|
||||
file_meta_meta_proto_goTypes = nil
|
||||
file_meta_meta_proto_depIdxs = nil
|
||||
}
|
34
api/grpc-web/Makefile
Normal file
34
api/grpc-web/Makefile
Normal file
@ -0,0 +1,34 @@
|
||||
.PHONY: common api google-api
|
||||
|
||||
GOOGLEAPIS_PATH := /googleapis
|
||||
PROTOC_ARGS := --js_out=import_style=commonjs:. --grpc-web_out=import_style=commonjs+dts,mode=grpcwebtext:.
|
||||
|
||||
all: common gw api integration google-api
|
||||
|
||||
common:
|
||||
mkdir -p common
|
||||
protoc -I=$(GOOGLEAPIS_PATH) -I=../protobuf -I=../proto $(PROTOC_ARGS) ../proto/common/common.proto
|
||||
|
||||
gw:
|
||||
mkdir -p gw
|
||||
protoc -I=$(GOOGLEAPIS_PATH) -I=../protobuf -I=../proto $(PROTOC_ARGS) ../proto/gw/gw.proto
|
||||
|
||||
api:
|
||||
mkdir -p api
|
||||
protoc -I=$(GOOGLEAPIS_PATH) -I=../protobuf -I=../proto $(PROTOC_ARGS) ../proto/api/internal.proto
|
||||
protoc -I=$(GOOGLEAPIS_PATH) -I=../protobuf -I=../proto $(PROTOC_ARGS) ../proto/api/user.proto
|
||||
protoc -I=$(GOOGLEAPIS_PATH) -I=../protobuf -I=../proto $(PROTOC_ARGS) ../proto/api/tenant.proto
|
||||
protoc -I=$(GOOGLEAPIS_PATH) -I=../protobuf -I=../proto $(PROTOC_ARGS) ../proto/api/application.proto
|
||||
protoc -I=$(GOOGLEAPIS_PATH) -I=../protobuf -I=../proto $(PROTOC_ARGS) ../proto/api/device_profile.proto
|
||||
protoc -I=$(GOOGLEAPIS_PATH) -I=../protobuf -I=../proto $(PROTOC_ARGS) ../proto/api/device.proto
|
||||
protoc -I=$(GOOGLEAPIS_PATH) -I=../protobuf -I=../proto $(PROTOC_ARGS) ../proto/api/gateway.proto
|
||||
protoc -I=$(GOOGLEAPIS_PATH) -I=../protobuf -I=../proto $(PROTOC_ARGS) ../proto/api/frame_log.proto
|
||||
protoc -I=$(GOOGLEAPIS_PATH) -I=../protobuf -I=../proto $(PROTOC_ARGS) ../proto/api/multicast_group.proto
|
||||
|
||||
integration:
|
||||
mkdir -p integration
|
||||
protoc -I=$(GOOGLEAPIS_PATH) -I=../protobuf -I=../proto $(PROTOC_ARGS) ../proto/integration/integration.proto
|
||||
|
||||
|
||||
google-api:
|
||||
protoc -I=$(GOOGLEAPIS_PATH) $(PROTOC_ARGS) $(GOOGLEAPIS_PATH)/google/api/*.proto
|
536
api/grpc-web/api/application_grpc_web_pb.d.ts
vendored
Normal file
536
api/grpc-web/api/application_grpc_web_pb.d.ts
vendored
Normal file
@ -0,0 +1,536 @@
|
||||
import * as grpcWeb from 'grpc-web';
|
||||
|
||||
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
|
||||
import * as api_application_pb from '../api/application_pb';
|
||||
|
||||
|
||||
export class ApplicationServiceClient {
|
||||
constructor (hostname: string,
|
||||
credentials?: null | { [index: string]: string; },
|
||||
options?: null | { [index: string]: any; });
|
||||
|
||||
create(
|
||||
request: api_application_pb.CreateApplicationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_application_pb.CreateApplicationResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_application_pb.CreateApplicationResponse>;
|
||||
|
||||
get(
|
||||
request: api_application_pb.GetApplicationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_application_pb.GetApplicationResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_application_pb.GetApplicationResponse>;
|
||||
|
||||
update(
|
||||
request: api_application_pb.UpdateApplicationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
delete(
|
||||
request: api_application_pb.DeleteApplicationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
list(
|
||||
request: api_application_pb.ListApplicationsRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_application_pb.ListApplicationsResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_application_pb.ListApplicationsResponse>;
|
||||
|
||||
listIntegrations(
|
||||
request: api_application_pb.ListIntegrationsRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_application_pb.ListIntegrationsResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_application_pb.ListIntegrationsResponse>;
|
||||
|
||||
createHttpIntegration(
|
||||
request: api_application_pb.CreateHttpIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
getHttpIntegration(
|
||||
request: api_application_pb.GetHttpIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_application_pb.GetHttpIntegrationResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_application_pb.GetHttpIntegrationResponse>;
|
||||
|
||||
updateHttpIntegration(
|
||||
request: api_application_pb.UpdateHttpIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
deleteHttpIntegration(
|
||||
request: api_application_pb.DeleteHttpIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
createInfluxDbIntegration(
|
||||
request: api_application_pb.CreateInfluxDbIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
getInfluxDbIntegration(
|
||||
request: api_application_pb.GetInfluxDbIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_application_pb.GetInfluxDbIntegrationResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_application_pb.GetInfluxDbIntegrationResponse>;
|
||||
|
||||
updateInfluxDbIntegration(
|
||||
request: api_application_pb.UpdateInfluxDbIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
deleteInfluxDbIntegration(
|
||||
request: api_application_pb.DeleteInfluxDbIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
createThingsBoardIntegration(
|
||||
request: api_application_pb.CreateThingsBoardIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
getThingsBoardIntegration(
|
||||
request: api_application_pb.GetThingsBoardIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_application_pb.GetThingsBoardIntegrationResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_application_pb.GetThingsBoardIntegrationResponse>;
|
||||
|
||||
updateThingsBoardIntegration(
|
||||
request: api_application_pb.UpdateThingsBoardIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
deleteThingsBoardIntegration(
|
||||
request: api_application_pb.DeleteThingsBoardIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
createMyDevicesIntegration(
|
||||
request: api_application_pb.CreateMyDevicesIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
getMyDevicesIntegration(
|
||||
request: api_application_pb.GetMyDevicesIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_application_pb.GetMyDevicesIntegrationResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_application_pb.GetMyDevicesIntegrationResponse>;
|
||||
|
||||
updateMyDevicesIntegration(
|
||||
request: api_application_pb.UpdateMyDevicesIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
deleteMyDevicesIntegration(
|
||||
request: api_application_pb.DeleteMyDevicesIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
createLoraCloudIntegration(
|
||||
request: api_application_pb.CreateLoraCloudIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
getLoraCloudIntegration(
|
||||
request: api_application_pb.GetLoraCloudIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_application_pb.GetLoraCloudIntegrationResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_application_pb.GetLoraCloudIntegrationResponse>;
|
||||
|
||||
updateLoraCloudIntegration(
|
||||
request: api_application_pb.UpdateLoraCloudIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
deleteLoraCloudIntegration(
|
||||
request: api_application_pb.DeleteLoraCloudIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
createGcpPubSubIntegration(
|
||||
request: api_application_pb.CreateGcpPubSubIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
getGcpPubSubIntegration(
|
||||
request: api_application_pb.GetGcpPubSubIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_application_pb.GetGcpPubSubIntegrationResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_application_pb.GetGcpPubSubIntegrationResponse>;
|
||||
|
||||
updateGcpPubSubIntegration(
|
||||
request: api_application_pb.UpdateGcpPubSubIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
deleteGcpPubSubIntegration(
|
||||
request: api_application_pb.DeleteGcpPubSubIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
createAwsSnsIntegration(
|
||||
request: api_application_pb.CreateAwsSnsIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
getAwsSnsIntegration(
|
||||
request: api_application_pb.GetAwsSnsIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_application_pb.GetAwsSnsIntegrationResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_application_pb.GetAwsSnsIntegrationResponse>;
|
||||
|
||||
updateAwsSnsIntegration(
|
||||
request: api_application_pb.UpdateAwsSnsIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
deleteAwsSnsIntegration(
|
||||
request: api_application_pb.DeleteAwsSnsIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
createAzureServiceBusIntegration(
|
||||
request: api_application_pb.CreateAzureServiceBusIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
getAzureServiceBusIntegration(
|
||||
request: api_application_pb.GetAzureServiceBusIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_application_pb.GetAzureServiceBusIntegrationResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_application_pb.GetAzureServiceBusIntegrationResponse>;
|
||||
|
||||
updateAzureServiceBusIntegration(
|
||||
request: api_application_pb.UpdateAzureServiceBusIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
deleteAzureServiceBusIntegration(
|
||||
request: api_application_pb.DeleteAzureServiceBusIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
createPilotThingsIntegration(
|
||||
request: api_application_pb.CreatePilotThingsIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
getPilotThingsIntegration(
|
||||
request: api_application_pb.GetPilotThingsIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_application_pb.GetPilotThingsIntegrationResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_application_pb.GetPilotThingsIntegrationResponse>;
|
||||
|
||||
updatePilotThingsIntegration(
|
||||
request: api_application_pb.UpdatePilotThingsIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
deletePilotThingsIntegration(
|
||||
request: api_application_pb.DeletePilotThingsIntegrationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
generateMqttIntegrationClientCertificate(
|
||||
request: api_application_pb.GenerateMqttIntegrationClientCertificateRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_application_pb.GenerateMqttIntegrationClientCertificateResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_application_pb.GenerateMqttIntegrationClientCertificateResponse>;
|
||||
|
||||
}
|
||||
|
||||
export class ApplicationServicePromiseClient {
|
||||
constructor (hostname: string,
|
||||
credentials?: null | { [index: string]: string; },
|
||||
options?: null | { [index: string]: any; });
|
||||
|
||||
create(
|
||||
request: api_application_pb.CreateApplicationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_application_pb.CreateApplicationResponse>;
|
||||
|
||||
get(
|
||||
request: api_application_pb.GetApplicationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_application_pb.GetApplicationResponse>;
|
||||
|
||||
update(
|
||||
request: api_application_pb.UpdateApplicationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
delete(
|
||||
request: api_application_pb.DeleteApplicationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
list(
|
||||
request: api_application_pb.ListApplicationsRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_application_pb.ListApplicationsResponse>;
|
||||
|
||||
listIntegrations(
|
||||
request: api_application_pb.ListIntegrationsRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_application_pb.ListIntegrationsResponse>;
|
||||
|
||||
createHttpIntegration(
|
||||
request: api_application_pb.CreateHttpIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
getHttpIntegration(
|
||||
request: api_application_pb.GetHttpIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_application_pb.GetHttpIntegrationResponse>;
|
||||
|
||||
updateHttpIntegration(
|
||||
request: api_application_pb.UpdateHttpIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
deleteHttpIntegration(
|
||||
request: api_application_pb.DeleteHttpIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
createInfluxDbIntegration(
|
||||
request: api_application_pb.CreateInfluxDbIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
getInfluxDbIntegration(
|
||||
request: api_application_pb.GetInfluxDbIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_application_pb.GetInfluxDbIntegrationResponse>;
|
||||
|
||||
updateInfluxDbIntegration(
|
||||
request: api_application_pb.UpdateInfluxDbIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
deleteInfluxDbIntegration(
|
||||
request: api_application_pb.DeleteInfluxDbIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
createThingsBoardIntegration(
|
||||
request: api_application_pb.CreateThingsBoardIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
getThingsBoardIntegration(
|
||||
request: api_application_pb.GetThingsBoardIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_application_pb.GetThingsBoardIntegrationResponse>;
|
||||
|
||||
updateThingsBoardIntegration(
|
||||
request: api_application_pb.UpdateThingsBoardIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
deleteThingsBoardIntegration(
|
||||
request: api_application_pb.DeleteThingsBoardIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
createMyDevicesIntegration(
|
||||
request: api_application_pb.CreateMyDevicesIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
getMyDevicesIntegration(
|
||||
request: api_application_pb.GetMyDevicesIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_application_pb.GetMyDevicesIntegrationResponse>;
|
||||
|
||||
updateMyDevicesIntegration(
|
||||
request: api_application_pb.UpdateMyDevicesIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
deleteMyDevicesIntegration(
|
||||
request: api_application_pb.DeleteMyDevicesIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
createLoraCloudIntegration(
|
||||
request: api_application_pb.CreateLoraCloudIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
getLoraCloudIntegration(
|
||||
request: api_application_pb.GetLoraCloudIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_application_pb.GetLoraCloudIntegrationResponse>;
|
||||
|
||||
updateLoraCloudIntegration(
|
||||
request: api_application_pb.UpdateLoraCloudIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
deleteLoraCloudIntegration(
|
||||
request: api_application_pb.DeleteLoraCloudIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
createGcpPubSubIntegration(
|
||||
request: api_application_pb.CreateGcpPubSubIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
getGcpPubSubIntegration(
|
||||
request: api_application_pb.GetGcpPubSubIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_application_pb.GetGcpPubSubIntegrationResponse>;
|
||||
|
||||
updateGcpPubSubIntegration(
|
||||
request: api_application_pb.UpdateGcpPubSubIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
deleteGcpPubSubIntegration(
|
||||
request: api_application_pb.DeleteGcpPubSubIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
createAwsSnsIntegration(
|
||||
request: api_application_pb.CreateAwsSnsIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
getAwsSnsIntegration(
|
||||
request: api_application_pb.GetAwsSnsIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_application_pb.GetAwsSnsIntegrationResponse>;
|
||||
|
||||
updateAwsSnsIntegration(
|
||||
request: api_application_pb.UpdateAwsSnsIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
deleteAwsSnsIntegration(
|
||||
request: api_application_pb.DeleteAwsSnsIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
createAzureServiceBusIntegration(
|
||||
request: api_application_pb.CreateAzureServiceBusIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
getAzureServiceBusIntegration(
|
||||
request: api_application_pb.GetAzureServiceBusIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_application_pb.GetAzureServiceBusIntegrationResponse>;
|
||||
|
||||
updateAzureServiceBusIntegration(
|
||||
request: api_application_pb.UpdateAzureServiceBusIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
deleteAzureServiceBusIntegration(
|
||||
request: api_application_pb.DeleteAzureServiceBusIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
createPilotThingsIntegration(
|
||||
request: api_application_pb.CreatePilotThingsIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
getPilotThingsIntegration(
|
||||
request: api_application_pb.GetPilotThingsIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_application_pb.GetPilotThingsIntegrationResponse>;
|
||||
|
||||
updatePilotThingsIntegration(
|
||||
request: api_application_pb.UpdatePilotThingsIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
deletePilotThingsIntegration(
|
||||
request: api_application_pb.DeletePilotThingsIntegrationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
generateMqttIntegrationClientCertificate(
|
||||
request: api_application_pb.GenerateMqttIntegrationClientCertificateRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_application_pb.GenerateMqttIntegrationClientCertificateResponse>;
|
||||
|
||||
}
|
||||
|
3518
api/grpc-web/api/application_grpc_web_pb.js
Normal file
3518
api/grpc-web/api/application_grpc_web_pb.js
Normal file
File diff suppressed because it is too large
Load Diff
1614
api/grpc-web/api/application_pb.d.ts
vendored
Normal file
1614
api/grpc-web/api/application_pb.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
13359
api/grpc-web/api/application_pb.js
Normal file
13359
api/grpc-web/api/application_pb.js
Normal file
File diff suppressed because it is too large
Load Diff
236
api/grpc-web/api/device_grpc_web_pb.d.ts
vendored
Normal file
236
api/grpc-web/api/device_grpc_web_pb.d.ts
vendored
Normal file
@ -0,0 +1,236 @@
|
||||
import * as grpcWeb from 'grpc-web';
|
||||
|
||||
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
|
||||
import * as api_device_pb from '../api/device_pb';
|
||||
|
||||
|
||||
export class DeviceServiceClient {
|
||||
constructor (hostname: string,
|
||||
credentials?: null | { [index: string]: string; },
|
||||
options?: null | { [index: string]: any; });
|
||||
|
||||
create(
|
||||
request: api_device_pb.CreateDeviceRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
get(
|
||||
request: api_device_pb.GetDeviceRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_device_pb.GetDeviceResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_device_pb.GetDeviceResponse>;
|
||||
|
||||
update(
|
||||
request: api_device_pb.UpdateDeviceRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
delete(
|
||||
request: api_device_pb.DeleteDeviceRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
list(
|
||||
request: api_device_pb.ListDevicesRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_device_pb.ListDevicesResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_device_pb.ListDevicesResponse>;
|
||||
|
||||
createKeys(
|
||||
request: api_device_pb.CreateDeviceKeysRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
getKeys(
|
||||
request: api_device_pb.GetDeviceKeysRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_device_pb.GetDeviceKeysResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_device_pb.GetDeviceKeysResponse>;
|
||||
|
||||
updateKeys(
|
||||
request: api_device_pb.UpdateDeviceKeysRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
deleteKeys(
|
||||
request: api_device_pb.DeleteDeviceKeysRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
flushDevNonces(
|
||||
request: api_device_pb.FlushDevNoncesRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
activate(
|
||||
request: api_device_pb.ActivateDeviceRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
deactivate(
|
||||
request: api_device_pb.DeactivateDeviceRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
getActivation(
|
||||
request: api_device_pb.GetDeviceActivationRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_device_pb.GetDeviceActivationResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_device_pb.GetDeviceActivationResponse>;
|
||||
|
||||
getRandomDevAddr(
|
||||
request: api_device_pb.GetRandomDevAddrRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_device_pb.GetRandomDevAddrResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_device_pb.GetRandomDevAddrResponse>;
|
||||
|
||||
getStats(
|
||||
request: api_device_pb.GetDeviceStatsRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_device_pb.GetDeviceStatsResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_device_pb.GetDeviceStatsResponse>;
|
||||
|
||||
enqueue(
|
||||
request: api_device_pb.EnqueueDeviceQueueItemRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_device_pb.EnqueueDeviceQueueItemResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_device_pb.EnqueueDeviceQueueItemResponse>;
|
||||
|
||||
flushQueue(
|
||||
request: api_device_pb.FlushDeviceQueueRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
getQueue(
|
||||
request: api_device_pb.GetDeviceQueueItemsRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_device_pb.GetDeviceQueueItemsResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_device_pb.GetDeviceQueueItemsResponse>;
|
||||
|
||||
}
|
||||
|
||||
export class DeviceServicePromiseClient {
|
||||
constructor (hostname: string,
|
||||
credentials?: null | { [index: string]: string; },
|
||||
options?: null | { [index: string]: any; });
|
||||
|
||||
create(
|
||||
request: api_device_pb.CreateDeviceRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
get(
|
||||
request: api_device_pb.GetDeviceRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_device_pb.GetDeviceResponse>;
|
||||
|
||||
update(
|
||||
request: api_device_pb.UpdateDeviceRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
delete(
|
||||
request: api_device_pb.DeleteDeviceRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
list(
|
||||
request: api_device_pb.ListDevicesRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_device_pb.ListDevicesResponse>;
|
||||
|
||||
createKeys(
|
||||
request: api_device_pb.CreateDeviceKeysRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
getKeys(
|
||||
request: api_device_pb.GetDeviceKeysRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_device_pb.GetDeviceKeysResponse>;
|
||||
|
||||
updateKeys(
|
||||
request: api_device_pb.UpdateDeviceKeysRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
deleteKeys(
|
||||
request: api_device_pb.DeleteDeviceKeysRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
flushDevNonces(
|
||||
request: api_device_pb.FlushDevNoncesRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
activate(
|
||||
request: api_device_pb.ActivateDeviceRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
deactivate(
|
||||
request: api_device_pb.DeactivateDeviceRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
getActivation(
|
||||
request: api_device_pb.GetDeviceActivationRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_device_pb.GetDeviceActivationResponse>;
|
||||
|
||||
getRandomDevAddr(
|
||||
request: api_device_pb.GetRandomDevAddrRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_device_pb.GetRandomDevAddrResponse>;
|
||||
|
||||
getStats(
|
||||
request: api_device_pb.GetDeviceStatsRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_device_pb.GetDeviceStatsResponse>;
|
||||
|
||||
enqueue(
|
||||
request: api_device_pb.EnqueueDeviceQueueItemRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_device_pb.EnqueueDeviceQueueItemResponse>;
|
||||
|
||||
flushQueue(
|
||||
request: api_device_pb.FlushDeviceQueueRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
getQueue(
|
||||
request: api_device_pb.GetDeviceQueueItemsRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_device_pb.GetDeviceQueueItemsResponse>;
|
||||
|
||||
}
|
||||
|
1520
api/grpc-web/api/device_grpc_web_pb.js
Normal file
1520
api/grpc-web/api/device_grpc_web_pb.js
Normal file
File diff suppressed because it is too large
Load Diff
879
api/grpc-web/api/device_pb.d.ts
vendored
Normal file
879
api/grpc-web/api/device_pb.d.ts
vendored
Normal file
@ -0,0 +1,879 @@
|
||||
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): Device;
|
||||
|
||||
getName(): string;
|
||||
setName(value: string): Device;
|
||||
|
||||
getDescription(): string;
|
||||
setDescription(value: string): Device;
|
||||
|
||||
getApplicationId(): string;
|
||||
setApplicationId(value: string): Device;
|
||||
|
||||
getDeviceProfileId(): string;
|
||||
setDeviceProfileId(value: string): Device;
|
||||
|
||||
getSkipFcntCheck(): boolean;
|
||||
setSkipFcntCheck(value: boolean): Device;
|
||||
|
||||
getIsDisabled(): boolean;
|
||||
setIsDisabled(value: boolean): Device;
|
||||
|
||||
getVariablesMap(): jspb.Map<string, string>;
|
||||
clearVariablesMap(): Device;
|
||||
|
||||
getTagsMap(): jspb.Map<string, string>;
|
||||
clearTagsMap(): Device;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Device.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Device): Device.AsObject;
|
||||
static serializeBinaryToWriter(message: Device, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Device;
|
||||
static deserializeBinaryFromReader(message: Device, reader: jspb.BinaryReader): Device;
|
||||
}
|
||||
|
||||
export namespace Device {
|
||||
export type AsObject = {
|
||||
devEui: string,
|
||||
name: string,
|
||||
description: string,
|
||||
applicationId: string,
|
||||
deviceProfileId: string,
|
||||
skipFcntCheck: boolean,
|
||||
isDisabled: boolean,
|
||||
variablesMap: Array<[string, string]>,
|
||||
tagsMap: Array<[string, string]>,
|
||||
}
|
||||
}
|
||||
|
||||
export class DeviceStatus extends jspb.Message {
|
||||
getMargin(): number;
|
||||
setMargin(value: number): DeviceStatus;
|
||||
|
||||
getExternalPowerSource(): boolean;
|
||||
setExternalPowerSource(value: boolean): DeviceStatus;
|
||||
|
||||
getBatteryLevel(): number;
|
||||
setBatteryLevel(value: number): DeviceStatus;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeviceStatus.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeviceStatus): DeviceStatus.AsObject;
|
||||
static serializeBinaryToWriter(message: DeviceStatus, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeviceStatus;
|
||||
static deserializeBinaryFromReader(message: DeviceStatus, reader: jspb.BinaryReader): DeviceStatus;
|
||||
}
|
||||
|
||||
export namespace DeviceStatus {
|
||||
export type AsObject = {
|
||||
margin: number,
|
||||
externalPowerSource: boolean,
|
||||
batteryLevel: number,
|
||||
}
|
||||
}
|
||||
|
||||
export class DeviceListItem extends jspb.Message {
|
||||
getDevEui(): string;
|
||||
setDevEui(value: string): DeviceListItem;
|
||||
|
||||
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): DeviceListItem;
|
||||
hasCreatedAt(): boolean;
|
||||
clearCreatedAt(): DeviceListItem;
|
||||
|
||||
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): DeviceListItem;
|
||||
hasUpdatedAt(): boolean;
|
||||
clearUpdatedAt(): DeviceListItem;
|
||||
|
||||
getLastSeenAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setLastSeenAt(value?: google_protobuf_timestamp_pb.Timestamp): DeviceListItem;
|
||||
hasLastSeenAt(): boolean;
|
||||
clearLastSeenAt(): DeviceListItem;
|
||||
|
||||
getName(): string;
|
||||
setName(value: string): DeviceListItem;
|
||||
|
||||
getDescription(): string;
|
||||
setDescription(value: string): DeviceListItem;
|
||||
|
||||
getDeviceProfileId(): string;
|
||||
setDeviceProfileId(value: string): DeviceListItem;
|
||||
|
||||
getDeviceProfileName(): string;
|
||||
setDeviceProfileName(value: string): DeviceListItem;
|
||||
|
||||
getDeviceStatus(): DeviceStatus | undefined;
|
||||
setDeviceStatus(value?: DeviceStatus): DeviceListItem;
|
||||
hasDeviceStatus(): boolean;
|
||||
clearDeviceStatus(): DeviceListItem;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeviceListItem.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeviceListItem): DeviceListItem.AsObject;
|
||||
static serializeBinaryToWriter(message: DeviceListItem, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeviceListItem;
|
||||
static deserializeBinaryFromReader(message: DeviceListItem, reader: jspb.BinaryReader): DeviceListItem;
|
||||
}
|
||||
|
||||
export namespace DeviceListItem {
|
||||
export type AsObject = {
|
||||
devEui: string,
|
||||
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
lastSeenAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
name: string,
|
||||
description: string,
|
||||
deviceProfileId: string,
|
||||
deviceProfileName: string,
|
||||
deviceStatus?: DeviceStatus.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class DeviceKeys extends jspb.Message {
|
||||
getDevEui(): string;
|
||||
setDevEui(value: string): DeviceKeys;
|
||||
|
||||
getNwkKey(): string;
|
||||
setNwkKey(value: string): DeviceKeys;
|
||||
|
||||
getAppKey(): string;
|
||||
setAppKey(value: string): DeviceKeys;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeviceKeys.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeviceKeys): DeviceKeys.AsObject;
|
||||
static serializeBinaryToWriter(message: DeviceKeys, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeviceKeys;
|
||||
static deserializeBinaryFromReader(message: DeviceKeys, reader: jspb.BinaryReader): DeviceKeys;
|
||||
}
|
||||
|
||||
export namespace DeviceKeys {
|
||||
export type AsObject = {
|
||||
devEui: string,
|
||||
nwkKey: string,
|
||||
appKey: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class CreateDeviceRequest extends jspb.Message {
|
||||
getDevice(): Device | undefined;
|
||||
setDevice(value?: Device): CreateDeviceRequest;
|
||||
hasDevice(): boolean;
|
||||
clearDevice(): CreateDeviceRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CreateDeviceRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: CreateDeviceRequest): CreateDeviceRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: CreateDeviceRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): CreateDeviceRequest;
|
||||
static deserializeBinaryFromReader(message: CreateDeviceRequest, reader: jspb.BinaryReader): CreateDeviceRequest;
|
||||
}
|
||||
|
||||
export namespace CreateDeviceRequest {
|
||||
export type AsObject = {
|
||||
device?: Device.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetDeviceRequest extends jspb.Message {
|
||||
getDevEui(): string;
|
||||
setDevEui(value: string): GetDeviceRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetDeviceRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetDeviceRequest): GetDeviceRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: GetDeviceRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetDeviceRequest;
|
||||
static deserializeBinaryFromReader(message: GetDeviceRequest, reader: jspb.BinaryReader): GetDeviceRequest;
|
||||
}
|
||||
|
||||
export namespace GetDeviceRequest {
|
||||
export type AsObject = {
|
||||
devEui: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetDeviceResponse extends jspb.Message {
|
||||
getDevice(): Device | undefined;
|
||||
setDevice(value?: Device): GetDeviceResponse;
|
||||
hasDevice(): boolean;
|
||||
clearDevice(): GetDeviceResponse;
|
||||
|
||||
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceResponse;
|
||||
hasCreatedAt(): boolean;
|
||||
clearCreatedAt(): GetDeviceResponse;
|
||||
|
||||
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceResponse;
|
||||
hasUpdatedAt(): boolean;
|
||||
clearUpdatedAt(): GetDeviceResponse;
|
||||
|
||||
getLastSeenAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setLastSeenAt(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceResponse;
|
||||
hasLastSeenAt(): boolean;
|
||||
clearLastSeenAt(): GetDeviceResponse;
|
||||
|
||||
getDeviceStatus(): DeviceStatus | undefined;
|
||||
setDeviceStatus(value?: DeviceStatus): GetDeviceResponse;
|
||||
hasDeviceStatus(): boolean;
|
||||
clearDeviceStatus(): GetDeviceResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetDeviceResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetDeviceResponse): GetDeviceResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: GetDeviceResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetDeviceResponse;
|
||||
static deserializeBinaryFromReader(message: GetDeviceResponse, reader: jspb.BinaryReader): GetDeviceResponse;
|
||||
}
|
||||
|
||||
export namespace GetDeviceResponse {
|
||||
export type AsObject = {
|
||||
device?: Device.AsObject,
|
||||
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
lastSeenAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
deviceStatus?: DeviceStatus.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class UpdateDeviceRequest extends jspb.Message {
|
||||
getDevice(): Device | undefined;
|
||||
setDevice(value?: Device): UpdateDeviceRequest;
|
||||
hasDevice(): boolean;
|
||||
clearDevice(): UpdateDeviceRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UpdateDeviceRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: UpdateDeviceRequest): UpdateDeviceRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: UpdateDeviceRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): UpdateDeviceRequest;
|
||||
static deserializeBinaryFromReader(message: UpdateDeviceRequest, reader: jspb.BinaryReader): UpdateDeviceRequest;
|
||||
}
|
||||
|
||||
export namespace UpdateDeviceRequest {
|
||||
export type AsObject = {
|
||||
device?: Device.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class DeleteDeviceRequest extends jspb.Message {
|
||||
getDevEui(): string;
|
||||
setDevEui(value: string): DeleteDeviceRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeleteDeviceRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeleteDeviceRequest): DeleteDeviceRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: DeleteDeviceRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeleteDeviceRequest;
|
||||
static deserializeBinaryFromReader(message: DeleteDeviceRequest, reader: jspb.BinaryReader): DeleteDeviceRequest;
|
||||
}
|
||||
|
||||
export namespace DeleteDeviceRequest {
|
||||
export type AsObject = {
|
||||
devEui: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class ListDevicesRequest extends jspb.Message {
|
||||
getLimit(): number;
|
||||
setLimit(value: number): ListDevicesRequest;
|
||||
|
||||
getOffset(): number;
|
||||
setOffset(value: number): ListDevicesRequest;
|
||||
|
||||
getSearch(): string;
|
||||
setSearch(value: string): ListDevicesRequest;
|
||||
|
||||
getApplicationId(): string;
|
||||
setApplicationId(value: string): ListDevicesRequest;
|
||||
|
||||
getMulticastGroupId(): string;
|
||||
setMulticastGroupId(value: string): ListDevicesRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ListDevicesRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ListDevicesRequest): ListDevicesRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: ListDevicesRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ListDevicesRequest;
|
||||
static deserializeBinaryFromReader(message: ListDevicesRequest, reader: jspb.BinaryReader): ListDevicesRequest;
|
||||
}
|
||||
|
||||
export namespace ListDevicesRequest {
|
||||
export type AsObject = {
|
||||
limit: number,
|
||||
offset: number,
|
||||
search: string,
|
||||
applicationId: string,
|
||||
multicastGroupId: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class ListDevicesResponse extends jspb.Message {
|
||||
getTotalCount(): number;
|
||||
setTotalCount(value: number): ListDevicesResponse;
|
||||
|
||||
getResultList(): Array<DeviceListItem>;
|
||||
setResultList(value: Array<DeviceListItem>): ListDevicesResponse;
|
||||
clearResultList(): ListDevicesResponse;
|
||||
addResult(value?: DeviceListItem, index?: number): DeviceListItem;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ListDevicesResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ListDevicesResponse): ListDevicesResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: ListDevicesResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ListDevicesResponse;
|
||||
static deserializeBinaryFromReader(message: ListDevicesResponse, reader: jspb.BinaryReader): ListDevicesResponse;
|
||||
}
|
||||
|
||||
export namespace ListDevicesResponse {
|
||||
export type AsObject = {
|
||||
totalCount: number,
|
||||
resultList: Array<DeviceListItem.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class CreateDeviceKeysRequest extends jspb.Message {
|
||||
getDeviceKeys(): DeviceKeys | undefined;
|
||||
setDeviceKeys(value?: DeviceKeys): CreateDeviceKeysRequest;
|
||||
hasDeviceKeys(): boolean;
|
||||
clearDeviceKeys(): CreateDeviceKeysRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CreateDeviceKeysRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: CreateDeviceKeysRequest): CreateDeviceKeysRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: CreateDeviceKeysRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): CreateDeviceKeysRequest;
|
||||
static deserializeBinaryFromReader(message: CreateDeviceKeysRequest, reader: jspb.BinaryReader): CreateDeviceKeysRequest;
|
||||
}
|
||||
|
||||
export namespace CreateDeviceKeysRequest {
|
||||
export type AsObject = {
|
||||
deviceKeys?: DeviceKeys.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetDeviceKeysRequest extends jspb.Message {
|
||||
getDevEui(): string;
|
||||
setDevEui(value: string): GetDeviceKeysRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetDeviceKeysRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetDeviceKeysRequest): GetDeviceKeysRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: GetDeviceKeysRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetDeviceKeysRequest;
|
||||
static deserializeBinaryFromReader(message: GetDeviceKeysRequest, reader: jspb.BinaryReader): GetDeviceKeysRequest;
|
||||
}
|
||||
|
||||
export namespace GetDeviceKeysRequest {
|
||||
export type AsObject = {
|
||||
devEui: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetDeviceKeysResponse extends jspb.Message {
|
||||
getDeviceKeys(): DeviceKeys | undefined;
|
||||
setDeviceKeys(value?: DeviceKeys): GetDeviceKeysResponse;
|
||||
hasDeviceKeys(): boolean;
|
||||
clearDeviceKeys(): GetDeviceKeysResponse;
|
||||
|
||||
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceKeysResponse;
|
||||
hasCreatedAt(): boolean;
|
||||
clearCreatedAt(): GetDeviceKeysResponse;
|
||||
|
||||
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceKeysResponse;
|
||||
hasUpdatedAt(): boolean;
|
||||
clearUpdatedAt(): GetDeviceKeysResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetDeviceKeysResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetDeviceKeysResponse): GetDeviceKeysResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: GetDeviceKeysResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetDeviceKeysResponse;
|
||||
static deserializeBinaryFromReader(message: GetDeviceKeysResponse, reader: jspb.BinaryReader): GetDeviceKeysResponse;
|
||||
}
|
||||
|
||||
export namespace GetDeviceKeysResponse {
|
||||
export type AsObject = {
|
||||
deviceKeys?: DeviceKeys.AsObject,
|
||||
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class UpdateDeviceKeysRequest extends jspb.Message {
|
||||
getDeviceKeys(): DeviceKeys | undefined;
|
||||
setDeviceKeys(value?: DeviceKeys): UpdateDeviceKeysRequest;
|
||||
hasDeviceKeys(): boolean;
|
||||
clearDeviceKeys(): UpdateDeviceKeysRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UpdateDeviceKeysRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: UpdateDeviceKeysRequest): UpdateDeviceKeysRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: UpdateDeviceKeysRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): UpdateDeviceKeysRequest;
|
||||
static deserializeBinaryFromReader(message: UpdateDeviceKeysRequest, reader: jspb.BinaryReader): UpdateDeviceKeysRequest;
|
||||
}
|
||||
|
||||
export namespace UpdateDeviceKeysRequest {
|
||||
export type AsObject = {
|
||||
deviceKeys?: DeviceKeys.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class DeleteDeviceKeysRequest extends jspb.Message {
|
||||
getDevEui(): string;
|
||||
setDevEui(value: string): DeleteDeviceKeysRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeleteDeviceKeysRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeleteDeviceKeysRequest): DeleteDeviceKeysRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: DeleteDeviceKeysRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeleteDeviceKeysRequest;
|
||||
static deserializeBinaryFromReader(message: DeleteDeviceKeysRequest, reader: jspb.BinaryReader): DeleteDeviceKeysRequest;
|
||||
}
|
||||
|
||||
export namespace DeleteDeviceKeysRequest {
|
||||
export type AsObject = {
|
||||
devEui: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class DeviceActivation extends jspb.Message {
|
||||
getDevEui(): string;
|
||||
setDevEui(value: string): DeviceActivation;
|
||||
|
||||
getDevAddr(): string;
|
||||
setDevAddr(value: string): DeviceActivation;
|
||||
|
||||
getAppSKey(): string;
|
||||
setAppSKey(value: string): DeviceActivation;
|
||||
|
||||
getNwkSEncKey(): string;
|
||||
setNwkSEncKey(value: string): DeviceActivation;
|
||||
|
||||
getSNwkSIntKey(): string;
|
||||
setSNwkSIntKey(value: string): DeviceActivation;
|
||||
|
||||
getFNwkSIntKey(): string;
|
||||
setFNwkSIntKey(value: string): DeviceActivation;
|
||||
|
||||
getFCntUp(): number;
|
||||
setFCntUp(value: number): DeviceActivation;
|
||||
|
||||
getNFCntDown(): number;
|
||||
setNFCntDown(value: number): DeviceActivation;
|
||||
|
||||
getAFCntDown(): number;
|
||||
setAFCntDown(value: number): DeviceActivation;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeviceActivation.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeviceActivation): DeviceActivation.AsObject;
|
||||
static serializeBinaryToWriter(message: DeviceActivation, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeviceActivation;
|
||||
static deserializeBinaryFromReader(message: DeviceActivation, reader: jspb.BinaryReader): DeviceActivation;
|
||||
}
|
||||
|
||||
export namespace DeviceActivation {
|
||||
export type AsObject = {
|
||||
devEui: string,
|
||||
devAddr: string,
|
||||
appSKey: string,
|
||||
nwkSEncKey: string,
|
||||
sNwkSIntKey: string,
|
||||
fNwkSIntKey: string,
|
||||
fCntUp: number,
|
||||
nFCntDown: number,
|
||||
aFCntDown: number,
|
||||
}
|
||||
}
|
||||
|
||||
export class ActivateDeviceRequest extends jspb.Message {
|
||||
getDeviceActivation(): DeviceActivation | undefined;
|
||||
setDeviceActivation(value?: DeviceActivation): ActivateDeviceRequest;
|
||||
hasDeviceActivation(): boolean;
|
||||
clearDeviceActivation(): ActivateDeviceRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ActivateDeviceRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ActivateDeviceRequest): ActivateDeviceRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: ActivateDeviceRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ActivateDeviceRequest;
|
||||
static deserializeBinaryFromReader(message: ActivateDeviceRequest, reader: jspb.BinaryReader): ActivateDeviceRequest;
|
||||
}
|
||||
|
||||
export namespace ActivateDeviceRequest {
|
||||
export type AsObject = {
|
||||
deviceActivation?: DeviceActivation.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class DeactivateDeviceRequest extends jspb.Message {
|
||||
getDevEui(): string;
|
||||
setDevEui(value: string): DeactivateDeviceRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeactivateDeviceRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeactivateDeviceRequest): DeactivateDeviceRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: DeactivateDeviceRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeactivateDeviceRequest;
|
||||
static deserializeBinaryFromReader(message: DeactivateDeviceRequest, reader: jspb.BinaryReader): DeactivateDeviceRequest;
|
||||
}
|
||||
|
||||
export namespace DeactivateDeviceRequest {
|
||||
export type AsObject = {
|
||||
devEui: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetDeviceActivationRequest extends jspb.Message {
|
||||
getDevEui(): string;
|
||||
setDevEui(value: string): GetDeviceActivationRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetDeviceActivationRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetDeviceActivationRequest): GetDeviceActivationRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: GetDeviceActivationRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetDeviceActivationRequest;
|
||||
static deserializeBinaryFromReader(message: GetDeviceActivationRequest, reader: jspb.BinaryReader): GetDeviceActivationRequest;
|
||||
}
|
||||
|
||||
export namespace GetDeviceActivationRequest {
|
||||
export type AsObject = {
|
||||
devEui: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetDeviceActivationResponse extends jspb.Message {
|
||||
getDeviceActivation(): DeviceActivation | undefined;
|
||||
setDeviceActivation(value?: DeviceActivation): GetDeviceActivationResponse;
|
||||
hasDeviceActivation(): boolean;
|
||||
clearDeviceActivation(): GetDeviceActivationResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetDeviceActivationResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetDeviceActivationResponse): GetDeviceActivationResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: GetDeviceActivationResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetDeviceActivationResponse;
|
||||
static deserializeBinaryFromReader(message: GetDeviceActivationResponse, reader: jspb.BinaryReader): GetDeviceActivationResponse;
|
||||
}
|
||||
|
||||
export namespace GetDeviceActivationResponse {
|
||||
export type AsObject = {
|
||||
deviceActivation?: DeviceActivation.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetRandomDevAddrRequest extends jspb.Message {
|
||||
getDevEui(): string;
|
||||
setDevEui(value: string): GetRandomDevAddrRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetRandomDevAddrRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetRandomDevAddrRequest): GetRandomDevAddrRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: GetRandomDevAddrRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetRandomDevAddrRequest;
|
||||
static deserializeBinaryFromReader(message: GetRandomDevAddrRequest, reader: jspb.BinaryReader): GetRandomDevAddrRequest;
|
||||
}
|
||||
|
||||
export namespace GetRandomDevAddrRequest {
|
||||
export type AsObject = {
|
||||
devEui: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetRandomDevAddrResponse extends jspb.Message {
|
||||
getDevAddr(): string;
|
||||
setDevAddr(value: string): GetRandomDevAddrResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetRandomDevAddrResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetRandomDevAddrResponse): GetRandomDevAddrResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: GetRandomDevAddrResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetRandomDevAddrResponse;
|
||||
static deserializeBinaryFromReader(message: GetRandomDevAddrResponse, reader: jspb.BinaryReader): GetRandomDevAddrResponse;
|
||||
}
|
||||
|
||||
export namespace GetRandomDevAddrResponse {
|
||||
export type AsObject = {
|
||||
devAddr: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetDeviceStatsRequest extends jspb.Message {
|
||||
getDevEui(): string;
|
||||
setDevEui(value: string): GetDeviceStatsRequest;
|
||||
|
||||
getStart(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setStart(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceStatsRequest;
|
||||
hasStart(): boolean;
|
||||
clearStart(): GetDeviceStatsRequest;
|
||||
|
||||
getEnd(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setEnd(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceStatsRequest;
|
||||
hasEnd(): boolean;
|
||||
clearEnd(): GetDeviceStatsRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetDeviceStatsRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetDeviceStatsRequest): GetDeviceStatsRequest.AsObject;
|
||||
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 {
|
||||
getResultList(): Array<DeviceStats>;
|
||||
setResultList(value: Array<DeviceStats>): GetDeviceStatsResponse;
|
||||
clearResultList(): GetDeviceStatsResponse;
|
||||
addResult(value?: DeviceStats, index?: number): DeviceStats;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetDeviceStatsResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetDeviceStatsResponse): GetDeviceStatsResponse.AsObject;
|
||||
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 {
|
||||
getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setTime(value?: google_protobuf_timestamp_pb.Timestamp): DeviceStats;
|
||||
hasTime(): boolean;
|
||||
clearTime(): DeviceStats;
|
||||
|
||||
getRxPackets(): number;
|
||||
setRxPackets(value: number): DeviceStats;
|
||||
|
||||
getGwRssi(): number;
|
||||
setGwRssi(value: number): DeviceStats;
|
||||
|
||||
getGwSnr(): number;
|
||||
setGwSnr(value: number): DeviceStats;
|
||||
|
||||
getRxPacketsPerFrequencyMap(): jspb.Map<number, number>;
|
||||
clearRxPacketsPerFrequencyMap(): DeviceStats;
|
||||
|
||||
getRxPacketsPerDrMap(): jspb.Map<number, number>;
|
||||
clearRxPacketsPerDrMap(): DeviceStats;
|
||||
|
||||
getErrorsMap(): jspb.Map<string, number>;
|
||||
clearErrorsMap(): DeviceStats;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeviceStats.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeviceStats): DeviceStats.AsObject;
|
||||
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): DeviceQueueItem;
|
||||
|
||||
getDevEui(): string;
|
||||
setDevEui(value: string): DeviceQueueItem;
|
||||
|
||||
getConfirmed(): boolean;
|
||||
setConfirmed(value: boolean): DeviceQueueItem;
|
||||
|
||||
getFPort(): number;
|
||||
setFPort(value: number): DeviceQueueItem;
|
||||
|
||||
getData(): Uint8Array | string;
|
||||
getData_asU8(): Uint8Array;
|
||||
getData_asB64(): string;
|
||||
setData(value: Uint8Array | string): DeviceQueueItem;
|
||||
|
||||
getObject(): google_protobuf_struct_pb.Struct | undefined;
|
||||
setObject(value?: google_protobuf_struct_pb.Struct): DeviceQueueItem;
|
||||
hasObject(): boolean;
|
||||
clearObject(): DeviceQueueItem;
|
||||
|
||||
getIsPending(): boolean;
|
||||
setIsPending(value: boolean): DeviceQueueItem;
|
||||
|
||||
getFCntDown(): number;
|
||||
setFCntDown(value: number): DeviceQueueItem;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeviceQueueItem.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeviceQueueItem): DeviceQueueItem.AsObject;
|
||||
static serializeBinaryToWriter(message: DeviceQueueItem, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeviceQueueItem;
|
||||
static deserializeBinaryFromReader(message: DeviceQueueItem, reader: jspb.BinaryReader): DeviceQueueItem;
|
||||
}
|
||||
|
||||
export namespace DeviceQueueItem {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
devEui: string,
|
||||
confirmed: boolean,
|
||||
fPort: number,
|
||||
data: Uint8Array | string,
|
||||
object?: google_protobuf_struct_pb.Struct.AsObject,
|
||||
isPending: boolean,
|
||||
fCntDown: number,
|
||||
}
|
||||
}
|
||||
|
||||
export class EnqueueDeviceQueueItemRequest extends jspb.Message {
|
||||
getItem(): DeviceQueueItem | undefined;
|
||||
setItem(value?: DeviceQueueItem): EnqueueDeviceQueueItemRequest;
|
||||
hasItem(): boolean;
|
||||
clearItem(): EnqueueDeviceQueueItemRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): EnqueueDeviceQueueItemRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: EnqueueDeviceQueueItemRequest): EnqueueDeviceQueueItemRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: EnqueueDeviceQueueItemRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): EnqueueDeviceQueueItemRequest;
|
||||
static deserializeBinaryFromReader(message: EnqueueDeviceQueueItemRequest, reader: jspb.BinaryReader): EnqueueDeviceQueueItemRequest;
|
||||
}
|
||||
|
||||
export namespace EnqueueDeviceQueueItemRequest {
|
||||
export type AsObject = {
|
||||
item?: DeviceQueueItem.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class EnqueueDeviceQueueItemResponse extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): EnqueueDeviceQueueItemResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): EnqueueDeviceQueueItemResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: EnqueueDeviceQueueItemResponse): EnqueueDeviceQueueItemResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: EnqueueDeviceQueueItemResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): EnqueueDeviceQueueItemResponse;
|
||||
static deserializeBinaryFromReader(message: EnqueueDeviceQueueItemResponse, reader: jspb.BinaryReader): EnqueueDeviceQueueItemResponse;
|
||||
}
|
||||
|
||||
export namespace EnqueueDeviceQueueItemResponse {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class FlushDeviceQueueRequest extends jspb.Message {
|
||||
getDevEui(): string;
|
||||
setDevEui(value: string): FlushDeviceQueueRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): FlushDeviceQueueRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: FlushDeviceQueueRequest): FlushDeviceQueueRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: FlushDeviceQueueRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): FlushDeviceQueueRequest;
|
||||
static deserializeBinaryFromReader(message: FlushDeviceQueueRequest, reader: jspb.BinaryReader): FlushDeviceQueueRequest;
|
||||
}
|
||||
|
||||
export namespace FlushDeviceQueueRequest {
|
||||
export type AsObject = {
|
||||
devEui: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetDeviceQueueItemsRequest extends jspb.Message {
|
||||
getDevEui(): string;
|
||||
setDevEui(value: string): GetDeviceQueueItemsRequest;
|
||||
|
||||
getCountOnly(): boolean;
|
||||
setCountOnly(value: boolean): GetDeviceQueueItemsRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetDeviceQueueItemsRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetDeviceQueueItemsRequest): GetDeviceQueueItemsRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: GetDeviceQueueItemsRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetDeviceQueueItemsRequest;
|
||||
static deserializeBinaryFromReader(message: GetDeviceQueueItemsRequest, reader: jspb.BinaryReader): GetDeviceQueueItemsRequest;
|
||||
}
|
||||
|
||||
export namespace GetDeviceQueueItemsRequest {
|
||||
export type AsObject = {
|
||||
devEui: string,
|
||||
countOnly: boolean,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetDeviceQueueItemsResponse extends jspb.Message {
|
||||
getTotalCount(): number;
|
||||
setTotalCount(value: number): GetDeviceQueueItemsResponse;
|
||||
|
||||
getResultList(): Array<DeviceQueueItem>;
|
||||
setResultList(value: Array<DeviceQueueItem>): GetDeviceQueueItemsResponse;
|
||||
clearResultList(): GetDeviceQueueItemsResponse;
|
||||
addResult(value?: DeviceQueueItem, index?: number): DeviceQueueItem;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetDeviceQueueItemsResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetDeviceQueueItemsResponse): GetDeviceQueueItemsResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: GetDeviceQueueItemsResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetDeviceQueueItemsResponse;
|
||||
static deserializeBinaryFromReader(message: GetDeviceQueueItemsResponse, reader: jspb.BinaryReader): GetDeviceQueueItemsResponse;
|
||||
}
|
||||
|
||||
export namespace GetDeviceQueueItemsResponse {
|
||||
export type AsObject = {
|
||||
totalCount: number,
|
||||
resultList: Array<DeviceQueueItem.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class FlushDevNoncesRequest extends jspb.Message {
|
||||
getDevEui(): string;
|
||||
setDevEui(value: string): FlushDevNoncesRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): FlushDevNoncesRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: FlushDevNoncesRequest): FlushDevNoncesRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: FlushDevNoncesRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): FlushDevNoncesRequest;
|
||||
static deserializeBinaryFromReader(message: FlushDevNoncesRequest, reader: jspb.BinaryReader): FlushDevNoncesRequest;
|
||||
}
|
||||
|
||||
export namespace FlushDevNoncesRequest {
|
||||
export type AsObject = {
|
||||
devEui: string,
|
||||
}
|
||||
}
|
||||
|
7332
api/grpc-web/api/device_pb.js
Normal file
7332
api/grpc-web/api/device_pb.js
Normal file
File diff suppressed because it is too large
Load Diff
92
api/grpc-web/api/device_profile_grpc_web_pb.d.ts
vendored
Normal file
92
api/grpc-web/api/device_profile_grpc_web_pb.d.ts
vendored
Normal file
@ -0,0 +1,92 @@
|
||||
import * as grpcWeb from 'grpc-web';
|
||||
|
||||
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
|
||||
import * as api_device_profile_pb from '../api/device_profile_pb';
|
||||
|
||||
|
||||
export class DeviceProfileServiceClient {
|
||||
constructor (hostname: string,
|
||||
credentials?: null | { [index: string]: string; },
|
||||
options?: null | { [index: string]: any; });
|
||||
|
||||
create(
|
||||
request: api_device_profile_pb.CreateDeviceProfileRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_device_profile_pb.CreateDeviceProfileResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_device_profile_pb.CreateDeviceProfileResponse>;
|
||||
|
||||
get(
|
||||
request: api_device_profile_pb.GetDeviceProfileRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_device_profile_pb.GetDeviceProfileResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_device_profile_pb.GetDeviceProfileResponse>;
|
||||
|
||||
update(
|
||||
request: api_device_profile_pb.UpdateDeviceProfileRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
delete(
|
||||
request: api_device_profile_pb.DeleteDeviceProfileRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
list(
|
||||
request: api_device_profile_pb.ListDeviceProfilesRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_device_profile_pb.ListDeviceProfilesResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_device_profile_pb.ListDeviceProfilesResponse>;
|
||||
|
||||
listAdrAlgorithms(
|
||||
request: google_protobuf_empty_pb.Empty,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_device_profile_pb.ListDeviceProfileAdrAlgorithmsResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_device_profile_pb.ListDeviceProfileAdrAlgorithmsResponse>;
|
||||
|
||||
}
|
||||
|
||||
export class DeviceProfileServicePromiseClient {
|
||||
constructor (hostname: string,
|
||||
credentials?: null | { [index: string]: string; },
|
||||
options?: null | { [index: string]: any; });
|
||||
|
||||
create(
|
||||
request: api_device_profile_pb.CreateDeviceProfileRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_device_profile_pb.CreateDeviceProfileResponse>;
|
||||
|
||||
get(
|
||||
request: api_device_profile_pb.GetDeviceProfileRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_device_profile_pb.GetDeviceProfileResponse>;
|
||||
|
||||
update(
|
||||
request: api_device_profile_pb.UpdateDeviceProfileRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
delete(
|
||||
request: api_device_profile_pb.DeleteDeviceProfileRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
list(
|
||||
request: api_device_profile_pb.ListDeviceProfilesRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_device_profile_pb.ListDeviceProfilesResponse>;
|
||||
|
||||
listAdrAlgorithms(
|
||||
request: google_protobuf_empty_pb.Empty,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_device_profile_pb.ListDeviceProfileAdrAlgorithmsResponse>;
|
||||
|
||||
}
|
||||
|
560
api/grpc-web/api/device_profile_grpc_web_pb.js
Normal file
560
api/grpc-web/api/device_profile_grpc_web_pb.js
Normal file
@ -0,0 +1,560 @@
|
||||
/**
|
||||
* @fileoverview gRPC-Web generated client stub for api
|
||||
* @enhanceable
|
||||
* @public
|
||||
*/
|
||||
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
|
||||
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
|
||||
|
||||
const grpc = {};
|
||||
grpc.web = require('grpc-web');
|
||||
|
||||
|
||||
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js')
|
||||
|
||||
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js')
|
||||
|
||||
var common_common_pb = require('../common/common_pb.js')
|
||||
const proto = {};
|
||||
proto.api = require('./device_profile_pb.js');
|
||||
|
||||
/**
|
||||
* @param {string} hostname
|
||||
* @param {?Object} credentials
|
||||
* @param {?Object} options
|
||||
* @constructor
|
||||
* @struct
|
||||
* @final
|
||||
*/
|
||||
proto.api.DeviceProfileServiceClient =
|
||||
function(hostname, credentials, options) {
|
||||
if (!options) options = {};
|
||||
options['format'] = 'text';
|
||||
|
||||
/**
|
||||
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
||||
*/
|
||||
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
||||
|
||||
/**
|
||||
* @private @const {string} The hostname
|
||||
*/
|
||||
this.hostname_ = hostname;
|
||||
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} hostname
|
||||
* @param {?Object} credentials
|
||||
* @param {?Object} options
|
||||
* @constructor
|
||||
* @struct
|
||||
* @final
|
||||
*/
|
||||
proto.api.DeviceProfileServicePromiseClient =
|
||||
function(hostname, credentials, options) {
|
||||
if (!options) options = {};
|
||||
options['format'] = 'text';
|
||||
|
||||
/**
|
||||
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
||||
*/
|
||||
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
||||
|
||||
/**
|
||||
* @private @const {string} The hostname
|
||||
*/
|
||||
this.hostname_ = hostname;
|
||||
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.CreateDeviceProfileRequest,
|
||||
* !proto.api.CreateDeviceProfileResponse>}
|
||||
*/
|
||||
const methodDescriptor_DeviceProfileService_Create = new grpc.web.MethodDescriptor(
|
||||
'/api.DeviceProfileService/Create',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.CreateDeviceProfileRequest,
|
||||
proto.api.CreateDeviceProfileResponse,
|
||||
/**
|
||||
* @param {!proto.api.CreateDeviceProfileRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.CreateDeviceProfileResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.CreateDeviceProfileRequest,
|
||||
* !proto.api.CreateDeviceProfileResponse>}
|
||||
*/
|
||||
const methodInfo_DeviceProfileService_Create = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
proto.api.CreateDeviceProfileResponse,
|
||||
/**
|
||||
* @param {!proto.api.CreateDeviceProfileRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.CreateDeviceProfileResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.CreateDeviceProfileRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.api.CreateDeviceProfileResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.api.CreateDeviceProfileResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.DeviceProfileServiceClient.prototype.create =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.DeviceProfileService/Create',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_DeviceProfileService_Create,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.CreateDeviceProfileRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.api.CreateDeviceProfileResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.DeviceProfileServicePromiseClient.prototype.create =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.DeviceProfileService/Create',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_DeviceProfileService_Create);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.GetDeviceProfileRequest,
|
||||
* !proto.api.GetDeviceProfileResponse>}
|
||||
*/
|
||||
const methodDescriptor_DeviceProfileService_Get = new grpc.web.MethodDescriptor(
|
||||
'/api.DeviceProfileService/Get',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.GetDeviceProfileRequest,
|
||||
proto.api.GetDeviceProfileResponse,
|
||||
/**
|
||||
* @param {!proto.api.GetDeviceProfileRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.GetDeviceProfileResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.GetDeviceProfileRequest,
|
||||
* !proto.api.GetDeviceProfileResponse>}
|
||||
*/
|
||||
const methodInfo_DeviceProfileService_Get = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
proto.api.GetDeviceProfileResponse,
|
||||
/**
|
||||
* @param {!proto.api.GetDeviceProfileRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.GetDeviceProfileResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.GetDeviceProfileRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.api.GetDeviceProfileResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.api.GetDeviceProfileResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.DeviceProfileServiceClient.prototype.get =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.DeviceProfileService/Get',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_DeviceProfileService_Get,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.GetDeviceProfileRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.api.GetDeviceProfileResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.DeviceProfileServicePromiseClient.prototype.get =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.DeviceProfileService/Get',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_DeviceProfileService_Get);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.UpdateDeviceProfileRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodDescriptor_DeviceProfileService_Update = new grpc.web.MethodDescriptor(
|
||||
'/api.DeviceProfileService/Update',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.UpdateDeviceProfileRequest,
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.UpdateDeviceProfileRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.UpdateDeviceProfileRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodInfo_DeviceProfileService_Update = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.UpdateDeviceProfileRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.UpdateDeviceProfileRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.DeviceProfileServiceClient.prototype.update =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.DeviceProfileService/Update',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_DeviceProfileService_Update,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.UpdateDeviceProfileRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.google.protobuf.Empty>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.DeviceProfileServicePromiseClient.prototype.update =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.DeviceProfileService/Update',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_DeviceProfileService_Update);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.DeleteDeviceProfileRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodDescriptor_DeviceProfileService_Delete = new grpc.web.MethodDescriptor(
|
||||
'/api.DeviceProfileService/Delete',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.DeleteDeviceProfileRequest,
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.DeleteDeviceProfileRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.DeleteDeviceProfileRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodInfo_DeviceProfileService_Delete = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.DeleteDeviceProfileRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.DeleteDeviceProfileRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.DeviceProfileServiceClient.prototype.delete =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.DeviceProfileService/Delete',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_DeviceProfileService_Delete,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.DeleteDeviceProfileRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.google.protobuf.Empty>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.DeviceProfileServicePromiseClient.prototype.delete =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.DeviceProfileService/Delete',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_DeviceProfileService_Delete);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.ListDeviceProfilesRequest,
|
||||
* !proto.api.ListDeviceProfilesResponse>}
|
||||
*/
|
||||
const methodDescriptor_DeviceProfileService_List = new grpc.web.MethodDescriptor(
|
||||
'/api.DeviceProfileService/List',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.ListDeviceProfilesRequest,
|
||||
proto.api.ListDeviceProfilesResponse,
|
||||
/**
|
||||
* @param {!proto.api.ListDeviceProfilesRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.ListDeviceProfilesResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.ListDeviceProfilesRequest,
|
||||
* !proto.api.ListDeviceProfilesResponse>}
|
||||
*/
|
||||
const methodInfo_DeviceProfileService_List = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
proto.api.ListDeviceProfilesResponse,
|
||||
/**
|
||||
* @param {!proto.api.ListDeviceProfilesRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.ListDeviceProfilesResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.ListDeviceProfilesRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.api.ListDeviceProfilesResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.api.ListDeviceProfilesResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.DeviceProfileServiceClient.prototype.list =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.DeviceProfileService/List',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_DeviceProfileService_List,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.ListDeviceProfilesRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.api.ListDeviceProfilesResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.DeviceProfileServicePromiseClient.prototype.list =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.DeviceProfileService/List',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_DeviceProfileService_List);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.google.protobuf.Empty,
|
||||
* !proto.api.ListDeviceProfileAdrAlgorithmsResponse>}
|
||||
*/
|
||||
const methodDescriptor_DeviceProfileService_ListAdrAlgorithms = new grpc.web.MethodDescriptor(
|
||||
'/api.DeviceProfileService/ListAdrAlgorithms',
|
||||
grpc.web.MethodType.UNARY,
|
||||
google_protobuf_empty_pb.Empty,
|
||||
proto.api.ListDeviceProfileAdrAlgorithmsResponse,
|
||||
/**
|
||||
* @param {!proto.google.protobuf.Empty} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.ListDeviceProfileAdrAlgorithmsResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.google.protobuf.Empty,
|
||||
* !proto.api.ListDeviceProfileAdrAlgorithmsResponse>}
|
||||
*/
|
||||
const methodInfo_DeviceProfileService_ListAdrAlgorithms = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
proto.api.ListDeviceProfileAdrAlgorithmsResponse,
|
||||
/**
|
||||
* @param {!proto.google.protobuf.Empty} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.ListDeviceProfileAdrAlgorithmsResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.google.protobuf.Empty} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.api.ListDeviceProfileAdrAlgorithmsResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.api.ListDeviceProfileAdrAlgorithmsResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.DeviceProfileServiceClient.prototype.listAdrAlgorithms =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.DeviceProfileService/ListAdrAlgorithms',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_DeviceProfileService_ListAdrAlgorithms,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.google.protobuf.Empty} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.api.ListDeviceProfileAdrAlgorithmsResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.DeviceProfileServicePromiseClient.prototype.listAdrAlgorithms =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.DeviceProfileService/ListAdrAlgorithms',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_DeviceProfileService_ListAdrAlgorithms);
|
||||
};
|
||||
|
||||
|
||||
module.exports = proto.api;
|
||||
|
410
api/grpc-web/api/device_profile_pb.d.ts
vendored
Normal file
410
api/grpc-web/api/device_profile_pb.d.ts
vendored
Normal file
@ -0,0 +1,410 @@
|
||||
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): DeviceProfile;
|
||||
|
||||
getTenantId(): string;
|
||||
setTenantId(value: string): DeviceProfile;
|
||||
|
||||
getName(): string;
|
||||
setName(value: string): DeviceProfile;
|
||||
|
||||
getRegion(): common_common_pb.Region;
|
||||
setRegion(value: common_common_pb.Region): DeviceProfile;
|
||||
|
||||
getMacVersion(): common_common_pb.MacVersion;
|
||||
setMacVersion(value: common_common_pb.MacVersion): DeviceProfile;
|
||||
|
||||
getRegParamsRevision(): common_common_pb.RegParamsRevision;
|
||||
setRegParamsRevision(value: common_common_pb.RegParamsRevision): DeviceProfile;
|
||||
|
||||
getAdrAlgorithmId(): string;
|
||||
setAdrAlgorithmId(value: string): DeviceProfile;
|
||||
|
||||
getPayloadCodecRuntime(): CodecRuntime;
|
||||
setPayloadCodecRuntime(value: CodecRuntime): DeviceProfile;
|
||||
|
||||
getPayloadEncoderConfig(): string;
|
||||
setPayloadEncoderConfig(value: string): DeviceProfile;
|
||||
|
||||
getPayloadDecoderConfig(): string;
|
||||
setPayloadDecoderConfig(value: string): DeviceProfile;
|
||||
|
||||
getUplinkInterval(): number;
|
||||
setUplinkInterval(value: number): DeviceProfile;
|
||||
|
||||
getDeviceStatusReqInterval(): number;
|
||||
setDeviceStatusReqInterval(value: number): DeviceProfile;
|
||||
|
||||
getSupportsOtaa(): boolean;
|
||||
setSupportsOtaa(value: boolean): DeviceProfile;
|
||||
|
||||
getSupportsClassB(): boolean;
|
||||
setSupportsClassB(value: boolean): DeviceProfile;
|
||||
|
||||
getSupportsClassC(): boolean;
|
||||
setSupportsClassC(value: boolean): DeviceProfile;
|
||||
|
||||
getClassBTimeout(): number;
|
||||
setClassBTimeout(value: number): DeviceProfile;
|
||||
|
||||
getClassBPingSlotPeriod(): number;
|
||||
setClassBPingSlotPeriod(value: number): DeviceProfile;
|
||||
|
||||
getClassBPingSlotDr(): number;
|
||||
setClassBPingSlotDr(value: number): DeviceProfile;
|
||||
|
||||
getClassBPingSlotFreq(): number;
|
||||
setClassBPingSlotFreq(value: number): DeviceProfile;
|
||||
|
||||
getClassCTimeout(): number;
|
||||
setClassCTimeout(value: number): DeviceProfile;
|
||||
|
||||
getAbpRx1Delay(): number;
|
||||
setAbpRx1Delay(value: number): DeviceProfile;
|
||||
|
||||
getAbpRx1DrOffset(): number;
|
||||
setAbpRx1DrOffset(value: number): DeviceProfile;
|
||||
|
||||
getAbpRx2Dr(): number;
|
||||
setAbpRx2Dr(value: number): DeviceProfile;
|
||||
|
||||
getAbpRx2Freq(): number;
|
||||
setAbpRx2Freq(value: number): DeviceProfile;
|
||||
|
||||
getTagsMap(): jspb.Map<string, string>;
|
||||
clearTagsMap(): DeviceProfile;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeviceProfile.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeviceProfile): DeviceProfile.AsObject;
|
||||
static serializeBinaryToWriter(message: DeviceProfile, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeviceProfile;
|
||||
static deserializeBinaryFromReader(message: DeviceProfile, reader: jspb.BinaryReader): DeviceProfile;
|
||||
}
|
||||
|
||||
export namespace DeviceProfile {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
tenantId: string,
|
||||
name: string,
|
||||
region: common_common_pb.Region,
|
||||
macVersion: common_common_pb.MacVersion,
|
||||
regParamsRevision: common_common_pb.RegParamsRevision,
|
||||
adrAlgorithmId: string,
|
||||
payloadCodecRuntime: CodecRuntime,
|
||||
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): DeviceProfileListItem;
|
||||
|
||||
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): DeviceProfileListItem;
|
||||
hasCreatedAt(): boolean;
|
||||
clearCreatedAt(): DeviceProfileListItem;
|
||||
|
||||
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): DeviceProfileListItem;
|
||||
hasUpdatedAt(): boolean;
|
||||
clearUpdatedAt(): DeviceProfileListItem;
|
||||
|
||||
getName(): string;
|
||||
setName(value: string): DeviceProfileListItem;
|
||||
|
||||
getRegion(): common_common_pb.Region;
|
||||
setRegion(value: common_common_pb.Region): DeviceProfileListItem;
|
||||
|
||||
getMacVersion(): common_common_pb.MacVersion;
|
||||
setMacVersion(value: common_common_pb.MacVersion): DeviceProfileListItem;
|
||||
|
||||
getRegParamsRevision(): common_common_pb.RegParamsRevision;
|
||||
setRegParamsRevision(value: common_common_pb.RegParamsRevision): DeviceProfileListItem;
|
||||
|
||||
getSupportsOtaa(): boolean;
|
||||
setSupportsOtaa(value: boolean): DeviceProfileListItem;
|
||||
|
||||
getSupportsClassB(): boolean;
|
||||
setSupportsClassB(value: boolean): DeviceProfileListItem;
|
||||
|
||||
getSupportsClassC(): boolean;
|
||||
setSupportsClassC(value: boolean): DeviceProfileListItem;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeviceProfileListItem.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeviceProfileListItem): DeviceProfileListItem.AsObject;
|
||||
static serializeBinaryToWriter(message: DeviceProfileListItem, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeviceProfileListItem;
|
||||
static deserializeBinaryFromReader(message: DeviceProfileListItem, reader: jspb.BinaryReader): DeviceProfileListItem;
|
||||
}
|
||||
|
||||
export namespace DeviceProfileListItem {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
name: string,
|
||||
region: common_common_pb.Region,
|
||||
macVersion: common_common_pb.MacVersion,
|
||||
regParamsRevision: common_common_pb.RegParamsRevision,
|
||||
supportsOtaa: boolean,
|
||||
supportsClassB: boolean,
|
||||
supportsClassC: boolean,
|
||||
}
|
||||
}
|
||||
|
||||
export class CreateDeviceProfileRequest extends jspb.Message {
|
||||
getDeviceProfile(): DeviceProfile | undefined;
|
||||
setDeviceProfile(value?: DeviceProfile): CreateDeviceProfileRequest;
|
||||
hasDeviceProfile(): boolean;
|
||||
clearDeviceProfile(): CreateDeviceProfileRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CreateDeviceProfileRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: CreateDeviceProfileRequest): CreateDeviceProfileRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: CreateDeviceProfileRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): CreateDeviceProfileRequest;
|
||||
static deserializeBinaryFromReader(message: CreateDeviceProfileRequest, reader: jspb.BinaryReader): CreateDeviceProfileRequest;
|
||||
}
|
||||
|
||||
export namespace CreateDeviceProfileRequest {
|
||||
export type AsObject = {
|
||||
deviceProfile?: DeviceProfile.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class CreateDeviceProfileResponse extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): CreateDeviceProfileResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CreateDeviceProfileResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: CreateDeviceProfileResponse): CreateDeviceProfileResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: CreateDeviceProfileResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): CreateDeviceProfileResponse;
|
||||
static deserializeBinaryFromReader(message: CreateDeviceProfileResponse, reader: jspb.BinaryReader): CreateDeviceProfileResponse;
|
||||
}
|
||||
|
||||
export namespace CreateDeviceProfileResponse {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetDeviceProfileRequest extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): GetDeviceProfileRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetDeviceProfileRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetDeviceProfileRequest): GetDeviceProfileRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: GetDeviceProfileRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetDeviceProfileRequest;
|
||||
static deserializeBinaryFromReader(message: GetDeviceProfileRequest, reader: jspb.BinaryReader): GetDeviceProfileRequest;
|
||||
}
|
||||
|
||||
export namespace GetDeviceProfileRequest {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetDeviceProfileResponse extends jspb.Message {
|
||||
getDeviceProfile(): DeviceProfile | undefined;
|
||||
setDeviceProfile(value?: DeviceProfile): GetDeviceProfileResponse;
|
||||
hasDeviceProfile(): boolean;
|
||||
clearDeviceProfile(): GetDeviceProfileResponse;
|
||||
|
||||
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceProfileResponse;
|
||||
hasCreatedAt(): boolean;
|
||||
clearCreatedAt(): GetDeviceProfileResponse;
|
||||
|
||||
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceProfileResponse;
|
||||
hasUpdatedAt(): boolean;
|
||||
clearUpdatedAt(): GetDeviceProfileResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetDeviceProfileResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetDeviceProfileResponse): GetDeviceProfileResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: GetDeviceProfileResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetDeviceProfileResponse;
|
||||
static deserializeBinaryFromReader(message: GetDeviceProfileResponse, reader: jspb.BinaryReader): GetDeviceProfileResponse;
|
||||
}
|
||||
|
||||
export namespace GetDeviceProfileResponse {
|
||||
export type AsObject = {
|
||||
deviceProfile?: DeviceProfile.AsObject,
|
||||
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class UpdateDeviceProfileRequest extends jspb.Message {
|
||||
getDeviceProfile(): DeviceProfile | undefined;
|
||||
setDeviceProfile(value?: DeviceProfile): UpdateDeviceProfileRequest;
|
||||
hasDeviceProfile(): boolean;
|
||||
clearDeviceProfile(): UpdateDeviceProfileRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UpdateDeviceProfileRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: UpdateDeviceProfileRequest): UpdateDeviceProfileRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: UpdateDeviceProfileRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): UpdateDeviceProfileRequest;
|
||||
static deserializeBinaryFromReader(message: UpdateDeviceProfileRequest, reader: jspb.BinaryReader): UpdateDeviceProfileRequest;
|
||||
}
|
||||
|
||||
export namespace UpdateDeviceProfileRequest {
|
||||
export type AsObject = {
|
||||
deviceProfile?: DeviceProfile.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class DeleteDeviceProfileRequest extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): DeleteDeviceProfileRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeleteDeviceProfileRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeleteDeviceProfileRequest): DeleteDeviceProfileRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: DeleteDeviceProfileRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeleteDeviceProfileRequest;
|
||||
static deserializeBinaryFromReader(message: DeleteDeviceProfileRequest, reader: jspb.BinaryReader): DeleteDeviceProfileRequest;
|
||||
}
|
||||
|
||||
export namespace DeleteDeviceProfileRequest {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class ListDeviceProfilesRequest extends jspb.Message {
|
||||
getLimit(): number;
|
||||
setLimit(value: number): ListDeviceProfilesRequest;
|
||||
|
||||
getOffset(): number;
|
||||
setOffset(value: number): ListDeviceProfilesRequest;
|
||||
|
||||
getSearch(): string;
|
||||
setSearch(value: string): ListDeviceProfilesRequest;
|
||||
|
||||
getTenantId(): string;
|
||||
setTenantId(value: string): ListDeviceProfilesRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ListDeviceProfilesRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ListDeviceProfilesRequest): ListDeviceProfilesRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: ListDeviceProfilesRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ListDeviceProfilesRequest;
|
||||
static deserializeBinaryFromReader(message: ListDeviceProfilesRequest, reader: jspb.BinaryReader): ListDeviceProfilesRequest;
|
||||
}
|
||||
|
||||
export namespace ListDeviceProfilesRequest {
|
||||
export type AsObject = {
|
||||
limit: number,
|
||||
offset: number,
|
||||
search: string,
|
||||
tenantId: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class ListDeviceProfilesResponse extends jspb.Message {
|
||||
getTotalCount(): number;
|
||||
setTotalCount(value: number): ListDeviceProfilesResponse;
|
||||
|
||||
getResultList(): Array<DeviceProfileListItem>;
|
||||
setResultList(value: Array<DeviceProfileListItem>): ListDeviceProfilesResponse;
|
||||
clearResultList(): ListDeviceProfilesResponse;
|
||||
addResult(value?: DeviceProfileListItem, index?: number): DeviceProfileListItem;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ListDeviceProfilesResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ListDeviceProfilesResponse): ListDeviceProfilesResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: ListDeviceProfilesResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ListDeviceProfilesResponse;
|
||||
static deserializeBinaryFromReader(message: ListDeviceProfilesResponse, reader: jspb.BinaryReader): ListDeviceProfilesResponse;
|
||||
}
|
||||
|
||||
export namespace ListDeviceProfilesResponse {
|
||||
export type AsObject = {
|
||||
totalCount: number,
|
||||
resultList: Array<DeviceProfileListItem.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class ListDeviceProfileAdrAlgorithmsResponse extends jspb.Message {
|
||||
getTotalCount(): number;
|
||||
setTotalCount(value: number): ListDeviceProfileAdrAlgorithmsResponse;
|
||||
|
||||
getResultList(): Array<AdrAlgorithmListItem>;
|
||||
setResultList(value: Array<AdrAlgorithmListItem>): ListDeviceProfileAdrAlgorithmsResponse;
|
||||
clearResultList(): ListDeviceProfileAdrAlgorithmsResponse;
|
||||
addResult(value?: AdrAlgorithmListItem, index?: number): AdrAlgorithmListItem;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ListDeviceProfileAdrAlgorithmsResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ListDeviceProfileAdrAlgorithmsResponse): ListDeviceProfileAdrAlgorithmsResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: ListDeviceProfileAdrAlgorithmsResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ListDeviceProfileAdrAlgorithmsResponse;
|
||||
static deserializeBinaryFromReader(message: ListDeviceProfileAdrAlgorithmsResponse, reader: jspb.BinaryReader): ListDeviceProfileAdrAlgorithmsResponse;
|
||||
}
|
||||
|
||||
export namespace ListDeviceProfileAdrAlgorithmsResponse {
|
||||
export type AsObject = {
|
||||
totalCount: number,
|
||||
resultList: Array<AdrAlgorithmListItem.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class AdrAlgorithmListItem extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): AdrAlgorithmListItem;
|
||||
|
||||
getName(): string;
|
||||
setName(value: string): AdrAlgorithmListItem;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): AdrAlgorithmListItem.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: AdrAlgorithmListItem): AdrAlgorithmListItem.AsObject;
|
||||
static serializeBinaryToWriter(message: AdrAlgorithmListItem, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): AdrAlgorithmListItem;
|
||||
static deserializeBinaryFromReader(message: AdrAlgorithmListItem, reader: jspb.BinaryReader): AdrAlgorithmListItem;
|
||||
}
|
||||
|
||||
export namespace AdrAlgorithmListItem {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
name: string,
|
||||
}
|
||||
}
|
||||
|
||||
export enum CodecRuntime {
|
||||
NONE = 0,
|
||||
CAYENNE_LPP = 1,
|
||||
JS = 2,
|
||||
}
|
3298
api/grpc-web/api/device_profile_pb.js
Normal file
3298
api/grpc-web/api/device_profile_pb.js
Normal file
File diff suppressed because it is too large
Load Diff
109
api/grpc-web/api/frame_log_pb.d.ts
vendored
Normal file
109
api/grpc-web/api/frame_log_pb.d.ts
vendored
Normal file
@ -0,0 +1,109 @@
|
||||
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): UplinkFrameLog;
|
||||
|
||||
getTxInfo(): gw_gw_pb.UplinkTXInfo | undefined;
|
||||
setTxInfo(value?: gw_gw_pb.UplinkTXInfo): UplinkFrameLog;
|
||||
hasTxInfo(): boolean;
|
||||
clearTxInfo(): UplinkFrameLog;
|
||||
|
||||
getRxInfoList(): Array<gw_gw_pb.UplinkRXInfo>;
|
||||
setRxInfoList(value: Array<gw_gw_pb.UplinkRXInfo>): UplinkFrameLog;
|
||||
clearRxInfoList(): UplinkFrameLog;
|
||||
addRxInfo(value?: gw_gw_pb.UplinkRXInfo, index?: number): gw_gw_pb.UplinkRXInfo;
|
||||
|
||||
getMType(): common_common_pb.MType;
|
||||
setMType(value: common_common_pb.MType): UplinkFrameLog;
|
||||
|
||||
getDevAddr(): string;
|
||||
setDevAddr(value: string): UplinkFrameLog;
|
||||
|
||||
getDevEui(): string;
|
||||
setDevEui(value: string): UplinkFrameLog;
|
||||
|
||||
getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setTime(value?: google_protobuf_timestamp_pb.Timestamp): UplinkFrameLog;
|
||||
hasTime(): boolean;
|
||||
clearTime(): UplinkFrameLog;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UplinkFrameLog.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: UplinkFrameLog): UplinkFrameLog.AsObject;
|
||||
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.MType,
|
||||
devAddr: string,
|
||||
devEui: string,
|
||||
time?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class DownlinkFrameLog extends jspb.Message {
|
||||
getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setTime(value?: google_protobuf_timestamp_pb.Timestamp): DownlinkFrameLog;
|
||||
hasTime(): boolean;
|
||||
clearTime(): DownlinkFrameLog;
|
||||
|
||||
getPhyPayload(): Uint8Array | string;
|
||||
getPhyPayload_asU8(): Uint8Array;
|
||||
getPhyPayload_asB64(): string;
|
||||
setPhyPayload(value: Uint8Array | string): DownlinkFrameLog;
|
||||
|
||||
getTxInfo(): gw_gw_pb.DownlinkTXInfo | undefined;
|
||||
setTxInfo(value?: gw_gw_pb.DownlinkTXInfo): DownlinkFrameLog;
|
||||
hasTxInfo(): boolean;
|
||||
clearTxInfo(): DownlinkFrameLog;
|
||||
|
||||
getDownlinkId(): string;
|
||||
setDownlinkId(value: string): DownlinkFrameLog;
|
||||
|
||||
getGatewayId(): string;
|
||||
setGatewayId(value: string): DownlinkFrameLog;
|
||||
|
||||
getMType(): common_common_pb.MType;
|
||||
setMType(value: common_common_pb.MType): DownlinkFrameLog;
|
||||
|
||||
getDevAddr(): string;
|
||||
setDevAddr(value: string): DownlinkFrameLog;
|
||||
|
||||
getDevEui(): string;
|
||||
setDevEui(value: string): DownlinkFrameLog;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DownlinkFrameLog.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DownlinkFrameLog): DownlinkFrameLog.AsObject;
|
||||
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.MType,
|
||||
devAddr: string,
|
||||
devEui: string,
|
||||
}
|
||||
}
|
||||
|
880
api/grpc-web/api/frame_log_pb.js
Normal file
880
api/grpc-web/api/frame_log_pb.js
Normal file
@ -0,0 +1,880 @@
|
||||
// source: api/frame_log.proto
|
||||
/**
|
||||
* @fileoverview
|
||||
* @enhanceable
|
||||
* @suppress {missingRequire} reports error on implicit type usages.
|
||||
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||
* field starts with 'MSG_' and isn't a translatable message.
|
||||
* @public
|
||||
*/
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
var jspb = require('google-protobuf');
|
||||
var goog = jspb;
|
||||
var global = Function('return this')();
|
||||
|
||||
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
||||
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
||||
var common_common_pb = require('../common/common_pb.js');
|
||||
goog.object.extend(proto, common_common_pb);
|
||||
var gw_gw_pb = require('../gw/gw_pb.js');
|
||||
goog.object.extend(proto, gw_gw_pb);
|
||||
goog.exportSymbol('proto.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) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.api.UplinkFrameLog.displayName = 'proto.api.UplinkFrameLog';
|
||||
}
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
* server response, or constructed directly in Javascript. The array is used
|
||||
* in place and becomes part of the constructed object. It is not cloned.
|
||||
* If no data is provided, the constructed object will be empty, but still
|
||||
* valid.
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.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) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.displayName = 'proto.api.DownlinkFrameLog';
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* Optional fields that are not set will be set to undefined.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||
* @param {boolean=} opt_includeInstance Deprecated. 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 Deprecated. 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}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
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: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
||||
devAddr: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
||||
devEui: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
||||
time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
||||
};
|
||||
|
||||
if (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.addRxInfo(value);
|
||||
break;
|
||||
case 4:
|
||||
var value = /** @type {!proto.common.MType} */ (reader.readEnum());
|
||||
msg.setMType(value);
|
||||
break;
|
||||
case 5:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setDevAddr(value);
|
||||
break;
|
||||
case 6:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setDevEui(value);
|
||||
break;
|
||||
case 7:
|
||||
var value = new google_protobuf_timestamp_pb.Timestamp;
|
||||
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
||||
msg.setTime(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.api.UplinkFrameLog.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.api.UplinkFrameLog} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.api.UplinkFrameLog.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getPhyPayload_asU8();
|
||||
if (f.length > 0) {
|
||||
writer.writeBytes(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getTxInfo();
|
||||
if (f != null) {
|
||||
writer.writeMessage(
|
||||
2,
|
||||
f,
|
||||
gw_gw_pb.UplinkTXInfo.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getRxInfoList();
|
||||
if (f.length > 0) {
|
||||
writer.writeRepeatedMessage(
|
||||
3,
|
||||
f,
|
||||
gw_gw_pb.UplinkRXInfo.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getMType();
|
||||
if (f !== 0.0) {
|
||||
writer.writeEnum(
|
||||
4,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getDevAddr();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
5,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getDevEui();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
6,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getTime();
|
||||
if (f != null) {
|
||||
writer.writeMessage(
|
||||
7,
|
||||
f,
|
||||
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes phy_payload = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.getPhyPayload = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes phy_payload = 1;
|
||||
* This is a type-conversion wrapper around `getPhyPayload()`
|
||||
* @return {string}
|
||||
*/
|
||||
proto.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
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.setPhyPayload = function(value) {
|
||||
return jspb.Message.setProto3BytesField(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
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.setTxInfo = function(value) {
|
||||
return jspb.Message.setWrapperField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.clearTxInfo = function() {
|
||||
return 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;
|
||||
* @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
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.setRxInfoList = function(value) {
|
||||
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.gw.UplinkRXInfo=} opt_value
|
||||
* @param {number=} opt_index
|
||||
* @return {!proto.gw.UplinkRXInfo}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.addRxInfo = function(opt_value, opt_index) {
|
||||
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.gw.UplinkRXInfo, opt_index);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the list making it empty but non-null.
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.clearRxInfoList = function() {
|
||||
return 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.getFieldWithDefault(this, 4, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.common.MType} value
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.setMType = function(value) {
|
||||
return jspb.Message.setProto3EnumField(this, 4, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string dev_addr = 5;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.getDevAddr = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.setDevAddr = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 5, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string dev_eui = 6;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.getDevEui = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.setDevEui = function(value) {
|
||||
return jspb.Message.setProto3StringField(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
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.setTime = function(value) {
|
||||
return jspb.Message.setWrapperField(this, 7, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.clearTime = function() {
|
||||
return this.setTime(undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.hasTime = function() {
|
||||
return jspb.Message.getField(this, 7) != null;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* Optional fields that are not set will be set to undefined.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||
* @param {boolean=} opt_includeInstance Deprecated. 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 Deprecated. 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}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
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: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
||||
gatewayId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
||||
mType: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
||||
devAddr: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
||||
devEui: jspb.Message.getFieldWithDefault(msg, 8, "")
|
||||
};
|
||||
|
||||
if (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;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.api.DownlinkFrameLog.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.api.DownlinkFrameLog} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getTime();
|
||||
if (f != null) {
|
||||
writer.writeMessage(
|
||||
1,
|
||||
f,
|
||||
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getPhyPayload_asU8();
|
||||
if (f.length > 0) {
|
||||
writer.writeBytes(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getTxInfo();
|
||||
if (f != null) {
|
||||
writer.writeMessage(
|
||||
3,
|
||||
f,
|
||||
gw_gw_pb.DownlinkTXInfo.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getDownlinkId();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
4,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getGatewayId();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
5,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getMType();
|
||||
if (f !== 0.0) {
|
||||
writer.writeEnum(
|
||||
6,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getDevAddr();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
7,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getDevEui();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
8,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.setTime = function(value) {
|
||||
return jspb.Message.setWrapperField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.clearTime = function() {
|
||||
return 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}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.getPhyPayload = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(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
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.setPhyPayload = function(value) {
|
||||
return jspb.Message.setProto3BytesField(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
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.setTxInfo = function(value) {
|
||||
return jspb.Message.setWrapperField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.clearTxInfo = function() {
|
||||
return 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.getFieldWithDefault(this, 4, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.setDownlinkId = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 4, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string gateway_id = 5;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.getGatewayId = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.setGatewayId = function(value) {
|
||||
return jspb.Message.setProto3StringField(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.getFieldWithDefault(this, 6, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.common.MType} value
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.setMType = function(value) {
|
||||
return jspb.Message.setProto3EnumField(this, 6, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string dev_addr = 7;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.getDevAddr = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.setDevAddr = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 7, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string dev_eui = 8;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.getDevEui = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.setDevEui = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 8, value);
|
||||
};
|
||||
|
||||
|
||||
goog.object.extend(exports, proto.api);
|
104
api/grpc-web/api/gateway_grpc_web_pb.d.ts
vendored
Normal file
104
api/grpc-web/api/gateway_grpc_web_pb.d.ts
vendored
Normal file
@ -0,0 +1,104 @@
|
||||
import * as grpcWeb from 'grpc-web';
|
||||
|
||||
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
|
||||
import * as api_gateway_pb from '../api/gateway_pb';
|
||||
|
||||
|
||||
export class GatewayServiceClient {
|
||||
constructor (hostname: string,
|
||||
credentials?: null | { [index: string]: string; },
|
||||
options?: null | { [index: string]: any; });
|
||||
|
||||
create(
|
||||
request: api_gateway_pb.CreateGatewayRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
get(
|
||||
request: api_gateway_pb.GetGatewayRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_gateway_pb.GetGatewayResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_gateway_pb.GetGatewayResponse>;
|
||||
|
||||
update(
|
||||
request: api_gateway_pb.UpdateGatewayRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
delete(
|
||||
request: api_gateway_pb.DeleteGatewayRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
list(
|
||||
request: api_gateway_pb.ListGatewaysRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_gateway_pb.ListGatewaysResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_gateway_pb.ListGatewaysResponse>;
|
||||
|
||||
generateClientCertificate(
|
||||
request: api_gateway_pb.GenerateGatewayClientCertificateRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_gateway_pb.GenerateGatewayClientCertificateResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_gateway_pb.GenerateGatewayClientCertificateResponse>;
|
||||
|
||||
getStats(
|
||||
request: api_gateway_pb.GetGatewayStatsRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_gateway_pb.GetGatewayStatsResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_gateway_pb.GetGatewayStatsResponse>;
|
||||
|
||||
}
|
||||
|
||||
export class GatewayServicePromiseClient {
|
||||
constructor (hostname: string,
|
||||
credentials?: null | { [index: string]: string; },
|
||||
options?: null | { [index: string]: any; });
|
||||
|
||||
create(
|
||||
request: api_gateway_pb.CreateGatewayRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
get(
|
||||
request: api_gateway_pb.GetGatewayRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_gateway_pb.GetGatewayResponse>;
|
||||
|
||||
update(
|
||||
request: api_gateway_pb.UpdateGatewayRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
delete(
|
||||
request: api_gateway_pb.DeleteGatewayRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
list(
|
||||
request: api_gateway_pb.ListGatewaysRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_gateway_pb.ListGatewaysResponse>;
|
||||
|
||||
generateClientCertificate(
|
||||
request: api_gateway_pb.GenerateGatewayClientCertificateRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_gateway_pb.GenerateGatewayClientCertificateResponse>;
|
||||
|
||||
getStats(
|
||||
request: api_gateway_pb.GetGatewayStatsRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_gateway_pb.GetGatewayStatsResponse>;
|
||||
|
||||
}
|
||||
|
640
api/grpc-web/api/gateway_grpc_web_pb.js
Normal file
640
api/grpc-web/api/gateway_grpc_web_pb.js
Normal file
@ -0,0 +1,640 @@
|
||||
/**
|
||||
* @fileoverview gRPC-Web generated client stub for api
|
||||
* @enhanceable
|
||||
* @public
|
||||
*/
|
||||
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
|
||||
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
|
||||
|
||||
const grpc = {};
|
||||
grpc.web = require('grpc-web');
|
||||
|
||||
|
||||
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js')
|
||||
|
||||
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js')
|
||||
|
||||
var common_common_pb = require('../common/common_pb.js')
|
||||
const proto = {};
|
||||
proto.api = require('./gateway_pb.js');
|
||||
|
||||
/**
|
||||
* @param {string} hostname
|
||||
* @param {?Object} credentials
|
||||
* @param {?Object} options
|
||||
* @constructor
|
||||
* @struct
|
||||
* @final
|
||||
*/
|
||||
proto.api.GatewayServiceClient =
|
||||
function(hostname, credentials, options) {
|
||||
if (!options) options = {};
|
||||
options['format'] = 'text';
|
||||
|
||||
/**
|
||||
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
||||
*/
|
||||
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
||||
|
||||
/**
|
||||
* @private @const {string} The hostname
|
||||
*/
|
||||
this.hostname_ = hostname;
|
||||
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} hostname
|
||||
* @param {?Object} credentials
|
||||
* @param {?Object} options
|
||||
* @constructor
|
||||
* @struct
|
||||
* @final
|
||||
*/
|
||||
proto.api.GatewayServicePromiseClient =
|
||||
function(hostname, credentials, options) {
|
||||
if (!options) options = {};
|
||||
options['format'] = 'text';
|
||||
|
||||
/**
|
||||
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
||||
*/
|
||||
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
||||
|
||||
/**
|
||||
* @private @const {string} The hostname
|
||||
*/
|
||||
this.hostname_ = hostname;
|
||||
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.CreateGatewayRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodDescriptor_GatewayService_Create = new grpc.web.MethodDescriptor(
|
||||
'/api.GatewayService/Create',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.CreateGatewayRequest,
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.CreateGatewayRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.CreateGatewayRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodInfo_GatewayService_Create = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.CreateGatewayRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.CreateGatewayRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.GatewayServiceClient.prototype.create =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.GatewayService/Create',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_GatewayService_Create,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.CreateGatewayRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.google.protobuf.Empty>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.GatewayServicePromiseClient.prototype.create =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.GatewayService/Create',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_GatewayService_Create);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.GetGatewayRequest,
|
||||
* !proto.api.GetGatewayResponse>}
|
||||
*/
|
||||
const methodDescriptor_GatewayService_Get = new grpc.web.MethodDescriptor(
|
||||
'/api.GatewayService/Get',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.GetGatewayRequest,
|
||||
proto.api.GetGatewayResponse,
|
||||
/**
|
||||
* @param {!proto.api.GetGatewayRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.GetGatewayResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.GetGatewayRequest,
|
||||
* !proto.api.GetGatewayResponse>}
|
||||
*/
|
||||
const methodInfo_GatewayService_Get = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
proto.api.GetGatewayResponse,
|
||||
/**
|
||||
* @param {!proto.api.GetGatewayRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.GetGatewayResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.GetGatewayRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.api.GetGatewayResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.api.GetGatewayResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.GatewayServiceClient.prototype.get =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.GatewayService/Get',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_GatewayService_Get,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.GetGatewayRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.api.GetGatewayResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.GatewayServicePromiseClient.prototype.get =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.GatewayService/Get',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_GatewayService_Get);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.UpdateGatewayRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodDescriptor_GatewayService_Update = new grpc.web.MethodDescriptor(
|
||||
'/api.GatewayService/Update',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.UpdateGatewayRequest,
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.UpdateGatewayRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.UpdateGatewayRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodInfo_GatewayService_Update = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.UpdateGatewayRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.UpdateGatewayRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.GatewayServiceClient.prototype.update =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.GatewayService/Update',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_GatewayService_Update,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.UpdateGatewayRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.google.protobuf.Empty>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.GatewayServicePromiseClient.prototype.update =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.GatewayService/Update',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_GatewayService_Update);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.DeleteGatewayRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodDescriptor_GatewayService_Delete = new grpc.web.MethodDescriptor(
|
||||
'/api.GatewayService/Delete',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.DeleteGatewayRequest,
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.DeleteGatewayRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.DeleteGatewayRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodInfo_GatewayService_Delete = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.DeleteGatewayRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.DeleteGatewayRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.GatewayServiceClient.prototype.delete =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.GatewayService/Delete',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_GatewayService_Delete,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.DeleteGatewayRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.google.protobuf.Empty>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.GatewayServicePromiseClient.prototype.delete =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.GatewayService/Delete',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_GatewayService_Delete);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.ListGatewaysRequest,
|
||||
* !proto.api.ListGatewaysResponse>}
|
||||
*/
|
||||
const methodDescriptor_GatewayService_List = new grpc.web.MethodDescriptor(
|
||||
'/api.GatewayService/List',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.ListGatewaysRequest,
|
||||
proto.api.ListGatewaysResponse,
|
||||
/**
|
||||
* @param {!proto.api.ListGatewaysRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.ListGatewaysResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.ListGatewaysRequest,
|
||||
* !proto.api.ListGatewaysResponse>}
|
||||
*/
|
||||
const methodInfo_GatewayService_List = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
proto.api.ListGatewaysResponse,
|
||||
/**
|
||||
* @param {!proto.api.ListGatewaysRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.ListGatewaysResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.ListGatewaysRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.api.ListGatewaysResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.api.ListGatewaysResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.GatewayServiceClient.prototype.list =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.GatewayService/List',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_GatewayService_List,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.ListGatewaysRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.api.ListGatewaysResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.GatewayServicePromiseClient.prototype.list =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.GatewayService/List',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_GatewayService_List);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.GenerateGatewayClientCertificateRequest,
|
||||
* !proto.api.GenerateGatewayClientCertificateResponse>}
|
||||
*/
|
||||
const methodDescriptor_GatewayService_GenerateClientCertificate = new grpc.web.MethodDescriptor(
|
||||
'/api.GatewayService/GenerateClientCertificate',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.GenerateGatewayClientCertificateRequest,
|
||||
proto.api.GenerateGatewayClientCertificateResponse,
|
||||
/**
|
||||
* @param {!proto.api.GenerateGatewayClientCertificateRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.GenerateGatewayClientCertificateResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.GenerateGatewayClientCertificateRequest,
|
||||
* !proto.api.GenerateGatewayClientCertificateResponse>}
|
||||
*/
|
||||
const methodInfo_GatewayService_GenerateClientCertificate = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
proto.api.GenerateGatewayClientCertificateResponse,
|
||||
/**
|
||||
* @param {!proto.api.GenerateGatewayClientCertificateRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.GenerateGatewayClientCertificateResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.GenerateGatewayClientCertificateRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.api.GenerateGatewayClientCertificateResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.api.GenerateGatewayClientCertificateResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.GatewayServiceClient.prototype.generateClientCertificate =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.GatewayService/GenerateClientCertificate',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_GatewayService_GenerateClientCertificate,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.GenerateGatewayClientCertificateRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.api.GenerateGatewayClientCertificateResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.GatewayServicePromiseClient.prototype.generateClientCertificate =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.GatewayService/GenerateClientCertificate',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_GatewayService_GenerateClientCertificate);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.GetGatewayStatsRequest,
|
||||
* !proto.api.GetGatewayStatsResponse>}
|
||||
*/
|
||||
const methodDescriptor_GatewayService_GetStats = new grpc.web.MethodDescriptor(
|
||||
'/api.GatewayService/GetStats',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.GetGatewayStatsRequest,
|
||||
proto.api.GetGatewayStatsResponse,
|
||||
/**
|
||||
* @param {!proto.api.GetGatewayStatsRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.GetGatewayStatsResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.GetGatewayStatsRequest,
|
||||
* !proto.api.GetGatewayStatsResponse>}
|
||||
*/
|
||||
const methodInfo_GatewayService_GetStats = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
proto.api.GetGatewayStatsResponse,
|
||||
/**
|
||||
* @param {!proto.api.GetGatewayStatsRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.GetGatewayStatsResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.GetGatewayStatsRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.api.GetGatewayStatsResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.api.GetGatewayStatsResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.GatewayServiceClient.prototype.getStats =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.GatewayService/GetStats',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_GatewayService_GetStats,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.GetGatewayStatsRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.api.GetGatewayStatsResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.GatewayServicePromiseClient.prototype.getStats =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.GatewayService/GetStats',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_GatewayService_GetStats);
|
||||
};
|
||||
|
||||
|
||||
module.exports = proto.api;
|
||||
|
425
api/grpc-web/api/gateway_pb.d.ts
vendored
Normal file
425
api/grpc-web/api/gateway_pb.d.ts
vendored
Normal file
@ -0,0 +1,425 @@
|
||||
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): Gateway;
|
||||
|
||||
getName(): string;
|
||||
setName(value: string): Gateway;
|
||||
|
||||
getDescription(): string;
|
||||
setDescription(value: string): Gateway;
|
||||
|
||||
getLocation(): common_common_pb.Location | undefined;
|
||||
setLocation(value?: common_common_pb.Location): Gateway;
|
||||
hasLocation(): boolean;
|
||||
clearLocation(): Gateway;
|
||||
|
||||
getTenantId(): string;
|
||||
setTenantId(value: string): Gateway;
|
||||
|
||||
getTagsMap(): jspb.Map<string, string>;
|
||||
clearTagsMap(): Gateway;
|
||||
|
||||
getPropertiesMap(): jspb.Map<string, string>;
|
||||
clearPropertiesMap(): Gateway;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Gateway.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Gateway): Gateway.AsObject;
|
||||
static serializeBinaryToWriter(message: Gateway, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Gateway;
|
||||
static deserializeBinaryFromReader(message: Gateway, reader: jspb.BinaryReader): Gateway;
|
||||
}
|
||||
|
||||
export namespace Gateway {
|
||||
export type AsObject = {
|
||||
gatewayId: string,
|
||||
name: string,
|
||||
description: string,
|
||||
location?: common_common_pb.Location.AsObject,
|
||||
tenantId: string,
|
||||
tagsMap: Array<[string, string]>,
|
||||
propertiesMap: Array<[string, string]>,
|
||||
}
|
||||
}
|
||||
|
||||
export class GatewayListItem extends jspb.Message {
|
||||
getTenantId(): string;
|
||||
setTenantId(value: string): GatewayListItem;
|
||||
|
||||
getGatewayId(): string;
|
||||
setGatewayId(value: string): GatewayListItem;
|
||||
|
||||
getName(): string;
|
||||
setName(value: string): GatewayListItem;
|
||||
|
||||
getDescription(): string;
|
||||
setDescription(value: string): GatewayListItem;
|
||||
|
||||
getLocation(): common_common_pb.Location | undefined;
|
||||
setLocation(value?: common_common_pb.Location): GatewayListItem;
|
||||
hasLocation(): boolean;
|
||||
clearLocation(): GatewayListItem;
|
||||
|
||||
getPropertiesMap(): jspb.Map<string, string>;
|
||||
clearPropertiesMap(): GatewayListItem;
|
||||
|
||||
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GatewayListItem;
|
||||
hasCreatedAt(): boolean;
|
||||
clearCreatedAt(): GatewayListItem;
|
||||
|
||||
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GatewayListItem;
|
||||
hasUpdatedAt(): boolean;
|
||||
clearUpdatedAt(): GatewayListItem;
|
||||
|
||||
getLastSeenAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setLastSeenAt(value?: google_protobuf_timestamp_pb.Timestamp): GatewayListItem;
|
||||
hasLastSeenAt(): boolean;
|
||||
clearLastSeenAt(): GatewayListItem;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GatewayListItem.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GatewayListItem): GatewayListItem.AsObject;
|
||||
static serializeBinaryToWriter(message: GatewayListItem, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GatewayListItem;
|
||||
static deserializeBinaryFromReader(message: GatewayListItem, reader: jspb.BinaryReader): GatewayListItem;
|
||||
}
|
||||
|
||||
export namespace GatewayListItem {
|
||||
export type AsObject = {
|
||||
tenantId: string,
|
||||
gatewayId: string,
|
||||
name: string,
|
||||
description: string,
|
||||
location?: common_common_pb.Location.AsObject,
|
||||
propertiesMap: Array<[string, string]>,
|
||||
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
lastSeenAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class CreateGatewayRequest extends jspb.Message {
|
||||
getGateway(): Gateway | undefined;
|
||||
setGateway(value?: Gateway): CreateGatewayRequest;
|
||||
hasGateway(): boolean;
|
||||
clearGateway(): CreateGatewayRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CreateGatewayRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: CreateGatewayRequest): CreateGatewayRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: CreateGatewayRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): CreateGatewayRequest;
|
||||
static deserializeBinaryFromReader(message: CreateGatewayRequest, reader: jspb.BinaryReader): CreateGatewayRequest;
|
||||
}
|
||||
|
||||
export namespace CreateGatewayRequest {
|
||||
export type AsObject = {
|
||||
gateway?: Gateway.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetGatewayRequest extends jspb.Message {
|
||||
getGatewayId(): string;
|
||||
setGatewayId(value: string): GetGatewayRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetGatewayRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetGatewayRequest): GetGatewayRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: GetGatewayRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetGatewayRequest;
|
||||
static deserializeBinaryFromReader(message: GetGatewayRequest, reader: jspb.BinaryReader): GetGatewayRequest;
|
||||
}
|
||||
|
||||
export namespace GetGatewayRequest {
|
||||
export type AsObject = {
|
||||
gatewayId: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetGatewayResponse extends jspb.Message {
|
||||
getGateway(): Gateway | undefined;
|
||||
setGateway(value?: Gateway): GetGatewayResponse;
|
||||
hasGateway(): boolean;
|
||||
clearGateway(): GetGatewayResponse;
|
||||
|
||||
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetGatewayResponse;
|
||||
hasCreatedAt(): boolean;
|
||||
clearCreatedAt(): GetGatewayResponse;
|
||||
|
||||
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetGatewayResponse;
|
||||
hasUpdatedAt(): boolean;
|
||||
clearUpdatedAt(): GetGatewayResponse;
|
||||
|
||||
getLastSeenAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setLastSeenAt(value?: google_protobuf_timestamp_pb.Timestamp): GetGatewayResponse;
|
||||
hasLastSeenAt(): boolean;
|
||||
clearLastSeenAt(): GetGatewayResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetGatewayResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetGatewayResponse): GetGatewayResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: GetGatewayResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetGatewayResponse;
|
||||
static deserializeBinaryFromReader(message: GetGatewayResponse, reader: jspb.BinaryReader): GetGatewayResponse;
|
||||
}
|
||||
|
||||
export namespace GetGatewayResponse {
|
||||
export type AsObject = {
|
||||
gateway?: Gateway.AsObject,
|
||||
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
lastSeenAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class UpdateGatewayRequest extends jspb.Message {
|
||||
getGateway(): Gateway | undefined;
|
||||
setGateway(value?: Gateway): UpdateGatewayRequest;
|
||||
hasGateway(): boolean;
|
||||
clearGateway(): UpdateGatewayRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UpdateGatewayRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: UpdateGatewayRequest): UpdateGatewayRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: UpdateGatewayRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): UpdateGatewayRequest;
|
||||
static deserializeBinaryFromReader(message: UpdateGatewayRequest, reader: jspb.BinaryReader): UpdateGatewayRequest;
|
||||
}
|
||||
|
||||
export namespace UpdateGatewayRequest {
|
||||
export type AsObject = {
|
||||
gateway?: Gateway.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class DeleteGatewayRequest extends jspb.Message {
|
||||
getGatewayId(): string;
|
||||
setGatewayId(value: string): DeleteGatewayRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeleteGatewayRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeleteGatewayRequest): DeleteGatewayRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: DeleteGatewayRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeleteGatewayRequest;
|
||||
static deserializeBinaryFromReader(message: DeleteGatewayRequest, reader: jspb.BinaryReader): DeleteGatewayRequest;
|
||||
}
|
||||
|
||||
export namespace DeleteGatewayRequest {
|
||||
export type AsObject = {
|
||||
gatewayId: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class ListGatewaysRequest extends jspb.Message {
|
||||
getLimit(): number;
|
||||
setLimit(value: number): ListGatewaysRequest;
|
||||
|
||||
getOffset(): number;
|
||||
setOffset(value: number): ListGatewaysRequest;
|
||||
|
||||
getSearch(): string;
|
||||
setSearch(value: string): ListGatewaysRequest;
|
||||
|
||||
getTenantId(): string;
|
||||
setTenantId(value: string): ListGatewaysRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ListGatewaysRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ListGatewaysRequest): ListGatewaysRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: ListGatewaysRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ListGatewaysRequest;
|
||||
static deserializeBinaryFromReader(message: ListGatewaysRequest, reader: jspb.BinaryReader): ListGatewaysRequest;
|
||||
}
|
||||
|
||||
export namespace ListGatewaysRequest {
|
||||
export type AsObject = {
|
||||
limit: number,
|
||||
offset: number,
|
||||
search: string,
|
||||
tenantId: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class ListGatewaysResponse extends jspb.Message {
|
||||
getTotalCount(): number;
|
||||
setTotalCount(value: number): ListGatewaysResponse;
|
||||
|
||||
getResultList(): Array<GatewayListItem>;
|
||||
setResultList(value: Array<GatewayListItem>): ListGatewaysResponse;
|
||||
clearResultList(): ListGatewaysResponse;
|
||||
addResult(value?: GatewayListItem, index?: number): GatewayListItem;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ListGatewaysResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ListGatewaysResponse): ListGatewaysResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: ListGatewaysResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ListGatewaysResponse;
|
||||
static deserializeBinaryFromReader(message: ListGatewaysResponse, reader: jspb.BinaryReader): ListGatewaysResponse;
|
||||
}
|
||||
|
||||
export namespace ListGatewaysResponse {
|
||||
export type AsObject = {
|
||||
totalCount: number,
|
||||
resultList: Array<GatewayListItem.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class GenerateGatewayClientCertificateRequest extends jspb.Message {
|
||||
getGatewayId(): string;
|
||||
setGatewayId(value: string): GenerateGatewayClientCertificateRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GenerateGatewayClientCertificateRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GenerateGatewayClientCertificateRequest): GenerateGatewayClientCertificateRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: GenerateGatewayClientCertificateRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GenerateGatewayClientCertificateRequest;
|
||||
static deserializeBinaryFromReader(message: GenerateGatewayClientCertificateRequest, reader: jspb.BinaryReader): GenerateGatewayClientCertificateRequest;
|
||||
}
|
||||
|
||||
export namespace GenerateGatewayClientCertificateRequest {
|
||||
export type AsObject = {
|
||||
gatewayId: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class GenerateGatewayClientCertificateResponse extends jspb.Message {
|
||||
getTlsCert(): string;
|
||||
setTlsCert(value: string): GenerateGatewayClientCertificateResponse;
|
||||
|
||||
getTlsKey(): string;
|
||||
setTlsKey(value: string): GenerateGatewayClientCertificateResponse;
|
||||
|
||||
getCaCert(): string;
|
||||
setCaCert(value: string): GenerateGatewayClientCertificateResponse;
|
||||
|
||||
getExpiresAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setExpiresAt(value?: google_protobuf_timestamp_pb.Timestamp): GenerateGatewayClientCertificateResponse;
|
||||
hasExpiresAt(): boolean;
|
||||
clearExpiresAt(): GenerateGatewayClientCertificateResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GenerateGatewayClientCertificateResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GenerateGatewayClientCertificateResponse): GenerateGatewayClientCertificateResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: GenerateGatewayClientCertificateResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GenerateGatewayClientCertificateResponse;
|
||||
static deserializeBinaryFromReader(message: GenerateGatewayClientCertificateResponse, reader: jspb.BinaryReader): GenerateGatewayClientCertificateResponse;
|
||||
}
|
||||
|
||||
export namespace GenerateGatewayClientCertificateResponse {
|
||||
export type AsObject = {
|
||||
tlsCert: string,
|
||||
tlsKey: string,
|
||||
caCert: string,
|
||||
expiresAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetGatewayStatsRequest extends jspb.Message {
|
||||
getGatewayId(): string;
|
||||
setGatewayId(value: string): GetGatewayStatsRequest;
|
||||
|
||||
getStart(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setStart(value?: google_protobuf_timestamp_pb.Timestamp): GetGatewayStatsRequest;
|
||||
hasStart(): boolean;
|
||||
clearStart(): GetGatewayStatsRequest;
|
||||
|
||||
getEnd(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setEnd(value?: google_protobuf_timestamp_pb.Timestamp): GetGatewayStatsRequest;
|
||||
hasEnd(): boolean;
|
||||
clearEnd(): GetGatewayStatsRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetGatewayStatsRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetGatewayStatsRequest): GetGatewayStatsRequest.AsObject;
|
||||
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 {
|
||||
getResultList(): Array<GatewayStats>;
|
||||
setResultList(value: Array<GatewayStats>): GetGatewayStatsResponse;
|
||||
clearResultList(): GetGatewayStatsResponse;
|
||||
addResult(value?: GatewayStats, index?: number): GatewayStats;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetGatewayStatsResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetGatewayStatsResponse): GetGatewayStatsResponse.AsObject;
|
||||
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 {
|
||||
getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setTime(value?: google_protobuf_timestamp_pb.Timestamp): GatewayStats;
|
||||
hasTime(): boolean;
|
||||
clearTime(): GatewayStats;
|
||||
|
||||
getRxPackets(): number;
|
||||
setRxPackets(value: number): GatewayStats;
|
||||
|
||||
getTxPackets(): number;
|
||||
setTxPackets(value: number): GatewayStats;
|
||||
|
||||
getTxPacketsPerFrequencyMap(): jspb.Map<number, number>;
|
||||
clearTxPacketsPerFrequencyMap(): GatewayStats;
|
||||
|
||||
getRxPacketsPerFrequencyMap(): jspb.Map<number, number>;
|
||||
clearRxPacketsPerFrequencyMap(): GatewayStats;
|
||||
|
||||
getTxPacketsPerDrMap(): jspb.Map<number, number>;
|
||||
clearTxPacketsPerDrMap(): GatewayStats;
|
||||
|
||||
getRxPacketsPerDrMap(): jspb.Map<number, number>;
|
||||
clearRxPacketsPerDrMap(): GatewayStats;
|
||||
|
||||
getTxPacketsPerStatusMap(): jspb.Map<string, number>;
|
||||
clearTxPacketsPerStatusMap(): GatewayStats;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GatewayStats.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GatewayStats): GatewayStats.AsObject;
|
||||
static serializeBinaryToWriter(message: GatewayStats, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GatewayStats;
|
||||
static deserializeBinaryFromReader(message: GatewayStats, reader: jspb.BinaryReader): GatewayStats;
|
||||
}
|
||||
|
||||
export namespace GatewayStats {
|
||||
export type AsObject = {
|
||||
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]>,
|
||||
}
|
||||
}
|
||||
|
3541
api/grpc-web/api/gateway_pb.js
Normal file
3541
api/grpc-web/api/gateway_pb.js
Normal file
File diff suppressed because it is too large
Load Diff
170
api/grpc-web/api/internal_grpc_web_pb.d.ts
vendored
Normal file
170
api/grpc-web/api/internal_grpc_web_pb.d.ts
vendored
Normal file
@ -0,0 +1,170 @@
|
||||
import * as grpcWeb from 'grpc-web';
|
||||
|
||||
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
|
||||
import * as api_internal_pb from '../api/internal_pb';
|
||||
|
||||
|
||||
export class InternalServiceClient {
|
||||
constructor (hostname: string,
|
||||
credentials?: null | { [index: string]: string; },
|
||||
options?: null | { [index: string]: any; });
|
||||
|
||||
login(
|
||||
request: api_internal_pb.LoginRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_internal_pb.LoginResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_internal_pb.LoginResponse>;
|
||||
|
||||
profile(
|
||||
request: google_protobuf_empty_pb.Empty,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_internal_pb.ProfileResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_internal_pb.ProfileResponse>;
|
||||
|
||||
globalSearch(
|
||||
request: api_internal_pb.GlobalSearchRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_internal_pb.GlobalSearchResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_internal_pb.GlobalSearchResponse>;
|
||||
|
||||
createApiKey(
|
||||
request: api_internal_pb.CreateApiKeyRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_internal_pb.CreateApiKeyResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_internal_pb.CreateApiKeyResponse>;
|
||||
|
||||
deleteApiKey(
|
||||
request: api_internal_pb.DeleteApiKeyRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
listApiKeys(
|
||||
request: api_internal_pb.ListApiKeysRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_internal_pb.ListApiKeysResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_internal_pb.ListApiKeysResponse>;
|
||||
|
||||
settings(
|
||||
request: google_protobuf_empty_pb.Empty,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_internal_pb.SettingsResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_internal_pb.SettingsResponse>;
|
||||
|
||||
openIdConnectLogin(
|
||||
request: api_internal_pb.OpenIdConnectLoginRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_internal_pb.OpenIdConnectLoginResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_internal_pb.OpenIdConnectLoginResponse>;
|
||||
|
||||
getDevicesSummary(
|
||||
request: api_internal_pb.GetDevicesSummaryRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_internal_pb.GetDevicesSummaryResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_internal_pb.GetDevicesSummaryResponse>;
|
||||
|
||||
getGatewaysSummary(
|
||||
request: api_internal_pb.GetGatewaysSummaryRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_internal_pb.GetGatewaysSummaryResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_internal_pb.GetGatewaysSummaryResponse>;
|
||||
|
||||
streamGatewayFrames(
|
||||
request: api_internal_pb.StreamGatewayFramesRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): grpcWeb.ClientReadableStream<api_internal_pb.LogItem>;
|
||||
|
||||
streamDeviceFrames(
|
||||
request: api_internal_pb.StreamDeviceFramesRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): grpcWeb.ClientReadableStream<api_internal_pb.LogItem>;
|
||||
|
||||
streamDeviceEvents(
|
||||
request: api_internal_pb.StreamDeviceEventsRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): grpcWeb.ClientReadableStream<api_internal_pb.LogItem>;
|
||||
|
||||
}
|
||||
|
||||
export class InternalServicePromiseClient {
|
||||
constructor (hostname: string,
|
||||
credentials?: null | { [index: string]: string; },
|
||||
options?: null | { [index: string]: any; });
|
||||
|
||||
login(
|
||||
request: api_internal_pb.LoginRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_internal_pb.LoginResponse>;
|
||||
|
||||
profile(
|
||||
request: google_protobuf_empty_pb.Empty,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_internal_pb.ProfileResponse>;
|
||||
|
||||
globalSearch(
|
||||
request: api_internal_pb.GlobalSearchRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_internal_pb.GlobalSearchResponse>;
|
||||
|
||||
createApiKey(
|
||||
request: api_internal_pb.CreateApiKeyRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_internal_pb.CreateApiKeyResponse>;
|
||||
|
||||
deleteApiKey(
|
||||
request: api_internal_pb.DeleteApiKeyRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
listApiKeys(
|
||||
request: api_internal_pb.ListApiKeysRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_internal_pb.ListApiKeysResponse>;
|
||||
|
||||
settings(
|
||||
request: google_protobuf_empty_pb.Empty,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_internal_pb.SettingsResponse>;
|
||||
|
||||
openIdConnectLogin(
|
||||
request: api_internal_pb.OpenIdConnectLoginRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_internal_pb.OpenIdConnectLoginResponse>;
|
||||
|
||||
getDevicesSummary(
|
||||
request: api_internal_pb.GetDevicesSummaryRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_internal_pb.GetDevicesSummaryResponse>;
|
||||
|
||||
getGatewaysSummary(
|
||||
request: api_internal_pb.GetGatewaysSummaryRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_internal_pb.GetGatewaysSummaryResponse>;
|
||||
|
||||
streamGatewayFrames(
|
||||
request: api_internal_pb.StreamGatewayFramesRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): grpcWeb.ClientReadableStream<api_internal_pb.LogItem>;
|
||||
|
||||
streamDeviceFrames(
|
||||
request: api_internal_pb.StreamDeviceFramesRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): grpcWeb.ClientReadableStream<api_internal_pb.LogItem>;
|
||||
|
||||
streamDeviceEvents(
|
||||
request: api_internal_pb.StreamDeviceEventsRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): grpcWeb.ClientReadableStream<api_internal_pb.LogItem>;
|
||||
|
||||
}
|
||||
|
1105
api/grpc-web/api/internal_grpc_web_pb.js
Normal file
1105
api/grpc-web/api/internal_grpc_web_pb.js
Normal file
File diff suppressed because it is too large
Load Diff
631
api/grpc-web/api/internal_pb.d.ts
vendored
Normal file
631
api/grpc-web/api/internal_pb.d.ts
vendored
Normal file
@ -0,0 +1,631 @@
|
||||
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): ApiKey;
|
||||
|
||||
getName(): string;
|
||||
setName(value: string): ApiKey;
|
||||
|
||||
getIsAdmin(): boolean;
|
||||
setIsAdmin(value: boolean): ApiKey;
|
||||
|
||||
getTenantId(): string;
|
||||
setTenantId(value: string): ApiKey;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ApiKey.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ApiKey): ApiKey.AsObject;
|
||||
static serializeBinaryToWriter(message: ApiKey, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ApiKey;
|
||||
static deserializeBinaryFromReader(message: ApiKey, reader: jspb.BinaryReader): ApiKey;
|
||||
}
|
||||
|
||||
export namespace ApiKey {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
name: string,
|
||||
isAdmin: boolean,
|
||||
tenantId: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class CreateApiKeyRequest extends jspb.Message {
|
||||
getApiKey(): ApiKey | undefined;
|
||||
setApiKey(value?: ApiKey): CreateApiKeyRequest;
|
||||
hasApiKey(): boolean;
|
||||
clearApiKey(): CreateApiKeyRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CreateApiKeyRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: CreateApiKeyRequest): CreateApiKeyRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: CreateApiKeyRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): CreateApiKeyRequest;
|
||||
static deserializeBinaryFromReader(message: CreateApiKeyRequest, reader: jspb.BinaryReader): CreateApiKeyRequest;
|
||||
}
|
||||
|
||||
export namespace CreateApiKeyRequest {
|
||||
export type AsObject = {
|
||||
apiKey?: ApiKey.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class CreateApiKeyResponse extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): CreateApiKeyResponse;
|
||||
|
||||
getToken(): string;
|
||||
setToken(value: string): CreateApiKeyResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CreateApiKeyResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: CreateApiKeyResponse): CreateApiKeyResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: CreateApiKeyResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): CreateApiKeyResponse;
|
||||
static deserializeBinaryFromReader(message: CreateApiKeyResponse, reader: jspb.BinaryReader): CreateApiKeyResponse;
|
||||
}
|
||||
|
||||
export namespace CreateApiKeyResponse {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
token: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class DeleteApiKeyRequest extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): DeleteApiKeyRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeleteApiKeyRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeleteApiKeyRequest): DeleteApiKeyRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: DeleteApiKeyRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeleteApiKeyRequest;
|
||||
static deserializeBinaryFromReader(message: DeleteApiKeyRequest, reader: jspb.BinaryReader): DeleteApiKeyRequest;
|
||||
}
|
||||
|
||||
export namespace DeleteApiKeyRequest {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class ListApiKeysRequest extends jspb.Message {
|
||||
getLimit(): number;
|
||||
setLimit(value: number): ListApiKeysRequest;
|
||||
|
||||
getOffset(): number;
|
||||
setOffset(value: number): ListApiKeysRequest;
|
||||
|
||||
getIsAdmin(): boolean;
|
||||
setIsAdmin(value: boolean): ListApiKeysRequest;
|
||||
|
||||
getTenantId(): string;
|
||||
setTenantId(value: string): ListApiKeysRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ListApiKeysRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ListApiKeysRequest): ListApiKeysRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: ListApiKeysRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ListApiKeysRequest;
|
||||
static deserializeBinaryFromReader(message: ListApiKeysRequest, reader: jspb.BinaryReader): ListApiKeysRequest;
|
||||
}
|
||||
|
||||
export namespace ListApiKeysRequest {
|
||||
export type AsObject = {
|
||||
limit: number,
|
||||
offset: number,
|
||||
isAdmin: boolean,
|
||||
tenantId: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class ListApiKeysResponse extends jspb.Message {
|
||||
getTotalCount(): number;
|
||||
setTotalCount(value: number): ListApiKeysResponse;
|
||||
|
||||
getResultList(): Array<ApiKey>;
|
||||
setResultList(value: Array<ApiKey>): ListApiKeysResponse;
|
||||
clearResultList(): ListApiKeysResponse;
|
||||
addResult(value?: ApiKey, index?: number): ApiKey;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ListApiKeysResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ListApiKeysResponse): ListApiKeysResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: ListApiKeysResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ListApiKeysResponse;
|
||||
static deserializeBinaryFromReader(message: ListApiKeysResponse, reader: jspb.BinaryReader): ListApiKeysResponse;
|
||||
}
|
||||
|
||||
export namespace ListApiKeysResponse {
|
||||
export type AsObject = {
|
||||
totalCount: number,
|
||||
resultList: Array<ApiKey.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class UserTenantLink extends jspb.Message {
|
||||
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): UserTenantLink;
|
||||
hasCreatedAt(): boolean;
|
||||
clearCreatedAt(): UserTenantLink;
|
||||
|
||||
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): UserTenantLink;
|
||||
hasUpdatedAt(): boolean;
|
||||
clearUpdatedAt(): UserTenantLink;
|
||||
|
||||
getTenantId(): string;
|
||||
setTenantId(value: string): UserTenantLink;
|
||||
|
||||
getIsAdmin(): boolean;
|
||||
setIsAdmin(value: boolean): UserTenantLink;
|
||||
|
||||
getIsDeviceAdmin(): boolean;
|
||||
setIsDeviceAdmin(value: boolean): UserTenantLink;
|
||||
|
||||
getIsGatewayAdmin(): boolean;
|
||||
setIsGatewayAdmin(value: boolean): UserTenantLink;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UserTenantLink.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: UserTenantLink): UserTenantLink.AsObject;
|
||||
static serializeBinaryToWriter(message: UserTenantLink, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): UserTenantLink;
|
||||
static deserializeBinaryFromReader(message: UserTenantLink, reader: jspb.BinaryReader): UserTenantLink;
|
||||
}
|
||||
|
||||
export namespace UserTenantLink {
|
||||
export type AsObject = {
|
||||
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
tenantId: string,
|
||||
isAdmin: boolean,
|
||||
isDeviceAdmin: boolean,
|
||||
isGatewayAdmin: boolean,
|
||||
}
|
||||
}
|
||||
|
||||
export class LoginRequest extends jspb.Message {
|
||||
getEmail(): string;
|
||||
setEmail(value: string): LoginRequest;
|
||||
|
||||
getPassword(): string;
|
||||
setPassword(value: string): LoginRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): LoginRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: LoginRequest): LoginRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: LoginRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): LoginRequest;
|
||||
static deserializeBinaryFromReader(message: LoginRequest, reader: jspb.BinaryReader): LoginRequest;
|
||||
}
|
||||
|
||||
export namespace LoginRequest {
|
||||
export type AsObject = {
|
||||
email: string,
|
||||
password: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class LoginResponse extends jspb.Message {
|
||||
getJwt(): string;
|
||||
setJwt(value: string): LoginResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): LoginResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: LoginResponse): LoginResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: LoginResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): LoginResponse;
|
||||
static deserializeBinaryFromReader(message: LoginResponse, reader: jspb.BinaryReader): LoginResponse;
|
||||
}
|
||||
|
||||
export namespace LoginResponse {
|
||||
export type AsObject = {
|
||||
jwt: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class ProfileResponse extends jspb.Message {
|
||||
getUser(): api_user_pb.User | undefined;
|
||||
setUser(value?: api_user_pb.User): ProfileResponse;
|
||||
hasUser(): boolean;
|
||||
clearUser(): ProfileResponse;
|
||||
|
||||
getTenantsList(): Array<UserTenantLink>;
|
||||
setTenantsList(value: Array<UserTenantLink>): ProfileResponse;
|
||||
clearTenantsList(): ProfileResponse;
|
||||
addTenants(value?: UserTenantLink, index?: number): UserTenantLink;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ProfileResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ProfileResponse): ProfileResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: ProfileResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ProfileResponse;
|
||||
static deserializeBinaryFromReader(message: ProfileResponse, reader: jspb.BinaryReader): ProfileResponse;
|
||||
}
|
||||
|
||||
export namespace ProfileResponse {
|
||||
export type AsObject = {
|
||||
user?: api_user_pb.User.AsObject,
|
||||
tenantsList: Array<UserTenantLink.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class GlobalSearchRequest extends jspb.Message {
|
||||
getSearch(): string;
|
||||
setSearch(value: string): GlobalSearchRequest;
|
||||
|
||||
getLimit(): number;
|
||||
setLimit(value: number): GlobalSearchRequest;
|
||||
|
||||
getOffset(): number;
|
||||
setOffset(value: number): GlobalSearchRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GlobalSearchRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GlobalSearchRequest): GlobalSearchRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: GlobalSearchRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GlobalSearchRequest;
|
||||
static deserializeBinaryFromReader(message: GlobalSearchRequest, reader: jspb.BinaryReader): GlobalSearchRequest;
|
||||
}
|
||||
|
||||
export namespace GlobalSearchRequest {
|
||||
export type AsObject = {
|
||||
search: string,
|
||||
limit: number,
|
||||
offset: number,
|
||||
}
|
||||
}
|
||||
|
||||
export class GlobalSearchResponse extends jspb.Message {
|
||||
getResultList(): Array<GlobalSearchResult>;
|
||||
setResultList(value: Array<GlobalSearchResult>): GlobalSearchResponse;
|
||||
clearResultList(): GlobalSearchResponse;
|
||||
addResult(value?: GlobalSearchResult, index?: number): GlobalSearchResult;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GlobalSearchResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GlobalSearchResponse): GlobalSearchResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: GlobalSearchResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GlobalSearchResponse;
|
||||
static deserializeBinaryFromReader(message: GlobalSearchResponse, reader: jspb.BinaryReader): GlobalSearchResponse;
|
||||
}
|
||||
|
||||
export namespace GlobalSearchResponse {
|
||||
export type AsObject = {
|
||||
resultList: Array<GlobalSearchResult.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class GlobalSearchResult extends jspb.Message {
|
||||
getKind(): string;
|
||||
setKind(value: string): GlobalSearchResult;
|
||||
|
||||
getScore(): number;
|
||||
setScore(value: number): GlobalSearchResult;
|
||||
|
||||
getTenantId(): string;
|
||||
setTenantId(value: string): GlobalSearchResult;
|
||||
|
||||
getTenantName(): string;
|
||||
setTenantName(value: string): GlobalSearchResult;
|
||||
|
||||
getApplicationId(): string;
|
||||
setApplicationId(value: string): GlobalSearchResult;
|
||||
|
||||
getApplicationName(): string;
|
||||
setApplicationName(value: string): GlobalSearchResult;
|
||||
|
||||
getDeviceDevEui(): string;
|
||||
setDeviceDevEui(value: string): GlobalSearchResult;
|
||||
|
||||
getDeviceName(): string;
|
||||
setDeviceName(value: string): GlobalSearchResult;
|
||||
|
||||
getGatewayId(): string;
|
||||
setGatewayId(value: string): GlobalSearchResult;
|
||||
|
||||
getGatewayName(): string;
|
||||
setGatewayName(value: string): GlobalSearchResult;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GlobalSearchResult.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GlobalSearchResult): GlobalSearchResult.AsObject;
|
||||
static serializeBinaryToWriter(message: GlobalSearchResult, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GlobalSearchResult;
|
||||
static deserializeBinaryFromReader(message: GlobalSearchResult, reader: jspb.BinaryReader): GlobalSearchResult;
|
||||
}
|
||||
|
||||
export namespace GlobalSearchResult {
|
||||
export type AsObject = {
|
||||
kind: string,
|
||||
score: number,
|
||||
tenantId: string,
|
||||
tenantName: string,
|
||||
applicationId: string,
|
||||
applicationName: string,
|
||||
deviceDevEui: string,
|
||||
deviceName: string,
|
||||
gatewayId: string,
|
||||
gatewayName: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class SettingsResponse extends jspb.Message {
|
||||
getOpenidConnect(): OpenIdConnect | undefined;
|
||||
setOpenidConnect(value?: OpenIdConnect): SettingsResponse;
|
||||
hasOpenidConnect(): boolean;
|
||||
clearOpenidConnect(): SettingsResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): SettingsResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: SettingsResponse): SettingsResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: SettingsResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): SettingsResponse;
|
||||
static deserializeBinaryFromReader(message: SettingsResponse, reader: jspb.BinaryReader): SettingsResponse;
|
||||
}
|
||||
|
||||
export namespace SettingsResponse {
|
||||
export type AsObject = {
|
||||
openidConnect?: OpenIdConnect.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class OpenIdConnect extends jspb.Message {
|
||||
getEnabled(): boolean;
|
||||
setEnabled(value: boolean): OpenIdConnect;
|
||||
|
||||
getLoginUrl(): string;
|
||||
setLoginUrl(value: string): OpenIdConnect;
|
||||
|
||||
getLoginLabel(): string;
|
||||
setLoginLabel(value: string): OpenIdConnect;
|
||||
|
||||
getLogoutUrl(): string;
|
||||
setLogoutUrl(value: string): OpenIdConnect;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): OpenIdConnect.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: OpenIdConnect): OpenIdConnect.AsObject;
|
||||
static serializeBinaryToWriter(message: OpenIdConnect, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): OpenIdConnect;
|
||||
static deserializeBinaryFromReader(message: OpenIdConnect, reader: jspb.BinaryReader): OpenIdConnect;
|
||||
}
|
||||
|
||||
export namespace OpenIdConnect {
|
||||
export type AsObject = {
|
||||
enabled: boolean,
|
||||
loginUrl: string,
|
||||
loginLabel: string,
|
||||
logoutUrl: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class OpenIdConnectLoginRequest extends jspb.Message {
|
||||
getCode(): string;
|
||||
setCode(value: string): OpenIdConnectLoginRequest;
|
||||
|
||||
getState(): string;
|
||||
setState(value: string): OpenIdConnectLoginRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): OpenIdConnectLoginRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: OpenIdConnectLoginRequest): OpenIdConnectLoginRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: OpenIdConnectLoginRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): OpenIdConnectLoginRequest;
|
||||
static deserializeBinaryFromReader(message: OpenIdConnectLoginRequest, reader: jspb.BinaryReader): OpenIdConnectLoginRequest;
|
||||
}
|
||||
|
||||
export namespace OpenIdConnectLoginRequest {
|
||||
export type AsObject = {
|
||||
code: string,
|
||||
state: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class OpenIdConnectLoginResponse extends jspb.Message {
|
||||
getToken(): string;
|
||||
setToken(value: string): OpenIdConnectLoginResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): OpenIdConnectLoginResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: OpenIdConnectLoginResponse): OpenIdConnectLoginResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: OpenIdConnectLoginResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): OpenIdConnectLoginResponse;
|
||||
static deserializeBinaryFromReader(message: OpenIdConnectLoginResponse, reader: jspb.BinaryReader): OpenIdConnectLoginResponse;
|
||||
}
|
||||
|
||||
export namespace OpenIdConnectLoginResponse {
|
||||
export type AsObject = {
|
||||
token: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetDevicesSummaryRequest extends jspb.Message {
|
||||
getTenantId(): string;
|
||||
setTenantId(value: string): GetDevicesSummaryRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetDevicesSummaryRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetDevicesSummaryRequest): GetDevicesSummaryRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: GetDevicesSummaryRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetDevicesSummaryRequest;
|
||||
static deserializeBinaryFromReader(message: GetDevicesSummaryRequest, reader: jspb.BinaryReader): GetDevicesSummaryRequest;
|
||||
}
|
||||
|
||||
export namespace GetDevicesSummaryRequest {
|
||||
export type AsObject = {
|
||||
tenantId: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetDevicesSummaryResponse extends jspb.Message {
|
||||
getActiveCount(): number;
|
||||
setActiveCount(value: number): GetDevicesSummaryResponse;
|
||||
|
||||
getInactiveCount(): number;
|
||||
setInactiveCount(value: number): GetDevicesSummaryResponse;
|
||||
|
||||
getDrCountMap(): jspb.Map<number, number>;
|
||||
clearDrCountMap(): GetDevicesSummaryResponse;
|
||||
|
||||
getNeverSeenCount(): number;
|
||||
setNeverSeenCount(value: number): GetDevicesSummaryResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetDevicesSummaryResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetDevicesSummaryResponse): GetDevicesSummaryResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: GetDevicesSummaryResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetDevicesSummaryResponse;
|
||||
static deserializeBinaryFromReader(message: GetDevicesSummaryResponse, reader: jspb.BinaryReader): GetDevicesSummaryResponse;
|
||||
}
|
||||
|
||||
export namespace GetDevicesSummaryResponse {
|
||||
export type AsObject = {
|
||||
activeCount: number,
|
||||
inactiveCount: number,
|
||||
drCountMap: Array<[number, number]>,
|
||||
neverSeenCount: number,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetGatewaysSummaryRequest extends jspb.Message {
|
||||
getTenantId(): string;
|
||||
setTenantId(value: string): GetGatewaysSummaryRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetGatewaysSummaryRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetGatewaysSummaryRequest): GetGatewaysSummaryRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: GetGatewaysSummaryRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetGatewaysSummaryRequest;
|
||||
static deserializeBinaryFromReader(message: GetGatewaysSummaryRequest, reader: jspb.BinaryReader): GetGatewaysSummaryRequest;
|
||||
}
|
||||
|
||||
export namespace GetGatewaysSummaryRequest {
|
||||
export type AsObject = {
|
||||
tenantId: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetGatewaysSummaryResponse extends jspb.Message {
|
||||
getActiveCount(): number;
|
||||
setActiveCount(value: number): GetGatewaysSummaryResponse;
|
||||
|
||||
getInactiveCount(): number;
|
||||
setInactiveCount(value: number): GetGatewaysSummaryResponse;
|
||||
|
||||
getNeverSeenCount(): number;
|
||||
setNeverSeenCount(value: number): GetGatewaysSummaryResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetGatewaysSummaryResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetGatewaysSummaryResponse): GetGatewaysSummaryResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: GetGatewaysSummaryResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetGatewaysSummaryResponse;
|
||||
static deserializeBinaryFromReader(message: GetGatewaysSummaryResponse, reader: jspb.BinaryReader): GetGatewaysSummaryResponse;
|
||||
}
|
||||
|
||||
export namespace GetGatewaysSummaryResponse {
|
||||
export type AsObject = {
|
||||
activeCount: number,
|
||||
inactiveCount: number,
|
||||
neverSeenCount: number,
|
||||
}
|
||||
}
|
||||
|
||||
export class LogItem extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): LogItem;
|
||||
|
||||
getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setTime(value?: google_protobuf_timestamp_pb.Timestamp): LogItem;
|
||||
hasTime(): boolean;
|
||||
clearTime(): LogItem;
|
||||
|
||||
getDescription(): string;
|
||||
setDescription(value: string): LogItem;
|
||||
|
||||
getBody(): string;
|
||||
setBody(value: string): LogItem;
|
||||
|
||||
getPropertiesMap(): jspb.Map<string, string>;
|
||||
clearPropertiesMap(): LogItem;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): LogItem.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: LogItem): LogItem.AsObject;
|
||||
static serializeBinaryToWriter(message: LogItem, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): LogItem;
|
||||
static deserializeBinaryFromReader(message: LogItem, reader: jspb.BinaryReader): LogItem;
|
||||
}
|
||||
|
||||
export namespace LogItem {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
time?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
description: string,
|
||||
body: string,
|
||||
propertiesMap: Array<[string, string]>,
|
||||
}
|
||||
}
|
||||
|
||||
export class StreamGatewayFramesRequest extends jspb.Message {
|
||||
getGatewayId(): string;
|
||||
setGatewayId(value: string): StreamGatewayFramesRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): StreamGatewayFramesRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: StreamGatewayFramesRequest): StreamGatewayFramesRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: StreamGatewayFramesRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): StreamGatewayFramesRequest;
|
||||
static deserializeBinaryFromReader(message: StreamGatewayFramesRequest, reader: jspb.BinaryReader): StreamGatewayFramesRequest;
|
||||
}
|
||||
|
||||
export namespace StreamGatewayFramesRequest {
|
||||
export type AsObject = {
|
||||
gatewayId: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class StreamDeviceFramesRequest extends jspb.Message {
|
||||
getDevEui(): string;
|
||||
setDevEui(value: string): StreamDeviceFramesRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): StreamDeviceFramesRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: StreamDeviceFramesRequest): StreamDeviceFramesRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: StreamDeviceFramesRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): StreamDeviceFramesRequest;
|
||||
static deserializeBinaryFromReader(message: StreamDeviceFramesRequest, reader: jspb.BinaryReader): StreamDeviceFramesRequest;
|
||||
}
|
||||
|
||||
export namespace StreamDeviceFramesRequest {
|
||||
export type AsObject = {
|
||||
devEui: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class StreamDeviceEventsRequest extends jspb.Message {
|
||||
getDevEui(): string;
|
||||
setDevEui(value: string): StreamDeviceEventsRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): StreamDeviceEventsRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: StreamDeviceEventsRequest): StreamDeviceEventsRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: StreamDeviceEventsRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): StreamDeviceEventsRequest;
|
||||
static deserializeBinaryFromReader(message: StreamDeviceEventsRequest, reader: jspb.BinaryReader): StreamDeviceEventsRequest;
|
||||
}
|
||||
|
||||
export namespace StreamDeviceEventsRequest {
|
||||
export type AsObject = {
|
||||
devEui: string,
|
||||
}
|
||||
}
|
||||
|
5216
api/grpc-web/api/internal_pb.js
Normal file
5216
api/grpc-web/api/internal_pb.js
Normal file
File diff suppressed because it is too large
Load Diff
140
api/grpc-web/api/multicast_group_grpc_web_pb.d.ts
vendored
Normal file
140
api/grpc-web/api/multicast_group_grpc_web_pb.d.ts
vendored
Normal file
@ -0,0 +1,140 @@
|
||||
import * as grpcWeb from 'grpc-web';
|
||||
|
||||
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
|
||||
import * as api_multicast_group_pb from '../api/multicast_group_pb';
|
||||
|
||||
|
||||
export class MulticastGroupServiceClient {
|
||||
constructor (hostname: string,
|
||||
credentials?: null | { [index: string]: string; },
|
||||
options?: null | { [index: string]: any; });
|
||||
|
||||
create(
|
||||
request: api_multicast_group_pb.CreateMulticastGroupRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_multicast_group_pb.CreateMulticastGroupResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_multicast_group_pb.CreateMulticastGroupResponse>;
|
||||
|
||||
get(
|
||||
request: api_multicast_group_pb.GetMulticastGroupRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_multicast_group_pb.GetMulticastGroupResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_multicast_group_pb.GetMulticastGroupResponse>;
|
||||
|
||||
update(
|
||||
request: api_multicast_group_pb.UpdateMulticastGroupRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
delete(
|
||||
request: api_multicast_group_pb.DeleteMulticastGroupRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
list(
|
||||
request: api_multicast_group_pb.ListMulticastGroupsRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_multicast_group_pb.ListMulticastGroupsResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_multicast_group_pb.ListMulticastGroupsResponse>;
|
||||
|
||||
addDevice(
|
||||
request: api_multicast_group_pb.AddDeviceToMulticastGroupRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
removeDevice(
|
||||
request: api_multicast_group_pb.RemoveDeviceFromMulticastGroupRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
enqueue(
|
||||
request: api_multicast_group_pb.EnqueueMulticastGroupQueueItemRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_multicast_group_pb.EnqueueMulticastGroupQueueItemResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_multicast_group_pb.EnqueueMulticastGroupQueueItemResponse>;
|
||||
|
||||
flushQueue(
|
||||
request: api_multicast_group_pb.FlushMulticastGroupQueueRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
listQueue(
|
||||
request: api_multicast_group_pb.ListMulticastGroupQueueRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_multicast_group_pb.ListMulticastGroupQueueResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_multicast_group_pb.ListMulticastGroupQueueResponse>;
|
||||
|
||||
}
|
||||
|
||||
export class MulticastGroupServicePromiseClient {
|
||||
constructor (hostname: string,
|
||||
credentials?: null | { [index: string]: string; },
|
||||
options?: null | { [index: string]: any; });
|
||||
|
||||
create(
|
||||
request: api_multicast_group_pb.CreateMulticastGroupRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_multicast_group_pb.CreateMulticastGroupResponse>;
|
||||
|
||||
get(
|
||||
request: api_multicast_group_pb.GetMulticastGroupRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_multicast_group_pb.GetMulticastGroupResponse>;
|
||||
|
||||
update(
|
||||
request: api_multicast_group_pb.UpdateMulticastGroupRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
delete(
|
||||
request: api_multicast_group_pb.DeleteMulticastGroupRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
list(
|
||||
request: api_multicast_group_pb.ListMulticastGroupsRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_multicast_group_pb.ListMulticastGroupsResponse>;
|
||||
|
||||
addDevice(
|
||||
request: api_multicast_group_pb.AddDeviceToMulticastGroupRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
removeDevice(
|
||||
request: api_multicast_group_pb.RemoveDeviceFromMulticastGroupRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
enqueue(
|
||||
request: api_multicast_group_pb.EnqueueMulticastGroupQueueItemRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_multicast_group_pb.EnqueueMulticastGroupQueueItemResponse>;
|
||||
|
||||
flushQueue(
|
||||
request: api_multicast_group_pb.FlushMulticastGroupQueueRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
listQueue(
|
||||
request: api_multicast_group_pb.ListMulticastGroupQueueRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_multicast_group_pb.ListMulticastGroupQueueResponse>;
|
||||
|
||||
}
|
||||
|
882
api/grpc-web/api/multicast_group_grpc_web_pb.js
Normal file
882
api/grpc-web/api/multicast_group_grpc_web_pb.js
Normal file
@ -0,0 +1,882 @@
|
||||
/**
|
||||
* @fileoverview gRPC-Web generated client stub for api
|
||||
* @enhanceable
|
||||
* @public
|
||||
*/
|
||||
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
|
||||
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
|
||||
|
||||
const grpc = {};
|
||||
grpc.web = require('grpc-web');
|
||||
|
||||
|
||||
var google_api_annotations_pb = require('../google/api/annotations_pb.js')
|
||||
|
||||
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js')
|
||||
|
||||
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js')
|
||||
|
||||
var common_common_pb = require('../common/common_pb.js')
|
||||
const proto = {};
|
||||
proto.api = require('./multicast_group_pb.js');
|
||||
|
||||
/**
|
||||
* @param {string} hostname
|
||||
* @param {?Object} credentials
|
||||
* @param {?Object} options
|
||||
* @constructor
|
||||
* @struct
|
||||
* @final
|
||||
*/
|
||||
proto.api.MulticastGroupServiceClient =
|
||||
function(hostname, credentials, options) {
|
||||
if (!options) options = {};
|
||||
options['format'] = 'text';
|
||||
|
||||
/**
|
||||
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
||||
*/
|
||||
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
||||
|
||||
/**
|
||||
* @private @const {string} The hostname
|
||||
*/
|
||||
this.hostname_ = hostname;
|
||||
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} hostname
|
||||
* @param {?Object} credentials
|
||||
* @param {?Object} options
|
||||
* @constructor
|
||||
* @struct
|
||||
* @final
|
||||
*/
|
||||
proto.api.MulticastGroupServicePromiseClient =
|
||||
function(hostname, credentials, options) {
|
||||
if (!options) options = {};
|
||||
options['format'] = 'text';
|
||||
|
||||
/**
|
||||
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
||||
*/
|
||||
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
||||
|
||||
/**
|
||||
* @private @const {string} The hostname
|
||||
*/
|
||||
this.hostname_ = hostname;
|
||||
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.CreateMulticastGroupRequest,
|
||||
* !proto.api.CreateMulticastGroupResponse>}
|
||||
*/
|
||||
const methodDescriptor_MulticastGroupService_Create = new grpc.web.MethodDescriptor(
|
||||
'/api.MulticastGroupService/Create',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.CreateMulticastGroupRequest,
|
||||
proto.api.CreateMulticastGroupResponse,
|
||||
/**
|
||||
* @param {!proto.api.CreateMulticastGroupRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.CreateMulticastGroupResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.CreateMulticastGroupRequest,
|
||||
* !proto.api.CreateMulticastGroupResponse>}
|
||||
*/
|
||||
const methodInfo_MulticastGroupService_Create = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
proto.api.CreateMulticastGroupResponse,
|
||||
/**
|
||||
* @param {!proto.api.CreateMulticastGroupRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.CreateMulticastGroupResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.CreateMulticastGroupRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.api.CreateMulticastGroupResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.api.CreateMulticastGroupResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.MulticastGroupServiceClient.prototype.create =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.MulticastGroupService/Create',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_MulticastGroupService_Create,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.CreateMulticastGroupRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.api.CreateMulticastGroupResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.MulticastGroupServicePromiseClient.prototype.create =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.MulticastGroupService/Create',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_MulticastGroupService_Create);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.GetMulticastGroupRequest,
|
||||
* !proto.api.GetMulticastGroupResponse>}
|
||||
*/
|
||||
const methodDescriptor_MulticastGroupService_Get = new grpc.web.MethodDescriptor(
|
||||
'/api.MulticastGroupService/Get',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.GetMulticastGroupRequest,
|
||||
proto.api.GetMulticastGroupResponse,
|
||||
/**
|
||||
* @param {!proto.api.GetMulticastGroupRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.GetMulticastGroupResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.GetMulticastGroupRequest,
|
||||
* !proto.api.GetMulticastGroupResponse>}
|
||||
*/
|
||||
const methodInfo_MulticastGroupService_Get = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
proto.api.GetMulticastGroupResponse,
|
||||
/**
|
||||
* @param {!proto.api.GetMulticastGroupRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.GetMulticastGroupResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.GetMulticastGroupRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.api.GetMulticastGroupResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.api.GetMulticastGroupResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.MulticastGroupServiceClient.prototype.get =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.MulticastGroupService/Get',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_MulticastGroupService_Get,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.GetMulticastGroupRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.api.GetMulticastGroupResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.MulticastGroupServicePromiseClient.prototype.get =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.MulticastGroupService/Get',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_MulticastGroupService_Get);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.UpdateMulticastGroupRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodDescriptor_MulticastGroupService_Update = new grpc.web.MethodDescriptor(
|
||||
'/api.MulticastGroupService/Update',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.UpdateMulticastGroupRequest,
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.UpdateMulticastGroupRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.UpdateMulticastGroupRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodInfo_MulticastGroupService_Update = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.UpdateMulticastGroupRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.UpdateMulticastGroupRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.MulticastGroupServiceClient.prototype.update =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.MulticastGroupService/Update',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_MulticastGroupService_Update,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.UpdateMulticastGroupRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.google.protobuf.Empty>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.MulticastGroupServicePromiseClient.prototype.update =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.MulticastGroupService/Update',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_MulticastGroupService_Update);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.DeleteMulticastGroupRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodDescriptor_MulticastGroupService_Delete = new grpc.web.MethodDescriptor(
|
||||
'/api.MulticastGroupService/Delete',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.DeleteMulticastGroupRequest,
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.DeleteMulticastGroupRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.DeleteMulticastGroupRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodInfo_MulticastGroupService_Delete = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.DeleteMulticastGroupRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.DeleteMulticastGroupRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.MulticastGroupServiceClient.prototype.delete =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.MulticastGroupService/Delete',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_MulticastGroupService_Delete,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.DeleteMulticastGroupRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.google.protobuf.Empty>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.MulticastGroupServicePromiseClient.prototype.delete =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.MulticastGroupService/Delete',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_MulticastGroupService_Delete);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.ListMulticastGroupsRequest,
|
||||
* !proto.api.ListMulticastGroupsResponse>}
|
||||
*/
|
||||
const methodDescriptor_MulticastGroupService_List = new grpc.web.MethodDescriptor(
|
||||
'/api.MulticastGroupService/List',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.ListMulticastGroupsRequest,
|
||||
proto.api.ListMulticastGroupsResponse,
|
||||
/**
|
||||
* @param {!proto.api.ListMulticastGroupsRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.ListMulticastGroupsResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.ListMulticastGroupsRequest,
|
||||
* !proto.api.ListMulticastGroupsResponse>}
|
||||
*/
|
||||
const methodInfo_MulticastGroupService_List = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
proto.api.ListMulticastGroupsResponse,
|
||||
/**
|
||||
* @param {!proto.api.ListMulticastGroupsRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.ListMulticastGroupsResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.ListMulticastGroupsRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.api.ListMulticastGroupsResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.api.ListMulticastGroupsResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.MulticastGroupServiceClient.prototype.list =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.MulticastGroupService/List',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_MulticastGroupService_List,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.ListMulticastGroupsRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.api.ListMulticastGroupsResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.MulticastGroupServicePromiseClient.prototype.list =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.MulticastGroupService/List',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_MulticastGroupService_List);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.AddDeviceToMulticastGroupRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodDescriptor_MulticastGroupService_AddDevice = new grpc.web.MethodDescriptor(
|
||||
'/api.MulticastGroupService/AddDevice',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.AddDeviceToMulticastGroupRequest,
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.AddDeviceToMulticastGroupRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.AddDeviceToMulticastGroupRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodInfo_MulticastGroupService_AddDevice = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.AddDeviceToMulticastGroupRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.AddDeviceToMulticastGroupRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.MulticastGroupServiceClient.prototype.addDevice =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.MulticastGroupService/AddDevice',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_MulticastGroupService_AddDevice,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.AddDeviceToMulticastGroupRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.google.protobuf.Empty>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.MulticastGroupServicePromiseClient.prototype.addDevice =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.MulticastGroupService/AddDevice',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_MulticastGroupService_AddDevice);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.RemoveDeviceFromMulticastGroupRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodDescriptor_MulticastGroupService_RemoveDevice = new grpc.web.MethodDescriptor(
|
||||
'/api.MulticastGroupService/RemoveDevice',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.RemoveDeviceFromMulticastGroupRequest,
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.RemoveDeviceFromMulticastGroupRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.RemoveDeviceFromMulticastGroupRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodInfo_MulticastGroupService_RemoveDevice = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.RemoveDeviceFromMulticastGroupRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.RemoveDeviceFromMulticastGroupRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.MulticastGroupServiceClient.prototype.removeDevice =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.MulticastGroupService/RemoveDevice',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_MulticastGroupService_RemoveDevice,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.RemoveDeviceFromMulticastGroupRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.google.protobuf.Empty>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.MulticastGroupServicePromiseClient.prototype.removeDevice =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.MulticastGroupService/RemoveDevice',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_MulticastGroupService_RemoveDevice);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.EnqueueMulticastGroupQueueItemRequest,
|
||||
* !proto.api.EnqueueMulticastGroupQueueItemResponse>}
|
||||
*/
|
||||
const methodDescriptor_MulticastGroupService_Enqueue = new grpc.web.MethodDescriptor(
|
||||
'/api.MulticastGroupService/Enqueue',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.EnqueueMulticastGroupQueueItemRequest,
|
||||
proto.api.EnqueueMulticastGroupQueueItemResponse,
|
||||
/**
|
||||
* @param {!proto.api.EnqueueMulticastGroupQueueItemRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.EnqueueMulticastGroupQueueItemResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.EnqueueMulticastGroupQueueItemRequest,
|
||||
* !proto.api.EnqueueMulticastGroupQueueItemResponse>}
|
||||
*/
|
||||
const methodInfo_MulticastGroupService_Enqueue = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
proto.api.EnqueueMulticastGroupQueueItemResponse,
|
||||
/**
|
||||
* @param {!proto.api.EnqueueMulticastGroupQueueItemRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.EnqueueMulticastGroupQueueItemResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.EnqueueMulticastGroupQueueItemRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.api.EnqueueMulticastGroupQueueItemResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.api.EnqueueMulticastGroupQueueItemResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.MulticastGroupServiceClient.prototype.enqueue =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.MulticastGroupService/Enqueue',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_MulticastGroupService_Enqueue,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.EnqueueMulticastGroupQueueItemRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.api.EnqueueMulticastGroupQueueItemResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.MulticastGroupServicePromiseClient.prototype.enqueue =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.MulticastGroupService/Enqueue',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_MulticastGroupService_Enqueue);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.FlushMulticastGroupQueueRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodDescriptor_MulticastGroupService_FlushQueue = new grpc.web.MethodDescriptor(
|
||||
'/api.MulticastGroupService/FlushQueue',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.FlushMulticastGroupQueueRequest,
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.FlushMulticastGroupQueueRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.FlushMulticastGroupQueueRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodInfo_MulticastGroupService_FlushQueue = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.FlushMulticastGroupQueueRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.FlushMulticastGroupQueueRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.MulticastGroupServiceClient.prototype.flushQueue =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.MulticastGroupService/FlushQueue',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_MulticastGroupService_FlushQueue,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.FlushMulticastGroupQueueRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.google.protobuf.Empty>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.MulticastGroupServicePromiseClient.prototype.flushQueue =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.MulticastGroupService/FlushQueue',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_MulticastGroupService_FlushQueue);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.ListMulticastGroupQueueRequest,
|
||||
* !proto.api.ListMulticastGroupQueueResponse>}
|
||||
*/
|
||||
const methodDescriptor_MulticastGroupService_ListQueue = new grpc.web.MethodDescriptor(
|
||||
'/api.MulticastGroupService/ListQueue',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.ListMulticastGroupQueueRequest,
|
||||
proto.api.ListMulticastGroupQueueResponse,
|
||||
/**
|
||||
* @param {!proto.api.ListMulticastGroupQueueRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.ListMulticastGroupQueueResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.ListMulticastGroupQueueRequest,
|
||||
* !proto.api.ListMulticastGroupQueueResponse>}
|
||||
*/
|
||||
const methodInfo_MulticastGroupService_ListQueue = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
proto.api.ListMulticastGroupQueueResponse,
|
||||
/**
|
||||
* @param {!proto.api.ListMulticastGroupQueueRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.ListMulticastGroupQueueResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.ListMulticastGroupQueueRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.api.ListMulticastGroupQueueResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.api.ListMulticastGroupQueueResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.MulticastGroupServiceClient.prototype.listQueue =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.MulticastGroupService/ListQueue',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_MulticastGroupService_ListQueue,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.ListMulticastGroupQueueRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.api.ListMulticastGroupQueueResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.MulticastGroupServicePromiseClient.prototype.listQueue =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.MulticastGroupService/ListQueue',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_MulticastGroupService_ListQueue);
|
||||
};
|
||||
|
||||
|
||||
module.exports = proto.api;
|
||||
|
466
api/grpc-web/api/multicast_group_pb.d.ts
vendored
Normal file
466
api/grpc-web/api/multicast_group_pb.d.ts
vendored
Normal file
@ -0,0 +1,466 @@
|
||||
import * as jspb from 'google-protobuf'
|
||||
|
||||
import * as google_api_annotations_pb from '../google/api/annotations_pb';
|
||||
import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb';
|
||||
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
|
||||
import * as common_common_pb from '../common/common_pb';
|
||||
|
||||
|
||||
export class MulticastGroup extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): MulticastGroup;
|
||||
|
||||
getName(): string;
|
||||
setName(value: string): MulticastGroup;
|
||||
|
||||
getApplicationId(): string;
|
||||
setApplicationId(value: string): MulticastGroup;
|
||||
|
||||
getRegion(): common_common_pb.Region;
|
||||
setRegion(value: common_common_pb.Region): MulticastGroup;
|
||||
|
||||
getMcAddr(): string;
|
||||
setMcAddr(value: string): MulticastGroup;
|
||||
|
||||
getMcNwkSKey(): string;
|
||||
setMcNwkSKey(value: string): MulticastGroup;
|
||||
|
||||
getMcAppSKey(): string;
|
||||
setMcAppSKey(value: string): MulticastGroup;
|
||||
|
||||
getFCnt(): number;
|
||||
setFCnt(value: number): MulticastGroup;
|
||||
|
||||
getGroupType(): MulticastGroupType;
|
||||
setGroupType(value: MulticastGroupType): MulticastGroup;
|
||||
|
||||
getDr(): number;
|
||||
setDr(value: number): MulticastGroup;
|
||||
|
||||
getFrequency(): number;
|
||||
setFrequency(value: number): MulticastGroup;
|
||||
|
||||
getClassBPingSlotPeriod(): number;
|
||||
setClassBPingSlotPeriod(value: number): MulticastGroup;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): MulticastGroup.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: MulticastGroup): MulticastGroup.AsObject;
|
||||
static serializeBinaryToWriter(message: MulticastGroup, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): MulticastGroup;
|
||||
static deserializeBinaryFromReader(message: MulticastGroup, reader: jspb.BinaryReader): MulticastGroup;
|
||||
}
|
||||
|
||||
export namespace MulticastGroup {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
name: string,
|
||||
applicationId: string,
|
||||
region: common_common_pb.Region,
|
||||
mcAddr: string,
|
||||
mcNwkSKey: string,
|
||||
mcAppSKey: string,
|
||||
fCnt: number,
|
||||
groupType: MulticastGroupType,
|
||||
dr: number,
|
||||
frequency: number,
|
||||
classBPingSlotPeriod: number,
|
||||
}
|
||||
}
|
||||
|
||||
export class MulticastGroupListItem extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): MulticastGroupListItem;
|
||||
|
||||
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): MulticastGroupListItem;
|
||||
hasCreatedAt(): boolean;
|
||||
clearCreatedAt(): MulticastGroupListItem;
|
||||
|
||||
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): MulticastGroupListItem;
|
||||
hasUpdatedAt(): boolean;
|
||||
clearUpdatedAt(): MulticastGroupListItem;
|
||||
|
||||
getName(): string;
|
||||
setName(value: string): MulticastGroupListItem;
|
||||
|
||||
getRegion(): common_common_pb.Region;
|
||||
setRegion(value: common_common_pb.Region): MulticastGroupListItem;
|
||||
|
||||
getGroupType(): MulticastGroupType;
|
||||
setGroupType(value: MulticastGroupType): MulticastGroupListItem;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): MulticastGroupListItem.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: MulticastGroupListItem): MulticastGroupListItem.AsObject;
|
||||
static serializeBinaryToWriter(message: MulticastGroupListItem, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): MulticastGroupListItem;
|
||||
static deserializeBinaryFromReader(message: MulticastGroupListItem, reader: jspb.BinaryReader): MulticastGroupListItem;
|
||||
}
|
||||
|
||||
export namespace MulticastGroupListItem {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
name: string,
|
||||
region: common_common_pb.Region,
|
||||
groupType: MulticastGroupType,
|
||||
}
|
||||
}
|
||||
|
||||
export class CreateMulticastGroupRequest extends jspb.Message {
|
||||
getMulticastGroup(): MulticastGroup | undefined;
|
||||
setMulticastGroup(value?: MulticastGroup): CreateMulticastGroupRequest;
|
||||
hasMulticastGroup(): boolean;
|
||||
clearMulticastGroup(): CreateMulticastGroupRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CreateMulticastGroupRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: CreateMulticastGroupRequest): CreateMulticastGroupRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: CreateMulticastGroupRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): CreateMulticastGroupRequest;
|
||||
static deserializeBinaryFromReader(message: CreateMulticastGroupRequest, reader: jspb.BinaryReader): CreateMulticastGroupRequest;
|
||||
}
|
||||
|
||||
export namespace CreateMulticastGroupRequest {
|
||||
export type AsObject = {
|
||||
multicastGroup?: MulticastGroup.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class CreateMulticastGroupResponse extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): CreateMulticastGroupResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CreateMulticastGroupResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: CreateMulticastGroupResponse): CreateMulticastGroupResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: CreateMulticastGroupResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): CreateMulticastGroupResponse;
|
||||
static deserializeBinaryFromReader(message: CreateMulticastGroupResponse, reader: jspb.BinaryReader): CreateMulticastGroupResponse;
|
||||
}
|
||||
|
||||
export namespace CreateMulticastGroupResponse {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetMulticastGroupRequest extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): GetMulticastGroupRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetMulticastGroupRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetMulticastGroupRequest): GetMulticastGroupRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: GetMulticastGroupRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetMulticastGroupRequest;
|
||||
static deserializeBinaryFromReader(message: GetMulticastGroupRequest, reader: jspb.BinaryReader): GetMulticastGroupRequest;
|
||||
}
|
||||
|
||||
export namespace GetMulticastGroupRequest {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetMulticastGroupResponse extends jspb.Message {
|
||||
getMulticastGroup(): MulticastGroup | undefined;
|
||||
setMulticastGroup(value?: MulticastGroup): GetMulticastGroupResponse;
|
||||
hasMulticastGroup(): boolean;
|
||||
clearMulticastGroup(): GetMulticastGroupResponse;
|
||||
|
||||
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetMulticastGroupResponse;
|
||||
hasCreatedAt(): boolean;
|
||||
clearCreatedAt(): GetMulticastGroupResponse;
|
||||
|
||||
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetMulticastGroupResponse;
|
||||
hasUpdatedAt(): boolean;
|
||||
clearUpdatedAt(): GetMulticastGroupResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetMulticastGroupResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetMulticastGroupResponse): GetMulticastGroupResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: GetMulticastGroupResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetMulticastGroupResponse;
|
||||
static deserializeBinaryFromReader(message: GetMulticastGroupResponse, reader: jspb.BinaryReader): GetMulticastGroupResponse;
|
||||
}
|
||||
|
||||
export namespace GetMulticastGroupResponse {
|
||||
export type AsObject = {
|
||||
multicastGroup?: MulticastGroup.AsObject,
|
||||
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class UpdateMulticastGroupRequest extends jspb.Message {
|
||||
getMulticastGroup(): MulticastGroup | undefined;
|
||||
setMulticastGroup(value?: MulticastGroup): UpdateMulticastGroupRequest;
|
||||
hasMulticastGroup(): boolean;
|
||||
clearMulticastGroup(): UpdateMulticastGroupRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UpdateMulticastGroupRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: UpdateMulticastGroupRequest): UpdateMulticastGroupRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: UpdateMulticastGroupRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): UpdateMulticastGroupRequest;
|
||||
static deserializeBinaryFromReader(message: UpdateMulticastGroupRequest, reader: jspb.BinaryReader): UpdateMulticastGroupRequest;
|
||||
}
|
||||
|
||||
export namespace UpdateMulticastGroupRequest {
|
||||
export type AsObject = {
|
||||
multicastGroup?: MulticastGroup.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class DeleteMulticastGroupRequest extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): DeleteMulticastGroupRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeleteMulticastGroupRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeleteMulticastGroupRequest): DeleteMulticastGroupRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: DeleteMulticastGroupRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeleteMulticastGroupRequest;
|
||||
static deserializeBinaryFromReader(message: DeleteMulticastGroupRequest, reader: jspb.BinaryReader): DeleteMulticastGroupRequest;
|
||||
}
|
||||
|
||||
export namespace DeleteMulticastGroupRequest {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class ListMulticastGroupsRequest extends jspb.Message {
|
||||
getLimit(): number;
|
||||
setLimit(value: number): ListMulticastGroupsRequest;
|
||||
|
||||
getOffset(): number;
|
||||
setOffset(value: number): ListMulticastGroupsRequest;
|
||||
|
||||
getSearch(): string;
|
||||
setSearch(value: string): ListMulticastGroupsRequest;
|
||||
|
||||
getApplicationId(): string;
|
||||
setApplicationId(value: string): ListMulticastGroupsRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ListMulticastGroupsRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ListMulticastGroupsRequest): ListMulticastGroupsRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: ListMulticastGroupsRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ListMulticastGroupsRequest;
|
||||
static deserializeBinaryFromReader(message: ListMulticastGroupsRequest, reader: jspb.BinaryReader): ListMulticastGroupsRequest;
|
||||
}
|
||||
|
||||
export namespace ListMulticastGroupsRequest {
|
||||
export type AsObject = {
|
||||
limit: number,
|
||||
offset: number,
|
||||
search: string,
|
||||
applicationId: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class ListMulticastGroupsResponse extends jspb.Message {
|
||||
getTotalCount(): number;
|
||||
setTotalCount(value: number): ListMulticastGroupsResponse;
|
||||
|
||||
getResultList(): Array<MulticastGroupListItem>;
|
||||
setResultList(value: Array<MulticastGroupListItem>): ListMulticastGroupsResponse;
|
||||
clearResultList(): ListMulticastGroupsResponse;
|
||||
addResult(value?: MulticastGroupListItem, index?: number): MulticastGroupListItem;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ListMulticastGroupsResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ListMulticastGroupsResponse): ListMulticastGroupsResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: ListMulticastGroupsResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ListMulticastGroupsResponse;
|
||||
static deserializeBinaryFromReader(message: ListMulticastGroupsResponse, reader: jspb.BinaryReader): ListMulticastGroupsResponse;
|
||||
}
|
||||
|
||||
export namespace ListMulticastGroupsResponse {
|
||||
export type AsObject = {
|
||||
totalCount: number,
|
||||
resultList: Array<MulticastGroupListItem.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class AddDeviceToMulticastGroupRequest extends jspb.Message {
|
||||
getMulticastGroupId(): string;
|
||||
setMulticastGroupId(value: string): AddDeviceToMulticastGroupRequest;
|
||||
|
||||
getDevEui(): string;
|
||||
setDevEui(value: string): AddDeviceToMulticastGroupRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): AddDeviceToMulticastGroupRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: AddDeviceToMulticastGroupRequest): AddDeviceToMulticastGroupRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: AddDeviceToMulticastGroupRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): AddDeviceToMulticastGroupRequest;
|
||||
static deserializeBinaryFromReader(message: AddDeviceToMulticastGroupRequest, reader: jspb.BinaryReader): AddDeviceToMulticastGroupRequest;
|
||||
}
|
||||
|
||||
export namespace AddDeviceToMulticastGroupRequest {
|
||||
export type AsObject = {
|
||||
multicastGroupId: string,
|
||||
devEui: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class RemoveDeviceFromMulticastGroupRequest extends jspb.Message {
|
||||
getMulticastGroupId(): string;
|
||||
setMulticastGroupId(value: string): RemoveDeviceFromMulticastGroupRequest;
|
||||
|
||||
getDevEui(): string;
|
||||
setDevEui(value: string): RemoveDeviceFromMulticastGroupRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): RemoveDeviceFromMulticastGroupRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: RemoveDeviceFromMulticastGroupRequest): RemoveDeviceFromMulticastGroupRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: RemoveDeviceFromMulticastGroupRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): RemoveDeviceFromMulticastGroupRequest;
|
||||
static deserializeBinaryFromReader(message: RemoveDeviceFromMulticastGroupRequest, reader: jspb.BinaryReader): RemoveDeviceFromMulticastGroupRequest;
|
||||
}
|
||||
|
||||
export namespace RemoveDeviceFromMulticastGroupRequest {
|
||||
export type AsObject = {
|
||||
multicastGroupId: string,
|
||||
devEui: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class MulticastGroupQueueItem extends jspb.Message {
|
||||
getMulticastGroupId(): string;
|
||||
setMulticastGroupId(value: string): MulticastGroupQueueItem;
|
||||
|
||||
getFCnt(): number;
|
||||
setFCnt(value: number): MulticastGroupQueueItem;
|
||||
|
||||
getFPort(): number;
|
||||
setFPort(value: number): MulticastGroupQueueItem;
|
||||
|
||||
getData(): Uint8Array | string;
|
||||
getData_asU8(): Uint8Array;
|
||||
getData_asB64(): string;
|
||||
setData(value: Uint8Array | string): MulticastGroupQueueItem;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): MulticastGroupQueueItem.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: MulticastGroupQueueItem): MulticastGroupQueueItem.AsObject;
|
||||
static serializeBinaryToWriter(message: MulticastGroupQueueItem, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): MulticastGroupQueueItem;
|
||||
static deserializeBinaryFromReader(message: MulticastGroupQueueItem, reader: jspb.BinaryReader): MulticastGroupQueueItem;
|
||||
}
|
||||
|
||||
export namespace MulticastGroupQueueItem {
|
||||
export type AsObject = {
|
||||
multicastGroupId: string,
|
||||
fCnt: number,
|
||||
fPort: number,
|
||||
data: Uint8Array | string,
|
||||
}
|
||||
}
|
||||
|
||||
export class EnqueueMulticastGroupQueueItemRequest extends jspb.Message {
|
||||
getMulticastGroupQueueItem(): MulticastGroupQueueItem | undefined;
|
||||
setMulticastGroupQueueItem(value?: MulticastGroupQueueItem): EnqueueMulticastGroupQueueItemRequest;
|
||||
hasMulticastGroupQueueItem(): boolean;
|
||||
clearMulticastGroupQueueItem(): EnqueueMulticastGroupQueueItemRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): EnqueueMulticastGroupQueueItemRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: EnqueueMulticastGroupQueueItemRequest): EnqueueMulticastGroupQueueItemRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: EnqueueMulticastGroupQueueItemRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): EnqueueMulticastGroupQueueItemRequest;
|
||||
static deserializeBinaryFromReader(message: EnqueueMulticastGroupQueueItemRequest, reader: jspb.BinaryReader): EnqueueMulticastGroupQueueItemRequest;
|
||||
}
|
||||
|
||||
export namespace EnqueueMulticastGroupQueueItemRequest {
|
||||
export type AsObject = {
|
||||
multicastGroupQueueItem?: MulticastGroupQueueItem.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class EnqueueMulticastGroupQueueItemResponse extends jspb.Message {
|
||||
getFCnt(): number;
|
||||
setFCnt(value: number): EnqueueMulticastGroupQueueItemResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): EnqueueMulticastGroupQueueItemResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: EnqueueMulticastGroupQueueItemResponse): EnqueueMulticastGroupQueueItemResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: EnqueueMulticastGroupQueueItemResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): EnqueueMulticastGroupQueueItemResponse;
|
||||
static deserializeBinaryFromReader(message: EnqueueMulticastGroupQueueItemResponse, reader: jspb.BinaryReader): EnqueueMulticastGroupQueueItemResponse;
|
||||
}
|
||||
|
||||
export namespace EnqueueMulticastGroupQueueItemResponse {
|
||||
export type AsObject = {
|
||||
fCnt: number,
|
||||
}
|
||||
}
|
||||
|
||||
export class FlushMulticastGroupQueueRequest extends jspb.Message {
|
||||
getMulticastGroupId(): string;
|
||||
setMulticastGroupId(value: string): FlushMulticastGroupQueueRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): FlushMulticastGroupQueueRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: FlushMulticastGroupQueueRequest): FlushMulticastGroupQueueRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: FlushMulticastGroupQueueRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): FlushMulticastGroupQueueRequest;
|
||||
static deserializeBinaryFromReader(message: FlushMulticastGroupQueueRequest, reader: jspb.BinaryReader): FlushMulticastGroupQueueRequest;
|
||||
}
|
||||
|
||||
export namespace FlushMulticastGroupQueueRequest {
|
||||
export type AsObject = {
|
||||
multicastGroupId: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class ListMulticastGroupQueueRequest extends jspb.Message {
|
||||
getMulticastGroupId(): string;
|
||||
setMulticastGroupId(value: string): ListMulticastGroupQueueRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ListMulticastGroupQueueRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ListMulticastGroupQueueRequest): ListMulticastGroupQueueRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: ListMulticastGroupQueueRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ListMulticastGroupQueueRequest;
|
||||
static deserializeBinaryFromReader(message: ListMulticastGroupQueueRequest, reader: jspb.BinaryReader): ListMulticastGroupQueueRequest;
|
||||
}
|
||||
|
||||
export namespace ListMulticastGroupQueueRequest {
|
||||
export type AsObject = {
|
||||
multicastGroupId: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class ListMulticastGroupQueueResponse extends jspb.Message {
|
||||
getItemsList(): Array<MulticastGroupQueueItem>;
|
||||
setItemsList(value: Array<MulticastGroupQueueItem>): ListMulticastGroupQueueResponse;
|
||||
clearItemsList(): ListMulticastGroupQueueResponse;
|
||||
addItems(value?: MulticastGroupQueueItem, index?: number): MulticastGroupQueueItem;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ListMulticastGroupQueueResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ListMulticastGroupQueueResponse): ListMulticastGroupQueueResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: ListMulticastGroupQueueResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ListMulticastGroupQueueResponse;
|
||||
static deserializeBinaryFromReader(message: ListMulticastGroupQueueResponse, reader: jspb.BinaryReader): ListMulticastGroupQueueResponse;
|
||||
}
|
||||
|
||||
export namespace ListMulticastGroupQueueResponse {
|
||||
export type AsObject = {
|
||||
itemsList: Array<MulticastGroupQueueItem.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export enum MulticastGroupType {
|
||||
CLASS_C = 0,
|
||||
CLASS_B = 1,
|
||||
}
|
3833
api/grpc-web/api/multicast_group_pb.js
Normal file
3833
api/grpc-web/api/multicast_group_pb.js
Normal file
File diff suppressed because it is too large
Load Diff
140
api/grpc-web/api/tenant_grpc_web_pb.d.ts
vendored
Normal file
140
api/grpc-web/api/tenant_grpc_web_pb.d.ts
vendored
Normal file
@ -0,0 +1,140 @@
|
||||
import * as grpcWeb from 'grpc-web';
|
||||
|
||||
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
|
||||
import * as api_tenant_pb from '../api/tenant_pb';
|
||||
|
||||
|
||||
export class TenantServiceClient {
|
||||
constructor (hostname: string,
|
||||
credentials?: null | { [index: string]: string; },
|
||||
options?: null | { [index: string]: any; });
|
||||
|
||||
create(
|
||||
request: api_tenant_pb.CreateTenantRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_tenant_pb.CreateTenantResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_tenant_pb.CreateTenantResponse>;
|
||||
|
||||
get(
|
||||
request: api_tenant_pb.GetTenantRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_tenant_pb.GetTenantResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_tenant_pb.GetTenantResponse>;
|
||||
|
||||
update(
|
||||
request: api_tenant_pb.UpdateTenantRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
delete(
|
||||
request: api_tenant_pb.DeleteTenantRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
list(
|
||||
request: api_tenant_pb.ListTenantsRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_tenant_pb.ListTenantsResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_tenant_pb.ListTenantsResponse>;
|
||||
|
||||
addUser(
|
||||
request: api_tenant_pb.AddTenantUserRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
getUser(
|
||||
request: api_tenant_pb.GetTenantUserRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_tenant_pb.GetTenantUserResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_tenant_pb.GetTenantUserResponse>;
|
||||
|
||||
updateUser(
|
||||
request: api_tenant_pb.UpdateTenantUserRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
deleteUser(
|
||||
request: api_tenant_pb.DeleteTenantUserRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
listUsers(
|
||||
request: api_tenant_pb.ListTenantUsersRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_tenant_pb.ListTenantUsersResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_tenant_pb.ListTenantUsersResponse>;
|
||||
|
||||
}
|
||||
|
||||
export class TenantServicePromiseClient {
|
||||
constructor (hostname: string,
|
||||
credentials?: null | { [index: string]: string; },
|
||||
options?: null | { [index: string]: any; });
|
||||
|
||||
create(
|
||||
request: api_tenant_pb.CreateTenantRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_tenant_pb.CreateTenantResponse>;
|
||||
|
||||
get(
|
||||
request: api_tenant_pb.GetTenantRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_tenant_pb.GetTenantResponse>;
|
||||
|
||||
update(
|
||||
request: api_tenant_pb.UpdateTenantRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
delete(
|
||||
request: api_tenant_pb.DeleteTenantRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
list(
|
||||
request: api_tenant_pb.ListTenantsRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_tenant_pb.ListTenantsResponse>;
|
||||
|
||||
addUser(
|
||||
request: api_tenant_pb.AddTenantUserRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
getUser(
|
||||
request: api_tenant_pb.GetTenantUserRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_tenant_pb.GetTenantUserResponse>;
|
||||
|
||||
updateUser(
|
||||
request: api_tenant_pb.UpdateTenantUserRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
deleteUser(
|
||||
request: api_tenant_pb.DeleteTenantUserRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
listUsers(
|
||||
request: api_tenant_pb.ListTenantUsersRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_tenant_pb.ListTenantUsersResponse>;
|
||||
|
||||
}
|
||||
|
878
api/grpc-web/api/tenant_grpc_web_pb.js
Normal file
878
api/grpc-web/api/tenant_grpc_web_pb.js
Normal file
@ -0,0 +1,878 @@
|
||||
/**
|
||||
* @fileoverview gRPC-Web generated client stub for api
|
||||
* @enhanceable
|
||||
* @public
|
||||
*/
|
||||
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
|
||||
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
|
||||
|
||||
const grpc = {};
|
||||
grpc.web = require('grpc-web');
|
||||
|
||||
|
||||
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js')
|
||||
|
||||
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js')
|
||||
const proto = {};
|
||||
proto.api = require('./tenant_pb.js');
|
||||
|
||||
/**
|
||||
* @param {string} hostname
|
||||
* @param {?Object} credentials
|
||||
* @param {?Object} options
|
||||
* @constructor
|
||||
* @struct
|
||||
* @final
|
||||
*/
|
||||
proto.api.TenantServiceClient =
|
||||
function(hostname, credentials, options) {
|
||||
if (!options) options = {};
|
||||
options['format'] = 'text';
|
||||
|
||||
/**
|
||||
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
||||
*/
|
||||
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
||||
|
||||
/**
|
||||
* @private @const {string} The hostname
|
||||
*/
|
||||
this.hostname_ = hostname;
|
||||
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} hostname
|
||||
* @param {?Object} credentials
|
||||
* @param {?Object} options
|
||||
* @constructor
|
||||
* @struct
|
||||
* @final
|
||||
*/
|
||||
proto.api.TenantServicePromiseClient =
|
||||
function(hostname, credentials, options) {
|
||||
if (!options) options = {};
|
||||
options['format'] = 'text';
|
||||
|
||||
/**
|
||||
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
||||
*/
|
||||
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
||||
|
||||
/**
|
||||
* @private @const {string} The hostname
|
||||
*/
|
||||
this.hostname_ = hostname;
|
||||
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.CreateTenantRequest,
|
||||
* !proto.api.CreateTenantResponse>}
|
||||
*/
|
||||
const methodDescriptor_TenantService_Create = new grpc.web.MethodDescriptor(
|
||||
'/api.TenantService/Create',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.CreateTenantRequest,
|
||||
proto.api.CreateTenantResponse,
|
||||
/**
|
||||
* @param {!proto.api.CreateTenantRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.CreateTenantResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.CreateTenantRequest,
|
||||
* !proto.api.CreateTenantResponse>}
|
||||
*/
|
||||
const methodInfo_TenantService_Create = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
proto.api.CreateTenantResponse,
|
||||
/**
|
||||
* @param {!proto.api.CreateTenantRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.CreateTenantResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.CreateTenantRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.api.CreateTenantResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.api.CreateTenantResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.TenantServiceClient.prototype.create =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.TenantService/Create',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_TenantService_Create,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.CreateTenantRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.api.CreateTenantResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.TenantServicePromiseClient.prototype.create =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.TenantService/Create',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_TenantService_Create);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.GetTenantRequest,
|
||||
* !proto.api.GetTenantResponse>}
|
||||
*/
|
||||
const methodDescriptor_TenantService_Get = new grpc.web.MethodDescriptor(
|
||||
'/api.TenantService/Get',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.GetTenantRequest,
|
||||
proto.api.GetTenantResponse,
|
||||
/**
|
||||
* @param {!proto.api.GetTenantRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.GetTenantResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.GetTenantRequest,
|
||||
* !proto.api.GetTenantResponse>}
|
||||
*/
|
||||
const methodInfo_TenantService_Get = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
proto.api.GetTenantResponse,
|
||||
/**
|
||||
* @param {!proto.api.GetTenantRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.GetTenantResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.GetTenantRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.api.GetTenantResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.api.GetTenantResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.TenantServiceClient.prototype.get =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.TenantService/Get',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_TenantService_Get,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.GetTenantRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.api.GetTenantResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.TenantServicePromiseClient.prototype.get =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.TenantService/Get',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_TenantService_Get);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.UpdateTenantRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodDescriptor_TenantService_Update = new grpc.web.MethodDescriptor(
|
||||
'/api.TenantService/Update',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.UpdateTenantRequest,
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.UpdateTenantRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.UpdateTenantRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodInfo_TenantService_Update = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.UpdateTenantRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.UpdateTenantRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.TenantServiceClient.prototype.update =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.TenantService/Update',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_TenantService_Update,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.UpdateTenantRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.google.protobuf.Empty>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.TenantServicePromiseClient.prototype.update =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.TenantService/Update',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_TenantService_Update);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.DeleteTenantRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodDescriptor_TenantService_Delete = new grpc.web.MethodDescriptor(
|
||||
'/api.TenantService/Delete',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.DeleteTenantRequest,
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.DeleteTenantRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.DeleteTenantRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodInfo_TenantService_Delete = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.DeleteTenantRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.DeleteTenantRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.TenantServiceClient.prototype.delete =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.TenantService/Delete',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_TenantService_Delete,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.DeleteTenantRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.google.protobuf.Empty>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.TenantServicePromiseClient.prototype.delete =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.TenantService/Delete',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_TenantService_Delete);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.ListTenantsRequest,
|
||||
* !proto.api.ListTenantsResponse>}
|
||||
*/
|
||||
const methodDescriptor_TenantService_List = new grpc.web.MethodDescriptor(
|
||||
'/api.TenantService/List',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.ListTenantsRequest,
|
||||
proto.api.ListTenantsResponse,
|
||||
/**
|
||||
* @param {!proto.api.ListTenantsRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.ListTenantsResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.ListTenantsRequest,
|
||||
* !proto.api.ListTenantsResponse>}
|
||||
*/
|
||||
const methodInfo_TenantService_List = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
proto.api.ListTenantsResponse,
|
||||
/**
|
||||
* @param {!proto.api.ListTenantsRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.ListTenantsResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.ListTenantsRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.api.ListTenantsResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.api.ListTenantsResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.TenantServiceClient.prototype.list =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.TenantService/List',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_TenantService_List,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.ListTenantsRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.api.ListTenantsResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.TenantServicePromiseClient.prototype.list =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.TenantService/List',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_TenantService_List);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.AddTenantUserRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodDescriptor_TenantService_AddUser = new grpc.web.MethodDescriptor(
|
||||
'/api.TenantService/AddUser',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.AddTenantUserRequest,
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.AddTenantUserRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.AddTenantUserRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodInfo_TenantService_AddUser = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.AddTenantUserRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.AddTenantUserRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.TenantServiceClient.prototype.addUser =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.TenantService/AddUser',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_TenantService_AddUser,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.AddTenantUserRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.google.protobuf.Empty>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.TenantServicePromiseClient.prototype.addUser =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.TenantService/AddUser',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_TenantService_AddUser);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.GetTenantUserRequest,
|
||||
* !proto.api.GetTenantUserResponse>}
|
||||
*/
|
||||
const methodDescriptor_TenantService_GetUser = new grpc.web.MethodDescriptor(
|
||||
'/api.TenantService/GetUser',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.GetTenantUserRequest,
|
||||
proto.api.GetTenantUserResponse,
|
||||
/**
|
||||
* @param {!proto.api.GetTenantUserRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.GetTenantUserResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.GetTenantUserRequest,
|
||||
* !proto.api.GetTenantUserResponse>}
|
||||
*/
|
||||
const methodInfo_TenantService_GetUser = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
proto.api.GetTenantUserResponse,
|
||||
/**
|
||||
* @param {!proto.api.GetTenantUserRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.GetTenantUserResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.GetTenantUserRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.api.GetTenantUserResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.api.GetTenantUserResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.TenantServiceClient.prototype.getUser =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.TenantService/GetUser',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_TenantService_GetUser,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.GetTenantUserRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.api.GetTenantUserResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.TenantServicePromiseClient.prototype.getUser =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.TenantService/GetUser',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_TenantService_GetUser);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.UpdateTenantUserRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodDescriptor_TenantService_UpdateUser = new grpc.web.MethodDescriptor(
|
||||
'/api.TenantService/UpdateUser',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.UpdateTenantUserRequest,
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.UpdateTenantUserRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.UpdateTenantUserRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodInfo_TenantService_UpdateUser = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.UpdateTenantUserRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.UpdateTenantUserRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.TenantServiceClient.prototype.updateUser =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.TenantService/UpdateUser',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_TenantService_UpdateUser,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.UpdateTenantUserRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.google.protobuf.Empty>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.TenantServicePromiseClient.prototype.updateUser =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.TenantService/UpdateUser',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_TenantService_UpdateUser);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.DeleteTenantUserRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodDescriptor_TenantService_DeleteUser = new grpc.web.MethodDescriptor(
|
||||
'/api.TenantService/DeleteUser',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.DeleteTenantUserRequest,
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.DeleteTenantUserRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.DeleteTenantUserRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodInfo_TenantService_DeleteUser = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.DeleteTenantUserRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.DeleteTenantUserRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.TenantServiceClient.prototype.deleteUser =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.TenantService/DeleteUser',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_TenantService_DeleteUser,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.DeleteTenantUserRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.google.protobuf.Empty>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.TenantServicePromiseClient.prototype.deleteUser =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.TenantService/DeleteUser',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_TenantService_DeleteUser);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.ListTenantUsersRequest,
|
||||
* !proto.api.ListTenantUsersResponse>}
|
||||
*/
|
||||
const methodDescriptor_TenantService_ListUsers = new grpc.web.MethodDescriptor(
|
||||
'/api.TenantService/ListUsers',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.ListTenantUsersRequest,
|
||||
proto.api.ListTenantUsersResponse,
|
||||
/**
|
||||
* @param {!proto.api.ListTenantUsersRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.ListTenantUsersResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.ListTenantUsersRequest,
|
||||
* !proto.api.ListTenantUsersResponse>}
|
||||
*/
|
||||
const methodInfo_TenantService_ListUsers = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
proto.api.ListTenantUsersResponse,
|
||||
/**
|
||||
* @param {!proto.api.ListTenantUsersRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.ListTenantUsersResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.ListTenantUsersRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.api.ListTenantUsersResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.api.ListTenantUsersResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.TenantServiceClient.prototype.listUsers =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.TenantService/ListUsers',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_TenantService_ListUsers,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.ListTenantUsersRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.api.ListTenantUsersResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.TenantServicePromiseClient.prototype.listUsers =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.TenantService/ListUsers',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_TenantService_ListUsers);
|
||||
};
|
||||
|
||||
|
||||
module.exports = proto.api;
|
||||
|
528
api/grpc-web/api/tenant_pb.d.ts
vendored
Normal file
528
api/grpc-web/api/tenant_pb.d.ts
vendored
Normal file
@ -0,0 +1,528 @@
|
||||
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): Tenant;
|
||||
|
||||
getName(): string;
|
||||
setName(value: string): Tenant;
|
||||
|
||||
getDescription(): string;
|
||||
setDescription(value: string): Tenant;
|
||||
|
||||
getCanHaveGateways(): boolean;
|
||||
setCanHaveGateways(value: boolean): Tenant;
|
||||
|
||||
getMaxGatewayCount(): number;
|
||||
setMaxGatewayCount(value: number): Tenant;
|
||||
|
||||
getMaxDeviceCount(): number;
|
||||
setMaxDeviceCount(value: number): Tenant;
|
||||
|
||||
getPrivateGateways(): boolean;
|
||||
setPrivateGateways(value: boolean): Tenant;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Tenant.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Tenant): Tenant.AsObject;
|
||||
static serializeBinaryToWriter(message: Tenant, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Tenant;
|
||||
static deserializeBinaryFromReader(message: Tenant, reader: jspb.BinaryReader): Tenant;
|
||||
}
|
||||
|
||||
export namespace Tenant {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
name: string,
|
||||
description: string,
|
||||
canHaveGateways: boolean,
|
||||
maxGatewayCount: number,
|
||||
maxDeviceCount: number,
|
||||
privateGateways: boolean,
|
||||
}
|
||||
}
|
||||
|
||||
export class TenantListItem extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): TenantListItem;
|
||||
|
||||
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): TenantListItem;
|
||||
hasCreatedAt(): boolean;
|
||||
clearCreatedAt(): TenantListItem;
|
||||
|
||||
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): TenantListItem;
|
||||
hasUpdatedAt(): boolean;
|
||||
clearUpdatedAt(): TenantListItem;
|
||||
|
||||
getName(): string;
|
||||
setName(value: string): TenantListItem;
|
||||
|
||||
getCanHaveGateways(): boolean;
|
||||
setCanHaveGateways(value: boolean): TenantListItem;
|
||||
|
||||
getPrivateGateways(): boolean;
|
||||
setPrivateGateways(value: boolean): TenantListItem;
|
||||
|
||||
getMaxGatewayCount(): number;
|
||||
setMaxGatewayCount(value: number): TenantListItem;
|
||||
|
||||
getMaxDeviceCount(): number;
|
||||
setMaxDeviceCount(value: number): TenantListItem;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): TenantListItem.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: TenantListItem): TenantListItem.AsObject;
|
||||
static serializeBinaryToWriter(message: TenantListItem, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): TenantListItem;
|
||||
static deserializeBinaryFromReader(message: TenantListItem, reader: jspb.BinaryReader): TenantListItem;
|
||||
}
|
||||
|
||||
export namespace TenantListItem {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
name: string,
|
||||
canHaveGateways: boolean,
|
||||
privateGateways: boolean,
|
||||
maxGatewayCount: number,
|
||||
maxDeviceCount: number,
|
||||
}
|
||||
}
|
||||
|
||||
export class CreateTenantRequest extends jspb.Message {
|
||||
getTenant(): Tenant | undefined;
|
||||
setTenant(value?: Tenant): CreateTenantRequest;
|
||||
hasTenant(): boolean;
|
||||
clearTenant(): CreateTenantRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CreateTenantRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: CreateTenantRequest): CreateTenantRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: CreateTenantRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): CreateTenantRequest;
|
||||
static deserializeBinaryFromReader(message: CreateTenantRequest, reader: jspb.BinaryReader): CreateTenantRequest;
|
||||
}
|
||||
|
||||
export namespace CreateTenantRequest {
|
||||
export type AsObject = {
|
||||
tenant?: Tenant.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class CreateTenantResponse extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): CreateTenantResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CreateTenantResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: CreateTenantResponse): CreateTenantResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: CreateTenantResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): CreateTenantResponse;
|
||||
static deserializeBinaryFromReader(message: CreateTenantResponse, reader: jspb.BinaryReader): CreateTenantResponse;
|
||||
}
|
||||
|
||||
export namespace CreateTenantResponse {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetTenantRequest extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): GetTenantRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetTenantRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetTenantRequest): GetTenantRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: GetTenantRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetTenantRequest;
|
||||
static deserializeBinaryFromReader(message: GetTenantRequest, reader: jspb.BinaryReader): GetTenantRequest;
|
||||
}
|
||||
|
||||
export namespace GetTenantRequest {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetTenantResponse extends jspb.Message {
|
||||
getTenant(): Tenant | undefined;
|
||||
setTenant(value?: Tenant): GetTenantResponse;
|
||||
hasTenant(): boolean;
|
||||
clearTenant(): GetTenantResponse;
|
||||
|
||||
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetTenantResponse;
|
||||
hasCreatedAt(): boolean;
|
||||
clearCreatedAt(): GetTenantResponse;
|
||||
|
||||
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetTenantResponse;
|
||||
hasUpdatedAt(): boolean;
|
||||
clearUpdatedAt(): GetTenantResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetTenantResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetTenantResponse): GetTenantResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: GetTenantResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetTenantResponse;
|
||||
static deserializeBinaryFromReader(message: GetTenantResponse, reader: jspb.BinaryReader): GetTenantResponse;
|
||||
}
|
||||
|
||||
export namespace GetTenantResponse {
|
||||
export type AsObject = {
|
||||
tenant?: Tenant.AsObject,
|
||||
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class UpdateTenantRequest extends jspb.Message {
|
||||
getTenant(): Tenant | undefined;
|
||||
setTenant(value?: Tenant): UpdateTenantRequest;
|
||||
hasTenant(): boolean;
|
||||
clearTenant(): UpdateTenantRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UpdateTenantRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: UpdateTenantRequest): UpdateTenantRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: UpdateTenantRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): UpdateTenantRequest;
|
||||
static deserializeBinaryFromReader(message: UpdateTenantRequest, reader: jspb.BinaryReader): UpdateTenantRequest;
|
||||
}
|
||||
|
||||
export namespace UpdateTenantRequest {
|
||||
export type AsObject = {
|
||||
tenant?: Tenant.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class DeleteTenantRequest extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): DeleteTenantRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeleteTenantRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeleteTenantRequest): DeleteTenantRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: DeleteTenantRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeleteTenantRequest;
|
||||
static deserializeBinaryFromReader(message: DeleteTenantRequest, reader: jspb.BinaryReader): DeleteTenantRequest;
|
||||
}
|
||||
|
||||
export namespace DeleteTenantRequest {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class ListTenantsRequest extends jspb.Message {
|
||||
getLimit(): number;
|
||||
setLimit(value: number): ListTenantsRequest;
|
||||
|
||||
getOffset(): number;
|
||||
setOffset(value: number): ListTenantsRequest;
|
||||
|
||||
getSearch(): string;
|
||||
setSearch(value: string): ListTenantsRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ListTenantsRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ListTenantsRequest): ListTenantsRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: ListTenantsRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ListTenantsRequest;
|
||||
static deserializeBinaryFromReader(message: ListTenantsRequest, reader: jspb.BinaryReader): ListTenantsRequest;
|
||||
}
|
||||
|
||||
export namespace ListTenantsRequest {
|
||||
export type AsObject = {
|
||||
limit: number,
|
||||
offset: number,
|
||||
search: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class ListTenantsResponse extends jspb.Message {
|
||||
getTotalCount(): number;
|
||||
setTotalCount(value: number): ListTenantsResponse;
|
||||
|
||||
getResultList(): Array<TenantListItem>;
|
||||
setResultList(value: Array<TenantListItem>): ListTenantsResponse;
|
||||
clearResultList(): ListTenantsResponse;
|
||||
addResult(value?: TenantListItem, index?: number): TenantListItem;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ListTenantsResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ListTenantsResponse): ListTenantsResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: ListTenantsResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ListTenantsResponse;
|
||||
static deserializeBinaryFromReader(message: ListTenantsResponse, reader: jspb.BinaryReader): ListTenantsResponse;
|
||||
}
|
||||
|
||||
export namespace ListTenantsResponse {
|
||||
export type AsObject = {
|
||||
totalCount: number,
|
||||
resultList: Array<TenantListItem.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class TenantUser extends jspb.Message {
|
||||
getTenantId(): string;
|
||||
setTenantId(value: string): TenantUser;
|
||||
|
||||
getUserId(): string;
|
||||
setUserId(value: string): TenantUser;
|
||||
|
||||
getIsAdmin(): boolean;
|
||||
setIsAdmin(value: boolean): TenantUser;
|
||||
|
||||
getIsDeviceAdmin(): boolean;
|
||||
setIsDeviceAdmin(value: boolean): TenantUser;
|
||||
|
||||
getIsGatewayAdmin(): boolean;
|
||||
setIsGatewayAdmin(value: boolean): TenantUser;
|
||||
|
||||
getEmail(): string;
|
||||
setEmail(value: string): TenantUser;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): TenantUser.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: TenantUser): TenantUser.AsObject;
|
||||
static serializeBinaryToWriter(message: TenantUser, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): TenantUser;
|
||||
static deserializeBinaryFromReader(message: TenantUser, reader: jspb.BinaryReader): TenantUser;
|
||||
}
|
||||
|
||||
export namespace TenantUser {
|
||||
export type AsObject = {
|
||||
tenantId: string,
|
||||
userId: string,
|
||||
isAdmin: boolean,
|
||||
isDeviceAdmin: boolean,
|
||||
isGatewayAdmin: boolean,
|
||||
email: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class TenantUserListItem extends jspb.Message {
|
||||
getTenantId(): string;
|
||||
setTenantId(value: string): TenantUserListItem;
|
||||
|
||||
getUserId(): string;
|
||||
setUserId(value: string): TenantUserListItem;
|
||||
|
||||
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): TenantUserListItem;
|
||||
hasCreatedAt(): boolean;
|
||||
clearCreatedAt(): TenantUserListItem;
|
||||
|
||||
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): TenantUserListItem;
|
||||
hasUpdatedAt(): boolean;
|
||||
clearUpdatedAt(): TenantUserListItem;
|
||||
|
||||
getEmail(): string;
|
||||
setEmail(value: string): TenantUserListItem;
|
||||
|
||||
getIsAdmin(): boolean;
|
||||
setIsAdmin(value: boolean): TenantUserListItem;
|
||||
|
||||
getIsDeviceAdmin(): boolean;
|
||||
setIsDeviceAdmin(value: boolean): TenantUserListItem;
|
||||
|
||||
getIsGatewayAdmin(): boolean;
|
||||
setIsGatewayAdmin(value: boolean): TenantUserListItem;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): TenantUserListItem.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: TenantUserListItem): TenantUserListItem.AsObject;
|
||||
static serializeBinaryToWriter(message: TenantUserListItem, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): TenantUserListItem;
|
||||
static deserializeBinaryFromReader(message: TenantUserListItem, reader: jspb.BinaryReader): TenantUserListItem;
|
||||
}
|
||||
|
||||
export namespace TenantUserListItem {
|
||||
export type AsObject = {
|
||||
tenantId: string,
|
||||
userId: string,
|
||||
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
email: string,
|
||||
isAdmin: boolean,
|
||||
isDeviceAdmin: boolean,
|
||||
isGatewayAdmin: boolean,
|
||||
}
|
||||
}
|
||||
|
||||
export class AddTenantUserRequest extends jspb.Message {
|
||||
getTenantUser(): TenantUser | undefined;
|
||||
setTenantUser(value?: TenantUser): AddTenantUserRequest;
|
||||
hasTenantUser(): boolean;
|
||||
clearTenantUser(): AddTenantUserRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): AddTenantUserRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: AddTenantUserRequest): AddTenantUserRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: AddTenantUserRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): AddTenantUserRequest;
|
||||
static deserializeBinaryFromReader(message: AddTenantUserRequest, reader: jspb.BinaryReader): AddTenantUserRequest;
|
||||
}
|
||||
|
||||
export namespace AddTenantUserRequest {
|
||||
export type AsObject = {
|
||||
tenantUser?: TenantUser.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetTenantUserRequest extends jspb.Message {
|
||||
getTenantId(): string;
|
||||
setTenantId(value: string): GetTenantUserRequest;
|
||||
|
||||
getUserId(): string;
|
||||
setUserId(value: string): GetTenantUserRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetTenantUserRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetTenantUserRequest): GetTenantUserRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: GetTenantUserRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetTenantUserRequest;
|
||||
static deserializeBinaryFromReader(message: GetTenantUserRequest, reader: jspb.BinaryReader): GetTenantUserRequest;
|
||||
}
|
||||
|
||||
export namespace GetTenantUserRequest {
|
||||
export type AsObject = {
|
||||
tenantId: string,
|
||||
userId: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetTenantUserResponse extends jspb.Message {
|
||||
getTenantUser(): TenantUser | undefined;
|
||||
setTenantUser(value?: TenantUser): GetTenantUserResponse;
|
||||
hasTenantUser(): boolean;
|
||||
clearTenantUser(): GetTenantUserResponse;
|
||||
|
||||
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetTenantUserResponse;
|
||||
hasCreatedAt(): boolean;
|
||||
clearCreatedAt(): GetTenantUserResponse;
|
||||
|
||||
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetTenantUserResponse;
|
||||
hasUpdatedAt(): boolean;
|
||||
clearUpdatedAt(): GetTenantUserResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetTenantUserResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetTenantUserResponse): GetTenantUserResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: GetTenantUserResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetTenantUserResponse;
|
||||
static deserializeBinaryFromReader(message: GetTenantUserResponse, reader: jspb.BinaryReader): GetTenantUserResponse;
|
||||
}
|
||||
|
||||
export namespace GetTenantUserResponse {
|
||||
export type AsObject = {
|
||||
tenantUser?: TenantUser.AsObject,
|
||||
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class UpdateTenantUserRequest extends jspb.Message {
|
||||
getTenantUser(): TenantUser | undefined;
|
||||
setTenantUser(value?: TenantUser): UpdateTenantUserRequest;
|
||||
hasTenantUser(): boolean;
|
||||
clearTenantUser(): UpdateTenantUserRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UpdateTenantUserRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: UpdateTenantUserRequest): UpdateTenantUserRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: UpdateTenantUserRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): UpdateTenantUserRequest;
|
||||
static deserializeBinaryFromReader(message: UpdateTenantUserRequest, reader: jspb.BinaryReader): UpdateTenantUserRequest;
|
||||
}
|
||||
|
||||
export namespace UpdateTenantUserRequest {
|
||||
export type AsObject = {
|
||||
tenantUser?: TenantUser.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class DeleteTenantUserRequest extends jspb.Message {
|
||||
getTenantId(): string;
|
||||
setTenantId(value: string): DeleteTenantUserRequest;
|
||||
|
||||
getUserId(): string;
|
||||
setUserId(value: string): DeleteTenantUserRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeleteTenantUserRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeleteTenantUserRequest): DeleteTenantUserRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: DeleteTenantUserRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeleteTenantUserRequest;
|
||||
static deserializeBinaryFromReader(message: DeleteTenantUserRequest, reader: jspb.BinaryReader): DeleteTenantUserRequest;
|
||||
}
|
||||
|
||||
export namespace DeleteTenantUserRequest {
|
||||
export type AsObject = {
|
||||
tenantId: string,
|
||||
userId: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class ListTenantUsersRequest extends jspb.Message {
|
||||
getTenantId(): string;
|
||||
setTenantId(value: string): ListTenantUsersRequest;
|
||||
|
||||
getLimit(): number;
|
||||
setLimit(value: number): ListTenantUsersRequest;
|
||||
|
||||
getOffset(): number;
|
||||
setOffset(value: number): ListTenantUsersRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ListTenantUsersRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ListTenantUsersRequest): ListTenantUsersRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: ListTenantUsersRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ListTenantUsersRequest;
|
||||
static deserializeBinaryFromReader(message: ListTenantUsersRequest, reader: jspb.BinaryReader): ListTenantUsersRequest;
|
||||
}
|
||||
|
||||
export namespace ListTenantUsersRequest {
|
||||
export type AsObject = {
|
||||
tenantId: string,
|
||||
limit: number,
|
||||
offset: number,
|
||||
}
|
||||
}
|
||||
|
||||
export class ListTenantUsersResponse extends jspb.Message {
|
||||
getTotalCount(): number;
|
||||
setTotalCount(value: number): ListTenantUsersResponse;
|
||||
|
||||
getResultList(): Array<TenantUserListItem>;
|
||||
setResultList(value: Array<TenantUserListItem>): ListTenantUsersResponse;
|
||||
clearResultList(): ListTenantUsersResponse;
|
||||
addResult(value?: TenantUserListItem, index?: number): TenantUserListItem;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ListTenantUsersResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ListTenantUsersResponse): ListTenantUsersResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: ListTenantUsersResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ListTenantUsersResponse;
|
||||
static deserializeBinaryFromReader(message: ListTenantUsersResponse, reader: jspb.BinaryReader): ListTenantUsersResponse;
|
||||
}
|
||||
|
||||
export namespace ListTenantUsersResponse {
|
||||
export type AsObject = {
|
||||
totalCount: number,
|
||||
resultList: Array<TenantUserListItem.AsObject>,
|
||||
}
|
||||
}
|
||||
|
4374
api/grpc-web/api/tenant_pb.js
Normal file
4374
api/grpc-web/api/tenant_pb.js
Normal file
File diff suppressed because it is too large
Load Diff
92
api/grpc-web/api/user_grpc_web_pb.d.ts
vendored
Normal file
92
api/grpc-web/api/user_grpc_web_pb.d.ts
vendored
Normal file
@ -0,0 +1,92 @@
|
||||
import * as grpcWeb from 'grpc-web';
|
||||
|
||||
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
|
||||
import * as api_user_pb from '../api/user_pb';
|
||||
|
||||
|
||||
export class UserServiceClient {
|
||||
constructor (hostname: string,
|
||||
credentials?: null | { [index: string]: string; },
|
||||
options?: null | { [index: string]: any; });
|
||||
|
||||
create(
|
||||
request: api_user_pb.CreateUserRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_user_pb.CreateUserResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_user_pb.CreateUserResponse>;
|
||||
|
||||
get(
|
||||
request: api_user_pb.GetUserRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_user_pb.GetUserResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_user_pb.GetUserResponse>;
|
||||
|
||||
update(
|
||||
request: api_user_pb.UpdateUserRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
delete(
|
||||
request: api_user_pb.DeleteUserRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
list(
|
||||
request: api_user_pb.ListUsersRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_user_pb.ListUsersResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_user_pb.ListUsersResponse>;
|
||||
|
||||
updatePassword(
|
||||
request: api_user_pb.UpdateUserPasswordRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: google_protobuf_empty_pb.Empty) => void
|
||||
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
}
|
||||
|
||||
export class UserServicePromiseClient {
|
||||
constructor (hostname: string,
|
||||
credentials?: null | { [index: string]: string; },
|
||||
options?: null | { [index: string]: any; });
|
||||
|
||||
create(
|
||||
request: api_user_pb.CreateUserRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_user_pb.CreateUserResponse>;
|
||||
|
||||
get(
|
||||
request: api_user_pb.GetUserRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_user_pb.GetUserResponse>;
|
||||
|
||||
update(
|
||||
request: api_user_pb.UpdateUserRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
delete(
|
||||
request: api_user_pb.DeleteUserRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
list(
|
||||
request: api_user_pb.ListUsersRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_user_pb.ListUsersResponse>;
|
||||
|
||||
updatePassword(
|
||||
request: api_user_pb.UpdateUserPasswordRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<google_protobuf_empty_pb.Empty>;
|
||||
|
||||
}
|
||||
|
558
api/grpc-web/api/user_grpc_web_pb.js
Normal file
558
api/grpc-web/api/user_grpc_web_pb.js
Normal file
@ -0,0 +1,558 @@
|
||||
/**
|
||||
* @fileoverview gRPC-Web generated client stub for api
|
||||
* @enhanceable
|
||||
* @public
|
||||
*/
|
||||
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
|
||||
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
|
||||
|
||||
const grpc = {};
|
||||
grpc.web = require('grpc-web');
|
||||
|
||||
|
||||
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js')
|
||||
|
||||
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js')
|
||||
const proto = {};
|
||||
proto.api = require('./user_pb.js');
|
||||
|
||||
/**
|
||||
* @param {string} hostname
|
||||
* @param {?Object} credentials
|
||||
* @param {?Object} options
|
||||
* @constructor
|
||||
* @struct
|
||||
* @final
|
||||
*/
|
||||
proto.api.UserServiceClient =
|
||||
function(hostname, credentials, options) {
|
||||
if (!options) options = {};
|
||||
options['format'] = 'text';
|
||||
|
||||
/**
|
||||
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
||||
*/
|
||||
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
||||
|
||||
/**
|
||||
* @private @const {string} The hostname
|
||||
*/
|
||||
this.hostname_ = hostname;
|
||||
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} hostname
|
||||
* @param {?Object} credentials
|
||||
* @param {?Object} options
|
||||
* @constructor
|
||||
* @struct
|
||||
* @final
|
||||
*/
|
||||
proto.api.UserServicePromiseClient =
|
||||
function(hostname, credentials, options) {
|
||||
if (!options) options = {};
|
||||
options['format'] = 'text';
|
||||
|
||||
/**
|
||||
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
||||
*/
|
||||
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
||||
|
||||
/**
|
||||
* @private @const {string} The hostname
|
||||
*/
|
||||
this.hostname_ = hostname;
|
||||
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.CreateUserRequest,
|
||||
* !proto.api.CreateUserResponse>}
|
||||
*/
|
||||
const methodDescriptor_UserService_Create = new grpc.web.MethodDescriptor(
|
||||
'/api.UserService/Create',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.CreateUserRequest,
|
||||
proto.api.CreateUserResponse,
|
||||
/**
|
||||
* @param {!proto.api.CreateUserRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.CreateUserResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.CreateUserRequest,
|
||||
* !proto.api.CreateUserResponse>}
|
||||
*/
|
||||
const methodInfo_UserService_Create = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
proto.api.CreateUserResponse,
|
||||
/**
|
||||
* @param {!proto.api.CreateUserRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.CreateUserResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.CreateUserRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.api.CreateUserResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.api.CreateUserResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.UserServiceClient.prototype.create =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.UserService/Create',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_UserService_Create,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.CreateUserRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.api.CreateUserResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.UserServicePromiseClient.prototype.create =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.UserService/Create',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_UserService_Create);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.GetUserRequest,
|
||||
* !proto.api.GetUserResponse>}
|
||||
*/
|
||||
const methodDescriptor_UserService_Get = new grpc.web.MethodDescriptor(
|
||||
'/api.UserService/Get',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.GetUserRequest,
|
||||
proto.api.GetUserResponse,
|
||||
/**
|
||||
* @param {!proto.api.GetUserRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.GetUserResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.GetUserRequest,
|
||||
* !proto.api.GetUserResponse>}
|
||||
*/
|
||||
const methodInfo_UserService_Get = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
proto.api.GetUserResponse,
|
||||
/**
|
||||
* @param {!proto.api.GetUserRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.GetUserResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.GetUserRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.api.GetUserResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.api.GetUserResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.UserServiceClient.prototype.get =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.UserService/Get',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_UserService_Get,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.GetUserRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.api.GetUserResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.UserServicePromiseClient.prototype.get =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.UserService/Get',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_UserService_Get);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.UpdateUserRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodDescriptor_UserService_Update = new grpc.web.MethodDescriptor(
|
||||
'/api.UserService/Update',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.UpdateUserRequest,
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.UpdateUserRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.UpdateUserRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodInfo_UserService_Update = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.UpdateUserRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.UpdateUserRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.UserServiceClient.prototype.update =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.UserService/Update',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_UserService_Update,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.UpdateUserRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.google.protobuf.Empty>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.UserServicePromiseClient.prototype.update =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.UserService/Update',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_UserService_Update);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.DeleteUserRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodDescriptor_UserService_Delete = new grpc.web.MethodDescriptor(
|
||||
'/api.UserService/Delete',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.DeleteUserRequest,
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.DeleteUserRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.DeleteUserRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodInfo_UserService_Delete = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.DeleteUserRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.DeleteUserRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.UserServiceClient.prototype.delete =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.UserService/Delete',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_UserService_Delete,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.DeleteUserRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.google.protobuf.Empty>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.UserServicePromiseClient.prototype.delete =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.UserService/Delete',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_UserService_Delete);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.ListUsersRequest,
|
||||
* !proto.api.ListUsersResponse>}
|
||||
*/
|
||||
const methodDescriptor_UserService_List = new grpc.web.MethodDescriptor(
|
||||
'/api.UserService/List',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.ListUsersRequest,
|
||||
proto.api.ListUsersResponse,
|
||||
/**
|
||||
* @param {!proto.api.ListUsersRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.ListUsersResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.ListUsersRequest,
|
||||
* !proto.api.ListUsersResponse>}
|
||||
*/
|
||||
const methodInfo_UserService_List = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
proto.api.ListUsersResponse,
|
||||
/**
|
||||
* @param {!proto.api.ListUsersRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.ListUsersResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.ListUsersRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.api.ListUsersResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.api.ListUsersResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.UserServiceClient.prototype.list =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.UserService/List',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_UserService_List,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.ListUsersRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.api.ListUsersResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.UserServicePromiseClient.prototype.list =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.UserService/List',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_UserService_List);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.UpdateUserPasswordRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodDescriptor_UserService_UpdatePassword = new grpc.web.MethodDescriptor(
|
||||
'/api.UserService/UpdatePassword',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.UpdateUserPasswordRequest,
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.UpdateUserPasswordRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.UpdateUserPasswordRequest,
|
||||
* !proto.google.protobuf.Empty>}
|
||||
*/
|
||||
const methodInfo_UserService_UpdatePassword = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
google_protobuf_empty_pb.Empty,
|
||||
/**
|
||||
* @param {!proto.api.UpdateUserPasswordRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
google_protobuf_empty_pb.Empty.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.UpdateUserPasswordRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.UserServiceClient.prototype.updatePassword =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.UserService/UpdatePassword',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_UserService_UpdatePassword,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.UpdateUserPasswordRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.google.protobuf.Empty>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.UserServicePromiseClient.prototype.updatePassword =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.UserService/UpdatePassword',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_UserService_UpdatePassword);
|
||||
};
|
||||
|
||||
|
||||
module.exports = proto.api;
|
||||
|
316
api/grpc-web/api/user_pb.d.ts
vendored
Normal file
316
api/grpc-web/api/user_pb.d.ts
vendored
Normal file
@ -0,0 +1,316 @@
|
||||
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): User;
|
||||
|
||||
getIsAdmin(): boolean;
|
||||
setIsAdmin(value: boolean): User;
|
||||
|
||||
getIsActive(): boolean;
|
||||
setIsActive(value: boolean): User;
|
||||
|
||||
getEmail(): string;
|
||||
setEmail(value: string): User;
|
||||
|
||||
getNote(): string;
|
||||
setNote(value: string): User;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): User.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: User): User.AsObject;
|
||||
static serializeBinaryToWriter(message: User, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): User;
|
||||
static deserializeBinaryFromReader(message: User, reader: jspb.BinaryReader): User;
|
||||
}
|
||||
|
||||
export namespace User {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
isAdmin: boolean,
|
||||
isActive: boolean,
|
||||
email: string,
|
||||
note: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class UserListItem extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): UserListItem;
|
||||
|
||||
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): UserListItem;
|
||||
hasCreatedAt(): boolean;
|
||||
clearCreatedAt(): UserListItem;
|
||||
|
||||
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): UserListItem;
|
||||
hasUpdatedAt(): boolean;
|
||||
clearUpdatedAt(): UserListItem;
|
||||
|
||||
getEmail(): string;
|
||||
setEmail(value: string): UserListItem;
|
||||
|
||||
getIsAdmin(): boolean;
|
||||
setIsAdmin(value: boolean): UserListItem;
|
||||
|
||||
getIsActive(): boolean;
|
||||
setIsActive(value: boolean): UserListItem;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UserListItem.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: UserListItem): UserListItem.AsObject;
|
||||
static serializeBinaryToWriter(message: UserListItem, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): UserListItem;
|
||||
static deserializeBinaryFromReader(message: UserListItem, reader: jspb.BinaryReader): UserListItem;
|
||||
}
|
||||
|
||||
export namespace UserListItem {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
email: string,
|
||||
isAdmin: boolean,
|
||||
isActive: boolean,
|
||||
}
|
||||
}
|
||||
|
||||
export class UserTenant extends jspb.Message {
|
||||
getTenantId(): string;
|
||||
setTenantId(value: string): UserTenant;
|
||||
|
||||
getIsAdmin(): boolean;
|
||||
setIsAdmin(value: boolean): UserTenant;
|
||||
|
||||
getIsDeviceAdmin(): boolean;
|
||||
setIsDeviceAdmin(value: boolean): UserTenant;
|
||||
|
||||
getIsGatewayAdmin(): boolean;
|
||||
setIsGatewayAdmin(value: boolean): UserTenant;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UserTenant.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: UserTenant): UserTenant.AsObject;
|
||||
static serializeBinaryToWriter(message: UserTenant, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): UserTenant;
|
||||
static deserializeBinaryFromReader(message: UserTenant, reader: jspb.BinaryReader): UserTenant;
|
||||
}
|
||||
|
||||
export namespace UserTenant {
|
||||
export type AsObject = {
|
||||
tenantId: string,
|
||||
isAdmin: boolean,
|
||||
isDeviceAdmin: boolean,
|
||||
isGatewayAdmin: boolean,
|
||||
}
|
||||
}
|
||||
|
||||
export class CreateUserRequest extends jspb.Message {
|
||||
getUser(): User | undefined;
|
||||
setUser(value?: User): CreateUserRequest;
|
||||
hasUser(): boolean;
|
||||
clearUser(): CreateUserRequest;
|
||||
|
||||
getPassword(): string;
|
||||
setPassword(value: string): CreateUserRequest;
|
||||
|
||||
getTenantsList(): Array<UserTenant>;
|
||||
setTenantsList(value: Array<UserTenant>): CreateUserRequest;
|
||||
clearTenantsList(): CreateUserRequest;
|
||||
addTenants(value?: UserTenant, index?: number): UserTenant;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CreateUserRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: CreateUserRequest): CreateUserRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: CreateUserRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): CreateUserRequest;
|
||||
static deserializeBinaryFromReader(message: CreateUserRequest, reader: jspb.BinaryReader): CreateUserRequest;
|
||||
}
|
||||
|
||||
export namespace CreateUserRequest {
|
||||
export type AsObject = {
|
||||
user?: User.AsObject,
|
||||
password: string,
|
||||
tenantsList: Array<UserTenant.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class CreateUserResponse extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): CreateUserResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CreateUserResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: CreateUserResponse): CreateUserResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: CreateUserResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): CreateUserResponse;
|
||||
static deserializeBinaryFromReader(message: CreateUserResponse, reader: jspb.BinaryReader): CreateUserResponse;
|
||||
}
|
||||
|
||||
export namespace CreateUserResponse {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetUserRequest extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): GetUserRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetUserRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetUserRequest): GetUserRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: GetUserRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetUserRequest;
|
||||
static deserializeBinaryFromReader(message: GetUserRequest, reader: jspb.BinaryReader): GetUserRequest;
|
||||
}
|
||||
|
||||
export namespace GetUserRequest {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetUserResponse extends jspb.Message {
|
||||
getUser(): User | undefined;
|
||||
setUser(value?: User): GetUserResponse;
|
||||
hasUser(): boolean;
|
||||
clearUser(): GetUserResponse;
|
||||
|
||||
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetUserResponse;
|
||||
hasCreatedAt(): boolean;
|
||||
clearCreatedAt(): GetUserResponse;
|
||||
|
||||
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetUserResponse;
|
||||
hasUpdatedAt(): boolean;
|
||||
clearUpdatedAt(): GetUserResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetUserResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetUserResponse): GetUserResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: GetUserResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetUserResponse;
|
||||
static deserializeBinaryFromReader(message: GetUserResponse, reader: jspb.BinaryReader): GetUserResponse;
|
||||
}
|
||||
|
||||
export namespace GetUserResponse {
|
||||
export type AsObject = {
|
||||
user?: User.AsObject,
|
||||
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class UpdateUserRequest extends jspb.Message {
|
||||
getUser(): User | undefined;
|
||||
setUser(value?: User): UpdateUserRequest;
|
||||
hasUser(): boolean;
|
||||
clearUser(): UpdateUserRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UpdateUserRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: UpdateUserRequest): UpdateUserRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: UpdateUserRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): UpdateUserRequest;
|
||||
static deserializeBinaryFromReader(message: UpdateUserRequest, reader: jspb.BinaryReader): UpdateUserRequest;
|
||||
}
|
||||
|
||||
export namespace UpdateUserRequest {
|
||||
export type AsObject = {
|
||||
user?: User.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class DeleteUserRequest extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): DeleteUserRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeleteUserRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeleteUserRequest): DeleteUserRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: DeleteUserRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeleteUserRequest;
|
||||
static deserializeBinaryFromReader(message: DeleteUserRequest, reader: jspb.BinaryReader): DeleteUserRequest;
|
||||
}
|
||||
|
||||
export namespace DeleteUserRequest {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class ListUsersRequest extends jspb.Message {
|
||||
getLimit(): number;
|
||||
setLimit(value: number): ListUsersRequest;
|
||||
|
||||
getOffset(): number;
|
||||
setOffset(value: number): ListUsersRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ListUsersRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ListUsersRequest): ListUsersRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: ListUsersRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ListUsersRequest;
|
||||
static deserializeBinaryFromReader(message: ListUsersRequest, reader: jspb.BinaryReader): ListUsersRequest;
|
||||
}
|
||||
|
||||
export namespace ListUsersRequest {
|
||||
export type AsObject = {
|
||||
limit: number,
|
||||
offset: number,
|
||||
}
|
||||
}
|
||||
|
||||
export class ListUsersResponse extends jspb.Message {
|
||||
getTotalCount(): number;
|
||||
setTotalCount(value: number): ListUsersResponse;
|
||||
|
||||
getResultList(): Array<UserListItem>;
|
||||
setResultList(value: Array<UserListItem>): ListUsersResponse;
|
||||
clearResultList(): ListUsersResponse;
|
||||
addResult(value?: UserListItem, index?: number): UserListItem;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ListUsersResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ListUsersResponse): ListUsersResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: ListUsersResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ListUsersResponse;
|
||||
static deserializeBinaryFromReader(message: ListUsersResponse, reader: jspb.BinaryReader): ListUsersResponse;
|
||||
}
|
||||
|
||||
export namespace ListUsersResponse {
|
||||
export type AsObject = {
|
||||
totalCount: number,
|
||||
resultList: Array<UserListItem.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class UpdateUserPasswordRequest extends jspb.Message {
|
||||
getUserId(): string;
|
||||
setUserId(value: string): UpdateUserPasswordRequest;
|
||||
|
||||
getPassword(): string;
|
||||
setPassword(value: string): UpdateUserPasswordRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UpdateUserPasswordRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: UpdateUserPasswordRequest): UpdateUserPasswordRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: UpdateUserPasswordRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): UpdateUserPasswordRequest;
|
||||
static deserializeBinaryFromReader(message: UpdateUserPasswordRequest, reader: jspb.BinaryReader): UpdateUserPasswordRequest;
|
||||
}
|
||||
|
||||
export namespace UpdateUserPasswordRequest {
|
||||
export type AsObject = {
|
||||
userId: string,
|
||||
password: string,
|
||||
}
|
||||
}
|
||||
|
2623
api/grpc-web/api/user_pb.js
Normal file
2623
api/grpc-web/api/user_pb.js
Normal file
File diff suppressed because it is too large
Load Diff
118
api/grpc-web/common/common_pb.d.ts
vendored
Normal file
118
api/grpc-web/common/common_pb.d.ts
vendored
Normal file
@ -0,0 +1,118 @@
|
||||
import * as jspb from 'google-protobuf'
|
||||
|
||||
|
||||
|
||||
export class Location extends jspb.Message {
|
||||
getLatitude(): number;
|
||||
setLatitude(value: number): Location;
|
||||
|
||||
getLongitude(): number;
|
||||
setLongitude(value: number): Location;
|
||||
|
||||
getAltitude(): number;
|
||||
setAltitude(value: number): Location;
|
||||
|
||||
getSource(): LocationSource;
|
||||
setSource(value: LocationSource): Location;
|
||||
|
||||
getAccuracy(): number;
|
||||
setAccuracy(value: number): Location;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Location.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Location): Location.AsObject;
|
||||
static serializeBinaryToWriter(message: Location, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Location;
|
||||
static deserializeBinaryFromReader(message: Location, reader: jspb.BinaryReader): Location;
|
||||
}
|
||||
|
||||
export namespace Location {
|
||||
export type AsObject = {
|
||||
latitude: number,
|
||||
longitude: number,
|
||||
altitude: number,
|
||||
source: LocationSource,
|
||||
accuracy: number,
|
||||
}
|
||||
}
|
||||
|
||||
export class KeyEnvelope extends jspb.Message {
|
||||
getKekLabel(): string;
|
||||
setKekLabel(value: string): KeyEnvelope;
|
||||
|
||||
getAesKey(): Uint8Array | string;
|
||||
getAesKey_asU8(): Uint8Array;
|
||||
getAesKey_asB64(): string;
|
||||
setAesKey(value: Uint8Array | string): KeyEnvelope;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): KeyEnvelope.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: KeyEnvelope): KeyEnvelope.AsObject;
|
||||
static serializeBinaryToWriter(message: KeyEnvelope, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): KeyEnvelope;
|
||||
static deserializeBinaryFromReader(message: KeyEnvelope, reader: jspb.BinaryReader): KeyEnvelope;
|
||||
}
|
||||
|
||||
export namespace KeyEnvelope {
|
||||
export type AsObject = {
|
||||
kekLabel: string,
|
||||
aesKey: Uint8Array | string,
|
||||
}
|
||||
}
|
||||
|
||||
export enum Modulation {
|
||||
LORA = 0,
|
||||
FSK = 1,
|
||||
LR_FHSS = 2,
|
||||
}
|
||||
export enum Region {
|
||||
EU868 = 0,
|
||||
US915 = 2,
|
||||
CN779 = 3,
|
||||
EU433 = 4,
|
||||
AU915 = 5,
|
||||
CN470 = 6,
|
||||
AS923 = 7,
|
||||
AS923_2 = 12,
|
||||
AS923_3 = 13,
|
||||
AS923_4 = 14,
|
||||
KR920 = 8,
|
||||
IN865 = 9,
|
||||
RU864 = 10,
|
||||
ISM2400 = 11,
|
||||
}
|
||||
export enum MType {
|
||||
JOIN_REQUEST = 0,
|
||||
JOIN_ACCEPT = 1,
|
||||
UNCONFIRMED_DATA_UP = 2,
|
||||
UNCONFIRMED_DATA_DOWN = 3,
|
||||
CONFIRMED_DATA_UP = 4,
|
||||
CONFIRMED_DATA_DOWN = 5,
|
||||
REJOIN_REQUEST = 6,
|
||||
PROPRIETARY = 7,
|
||||
}
|
||||
export enum MacVersion {
|
||||
LORAWAN_1_0_0 = 0,
|
||||
LORAWAN_1_0_1 = 1,
|
||||
LORAWAN_1_0_2 = 2,
|
||||
LORAWAN_1_0_3 = 3,
|
||||
LORAWAN_1_0_4 = 4,
|
||||
LORAWAN_1_1_0 = 5,
|
||||
}
|
||||
export enum RegParamsRevision {
|
||||
A = 0,
|
||||
B = 1,
|
||||
RP002_1_0_0 = 2,
|
||||
RP002_1_0_1 = 3,
|
||||
RP002_1_0_2 = 4,
|
||||
RP002_1_0_3 = 5,
|
||||
}
|
||||
export enum LocationSource {
|
||||
UNKNOWN = 0,
|
||||
GPS = 1,
|
||||
CONFIG = 2,
|
||||
GEO_RESOLVER_TDOA = 3,
|
||||
GEO_RESOLVER_RSSI = 4,
|
||||
GEO_RESOLVER_GNSS = 5,
|
||||
GEO_RESOLVER_WIFI = 6,
|
||||
}
|
582
api/grpc-web/common/common_pb.js
Normal file
582
api/grpc-web/common/common_pb.js
Normal file
@ -0,0 +1,582 @@
|
||||
// source: common/common.proto
|
||||
/**
|
||||
* @fileoverview
|
||||
* @enhanceable
|
||||
* @suppress {missingRequire} reports error on implicit type usages.
|
||||
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||
* field starts with 'MSG_' and isn't a translatable message.
|
||||
* @public
|
||||
*/
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
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) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.common.Location.displayName = 'proto.common.Location';
|
||||
}
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
* server response, or constructed directly in Javascript. The array is used
|
||||
* in place and becomes part of the constructed object. It is not cloned.
|
||||
* If no data is provided, the constructed object will be empty, but still
|
||||
* valid.
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.common.KeyEnvelope = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.common.KeyEnvelope, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.common.KeyEnvelope.displayName = 'proto.common.KeyEnvelope';
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* Optional fields that are not set will be set to undefined.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||
* JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.common.Location.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.common.Location.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.common.Location} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.common.Location.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
|
||||
longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
||||
altitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
|
||||
source: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
||||
accuracy: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0)
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
obj.$jspbMessageInstance = msg;
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.common.Location}
|
||||
*/
|
||||
proto.common.Location.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.common.Location;
|
||||
return proto.common.Location.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.common.Location} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.common.Location}
|
||||
*/
|
||||
proto.common.Location.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {number} */ (reader.readDouble());
|
||||
msg.setLatitude(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {number} */ (reader.readDouble());
|
||||
msg.setLongitude(value);
|
||||
break;
|
||||
case 3:
|
||||
var value = /** @type {number} */ (reader.readDouble());
|
||||
msg.setAltitude(value);
|
||||
break;
|
||||
case 4:
|
||||
var value = /** @type {!proto.common.LocationSource} */ (reader.readEnum());
|
||||
msg.setSource(value);
|
||||
break;
|
||||
case 5:
|
||||
var value = /** @type {number} */ (reader.readFloat());
|
||||
msg.setAccuracy(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.common.Location.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.common.Location.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.common.Location} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.common.Location.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getLatitude();
|
||||
if (f !== 0.0) {
|
||||
writer.writeDouble(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getLongitude();
|
||||
if (f !== 0.0) {
|
||||
writer.writeDouble(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getAltitude();
|
||||
if (f !== 0.0) {
|
||||
writer.writeDouble(
|
||||
3,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getSource();
|
||||
if (f !== 0.0) {
|
||||
writer.writeEnum(
|
||||
4,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getAccuracy();
|
||||
if (f !== 0.0) {
|
||||
writer.writeFloat(
|
||||
5,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional double latitude = 1;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.common.Location.prototype.getLatitude = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.common.Location} returns this
|
||||
*/
|
||||
proto.common.Location.prototype.setLatitude = function(value) {
|
||||
return jspb.Message.setProto3FloatField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional double longitude = 2;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.common.Location.prototype.getLongitude = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.common.Location} returns this
|
||||
*/
|
||||
proto.common.Location.prototype.setLongitude = function(value) {
|
||||
return jspb.Message.setProto3FloatField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional double altitude = 3;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.common.Location.prototype.getAltitude = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.common.Location} returns this
|
||||
*/
|
||||
proto.common.Location.prototype.setAltitude = function(value) {
|
||||
return jspb.Message.setProto3FloatField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional LocationSource source = 4;
|
||||
* @return {!proto.common.LocationSource}
|
||||
*/
|
||||
proto.common.Location.prototype.getSource = function() {
|
||||
return /** @type {!proto.common.LocationSource} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.common.LocationSource} value
|
||||
* @return {!proto.common.Location} returns this
|
||||
*/
|
||||
proto.common.Location.prototype.setSource = function(value) {
|
||||
return jspb.Message.setProto3EnumField(this, 4, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional float accuracy = 5;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.common.Location.prototype.getAccuracy = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.common.Location} returns this
|
||||
*/
|
||||
proto.common.Location.prototype.setAccuracy = function(value) {
|
||||
return jspb.Message.setProto3FloatField(this, 5, value);
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* Optional fields that are not set will be set to undefined.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||
* JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.common.KeyEnvelope.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.common.KeyEnvelope.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.common.KeyEnvelope} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.common.KeyEnvelope.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
kekLabel: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
aesKey: msg.getAesKey_asB64()
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
obj.$jspbMessageInstance = msg;
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.common.KeyEnvelope}
|
||||
*/
|
||||
proto.common.KeyEnvelope.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.common.KeyEnvelope;
|
||||
return proto.common.KeyEnvelope.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.common.KeyEnvelope} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.common.KeyEnvelope}
|
||||
*/
|
||||
proto.common.KeyEnvelope.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setKekLabel(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
||||
msg.setAesKey(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.common.KeyEnvelope.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.common.KeyEnvelope.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.common.KeyEnvelope} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.common.KeyEnvelope.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getKekLabel();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getAesKey_asU8();
|
||||
if (f.length > 0) {
|
||||
writer.writeBytes(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string kek_label = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.common.KeyEnvelope.prototype.getKekLabel = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.common.KeyEnvelope} returns this
|
||||
*/
|
||||
proto.common.KeyEnvelope.prototype.setKekLabel = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes aes_key = 2;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.common.KeyEnvelope.prototype.getAesKey = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes aes_key = 2;
|
||||
* This is a type-conversion wrapper around `getAesKey()`
|
||||
* @return {string}
|
||||
*/
|
||||
proto.common.KeyEnvelope.prototype.getAesKey_asB64 = function() {
|
||||
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
||||
this.getAesKey()));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes aes_key = 2;
|
||||
* Note that Uint8Array is not supported on all browsers.
|
||||
* @see http://caniuse.com/Uint8Array
|
||||
* This is a type-conversion wrapper around `getAesKey()`
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.common.KeyEnvelope.prototype.getAesKey_asU8 = function() {
|
||||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
||||
this.getAesKey()));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!(string|Uint8Array)} value
|
||||
* @return {!proto.common.KeyEnvelope} returns this
|
||||
*/
|
||||
proto.common.KeyEnvelope.prototype.setAesKey = function(value) {
|
||||
return jspb.Message.setProto3BytesField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @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);
|
6
api/grpc-web/google/api/annotations_pb.d.ts
vendored
Normal file
6
api/grpc-web/google/api/annotations_pb.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
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';
|
||||
|
||||
|
48
api/grpc-web/google/api/annotations_pb.js
Normal file
48
api/grpc-web/google/api/annotations_pb.js
Normal file
@ -0,0 +1,48 @@
|
||||
// source: google/api/annotations.proto
|
||||
/**
|
||||
* @fileoverview
|
||||
* @enhanceable
|
||||
* @suppress {missingRequire} reports error on implicit type usages.
|
||||
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||
* field starts with 'MSG_' and isn't a translatable message.
|
||||
* @public
|
||||
*/
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
var jspb = require('google-protobuf');
|
||||
var goog = jspb;
|
||||
var global = Function('return this')();
|
||||
|
||||
var google_api_http_pb = require('../../google/api/http_pb.js');
|
||||
goog.object.extend(proto, google_api_http_pb);
|
||||
var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
|
||||
goog.object.extend(proto, google_protobuf_descriptor_pb);
|
||||
goog.exportSymbol('proto.google.api.http', null, global);
|
||||
|
||||
/**
|
||||
* A tuple of {field number, class constructor} for the extension
|
||||
* field named `http`.
|
||||
* @type {!jspb.ExtensionFieldInfo<!proto.google.api.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);
|
178
api/grpc-web/google/api/auth_pb.d.ts
vendored
Normal file
178
api/grpc-web/google/api/auth_pb.d.ts
vendored
Normal file
@ -0,0 +1,178 @@
|
||||
import * as jspb from 'google-protobuf'
|
||||
|
||||
|
||||
|
||||
export class Authentication extends jspb.Message {
|
||||
getRulesList(): Array<AuthenticationRule>;
|
||||
setRulesList(value: Array<AuthenticationRule>): Authentication;
|
||||
clearRulesList(): Authentication;
|
||||
addRules(value?: AuthenticationRule, index?: number): AuthenticationRule;
|
||||
|
||||
getProvidersList(): Array<AuthProvider>;
|
||||
setProvidersList(value: Array<AuthProvider>): Authentication;
|
||||
clearProvidersList(): Authentication;
|
||||
addProviders(value?: AuthProvider, index?: number): AuthProvider;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Authentication.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Authentication): Authentication.AsObject;
|
||||
static serializeBinaryToWriter(message: Authentication, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Authentication;
|
||||
static deserializeBinaryFromReader(message: Authentication, reader: jspb.BinaryReader): Authentication;
|
||||
}
|
||||
|
||||
export namespace Authentication {
|
||||
export type AsObject = {
|
||||
rulesList: Array<AuthenticationRule.AsObject>,
|
||||
providersList: Array<AuthProvider.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class AuthenticationRule extends jspb.Message {
|
||||
getSelector(): string;
|
||||
setSelector(value: string): AuthenticationRule;
|
||||
|
||||
getOauth(): OAuthRequirements | undefined;
|
||||
setOauth(value?: OAuthRequirements): AuthenticationRule;
|
||||
hasOauth(): boolean;
|
||||
clearOauth(): AuthenticationRule;
|
||||
|
||||
getAllowWithoutCredential(): boolean;
|
||||
setAllowWithoutCredential(value: boolean): AuthenticationRule;
|
||||
|
||||
getRequirementsList(): Array<AuthRequirement>;
|
||||
setRequirementsList(value: Array<AuthRequirement>): AuthenticationRule;
|
||||
clearRequirementsList(): AuthenticationRule;
|
||||
addRequirements(value?: AuthRequirement, index?: number): AuthRequirement;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): AuthenticationRule.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: AuthenticationRule): AuthenticationRule.AsObject;
|
||||
static serializeBinaryToWriter(message: AuthenticationRule, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): AuthenticationRule;
|
||||
static deserializeBinaryFromReader(message: AuthenticationRule, reader: jspb.BinaryReader): AuthenticationRule;
|
||||
}
|
||||
|
||||
export namespace AuthenticationRule {
|
||||
export type AsObject = {
|
||||
selector: string,
|
||||
oauth?: OAuthRequirements.AsObject,
|
||||
allowWithoutCredential: boolean,
|
||||
requirementsList: Array<AuthRequirement.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class JwtLocation extends jspb.Message {
|
||||
getHeader(): string;
|
||||
setHeader(value: string): JwtLocation;
|
||||
|
||||
getQuery(): string;
|
||||
setQuery(value: string): JwtLocation;
|
||||
|
||||
getValuePrefix(): string;
|
||||
setValuePrefix(value: string): JwtLocation;
|
||||
|
||||
getInCase(): JwtLocation.InCase;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): JwtLocation.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: JwtLocation): JwtLocation.AsObject;
|
||||
static serializeBinaryToWriter(message: JwtLocation, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): JwtLocation;
|
||||
static deserializeBinaryFromReader(message: JwtLocation, reader: jspb.BinaryReader): JwtLocation;
|
||||
}
|
||||
|
||||
export namespace JwtLocation {
|
||||
export type AsObject = {
|
||||
header: string,
|
||||
query: string,
|
||||
valuePrefix: string,
|
||||
}
|
||||
|
||||
export enum InCase {
|
||||
IN_NOT_SET = 0,
|
||||
HEADER = 1,
|
||||
QUERY = 2,
|
||||
}
|
||||
}
|
||||
|
||||
export class AuthProvider extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): AuthProvider;
|
||||
|
||||
getIssuer(): string;
|
||||
setIssuer(value: string): AuthProvider;
|
||||
|
||||
getJwksUri(): string;
|
||||
setJwksUri(value: string): AuthProvider;
|
||||
|
||||
getAudiences(): string;
|
||||
setAudiences(value: string): AuthProvider;
|
||||
|
||||
getAuthorizationUrl(): string;
|
||||
setAuthorizationUrl(value: string): AuthProvider;
|
||||
|
||||
getJwtLocationsList(): Array<JwtLocation>;
|
||||
setJwtLocationsList(value: Array<JwtLocation>): AuthProvider;
|
||||
clearJwtLocationsList(): AuthProvider;
|
||||
addJwtLocations(value?: JwtLocation, index?: number): JwtLocation;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): AuthProvider.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: AuthProvider): AuthProvider.AsObject;
|
||||
static serializeBinaryToWriter(message: AuthProvider, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): AuthProvider;
|
||||
static deserializeBinaryFromReader(message: AuthProvider, reader: jspb.BinaryReader): AuthProvider;
|
||||
}
|
||||
|
||||
export namespace AuthProvider {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
issuer: string,
|
||||
jwksUri: string,
|
||||
audiences: string,
|
||||
authorizationUrl: string,
|
||||
jwtLocationsList: Array<JwtLocation.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class OAuthRequirements extends jspb.Message {
|
||||
getCanonicalScopes(): string;
|
||||
setCanonicalScopes(value: string): OAuthRequirements;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): OAuthRequirements.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: OAuthRequirements): OAuthRequirements.AsObject;
|
||||
static serializeBinaryToWriter(message: OAuthRequirements, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): OAuthRequirements;
|
||||
static deserializeBinaryFromReader(message: OAuthRequirements, reader: jspb.BinaryReader): OAuthRequirements;
|
||||
}
|
||||
|
||||
export namespace OAuthRequirements {
|
||||
export type AsObject = {
|
||||
canonicalScopes: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class AuthRequirement extends jspb.Message {
|
||||
getProviderId(): string;
|
||||
setProviderId(value: string): AuthRequirement;
|
||||
|
||||
getAudiences(): string;
|
||||
setAudiences(value: string): AuthRequirement;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): AuthRequirement.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: AuthRequirement): AuthRequirement.AsObject;
|
||||
static serializeBinaryToWriter(message: AuthRequirement, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): AuthRequirement;
|
||||
static deserializeBinaryFromReader(message: AuthRequirement, reader: jspb.BinaryReader): AuthRequirement;
|
||||
}
|
||||
|
||||
export namespace AuthRequirement {
|
||||
export type AsObject = {
|
||||
providerId: string,
|
||||
audiences: string,
|
||||
}
|
||||
}
|
||||
|
1487
api/grpc-web/google/api/auth_pb.js
Normal file
1487
api/grpc-web/google/api/auth_pb.js
Normal file
File diff suppressed because it is too large
Load Diff
88
api/grpc-web/google/api/backend_pb.d.ts
vendored
Normal file
88
api/grpc-web/google/api/backend_pb.d.ts
vendored
Normal file
@ -0,0 +1,88 @@
|
||||
import * as jspb from 'google-protobuf'
|
||||
|
||||
|
||||
|
||||
export class Backend extends jspb.Message {
|
||||
getRulesList(): Array<BackendRule>;
|
||||
setRulesList(value: Array<BackendRule>): Backend;
|
||||
clearRulesList(): Backend;
|
||||
addRules(value?: BackendRule, index?: number): BackendRule;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Backend.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Backend): Backend.AsObject;
|
||||
static serializeBinaryToWriter(message: Backend, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Backend;
|
||||
static deserializeBinaryFromReader(message: Backend, reader: jspb.BinaryReader): Backend;
|
||||
}
|
||||
|
||||
export namespace Backend {
|
||||
export type AsObject = {
|
||||
rulesList: Array<BackendRule.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class BackendRule extends jspb.Message {
|
||||
getSelector(): string;
|
||||
setSelector(value: string): BackendRule;
|
||||
|
||||
getAddress(): string;
|
||||
setAddress(value: string): BackendRule;
|
||||
|
||||
getDeadline(): number;
|
||||
setDeadline(value: number): BackendRule;
|
||||
|
||||
getMinDeadline(): number;
|
||||
setMinDeadline(value: number): BackendRule;
|
||||
|
||||
getOperationDeadline(): number;
|
||||
setOperationDeadline(value: number): BackendRule;
|
||||
|
||||
getPathTranslation(): BackendRule.PathTranslation;
|
||||
setPathTranslation(value: BackendRule.PathTranslation): BackendRule;
|
||||
|
||||
getJwtAudience(): string;
|
||||
setJwtAudience(value: string): BackendRule;
|
||||
|
||||
getDisableAuth(): boolean;
|
||||
setDisableAuth(value: boolean): BackendRule;
|
||||
|
||||
getProtocol(): string;
|
||||
setProtocol(value: string): BackendRule;
|
||||
|
||||
getAuthenticationCase(): BackendRule.AuthenticationCase;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): BackendRule.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: BackendRule): BackendRule.AsObject;
|
||||
static serializeBinaryToWriter(message: BackendRule, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): BackendRule;
|
||||
static deserializeBinaryFromReader(message: BackendRule, reader: jspb.BinaryReader): BackendRule;
|
||||
}
|
||||
|
||||
export namespace BackendRule {
|
||||
export type AsObject = {
|
||||
selector: string,
|
||||
address: string,
|
||||
deadline: number,
|
||||
minDeadline: number,
|
||||
operationDeadline: number,
|
||||
pathTranslation: BackendRule.PathTranslation,
|
||||
jwtAudience: string,
|
||||
disableAuth: boolean,
|
||||
protocol: string,
|
||||
}
|
||||
|
||||
export enum PathTranslation {
|
||||
PATH_TRANSLATION_UNSPECIFIED = 0,
|
||||
CONSTANT_ADDRESS = 1,
|
||||
APPEND_PATH_TO_ADDRESS = 2,
|
||||
}
|
||||
|
||||
export enum AuthenticationCase {
|
||||
AUTHENTICATION_NOT_SET = 0,
|
||||
JWT_AUDIENCE = 7,
|
||||
DISABLE_AUTH = 8,
|
||||
}
|
||||
}
|
||||
|
665
api/grpc-web/google/api/backend_pb.js
Normal file
665
api/grpc-web/google/api/backend_pb.js
Normal file
@ -0,0 +1,665 @@
|
||||
// source: google/api/backend.proto
|
||||
/**
|
||||
* @fileoverview
|
||||
* @enhanceable
|
||||
* @suppress {missingRequire} reports error on implicit type usages.
|
||||
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||
* field starts with 'MSG_' and isn't a translatable message.
|
||||
* @public
|
||||
*/
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
var jspb = require('google-protobuf');
|
||||
var goog = jspb;
|
||||
var global = Function('return this')();
|
||||
|
||||
goog.exportSymbol('proto.google.api.Backend', null, global);
|
||||
goog.exportSymbol('proto.google.api.BackendRule', null, global);
|
||||
goog.exportSymbol('proto.google.api.BackendRule.AuthenticationCase', null, global);
|
||||
goog.exportSymbol('proto.google.api.BackendRule.PathTranslation', null, global);
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
* server response, or constructed directly in Javascript. The array is used
|
||||
* in place and becomes part of the constructed object. It is not cloned.
|
||||
* If no data is provided, the constructed object will be empty, but still
|
||||
* valid.
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.google.api.Backend = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Backend.repeatedFields_, null);
|
||||
};
|
||||
goog.inherits(proto.google.api.Backend, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.google.api.Backend.displayName = 'proto.google.api.Backend';
|
||||
}
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
* server response, or constructed directly in Javascript. The array is used
|
||||
* in place and becomes part of the constructed object. It is not cloned.
|
||||
* If no data is provided, the constructed object will be empty, but still
|
||||
* valid.
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.google.api.BackendRule = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.api.BackendRule.oneofGroups_);
|
||||
};
|
||||
goog.inherits(proto.google.api.BackendRule, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.google.api.BackendRule.displayName = 'proto.google.api.BackendRule';
|
||||
}
|
||||
|
||||
/**
|
||||
* List of repeated fields within this message type.
|
||||
* @private {!Array<number>}
|
||||
* @const
|
||||
*/
|
||||
proto.google.api.Backend.repeatedFields_ = [1];
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* Optional fields that are not set will be set to undefined.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||
* JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.google.api.Backend.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.google.api.Backend.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.google.api.Backend} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.google.api.Backend.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
rulesList: jspb.Message.toObjectList(msg.getRulesList(),
|
||||
proto.google.api.BackendRule.toObject, includeInstance)
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
obj.$jspbMessageInstance = msg;
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.google.api.Backend}
|
||||
*/
|
||||
proto.google.api.Backend.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.google.api.Backend;
|
||||
return proto.google.api.Backend.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.google.api.Backend} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.google.api.Backend}
|
||||
*/
|
||||
proto.google.api.Backend.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = new proto.google.api.BackendRule;
|
||||
reader.readMessage(value,proto.google.api.BackendRule.deserializeBinaryFromReader);
|
||||
msg.addRules(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.google.api.Backend.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.google.api.Backend.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.google.api.Backend} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.google.api.Backend.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getRulesList();
|
||||
if (f.length > 0) {
|
||||
writer.writeRepeatedMessage(
|
||||
1,
|
||||
f,
|
||||
proto.google.api.BackendRule.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* repeated BackendRule rules = 1;
|
||||
* @return {!Array<!proto.google.api.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
|
||||
* @return {!proto.google.api.Backend} returns this
|
||||
*/
|
||||
proto.google.api.Backend.prototype.setRulesList = function(value) {
|
||||
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.google.api.BackendRule=} opt_value
|
||||
* @param {number=} opt_index
|
||||
* @return {!proto.google.api.BackendRule}
|
||||
*/
|
||||
proto.google.api.Backend.prototype.addRules = function(opt_value, opt_index) {
|
||||
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.BackendRule, opt_index);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the list making it empty but non-null.
|
||||
* @return {!proto.google.api.Backend} returns this
|
||||
*/
|
||||
proto.google.api.Backend.prototype.clearRulesList = function() {
|
||||
return this.setRulesList([]);
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Oneof group definitions for this message. Each group defines the field
|
||||
* numbers belonging to that group. When of these fields' value is set, all
|
||||
* other fields in the group are cleared. During deserialization, if multiple
|
||||
* fields are encountered for a group, only the last value seen will be kept.
|
||||
* @private {!Array<!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.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* Optional fields that are not set will be set to undefined.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||
* JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.google.api.BackendRule.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.google.api.BackendRule.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.google.api.BackendRule} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.google.api.BackendRule.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
selector: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
address: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||
deadline: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
|
||||
minDeadline: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
|
||||
operationDeadline: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
|
||||
pathTranslation: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
||||
jwtAudience: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
||||
disableAuth: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
|
||||
protocol: jspb.Message.getFieldWithDefault(msg, 9, "")
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.google.api.BackendRule.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.google.api.BackendRule.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.google.api.BackendRule} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.google.api.BackendRule.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getSelector();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getAddress();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getDeadline();
|
||||
if (f !== 0.0) {
|
||||
writer.writeDouble(
|
||||
3,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getMinDeadline();
|
||||
if (f !== 0.0) {
|
||||
writer.writeDouble(
|
||||
4,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getOperationDeadline();
|
||||
if (f !== 0.0) {
|
||||
writer.writeDouble(
|
||||
5,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getPathTranslation();
|
||||
if (f !== 0.0) {
|
||||
writer.writeEnum(
|
||||
6,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
||||
if (f != null) {
|
||||
writer.writeString(
|
||||
7,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = /** @type {boolean} */ (jspb.Message.getField(message, 8));
|
||||
if (f != null) {
|
||||
writer.writeBool(
|
||||
8,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getProtocol();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
9,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
proto.google.api.BackendRule.PathTranslation = {
|
||||
PATH_TRANSLATION_UNSPECIFIED: 0,
|
||||
CONSTANT_ADDRESS: 1,
|
||||
APPEND_PATH_TO_ADDRESS: 2
|
||||
};
|
||||
|
||||
/**
|
||||
* optional string selector = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.google.api.BackendRule.prototype.getSelector = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.google.api.BackendRule} returns this
|
||||
*/
|
||||
proto.google.api.BackendRule.prototype.setSelector = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string address = 2;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.google.api.BackendRule.prototype.getAddress = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.google.api.BackendRule} returns this
|
||||
*/
|
||||
proto.google.api.BackendRule.prototype.setAddress = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional double deadline = 3;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.google.api.BackendRule.prototype.getDeadline = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.google.api.BackendRule} returns this
|
||||
*/
|
||||
proto.google.api.BackendRule.prototype.setDeadline = function(value) {
|
||||
return jspb.Message.setProto3FloatField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional double min_deadline = 4;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.google.api.BackendRule.prototype.getMinDeadline = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.google.api.BackendRule} returns this
|
||||
*/
|
||||
proto.google.api.BackendRule.prototype.setMinDeadline = function(value) {
|
||||
return jspb.Message.setProto3FloatField(this, 4, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional double operation_deadline = 5;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.google.api.BackendRule.prototype.getOperationDeadline = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.google.api.BackendRule} returns this
|
||||
*/
|
||||
proto.google.api.BackendRule.prototype.setOperationDeadline = function(value) {
|
||||
return jspb.Message.setProto3FloatField(this, 5, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional PathTranslation path_translation = 6;
|
||||
* @return {!proto.google.api.BackendRule.PathTranslation}
|
||||
*/
|
||||
proto.google.api.BackendRule.prototype.getPathTranslation = function() {
|
||||
return /** @type {!proto.google.api.BackendRule.PathTranslation} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.google.api.BackendRule.PathTranslation} value
|
||||
* @return {!proto.google.api.BackendRule} returns this
|
||||
*/
|
||||
proto.google.api.BackendRule.prototype.setPathTranslation = function(value) {
|
||||
return jspb.Message.setProto3EnumField(this, 6, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string jwt_audience = 7;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.google.api.BackendRule.prototype.getJwtAudience = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.google.api.BackendRule} returns this
|
||||
*/
|
||||
proto.google.api.BackendRule.prototype.setJwtAudience = function(value) {
|
||||
return jspb.Message.setOneofField(this, 7, proto.google.api.BackendRule.oneofGroups_[0], value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
* @return {!proto.google.api.BackendRule} returns this
|
||||
*/
|
||||
proto.google.api.BackendRule.prototype.clearJwtAudience = function() {
|
||||
return jspb.Message.setOneofField(this, 7, proto.google.api.BackendRule.oneofGroups_[0], undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.google.api.BackendRule.prototype.hasJwtAudience = function() {
|
||||
return jspb.Message.getField(this, 7) != null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bool disable_auth = 8;
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.google.api.BackendRule.prototype.getDisableAuth = function() {
|
||||
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {boolean} value
|
||||
* @return {!proto.google.api.BackendRule} returns this
|
||||
*/
|
||||
proto.google.api.BackendRule.prototype.setDisableAuth = function(value) {
|
||||
return jspb.Message.setOneofField(this, 8, proto.google.api.BackendRule.oneofGroups_[0], value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
* @return {!proto.google.api.BackendRule} returns this
|
||||
*/
|
||||
proto.google.api.BackendRule.prototype.clearDisableAuth = function() {
|
||||
return jspb.Message.setOneofField(this, 8, proto.google.api.BackendRule.oneofGroups_[0], undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.google.api.BackendRule.prototype.hasDisableAuth = function() {
|
||||
return jspb.Message.getField(this, 8) != null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string protocol = 9;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.google.api.BackendRule.prototype.getProtocol = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.google.api.BackendRule} returns this
|
||||
*/
|
||||
proto.google.api.BackendRule.prototype.setProtocol = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 9, value);
|
||||
};
|
||||
|
||||
|
||||
goog.object.extend(exports, proto.google.api);
|
50
api/grpc-web/google/api/billing_pb.d.ts
vendored
Normal file
50
api/grpc-web/google/api/billing_pb.d.ts
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
import * as jspb from 'google-protobuf'
|
||||
|
||||
import * as google_api_metric_pb from '../../google/api/metric_pb';
|
||||
|
||||
|
||||
export class Billing extends jspb.Message {
|
||||
getConsumerDestinationsList(): Array<Billing.BillingDestination>;
|
||||
setConsumerDestinationsList(value: Array<Billing.BillingDestination>): Billing;
|
||||
clearConsumerDestinationsList(): Billing;
|
||||
addConsumerDestinations(value?: Billing.BillingDestination, index?: number): Billing.BillingDestination;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Billing.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Billing): Billing.AsObject;
|
||||
static serializeBinaryToWriter(message: Billing, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Billing;
|
||||
static deserializeBinaryFromReader(message: Billing, reader: jspb.BinaryReader): Billing;
|
||||
}
|
||||
|
||||
export namespace Billing {
|
||||
export type AsObject = {
|
||||
consumerDestinationsList: Array<Billing.BillingDestination.AsObject>,
|
||||
}
|
||||
|
||||
export class BillingDestination extends jspb.Message {
|
||||
getMonitoredResource(): string;
|
||||
setMonitoredResource(value: string): BillingDestination;
|
||||
|
||||
getMetricsList(): Array<string>;
|
||||
setMetricsList(value: Array<string>): BillingDestination;
|
||||
clearMetricsList(): BillingDestination;
|
||||
addMetrics(value: string, index?: number): BillingDestination;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): BillingDestination.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: BillingDestination): BillingDestination.AsObject;
|
||||
static serializeBinaryToWriter(message: BillingDestination, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): BillingDestination;
|
||||
static deserializeBinaryFromReader(message: BillingDestination, reader: jspb.BinaryReader): BillingDestination;
|
||||
}
|
||||
|
||||
export namespace BillingDestination {
|
||||
export type AsObject = {
|
||||
monitoredResource: string,
|
||||
metricsList: Array<string>,
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
410
api/grpc-web/google/api/billing_pb.js
Normal file
410
api/grpc-web/google/api/billing_pb.js
Normal file
@ -0,0 +1,410 @@
|
||||
// source: google/api/billing.proto
|
||||
/**
|
||||
* @fileoverview
|
||||
* @enhanceable
|
||||
* @suppress {missingRequire} reports error on implicit type usages.
|
||||
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||
* field starts with 'MSG_' and isn't a translatable message.
|
||||
* @public
|
||||
*/
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
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.object.extend(proto, google_api_metric_pb);
|
||||
goog.exportSymbol('proto.google.api.Billing', null, global);
|
||||
goog.exportSymbol('proto.google.api.Billing.BillingDestination', null, global);
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
* server response, or constructed directly in Javascript. The array is used
|
||||
* in place and becomes part of the constructed object. It is not cloned.
|
||||
* If no data is provided, the constructed object will be empty, but still
|
||||
* valid.
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.google.api.Billing = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Billing.repeatedFields_, null);
|
||||
};
|
||||
goog.inherits(proto.google.api.Billing, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.google.api.Billing.displayName = 'proto.google.api.Billing';
|
||||
}
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
* server response, or constructed directly in Javascript. The array is used
|
||||
* in place and becomes part of the constructed object. It is not cloned.
|
||||
* If no data is provided, the constructed object will be empty, but still
|
||||
* valid.
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.google.api.Billing.BillingDestination = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Billing.BillingDestination.repeatedFields_, null);
|
||||
};
|
||||
goog.inherits(proto.google.api.Billing.BillingDestination, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.google.api.Billing.BillingDestination.displayName = 'proto.google.api.Billing.BillingDestination';
|
||||
}
|
||||
|
||||
/**
|
||||
* List of repeated fields within this message type.
|
||||
* @private {!Array<number>}
|
||||
* @const
|
||||
*/
|
||||
proto.google.api.Billing.repeatedFields_ = [8];
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* Optional fields that are not set will be set to undefined.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||
* JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.google.api.Billing.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.google.api.Billing.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.google.api.Billing} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.google.api.Billing.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
consumerDestinationsList: jspb.Message.toObjectList(msg.getConsumerDestinationsList(),
|
||||
proto.google.api.Billing.BillingDestination.toObject, includeInstance)
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
obj.$jspbMessageInstance = msg;
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.google.api.Billing}
|
||||
*/
|
||||
proto.google.api.Billing.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.google.api.Billing;
|
||||
return proto.google.api.Billing.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.google.api.Billing} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.google.api.Billing}
|
||||
*/
|
||||
proto.google.api.Billing.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 8:
|
||||
var value = new proto.google.api.Billing.BillingDestination;
|
||||
reader.readMessage(value,proto.google.api.Billing.BillingDestination.deserializeBinaryFromReader);
|
||||
msg.addConsumerDestinations(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.google.api.Billing.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.google.api.Billing.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.google.api.Billing} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.google.api.Billing.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getConsumerDestinationsList();
|
||||
if (f.length > 0) {
|
||||
writer.writeRepeatedMessage(
|
||||
8,
|
||||
f,
|
||||
proto.google.api.Billing.BillingDestination.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* List of repeated fields within this message type.
|
||||
* @private {!Array<number>}
|
||||
* @const
|
||||
*/
|
||||
proto.google.api.Billing.BillingDestination.repeatedFields_ = [2];
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* Optional fields that are not set will be set to undefined.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||
* JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.google.api.Billing.BillingDestination.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.google.api.Billing.BillingDestination.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.google.api.Billing.BillingDestination} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.google.api.Billing.BillingDestination.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
monitoredResource: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
metricsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
obj.$jspbMessageInstance = msg;
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.google.api.Billing.BillingDestination}
|
||||
*/
|
||||
proto.google.api.Billing.BillingDestination.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.google.api.Billing.BillingDestination;
|
||||
return proto.google.api.Billing.BillingDestination.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.google.api.Billing.BillingDestination} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.google.api.Billing.BillingDestination}
|
||||
*/
|
||||
proto.google.api.Billing.BillingDestination.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setMonitoredResource(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.addMetrics(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.google.api.Billing.BillingDestination.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.google.api.Billing.BillingDestination.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.google.api.Billing.BillingDestination} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.google.api.Billing.BillingDestination.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getMonitoredResource();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getMetricsList();
|
||||
if (f.length > 0) {
|
||||
writer.writeRepeatedString(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string monitored_resource = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.google.api.Billing.BillingDestination.prototype.getMonitoredResource = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.google.api.Billing.BillingDestination} returns this
|
||||
*/
|
||||
proto.google.api.Billing.BillingDestination.prototype.setMonitoredResource = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* repeated string metrics = 2;
|
||||
* @return {!Array<string>}
|
||||
*/
|
||||
proto.google.api.Billing.BillingDestination.prototype.getMetricsList = function() {
|
||||
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!Array<string>} value
|
||||
* @return {!proto.google.api.Billing.BillingDestination} returns this
|
||||
*/
|
||||
proto.google.api.Billing.BillingDestination.prototype.setMetricsList = function(value) {
|
||||
return jspb.Message.setField(this, 2, value || []);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @param {number=} opt_index
|
||||
* @return {!proto.google.api.Billing.BillingDestination} returns this
|
||||
*/
|
||||
proto.google.api.Billing.BillingDestination.prototype.addMetrics = function(value, opt_index) {
|
||||
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the list making it empty but non-null.
|
||||
* @return {!proto.google.api.Billing.BillingDestination} returns this
|
||||
*/
|
||||
proto.google.api.Billing.BillingDestination.prototype.clearMetricsList = function() {
|
||||
return this.setMetricsList([]);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* repeated BillingDestination consumer_destinations = 8;
|
||||
* @return {!Array<!proto.google.api.Billing.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
|
||||
* @return {!proto.google.api.Billing} returns this
|
||||
*/
|
||||
proto.google.api.Billing.prototype.setConsumerDestinationsList = function(value) {
|
||||
return jspb.Message.setRepeatedWrapperField(this, 8, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.google.api.Billing.BillingDestination=} opt_value
|
||||
* @param {number=} opt_index
|
||||
* @return {!proto.google.api.Billing.BillingDestination}
|
||||
*/
|
||||
proto.google.api.Billing.prototype.addConsumerDestinations = function(opt_value, opt_index) {
|
||||
return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.google.api.Billing.BillingDestination, opt_index);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the list making it empty but non-null.
|
||||
* @return {!proto.google.api.Billing} returns this
|
||||
*/
|
||||
proto.google.api.Billing.prototype.clearConsumerDestinationsList = function() {
|
||||
return this.setConsumerDestinationsList([]);
|
||||
};
|
||||
|
||||
|
||||
goog.object.extend(exports, proto.google.api);
|
5
api/grpc-web/google/api/client_pb.d.ts
vendored
Normal file
5
api/grpc-web/google/api/client_pb.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
import * as jspb from 'google-protobuf'
|
||||
|
||||
import * as google_protobuf_descriptor_pb from 'google-protobuf/google/protobuf/descriptor_pb';
|
||||
|
||||
|
98
api/grpc-web/google/api/client_pb.js
Normal file
98
api/grpc-web/google/api/client_pb.js
Normal file
@ -0,0 +1,98 @@
|
||||
// source: google/api/client.proto
|
||||
/**
|
||||
* @fileoverview
|
||||
* @enhanceable
|
||||
* @suppress {missingRequire} reports error on implicit type usages.
|
||||
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||
* field starts with 'MSG_' and isn't a translatable message.
|
||||
* @public
|
||||
*/
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
var jspb = require('google-protobuf');
|
||||
var goog = jspb;
|
||||
var global = Function('return this')();
|
||||
|
||||
var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
|
||||
goog.object.extend(proto, google_protobuf_descriptor_pb);
|
||||
goog.exportSymbol('proto.google.api.defaultHost', null, global);
|
||||
goog.exportSymbol('proto.google.api.methodSignatureList', null, global);
|
||||
goog.exportSymbol('proto.google.api.oauthScopes', 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,
|
||||
undefined,
|
||||
undefined,
|
||||
false);
|
||||
// This registers the extension field with the extended class, so that
|
||||
// toObject() will function correctly.
|
||||
google_protobuf_descriptor_pb.MethodOptions.extensions[1051] = proto.google.api.methodSignatureList;
|
||||
|
||||
|
||||
/**
|
||||
* A tuple of {field number, class constructor} for the extension
|
||||
* field named `defaultHost`.
|
||||
* @type {!jspb.ExtensionFieldInfo<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,
|
||||
undefined,
|
||||
undefined,
|
||||
false);
|
||||
// This registers the extension field with the extended class, so that
|
||||
// toObject() will function correctly.
|
||||
google_protobuf_descriptor_pb.ServiceOptions.extensions[1049] = proto.google.api.defaultHost;
|
||||
|
||||
|
||||
/**
|
||||
* A tuple of {field number, class constructor} for the extension
|
||||
* field named `oauthScopes`.
|
||||
* @type {!jspb.ExtensionFieldInfo<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,
|
||||
undefined,
|
||||
undefined,
|
||||
false);
|
||||
// This registers the extension field with the extended class, so that
|
||||
// toObject() will function correctly.
|
||||
google_protobuf_descriptor_pb.ServiceOptions.extensions[1050] = proto.google.api.oauthScopes;
|
||||
|
||||
goog.object.extend(exports, proto.google.api);
|
64
api/grpc-web/google/api/config_change_pb.d.ts
vendored
Normal file
64
api/grpc-web/google/api/config_change_pb.d.ts
vendored
Normal file
@ -0,0 +1,64 @@
|
||||
import * as jspb from 'google-protobuf'
|
||||
|
||||
|
||||
|
||||
export class ConfigChange extends jspb.Message {
|
||||
getElement(): string;
|
||||
setElement(value: string): ConfigChange;
|
||||
|
||||
getOldValue(): string;
|
||||
setOldValue(value: string): ConfigChange;
|
||||
|
||||
getNewValue(): string;
|
||||
setNewValue(value: string): ConfigChange;
|
||||
|
||||
getChangeType(): ChangeType;
|
||||
setChangeType(value: ChangeType): ConfigChange;
|
||||
|
||||
getAdvicesList(): Array<Advice>;
|
||||
setAdvicesList(value: Array<Advice>): ConfigChange;
|
||||
clearAdvicesList(): ConfigChange;
|
||||
addAdvices(value?: Advice, index?: number): Advice;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ConfigChange.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ConfigChange): ConfigChange.AsObject;
|
||||
static serializeBinaryToWriter(message: ConfigChange, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ConfigChange;
|
||||
static deserializeBinaryFromReader(message: ConfigChange, reader: jspb.BinaryReader): ConfigChange;
|
||||
}
|
||||
|
||||
export namespace ConfigChange {
|
||||
export type AsObject = {
|
||||
element: string,
|
||||
oldValue: string,
|
||||
newValue: string,
|
||||
changeType: ChangeType,
|
||||
advicesList: Array<Advice.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class Advice extends jspb.Message {
|
||||
getDescription(): string;
|
||||
setDescription(value: string): Advice;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Advice.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Advice): Advice.AsObject;
|
||||
static serializeBinaryToWriter(message: Advice, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Advice;
|
||||
static deserializeBinaryFromReader(message: Advice, reader: jspb.BinaryReader): Advice;
|
||||
}
|
||||
|
||||
export namespace Advice {
|
||||
export type AsObject = {
|
||||
description: string,
|
||||
}
|
||||
}
|
||||
|
||||
export enum ChangeType {
|
||||
CHANGE_TYPE_UNSPECIFIED = 0,
|
||||
ADDED = 1,
|
||||
REMOVED = 2,
|
||||
MODIFIED = 3,
|
||||
}
|
483
api/grpc-web/google/api/config_change_pb.js
Normal file
483
api/grpc-web/google/api/config_change_pb.js
Normal file
@ -0,0 +1,483 @@
|
||||
// source: google/api/config_change.proto
|
||||
/**
|
||||
* @fileoverview
|
||||
* @enhanceable
|
||||
* @suppress {missingRequire} reports error on implicit type usages.
|
||||
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||
* field starts with 'MSG_' and isn't a translatable message.
|
||||
* @public
|
||||
*/
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
var jspb = require('google-protobuf');
|
||||
var goog = jspb;
|
||||
var global = Function('return this')();
|
||||
|
||||
goog.exportSymbol('proto.google.api.Advice', null, global);
|
||||
goog.exportSymbol('proto.google.api.ChangeType', null, global);
|
||||
goog.exportSymbol('proto.google.api.ConfigChange', null, global);
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
* server response, or constructed directly in Javascript. The array is used
|
||||
* in place and becomes part of the constructed object. It is not cloned.
|
||||
* If no data is provided, the constructed object will be empty, but still
|
||||
* valid.
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.google.api.ConfigChange = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.ConfigChange.repeatedFields_, null);
|
||||
};
|
||||
goog.inherits(proto.google.api.ConfigChange, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.google.api.ConfigChange.displayName = 'proto.google.api.ConfigChange';
|
||||
}
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
* server response, or constructed directly in Javascript. The array is used
|
||||
* in place and becomes part of the constructed object. It is not cloned.
|
||||
* If no data is provided, the constructed object will be empty, but still
|
||||
* valid.
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.google.api.Advice = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.google.api.Advice, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.google.api.Advice.displayName = 'proto.google.api.Advice';
|
||||
}
|
||||
|
||||
/**
|
||||
* List of repeated fields within this message type.
|
||||
* @private {!Array<number>}
|
||||
* @const
|
||||
*/
|
||||
proto.google.api.ConfigChange.repeatedFields_ = [5];
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* Optional fields that are not set will be set to undefined.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||
* JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.google.api.ConfigChange.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.google.api.ConfigChange.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.google.api.ConfigChange} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.google.api.ConfigChange.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
element: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
oldValue: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||
newValue: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
||||
changeType: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
||||
advicesList: jspb.Message.toObjectList(msg.getAdvicesList(),
|
||||
proto.google.api.Advice.toObject, includeInstance)
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
obj.$jspbMessageInstance = msg;
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.google.api.ConfigChange}
|
||||
*/
|
||||
proto.google.api.ConfigChange.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.google.api.ConfigChange;
|
||||
return proto.google.api.ConfigChange.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.google.api.ConfigChange} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.google.api.ConfigChange}
|
||||
*/
|
||||
proto.google.api.ConfigChange.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setElement(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setOldValue(value);
|
||||
break;
|
||||
case 3:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setNewValue(value);
|
||||
break;
|
||||
case 4:
|
||||
var value = /** @type {!proto.google.api.ChangeType} */ (reader.readEnum());
|
||||
msg.setChangeType(value);
|
||||
break;
|
||||
case 5:
|
||||
var value = new proto.google.api.Advice;
|
||||
reader.readMessage(value,proto.google.api.Advice.deserializeBinaryFromReader);
|
||||
msg.addAdvices(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.google.api.ConfigChange.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.google.api.ConfigChange.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.google.api.ConfigChange} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.google.api.ConfigChange.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getElement();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getOldValue();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getNewValue();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
3,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getChangeType();
|
||||
if (f !== 0.0) {
|
||||
writer.writeEnum(
|
||||
4,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getAdvicesList();
|
||||
if (f.length > 0) {
|
||||
writer.writeRepeatedMessage(
|
||||
5,
|
||||
f,
|
||||
proto.google.api.Advice.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string element = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.google.api.ConfigChange.prototype.getElement = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.google.api.ConfigChange} returns this
|
||||
*/
|
||||
proto.google.api.ConfigChange.prototype.setElement = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string old_value = 2;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.google.api.ConfigChange.prototype.getOldValue = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.google.api.ConfigChange} returns this
|
||||
*/
|
||||
proto.google.api.ConfigChange.prototype.setOldValue = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string new_value = 3;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.google.api.ConfigChange.prototype.getNewValue = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.google.api.ConfigChange} returns this
|
||||
*/
|
||||
proto.google.api.ConfigChange.prototype.setNewValue = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional ChangeType change_type = 4;
|
||||
* @return {!proto.google.api.ChangeType}
|
||||
*/
|
||||
proto.google.api.ConfigChange.prototype.getChangeType = function() {
|
||||
return /** @type {!proto.google.api.ChangeType} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.google.api.ChangeType} value
|
||||
* @return {!proto.google.api.ConfigChange} returns this
|
||||
*/
|
||||
proto.google.api.ConfigChange.prototype.setChangeType = function(value) {
|
||||
return jspb.Message.setProto3EnumField(this, 4, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* repeated Advice advices = 5;
|
||||
* @return {!Array<!proto.google.api.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
|
||||
* @return {!proto.google.api.ConfigChange} returns this
|
||||
*/
|
||||
proto.google.api.ConfigChange.prototype.setAdvicesList = function(value) {
|
||||
return jspb.Message.setRepeatedWrapperField(this, 5, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.google.api.Advice=} opt_value
|
||||
* @param {number=} opt_index
|
||||
* @return {!proto.google.api.Advice}
|
||||
*/
|
||||
proto.google.api.ConfigChange.prototype.addAdvices = function(opt_value, opt_index) {
|
||||
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.google.api.Advice, opt_index);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the list making it empty but non-null.
|
||||
* @return {!proto.google.api.ConfigChange} returns this
|
||||
*/
|
||||
proto.google.api.ConfigChange.prototype.clearAdvicesList = function() {
|
||||
return this.setAdvicesList([]);
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* Optional fields that are not set will be set to undefined.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||
* JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.google.api.Advice.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.google.api.Advice.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.google.api.Advice} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.google.api.Advice.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
description: jspb.Message.getFieldWithDefault(msg, 2, "")
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
obj.$jspbMessageInstance = msg;
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.google.api.Advice}
|
||||
*/
|
||||
proto.google.api.Advice.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.google.api.Advice;
|
||||
return proto.google.api.Advice.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.google.api.Advice} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.google.api.Advice}
|
||||
*/
|
||||
proto.google.api.Advice.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 2:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setDescription(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.google.api.Advice.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.google.api.Advice.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.google.api.Advice} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.google.api.Advice.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getDescription();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string description = 2;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.google.api.Advice.prototype.getDescription = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.google.api.Advice} returns this
|
||||
*/
|
||||
proto.google.api.Advice.prototype.setDescription = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
proto.google.api.ChangeType = {
|
||||
CHANGE_TYPE_UNSPECIFIED: 0,
|
||||
ADDED: 1,
|
||||
REMOVED: 2,
|
||||
MODIFIED: 3
|
||||
};
|
||||
|
||||
goog.object.extend(exports, proto.google.api);
|
58
api/grpc-web/google/api/consumer_pb.d.ts
vendored
Normal file
58
api/grpc-web/google/api/consumer_pb.d.ts
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
import * as jspb from 'google-protobuf'
|
||||
|
||||
|
||||
|
||||
export class ProjectProperties extends jspb.Message {
|
||||
getPropertiesList(): Array<Property>;
|
||||
setPropertiesList(value: Array<Property>): ProjectProperties;
|
||||
clearPropertiesList(): ProjectProperties;
|
||||
addProperties(value?: Property, index?: number): Property;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ProjectProperties.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ProjectProperties): ProjectProperties.AsObject;
|
||||
static serializeBinaryToWriter(message: ProjectProperties, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ProjectProperties;
|
||||
static deserializeBinaryFromReader(message: ProjectProperties, reader: jspb.BinaryReader): ProjectProperties;
|
||||
}
|
||||
|
||||
export namespace ProjectProperties {
|
||||
export type AsObject = {
|
||||
propertiesList: Array<Property.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class Property extends jspb.Message {
|
||||
getName(): string;
|
||||
setName(value: string): Property;
|
||||
|
||||
getType(): Property.PropertyType;
|
||||
setType(value: Property.PropertyType): Property;
|
||||
|
||||
getDescription(): string;
|
||||
setDescription(value: string): Property;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Property.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Property): Property.AsObject;
|
||||
static serializeBinaryToWriter(message: Property, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Property;
|
||||
static deserializeBinaryFromReader(message: Property, reader: jspb.BinaryReader): Property;
|
||||
}
|
||||
|
||||
export namespace Property {
|
||||
export type AsObject = {
|
||||
name: string,
|
||||
type: Property.PropertyType,
|
||||
description: string,
|
||||
}
|
||||
|
||||
export enum PropertyType {
|
||||
UNSPECIFIED = 0,
|
||||
INT64 = 1,
|
||||
BOOL = 2,
|
||||
STRING = 3,
|
||||
DOUBLE = 4,
|
||||
}
|
||||
}
|
||||
|
424
api/grpc-web/google/api/consumer_pb.js
Normal file
424
api/grpc-web/google/api/consumer_pb.js
Normal file
@ -0,0 +1,424 @@
|
||||
// source: google/api/consumer.proto
|
||||
/**
|
||||
* @fileoverview
|
||||
* @enhanceable
|
||||
* @suppress {missingRequire} reports error on implicit type usages.
|
||||
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||
* field starts with 'MSG_' and isn't a translatable message.
|
||||
* @public
|
||||
*/
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
var jspb = require('google-protobuf');
|
||||
var goog = jspb;
|
||||
var global = Function('return this')();
|
||||
|
||||
goog.exportSymbol('proto.google.api.ProjectProperties', null, global);
|
||||
goog.exportSymbol('proto.google.api.Property', null, global);
|
||||
goog.exportSymbol('proto.google.api.Property.PropertyType', null, global);
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
* server response, or constructed directly in Javascript. The array is used
|
||||
* in place and becomes part of the constructed object. It is not cloned.
|
||||
* If no data is provided, the constructed object will be empty, but still
|
||||
* valid.
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.google.api.ProjectProperties = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.ProjectProperties.repeatedFields_, null);
|
||||
};
|
||||
goog.inherits(proto.google.api.ProjectProperties, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.google.api.ProjectProperties.displayName = 'proto.google.api.ProjectProperties';
|
||||
}
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
* server response, or constructed directly in Javascript. The array is used
|
||||
* in place and becomes part of the constructed object. It is not cloned.
|
||||
* If no data is provided, the constructed object will be empty, but still
|
||||
* valid.
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.google.api.Property = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.google.api.Property, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.google.api.Property.displayName = 'proto.google.api.Property';
|
||||
}
|
||||
|
||||
/**
|
||||
* List of repeated fields within this message type.
|
||||
* @private {!Array<number>}
|
||||
* @const
|
||||
*/
|
||||
proto.google.api.ProjectProperties.repeatedFields_ = [1];
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* Optional fields that are not set will be set to undefined.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||
* JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.google.api.ProjectProperties.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.google.api.ProjectProperties.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.google.api.ProjectProperties} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.google.api.ProjectProperties.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
propertiesList: jspb.Message.toObjectList(msg.getPropertiesList(),
|
||||
proto.google.api.Property.toObject, includeInstance)
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
obj.$jspbMessageInstance = msg;
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.google.api.ProjectProperties}
|
||||
*/
|
||||
proto.google.api.ProjectProperties.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.google.api.ProjectProperties;
|
||||
return proto.google.api.ProjectProperties.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.google.api.ProjectProperties} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.google.api.ProjectProperties}
|
||||
*/
|
||||
proto.google.api.ProjectProperties.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = new proto.google.api.Property;
|
||||
reader.readMessage(value,proto.google.api.Property.deserializeBinaryFromReader);
|
||||
msg.addProperties(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.google.api.ProjectProperties.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.google.api.ProjectProperties.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.google.api.ProjectProperties} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.google.api.ProjectProperties.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getPropertiesList();
|
||||
if (f.length > 0) {
|
||||
writer.writeRepeatedMessage(
|
||||
1,
|
||||
f,
|
||||
proto.google.api.Property.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* repeated Property properties = 1;
|
||||
* @return {!Array<!proto.google.api.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
|
||||
* @return {!proto.google.api.ProjectProperties} returns this
|
||||
*/
|
||||
proto.google.api.ProjectProperties.prototype.setPropertiesList = function(value) {
|
||||
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.google.api.Property=} opt_value
|
||||
* @param {number=} opt_index
|
||||
* @return {!proto.google.api.Property}
|
||||
*/
|
||||
proto.google.api.ProjectProperties.prototype.addProperties = function(opt_value, opt_index) {
|
||||
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.Property, opt_index);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the list making it empty but non-null.
|
||||
* @return {!proto.google.api.ProjectProperties} returns this
|
||||
*/
|
||||
proto.google.api.ProjectProperties.prototype.clearPropertiesList = function() {
|
||||
return this.setPropertiesList([]);
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* Optional fields that are not set will be set to undefined.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||
* JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.google.api.Property.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.google.api.Property.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.google.api.Property} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.google.api.Property.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
type: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
||||
description: jspb.Message.getFieldWithDefault(msg, 3, "")
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
obj.$jspbMessageInstance = msg;
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.google.api.Property}
|
||||
*/
|
||||
proto.google.api.Property.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.google.api.Property;
|
||||
return proto.google.api.Property.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.google.api.Property} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.google.api.Property}
|
||||
*/
|
||||
proto.google.api.Property.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setName(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {!proto.google.api.Property.PropertyType} */ (reader.readEnum());
|
||||
msg.setType(value);
|
||||
break;
|
||||
case 3:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setDescription(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.google.api.Property.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.google.api.Property.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.google.api.Property} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.google.api.Property.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getName();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getType();
|
||||
if (f !== 0.0) {
|
||||
writer.writeEnum(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getDescription();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
3,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
proto.google.api.Property.PropertyType = {
|
||||
UNSPECIFIED: 0,
|
||||
INT64: 1,
|
||||
BOOL: 2,
|
||||
STRING: 3,
|
||||
DOUBLE: 4
|
||||
};
|
||||
|
||||
/**
|
||||
* optional string name = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.google.api.Property.prototype.getName = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.google.api.Property} returns this
|
||||
*/
|
||||
proto.google.api.Property.prototype.setName = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional PropertyType type = 2;
|
||||
* @return {!proto.google.api.Property.PropertyType}
|
||||
*/
|
||||
proto.google.api.Property.prototype.getType = function() {
|
||||
return /** @type {!proto.google.api.Property.PropertyType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.google.api.Property.PropertyType} value
|
||||
* @return {!proto.google.api.Property} returns this
|
||||
*/
|
||||
proto.google.api.Property.prototype.setType = function(value) {
|
||||
return jspb.Message.setProto3EnumField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string description = 3;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.google.api.Property.prototype.getDescription = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.google.api.Property} returns this
|
||||
*/
|
||||
proto.google.api.Property.prototype.setDescription = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
goog.object.extend(exports, proto.google.api);
|
66
api/grpc-web/google/api/context_pb.d.ts
vendored
Normal file
66
api/grpc-web/google/api/context_pb.d.ts
vendored
Normal file
@ -0,0 +1,66 @@
|
||||
import * as jspb from 'google-protobuf'
|
||||
|
||||
|
||||
|
||||
export class Context extends jspb.Message {
|
||||
getRulesList(): Array<ContextRule>;
|
||||
setRulesList(value: Array<ContextRule>): Context;
|
||||
clearRulesList(): Context;
|
||||
addRules(value?: ContextRule, index?: number): ContextRule;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Context.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Context): Context.AsObject;
|
||||
static serializeBinaryToWriter(message: Context, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Context;
|
||||
static deserializeBinaryFromReader(message: Context, reader: jspb.BinaryReader): Context;
|
||||
}
|
||||
|
||||
export namespace Context {
|
||||
export type AsObject = {
|
||||
rulesList: Array<ContextRule.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class ContextRule extends jspb.Message {
|
||||
getSelector(): string;
|
||||
setSelector(value: string): ContextRule;
|
||||
|
||||
getRequestedList(): Array<string>;
|
||||
setRequestedList(value: Array<string>): ContextRule;
|
||||
clearRequestedList(): ContextRule;
|
||||
addRequested(value: string, index?: number): ContextRule;
|
||||
|
||||
getProvidedList(): Array<string>;
|
||||
setProvidedList(value: Array<string>): ContextRule;
|
||||
clearProvidedList(): ContextRule;
|
||||
addProvided(value: string, index?: number): ContextRule;
|
||||
|
||||
getAllowedRequestExtensionsList(): Array<string>;
|
||||
setAllowedRequestExtensionsList(value: Array<string>): ContextRule;
|
||||
clearAllowedRequestExtensionsList(): ContextRule;
|
||||
addAllowedRequestExtensions(value: string, index?: number): ContextRule;
|
||||
|
||||
getAllowedResponseExtensionsList(): Array<string>;
|
||||
setAllowedResponseExtensionsList(value: Array<string>): ContextRule;
|
||||
clearAllowedResponseExtensionsList(): ContextRule;
|
||||
addAllowedResponseExtensions(value: string, index?: number): ContextRule;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ContextRule.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ContextRule): ContextRule.AsObject;
|
||||
static serializeBinaryToWriter(message: ContextRule, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ContextRule;
|
||||
static deserializeBinaryFromReader(message: ContextRule, reader: jspb.BinaryReader): ContextRule;
|
||||
}
|
||||
|
||||
export namespace ContextRule {
|
||||
export type AsObject = {
|
||||
selector: string,
|
||||
requestedList: Array<string>,
|
||||
providedList: Array<string>,
|
||||
allowedRequestExtensionsList: Array<string>,
|
||||
allowedResponseExtensionsList: Array<string>,
|
||||
}
|
||||
}
|
||||
|
555
api/grpc-web/google/api/context_pb.js
Normal file
555
api/grpc-web/google/api/context_pb.js
Normal file
@ -0,0 +1,555 @@
|
||||
// source: google/api/context.proto
|
||||
/**
|
||||
* @fileoverview
|
||||
* @enhanceable
|
||||
* @suppress {missingRequire} reports error on implicit type usages.
|
||||
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||
* field starts with 'MSG_' and isn't a translatable message.
|
||||
* @public
|
||||
*/
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
var jspb = require('google-protobuf');
|
||||
var goog = jspb;
|
||||
var global = Function('return this')();
|
||||
|
||||
goog.exportSymbol('proto.google.api.Context', null, global);
|
||||
goog.exportSymbol('proto.google.api.ContextRule', null, global);
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
* server response, or constructed directly in Javascript. The array is used
|
||||
* in place and becomes part of the constructed object. It is not cloned.
|
||||
* If no data is provided, the constructed object will be empty, but still
|
||||
* valid.
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.google.api.Context = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Context.repeatedFields_, null);
|
||||
};
|
||||
goog.inherits(proto.google.api.Context, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.google.api.Context.displayName = 'proto.google.api.Context';
|
||||
}
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
* server response, or constructed directly in Javascript. The array is used
|
||||
* in place and becomes part of the constructed object. It is not cloned.
|
||||
* If no data is provided, the constructed object will be empty, but still
|
||||
* valid.
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.google.api.ContextRule = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.ContextRule.repeatedFields_, null);
|
||||
};
|
||||
goog.inherits(proto.google.api.ContextRule, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.google.api.ContextRule.displayName = 'proto.google.api.ContextRule';
|
||||
}
|
||||
|
||||
/**
|
||||
* List of repeated fields within this message type.
|
||||
* @private {!Array<number>}
|
||||
* @const
|
||||
*/
|
||||
proto.google.api.Context.repeatedFields_ = [1];
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* Optional fields that are not set will be set to undefined.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||
* JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.google.api.Context.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.google.api.Context.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.google.api.Context} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.google.api.Context.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
rulesList: jspb.Message.toObjectList(msg.getRulesList(),
|
||||
proto.google.api.ContextRule.toObject, includeInstance)
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
obj.$jspbMessageInstance = msg;
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.google.api.Context}
|
||||
*/
|
||||
proto.google.api.Context.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.google.api.Context;
|
||||
return proto.google.api.Context.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.google.api.Context} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.google.api.Context}
|
||||
*/
|
||||
proto.google.api.Context.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = new proto.google.api.ContextRule;
|
||||
reader.readMessage(value,proto.google.api.ContextRule.deserializeBinaryFromReader);
|
||||
msg.addRules(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.google.api.Context.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.google.api.Context.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.google.api.Context} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.google.api.Context.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getRulesList();
|
||||
if (f.length > 0) {
|
||||
writer.writeRepeatedMessage(
|
||||
1,
|
||||
f,
|
||||
proto.google.api.ContextRule.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* repeated ContextRule rules = 1;
|
||||
* @return {!Array<!proto.google.api.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
|
||||
* @return {!proto.google.api.Context} returns this
|
||||
*/
|
||||
proto.google.api.Context.prototype.setRulesList = function(value) {
|
||||
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.google.api.ContextRule=} opt_value
|
||||
* @param {number=} opt_index
|
||||
* @return {!proto.google.api.ContextRule}
|
||||
*/
|
||||
proto.google.api.Context.prototype.addRules = function(opt_value, opt_index) {
|
||||
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.ContextRule, opt_index);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the list making it empty but non-null.
|
||||
* @return {!proto.google.api.Context} returns this
|
||||
*/
|
||||
proto.google.api.Context.prototype.clearRulesList = function() {
|
||||
return this.setRulesList([]);
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* List of repeated fields within this message type.
|
||||
* @private {!Array<number>}
|
||||
* @const
|
||||
*/
|
||||
proto.google.api.ContextRule.repeatedFields_ = [2,3,4,5];
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* Optional fields that are not set will be set to undefined.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||
* JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.google.api.ContextRule.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.google.api.ContextRule.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.google.api.ContextRule} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.google.api.ContextRule.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
selector: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
requestedList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
|
||||
providedList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
||||
allowedRequestExtensionsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
|
||||
allowedResponseExtensionsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
obj.$jspbMessageInstance = msg;
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.google.api.ContextRule}
|
||||
*/
|
||||
proto.google.api.ContextRule.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.google.api.ContextRule;
|
||||
return proto.google.api.ContextRule.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.google.api.ContextRule} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.google.api.ContextRule}
|
||||
*/
|
||||
proto.google.api.ContextRule.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setSelector(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.addRequested(value);
|
||||
break;
|
||||
case 3:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.addProvided(value);
|
||||
break;
|
||||
case 4:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.addAllowedRequestExtensions(value);
|
||||
break;
|
||||
case 5:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.addAllowedResponseExtensions(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.google.api.ContextRule.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.google.api.ContextRule.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.google.api.ContextRule} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.google.api.ContextRule.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getSelector();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getRequestedList();
|
||||
if (f.length > 0) {
|
||||
writer.writeRepeatedString(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getProvidedList();
|
||||
if (f.length > 0) {
|
||||
writer.writeRepeatedString(
|
||||
3,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getAllowedRequestExtensionsList();
|
||||
if (f.length > 0) {
|
||||
writer.writeRepeatedString(
|
||||
4,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getAllowedResponseExtensionsList();
|
||||
if (f.length > 0) {
|
||||
writer.writeRepeatedString(
|
||||
5,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string selector = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.google.api.ContextRule.prototype.getSelector = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.google.api.ContextRule} returns this
|
||||
*/
|
||||
proto.google.api.ContextRule.prototype.setSelector = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* repeated string requested = 2;
|
||||
* @return {!Array<string>}
|
||||
*/
|
||||
proto.google.api.ContextRule.prototype.getRequestedList = function() {
|
||||
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!Array<string>} value
|
||||
* @return {!proto.google.api.ContextRule} returns this
|
||||
*/
|
||||
proto.google.api.ContextRule.prototype.setRequestedList = function(value) {
|
||||
return jspb.Message.setField(this, 2, value || []);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @param {number=} opt_index
|
||||
* @return {!proto.google.api.ContextRule} returns this
|
||||
*/
|
||||
proto.google.api.ContextRule.prototype.addRequested = function(value, opt_index) {
|
||||
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the list making it empty but non-null.
|
||||
* @return {!proto.google.api.ContextRule} returns this
|
||||
*/
|
||||
proto.google.api.ContextRule.prototype.clearRequestedList = function() {
|
||||
return this.setRequestedList([]);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* repeated string provided = 3;
|
||||
* @return {!Array<string>}
|
||||
*/
|
||||
proto.google.api.ContextRule.prototype.getProvidedList = function() {
|
||||
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!Array<string>} value
|
||||
* @return {!proto.google.api.ContextRule} returns this
|
||||
*/
|
||||
proto.google.api.ContextRule.prototype.setProvidedList = function(value) {
|
||||
return jspb.Message.setField(this, 3, value || []);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @param {number=} opt_index
|
||||
* @return {!proto.google.api.ContextRule} returns this
|
||||
*/
|
||||
proto.google.api.ContextRule.prototype.addProvided = function(value, opt_index) {
|
||||
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the list making it empty but non-null.
|
||||
* @return {!proto.google.api.ContextRule} returns this
|
||||
*/
|
||||
proto.google.api.ContextRule.prototype.clearProvidedList = function() {
|
||||
return this.setProvidedList([]);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* repeated string allowed_request_extensions = 4;
|
||||
* @return {!Array<string>}
|
||||
*/
|
||||
proto.google.api.ContextRule.prototype.getAllowedRequestExtensionsList = function() {
|
||||
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!Array<string>} value
|
||||
* @return {!proto.google.api.ContextRule} returns this
|
||||
*/
|
||||
proto.google.api.ContextRule.prototype.setAllowedRequestExtensionsList = function(value) {
|
||||
return jspb.Message.setField(this, 4, value || []);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @param {number=} opt_index
|
||||
* @return {!proto.google.api.ContextRule} returns this
|
||||
*/
|
||||
proto.google.api.ContextRule.prototype.addAllowedRequestExtensions = function(value, opt_index) {
|
||||
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the list making it empty but non-null.
|
||||
* @return {!proto.google.api.ContextRule} returns this
|
||||
*/
|
||||
proto.google.api.ContextRule.prototype.clearAllowedRequestExtensionsList = function() {
|
||||
return this.setAllowedRequestExtensionsList([]);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* repeated string allowed_response_extensions = 5;
|
||||
* @return {!Array<string>}
|
||||
*/
|
||||
proto.google.api.ContextRule.prototype.getAllowedResponseExtensionsList = function() {
|
||||
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!Array<string>} value
|
||||
* @return {!proto.google.api.ContextRule} returns this
|
||||
*/
|
||||
proto.google.api.ContextRule.prototype.setAllowedResponseExtensionsList = function(value) {
|
||||
return jspb.Message.setField(this, 5, value || []);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @param {number=} opt_index
|
||||
* @return {!proto.google.api.ContextRule} returns this
|
||||
*/
|
||||
proto.google.api.ContextRule.prototype.addAllowedResponseExtensions = function(value, opt_index) {
|
||||
return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the list making it empty but non-null.
|
||||
* @return {!proto.google.api.ContextRule} returns this
|
||||
*/
|
||||
proto.google.api.ContextRule.prototype.clearAllowedResponseExtensionsList = function() {
|
||||
return this.setAllowedResponseExtensionsList([]);
|
||||
};
|
||||
|
||||
|
||||
goog.object.extend(exports, proto.google.api);
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user