From 3ac5a0aedba7c50cb0eebf51a812d9dfec481d65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Cie=C5=9Blak?= Date: Fri, 3 Feb 2023 15:47:06 +0100 Subject: [PATCH] Refactor prehog & teleterm protos to match project conventions (#20810) * Adjust go_package of lib/prehog Go protobufs This makes them follow the pattern set out by api/proto and proto. * Adjust go_package of lib/teleterm Go protobufs * Use single buf.gen.yaml to generate JS protos This also entailed changing the location of lib/teleterm protos and changing the value of their package specifier to match the conventions in other parts of the codebase. This is a breaking change but that is fine for Connect as the protos are used locally only and each build ships with matching protobufs. * Make web/packages/teleterm use protobufs from gen-proto-js We used to copy protobufs over to web/packages/teleterm/src/services/tshd since webapps used to be in a separate repo. This is no longer the case, so we can just make teleterm use protobufs from gen-proto-js. * Move prehog & teleterm protos into proto/teleport/lib * Generate JS protos to gen/proto/js * Move lib/teleterm Go protobufs to gen/proto/go * Move lib/prehog Go protobufs to gen/proto/go * Rename lib/teleterm proto package * Re-enable linter rules for teleterm & prehog * Update prehogv1 path in usagereporter_test.go * Use except instead of ignore_only to allow Google API-style responses * Add UNARY_RPC to api/proto & proto * Ignore gen/ when running addlicense * buf-js.gen.yaml: Remove comment about lack of go_package for JS * Move prehog protos to proto/prehog/v1alpha * Adjust prehog's go_package to match proto package --- Makefile | 4 +- api/proto/buf.yaml | 15 + buf-connect-go.gen.yaml | 8 + buf-js.gen.yaml | 18 + buf.work.yaml | 2 - build.assets/genproto.sh | 26 +- .../proto/go}/prehog/v1alpha/connect.pb.go | 21 +- .../proto/go}/prehog/v1alpha/teleport.pb.go | 21 +- .../v1alphaconnect}/connect.connect.go | 4 +- .../v1alphaconnect}/teleport.connect.go | 4 +- .../lib/teleterm}/v1/access_request.pb.go | 266 +- .../go/teleport/lib/teleterm}/v1/app.pb.go | 121 +- .../lib/teleterm}/v1/auth_settings.pb.go | 147 +- .../teleport/lib/teleterm}/v1/cluster.pb.go | 346 +- .../teleport/lib/teleterm}/v1/database.pb.go | 90 +- .../teleport/lib/teleterm}/v1/gateway.pb.go | 107 +- .../go/teleport/lib/teleterm/v1/kube.pb.go | 191 + .../go/teleport/lib/teleterm}/v1/label.pb.go | 77 +- .../go/teleport/lib/teleterm}/v1/server.pb.go | 90 +- .../teleport/lib/teleterm}/v1/service.pb.go | 1953 +-- .../lib/teleterm}/v1/service_grpc.pb.go | 134 +- .../teleterm}/v1/tshd_events_service.pb.go | 252 +- .../v1/tshd_events_service_grpc.pb.go | 14 +- .../lib/teleterm/v1/usage_events.pb.go | 182 + .../js}/prehog/v1alpha/connect_grpc_pb.d.ts | 0 .../js}/prehog/v1alpha/connect_grpc_pb.js | 0 .../proto/js}/prehog/v1alpha/connect_pb.d.ts | 0 .../proto/js}/prehog/v1alpha/connect_pb.js | 0 .../js}/prehog/v1alpha/teleport_grpc_pb.d.ts | 0 .../js}/prehog/v1alpha/teleport_grpc_pb.js | 0 .../proto/js}/prehog/v1alpha/teleport_pb.d.ts | 0 .../proto/js}/prehog/v1alpha/teleport_pb.js | 0 .../teleterm}/v1/access_request_grpc_pb.js | 0 .../lib/teleterm}/v1/access_request_pb.d.ts | 4 +- .../lib/teleterm}/v1/access_request_pb.js | 530 +- .../teleport/lib/teleterm}/v1/app_grpc_pb.js | 0 .../js/teleport/lib/teleterm}/v1/app_pb.d.ts | 14 +- .../js/teleport/lib/teleterm}/v1/app_pb.js | 210 +- .../lib/teleterm}/v1/auth_settings_grpc_pb.js | 0 .../lib/teleterm}/v1/auth_settings_pb.d.ts | 4 +- .../lib/teleterm}/v1/auth_settings_pb.js | 178 +- .../lib/teleterm}/v1/cluster_grpc_pb.js | 0 .../teleport/lib/teleterm}/v1/cluster_pb.d.ts | 4 +- .../teleport/lib/teleterm}/v1/cluster_pb.js | 766 +- .../lib/teleterm}/v1/database_grpc_pb.js | 0 .../lib/teleterm}/v1/database_pb.d.ts | 14 +- .../teleport/lib/teleterm}/v1/database_pb.js | 126 +- .../lib/teleterm}/v1/gateway_grpc_pb.js | 0 .../teleport/lib/teleterm}/v1/gateway_pb.d.ts | 4 +- .../teleport/lib/teleterm}/v1/gateway_pb.js | 96 +- .../teleport/lib/teleterm}/v1/kube_grpc_pb.js | 0 .../js/teleport/lib/teleterm}/v1/kube_pb.d.ts | 14 +- .../js/teleport/lib/teleterm}/v1/kube_pb.js | 96 +- .../lib/teleterm}/v1/label_grpc_pb.js | 0 .../teleport/lib/teleterm}/v1/label_pb.d.ts | 4 +- .../js/teleport/lib/teleterm}/v1/label_pb.js | 54 +- .../lib/teleterm}/v1/server_grpc_pb.js | 0 .../teleport/lib/teleterm}/v1/server_pb.d.ts | 14 +- .../js/teleport/lib/teleterm}/v1/server_pb.js | 114 +- .../lib/teleterm/v1/service_grpc_pb.d.ts | 591 + .../lib/teleterm/v1/service_grpc_pb.js | 1065 ++ .../teleport/lib/teleterm}/v1/service_pb.d.ts | 136 +- .../teleport/lib/teleterm}/v1/service_pb.js | 3612 ++--- .../v1/tshd_events_service_grpc_pb.d.ts | 58 + .../v1/tshd_events_service_grpc_pb.js | 99 + .../teleterm}/v1/tshd_events_service_pb.d.ts | 4 +- .../teleterm}/v1/tshd_events_service_pb.js | 356 +- .../lib/teleterm}/v1/usage_events_grpc_pb.js | 0 .../lib/teleterm}/v1/usage_events_pb.d.ts | 6 +- .../lib/teleterm}/v1/usage_events_pb.js | 62 +- integration/proxy/teleterm_test.go | 2 +- lib/prehog/buf-teleterm.gen.yaml | 19 - lib/prehog/buf.gen.yaml | 16 - lib/prehog/proto/buf.yaml | 6 - lib/services/usagereporter.go | 4 +- lib/services/usagereporter_discover.go | 2 +- lib/services/usagereporter_test.go | 2 +- lib/teleterm/README.md | 5 +- lib/teleterm/api/proto/buf.yaml | 20 - .../api/protogen/golang/v1/kube.pb.go | 187 - .../api/protogen/golang/v1/usage_events.pb.go | 179 - .../api/protogen/js/v1/access_request_pb.d.ts | 222 - .../api/protogen/js/v1/access_request_pb.js | 1644 --- lib/teleterm/api/protogen/js/v1/app_pb.js | 647 - .../api/protogen/js/v1/auth_settings_pb.d.ts | 87 - .../api/protogen/js/v1/auth_settings_pb.js | 622 - .../api/protogen/js/v1/database_pb.js | 412 - .../api/protogen/js/v1/gateway_pb.d.ts | 60 - lib/teleterm/api/protogen/js/v1/kube_pb.d.ts | 39 - lib/teleterm/api/protogen/js/v1/label_pb.d.ts | 32 - lib/teleterm/api/protogen/js/v1/label_pb.js | 200 - lib/teleterm/api/protogen/js/v1/server_pb.js | 352 - .../api/protogen/js/v1/service_grpc_pb.d.ts | 591 - .../api/protogen/js/v1/service_grpc_pb.js | 1065 -- .../api/protogen/js/v1/service_pb.d.ts | 1536 --- .../js/v1/tshd_events_service_grpc_pb.d.ts | 58 - .../js/v1/tshd_events_service_grpc_pb.js | 99 - .../api/protogen/js/v1/usage_events_pb.d.ts | 36 - lib/teleterm/apiserver/apiserver.go | 2 +- lib/teleterm/apiserver/handler/handler.go | 2 +- .../handler/handler_access_requests.go | 2 +- .../apiserver/handler/handler_apps.go | 2 +- .../apiserver/handler/handler_auth.go | 2 +- .../apiserver/handler/handler_clusters.go | 2 +- .../apiserver/handler/handler_databases.go | 2 +- .../handler/handler_file_transfer.go | 2 +- .../apiserver/handler/handler_gateways.go | 2 +- .../apiserver/handler/handler_kubes.go | 2 +- .../apiserver/handler/handler_servers.go | 2 +- .../apiserver/handler/handler_tshd_events.go | 2 +- .../apiserver/handler/handler_usage_events.go | 2 +- lib/teleterm/buf.gen.yaml | 25 - lib/teleterm/clusters/cluster.go | 2 +- .../clusters/cluster_access_requests.go | 2 +- lib/teleterm/clusters/cluster_auth.go | 2 +- lib/teleterm/clusters/cluster_auth_test.go | 2 +- lib/teleterm/clusters/cluster_databases.go | 2 +- .../clusters/cluster_file_transfer.go | 2 +- lib/teleterm/clusters/cluster_kubes.go | 2 +- lib/teleterm/clusters/cluster_servers.go | 2 +- lib/teleterm/daemon/daemon.go | 4 +- lib/teleterm/daemon/gateway_cert_reissuer.go | 2 +- .../daemon/gateway_cert_reissuer_test.go | 2 +- lib/teleterm/daemon/usagereporter.go | 6 +- proto/buf.yaml | 30 + .../prehog/v1alpha/connect.proto | 2 +- .../prehog/v1alpha/teleport.proto | 2 +- .../lib/teleterm}/v1/access_request.proto | 4 +- .../teleport/lib/teleterm}/v1/app.proto | 6 +- .../lib/teleterm}/v1/auth_settings.proto | 4 +- .../teleport/lib/teleterm}/v1/cluster.proto | 4 +- .../teleport/lib/teleterm}/v1/database.proto | 6 +- .../teleport/lib/teleterm}/v1/gateway.proto | 4 +- .../teleport/lib/teleterm}/v1/kube.proto | 6 +- .../teleport/lib/teleterm}/v1/label.proto | 4 +- .../teleport/lib/teleterm}/v1/server.proto | 6 +- .../teleport/lib/teleterm}/v1/service.proto | 26 +- .../teleterm}/v1/tshd_events_service.proto | 4 +- .../lib/teleterm}/v1/usage_events.proto | 4 +- tsconfig.json | 3 + web/packages/build/jest/config.js | 1 + web/packages/build/webpack/webpack.base.js | 1 + web/packages/teleterm/README.md | 28 +- .../src/services/tshd/createClient.ts | 9 +- .../services/tshd/createFileTransferStream.ts | 4 +- .../src/services/tshd/fixtures/mocks.ts | 10 +- .../src/services/tshd/mapUsageEvent.ts | 5 +- .../teleterm/src/services/tshd/middleware.ts | 1 - .../tshd/prehog/v1alpha/connect_grpc_pb.d.ts | 42 - .../tshd/prehog/v1alpha/connect_grpc_pb.js | 45 - .../tshd/prehog/v1alpha/connect_pb.d.ts | 327 - .../tshd/prehog/v1alpha/connect_pb.js | 2219 --- .../tshd/prehog/v1alpha/teleport_grpc_pb.d.ts | 42 - .../tshd/prehog/v1alpha/teleport_grpc_pb.js | 60 - .../tshd/prehog/v1alpha/teleport_pb.d.ts | 433 - .../tshd/prehog/v1alpha/teleport_pb.js | 2909 ---- .../teleterm/src/services/tshd/types.ts | 27 +- .../tshd/v1/access_request_grpc_pb.js | 1 - .../src/services/tshd/v1/app_grpc_pb.js | 1 - .../teleterm/src/services/tshd/v1/app_pb.d.ts | 92 - .../services/tshd/v1/auth_settings_grpc_pb.js | 1 - .../src/services/tshd/v1/cluster_grpc_pb.js | 1 - .../src/services/tshd/v1/cluster_pb.d.ts | 279 - .../src/services/tshd/v1/cluster_pb.js | 2035 --- .../src/services/tshd/v1/database_grpc_pb.js | 1 - .../src/services/tshd/v1/database_pb.d.ts | 59 - .../src/services/tshd/v1/gateway_grpc_pb.js | 1 - .../src/services/tshd/v1/gateway_pb.js | 410 - .../src/services/tshd/v1/kube_grpc_pb.js | 1 - .../teleterm/src/services/tshd/v1/kube_pb.js | 262 - .../src/services/tshd/v1/label_grpc_pb.js | 1 - .../src/services/tshd/v1/server_grpc_pb.js | 1 - .../src/services/tshd/v1/server_pb.d.ts | 51 - .../src/services/tshd/v1/service_grpc_pb.d.ts | 591 - .../src/services/tshd/v1/service_grpc_pb.js | 1065 -- .../src/services/tshd/v1/service_pb.js | 11133 ---------------- .../tshd/v1/tshd_events_service_grpc_pb.d.ts | 58 - .../tshd/v1/tshd_events_service_grpc_pb.js | 99 - .../tshd/v1/tshd_events_service_pb.d.ts | 167 - .../tshd/v1/tshd_events_service_pb.js | 1086 -- .../tshd/v1/usage_events_grpc_pb.d.ts | 41 - .../services/tshd/v1/usage_events_grpc_pb.js | 1 - .../src/services/tshd/v1/usage_events_pb.js | 223 - .../teleterm/src/services/tshdEvents/index.ts | 4 +- web/packages/teleterm/src/types.ts | 3 +- .../useTshFileTransferHandlers.ts | 2 +- .../fileTransferClient/fileTransferService.ts | 7 +- 187 files changed, 7457 insertions(+), 37051 deletions(-) create mode 100644 buf-connect-go.gen.yaml create mode 100644 buf-js.gen.yaml rename {lib/prehog/gen => gen/proto/go}/prehog/v1alpha/connect.pb.go (96%) rename {lib/prehog/gen => gen/proto/go}/prehog/v1alpha/teleport.pb.go (99%) rename {lib/prehog/gen/prehog/v1alpha/prehogv1alphaconnect => gen/proto/go/prehog/v1alpha/v1alphaconnect}/connect.connect.go (97%) rename {lib/prehog/gen/prehog/v1alpha/prehogv1alphaconnect => gen/proto/go/prehog/v1alpha/v1alphaconnect}/teleport.connect.go (98%) rename {lib/teleterm/api/protogen/golang => gen/proto/go/teleport/lib/teleterm}/v1/access_request.pb.go (51%) rename {lib/teleterm/api/protogen/golang => gen/proto/go/teleport/lib/teleterm}/v1/app.pb.go (59%) rename {lib/teleterm/api/protogen/golang => gen/proto/go/teleport/lib/teleterm}/v1/auth_settings.pb.go (52%) rename {lib/teleterm/api/protogen/golang => gen/proto/go/teleport/lib/teleterm}/v1/cluster.pb.go (51%) rename {lib/teleterm/api/protogen/golang => gen/proto/go/teleport/lib/teleterm}/v1/database.pb.go (60%) rename {lib/teleterm/api/protogen/golang => gen/proto/go/teleport/lib/teleterm}/v1/gateway.pb.go (56%) create mode 100644 gen/proto/go/teleport/lib/teleterm/v1/kube.pb.go rename {lib/teleterm/api/protogen/golang => gen/proto/go/teleport/lib/teleterm}/v1/label.pb.go (51%) rename {lib/teleterm/api/protogen/golang => gen/proto/go/teleport/lib/teleterm}/v1/server.pb.go (56%) rename {lib/teleterm/api/protogen/golang => gen/proto/go/teleport/lib/teleterm}/v1/service.pb.go (57%) rename {lib/teleterm/api/protogen/golang => gen/proto/go/teleport/lib/teleterm}/v1/service_grpc.pb.go (90%) rename {lib/teleterm/api/protogen/golang => gen/proto/go/teleport/lib/teleterm}/v1/tshd_events_service.pb.go (52%) rename {lib/teleterm/api/protogen/golang => gen/proto/go/teleport/lib/teleterm}/v1/tshd_events_service_grpc.pb.go (91%) create mode 100644 gen/proto/go/teleport/lib/teleterm/v1/usage_events.pb.go rename {lib/prehog/gen-js => gen/proto/js}/prehog/v1alpha/connect_grpc_pb.d.ts (100%) rename {lib/prehog/gen-js => gen/proto/js}/prehog/v1alpha/connect_grpc_pb.js (100%) rename {lib/prehog/gen-js => gen/proto/js}/prehog/v1alpha/connect_pb.d.ts (100%) rename {lib/prehog/gen-js => gen/proto/js}/prehog/v1alpha/connect_pb.js (100%) rename {lib/prehog/gen-js => gen/proto/js}/prehog/v1alpha/teleport_grpc_pb.d.ts (100%) rename {lib/prehog/gen-js => gen/proto/js}/prehog/v1alpha/teleport_grpc_pb.js (100%) rename {lib/prehog/gen-js => gen/proto/js}/prehog/v1alpha/teleport_pb.d.ts (100%) rename {lib/prehog/gen-js => gen/proto/js}/prehog/v1alpha/teleport_pb.js (100%) rename {lib/teleterm/api/protogen/js => gen/proto/js/teleport/lib/teleterm}/v1/access_request_grpc_pb.js (100%) rename {web/packages/teleterm/src/services/tshd => gen/proto/js/teleport/lib/teleterm}/v1/access_request_pb.d.ts (98%) rename {web/packages/teleterm/src/services/tshd => gen/proto/js/teleport/lib/teleterm}/v1/access_request_pb.js (59%) rename {lib/teleterm/api/protogen/js => gen/proto/js/teleport/lib/teleterm}/v1/app_grpc_pb.js (100%) rename {lib/teleterm/api/protogen/js => gen/proto/js/teleport/lib/teleterm}/v1/app_pb.d.ts (83%) rename {web/packages/teleterm/src/services/tshd => gen/proto/js/teleport/lib/teleterm}/v1/app_pb.js (60%) rename {lib/teleterm/api/protogen/js => gen/proto/js/teleport/lib/teleterm}/v1/auth_settings_grpc_pb.js (100%) rename {web/packages/teleterm/src/services/tshd => gen/proto/js/teleport/lib/teleterm}/v1/auth_settings_pb.d.ts (97%) rename {web/packages/teleterm/src/services/tshd => gen/proto/js/teleport/lib/teleterm}/v1/auth_settings_pb.js (62%) rename {lib/teleterm/api/protogen/js => gen/proto/js/teleport/lib/teleterm}/v1/cluster_grpc_pb.js (100%) rename {lib/teleterm/api/protogen/js => gen/proto/js/teleport/lib/teleterm}/v1/cluster_pb.d.ts (99%) rename {lib/teleterm/api/protogen/js => gen/proto/js/teleport/lib/teleterm}/v1/cluster_pb.js (54%) rename {lib/teleterm/api/protogen/js => gen/proto/js/teleport/lib/teleterm}/v1/database_grpc_pb.js (100%) rename {lib/teleterm/api/protogen/js => gen/proto/js/teleport/lib/teleterm}/v1/database_pb.d.ts (72%) rename {web/packages/teleterm/src/services/tshd => gen/proto/js/teleport/lib/teleterm}/v1/database_pb.js (61%) rename {lib/teleterm/api/protogen/js => gen/proto/js/teleport/lib/teleterm}/v1/gateway_grpc_pb.js (100%) rename {web/packages/teleterm/src/services/tshd => gen/proto/js/teleport/lib/teleterm}/v1/gateway_pb.d.ts (95%) rename {lib/teleterm/api/protogen/js => gen/proto/js/teleport/lib/teleterm}/v1/gateway_pb.js (68%) rename {lib/teleterm/api/protogen/js => gen/proto/js/teleport/lib/teleterm}/v1/kube_grpc_pb.js (100%) rename {web/packages/teleterm/src/services/tshd => gen/proto/js/teleport/lib/teleterm}/v1/kube_pb.d.ts (64%) rename {lib/teleterm/api/protogen/js => gen/proto/js/teleport/lib/teleterm}/v1/kube_pb.js (59%) rename {lib/teleterm/api/protogen/js => gen/proto/js/teleport/lib/teleterm}/v1/label_grpc_pb.js (100%) rename {web/packages/teleterm/src/services/tshd => gen/proto/js/teleport/lib/teleterm}/v1/label_pb.d.ts (91%) rename {web/packages/teleterm/src/services/tshd => gen/proto/js/teleport/lib/teleterm}/v1/label_pb.js (67%) rename {lib/teleterm/api/protogen/js => gen/proto/js/teleport/lib/teleterm}/v1/server_grpc_pb.js (100%) rename {lib/teleterm/api/protogen/js => gen/proto/js/teleport/lib/teleterm}/v1/server_pb.d.ts (69%) rename {web/packages/teleterm/src/services/tshd => gen/proto/js/teleport/lib/teleterm}/v1/server_pb.js (61%) create mode 100644 gen/proto/js/teleport/lib/teleterm/v1/service_grpc_pb.d.ts create mode 100644 gen/proto/js/teleport/lib/teleterm/v1/service_grpc_pb.js rename {web/packages/teleterm/src/services/tshd => gen/proto/js/teleport/lib/teleterm}/v1/service_pb.d.ts (90%) rename {lib/teleterm/api/protogen/js => gen/proto/js/teleport/lib/teleterm}/v1/service_pb.js (60%) create mode 100644 gen/proto/js/teleport/lib/teleterm/v1/tshd_events_service_grpc_pb.d.ts create mode 100644 gen/proto/js/teleport/lib/teleterm/v1/tshd_events_service_grpc_pb.js rename {lib/teleterm/api/protogen/js => gen/proto/js/teleport/lib/teleterm}/v1/tshd_events_service_pb.d.ts (98%) rename {lib/teleterm/api/protogen/js => gen/proto/js/teleport/lib/teleterm}/v1/tshd_events_service_pb.js (59%) rename {lib/teleterm/api/protogen/js => gen/proto/js/teleport/lib/teleterm}/v1/usage_events_grpc_pb.js (100%) rename {web/packages/teleterm/src/services/tshd => gen/proto/js/teleport/lib/teleterm}/v1/usage_events_pb.d.ts (88%) rename {lib/teleterm/api/protogen/js => gen/proto/js/teleport/lib/teleterm}/v1/usage_events_pb.js (63%) delete mode 100644 lib/prehog/buf-teleterm.gen.yaml delete mode 100644 lib/prehog/buf.gen.yaml delete mode 100644 lib/prehog/proto/buf.yaml delete mode 100644 lib/teleterm/api/proto/buf.yaml delete mode 100644 lib/teleterm/api/protogen/golang/v1/kube.pb.go delete mode 100644 lib/teleterm/api/protogen/golang/v1/usage_events.pb.go delete mode 100644 lib/teleterm/api/protogen/js/v1/access_request_pb.d.ts delete mode 100644 lib/teleterm/api/protogen/js/v1/access_request_pb.js delete mode 100644 lib/teleterm/api/protogen/js/v1/app_pb.js delete mode 100644 lib/teleterm/api/protogen/js/v1/auth_settings_pb.d.ts delete mode 100644 lib/teleterm/api/protogen/js/v1/auth_settings_pb.js delete mode 100644 lib/teleterm/api/protogen/js/v1/database_pb.js delete mode 100644 lib/teleterm/api/protogen/js/v1/gateway_pb.d.ts delete mode 100644 lib/teleterm/api/protogen/js/v1/kube_pb.d.ts delete mode 100644 lib/teleterm/api/protogen/js/v1/label_pb.d.ts delete mode 100644 lib/teleterm/api/protogen/js/v1/label_pb.js delete mode 100644 lib/teleterm/api/protogen/js/v1/server_pb.js delete mode 100644 lib/teleterm/api/protogen/js/v1/service_grpc_pb.d.ts delete mode 100644 lib/teleterm/api/protogen/js/v1/service_grpc_pb.js delete mode 100644 lib/teleterm/api/protogen/js/v1/service_pb.d.ts delete mode 100644 lib/teleterm/api/protogen/js/v1/tshd_events_service_grpc_pb.d.ts delete mode 100644 lib/teleterm/api/protogen/js/v1/tshd_events_service_grpc_pb.js delete mode 100644 lib/teleterm/api/protogen/js/v1/usage_events_pb.d.ts delete mode 100644 lib/teleterm/buf.gen.yaml rename {lib/prehog/proto => proto}/prehog/v1alpha/connect.proto (96%) rename {lib/prehog/proto => proto}/prehog/v1alpha/teleport.proto (99%) rename {lib/teleterm/api/proto => proto/teleport/lib/teleterm}/v1/access_request.proto (94%) rename {lib/teleterm/api/proto => proto/teleport/lib/teleterm}/v1/app.proto (90%) rename {lib/teleterm/api/proto => proto/teleport/lib/teleterm}/v1/auth_settings.proto (93%) rename {lib/teleterm/api/proto => proto/teleport/lib/teleterm}/v1/cluster.proto (96%) rename {lib/teleterm/api/proto => proto/teleport/lib/teleterm}/v1/database.proto (87%) rename {lib/teleterm/api/proto => proto/teleport/lib/teleterm}/v1/gateway.proto (94%) rename {lib/teleterm/api/proto => proto/teleport/lib/teleterm}/v1/kube.proto (82%) rename {lib/teleterm/api/proto => proto/teleport/lib/teleterm}/v1/label.proto (85%) rename {lib/teleterm/api/proto => proto/teleport/lib/teleterm}/v1/server.proto (85%) rename {lib/teleterm/api/proto => proto/teleport/lib/teleterm}/v1/service.proto (96%) rename {lib/teleterm/api/proto => proto/teleport/lib/teleterm}/v1/tshd_events_service.proto (95%) rename {lib/teleterm/api/proto => proto/teleport/lib/teleterm}/v1/usage_events.proto (85%) delete mode 100644 web/packages/teleterm/src/services/tshd/prehog/v1alpha/connect_grpc_pb.d.ts delete mode 100644 web/packages/teleterm/src/services/tshd/prehog/v1alpha/connect_grpc_pb.js delete mode 100644 web/packages/teleterm/src/services/tshd/prehog/v1alpha/connect_pb.d.ts delete mode 100644 web/packages/teleterm/src/services/tshd/prehog/v1alpha/connect_pb.js delete mode 100644 web/packages/teleterm/src/services/tshd/prehog/v1alpha/teleport_grpc_pb.d.ts delete mode 100644 web/packages/teleterm/src/services/tshd/prehog/v1alpha/teleport_grpc_pb.js delete mode 100644 web/packages/teleterm/src/services/tshd/prehog/v1alpha/teleport_pb.d.ts delete mode 100644 web/packages/teleterm/src/services/tshd/prehog/v1alpha/teleport_pb.js delete mode 100644 web/packages/teleterm/src/services/tshd/v1/access_request_grpc_pb.js delete mode 100644 web/packages/teleterm/src/services/tshd/v1/app_grpc_pb.js delete mode 100644 web/packages/teleterm/src/services/tshd/v1/app_pb.d.ts delete mode 100644 web/packages/teleterm/src/services/tshd/v1/auth_settings_grpc_pb.js delete mode 100644 web/packages/teleterm/src/services/tshd/v1/cluster_grpc_pb.js delete mode 100644 web/packages/teleterm/src/services/tshd/v1/cluster_pb.d.ts delete mode 100644 web/packages/teleterm/src/services/tshd/v1/cluster_pb.js delete mode 100644 web/packages/teleterm/src/services/tshd/v1/database_grpc_pb.js delete mode 100644 web/packages/teleterm/src/services/tshd/v1/database_pb.d.ts delete mode 100644 web/packages/teleterm/src/services/tshd/v1/gateway_grpc_pb.js delete mode 100644 web/packages/teleterm/src/services/tshd/v1/gateway_pb.js delete mode 100644 web/packages/teleterm/src/services/tshd/v1/kube_grpc_pb.js delete mode 100644 web/packages/teleterm/src/services/tshd/v1/kube_pb.js delete mode 100644 web/packages/teleterm/src/services/tshd/v1/label_grpc_pb.js delete mode 100644 web/packages/teleterm/src/services/tshd/v1/server_grpc_pb.js delete mode 100644 web/packages/teleterm/src/services/tshd/v1/server_pb.d.ts delete mode 100644 web/packages/teleterm/src/services/tshd/v1/service_grpc_pb.d.ts delete mode 100644 web/packages/teleterm/src/services/tshd/v1/service_grpc_pb.js delete mode 100644 web/packages/teleterm/src/services/tshd/v1/service_pb.js delete mode 100644 web/packages/teleterm/src/services/tshd/v1/tshd_events_service_grpc_pb.d.ts delete mode 100644 web/packages/teleterm/src/services/tshd/v1/tshd_events_service_grpc_pb.js delete mode 100644 web/packages/teleterm/src/services/tshd/v1/tshd_events_service_pb.d.ts delete mode 100644 web/packages/teleterm/src/services/tshd/v1/tshd_events_service_pb.js delete mode 100644 web/packages/teleterm/src/services/tshd/v1/usage_events_grpc_pb.d.ts delete mode 100644 web/packages/teleterm/src/services/tshd/v1/usage_events_grpc_pb.js delete mode 100644 web/packages/teleterm/src/services/tshd/v1/usage_events_pb.js diff --git a/Makefile b/Makefile index ab50da13a8141..d7b2aae80ddc9 100644 --- a/Makefile +++ b/Makefile @@ -891,11 +891,9 @@ ADDLICENSE_ARGS := -c 'Gravitational, Inc' -l apache \ -ignore 'api/version.go' \ -ignore 'docs/pages/includes/**/*.go' \ -ignore 'e/**' \ + -ignore 'gen/**' \ -ignore 'gitref.go' \ -ignore 'lib/srv/desktop/rdp/rdpclient/target/**' \ - -ignore 'lib/teleterm/api/protogen/**' \ - -ignore 'lib/prehog/gen/**' \ - -ignore 'lib/prehog/gen-js/**' \ -ignore 'lib/web/build/**' \ -ignore 'version.go' \ -ignore 'webassets/**' \ diff --git a/api/proto/buf.yaml b/api/proto/buf.yaml index 52e522611476e..4fa8aca094273 100644 --- a/api/proto/buf.yaml +++ b/api/proto/buf.yaml @@ -7,6 +7,7 @@ lint: use: - DEFAULT - PACKAGE_NO_IMPORT_CYCLE + - UNARY_RPC # Top-level types require comments. - COMMENT_ENUM - COMMENT_MESSAGE @@ -33,6 +34,20 @@ lint: PACKAGE_VERSION_SUFFIX: - teleport/legacy/client/proto/joinservice.proto - teleport/legacy/types/webauthn/webauthn.proto + # Allow only certain services to use streaming RPCs. + # + # We should avoid streaming RPCs until we have a compelling reason to use them (e.g. the + # implementation needs 1-N messages or the server cannot dial directly to the client). + # + # Check out the links below. If you still have questions or doubts, reach out to @codingllama. + # + # https://docs.buf.build/lint/rules#unary_rpc + # https://github.com/gravitational/teleport/pull/16043#issuecomment-1235728212 + # https://github.com/twitchtv/twirp/issues/70#issuecomment-470367807 + UNARY_RPC: + - teleport/devicetrust/v1/devicetrust_service.proto + - teleport/legacy/client/proto/joinservice.proto + - teleport/proxy/v1/proxy_service.proto breaking: use: - FILE diff --git a/buf-connect-go.gen.yaml b/buf-connect-go.gen.yaml new file mode 100644 index 0000000000000..e642b049138e7 --- /dev/null +++ b/buf-connect-go.gen.yaml @@ -0,0 +1,8 @@ +version: v1 +plugins: + - name: go + path: lib/prehog/bin/protoc-gen-go + out: . + - name: connect-go + path: lib/prehog/bin/protoc-gen-connect-go + out: . diff --git a/buf-js.gen.yaml b/buf-js.gen.yaml new file mode 100644 index 0000000000000..d764cba70dac2 --- /dev/null +++ b/buf-js.gen.yaml @@ -0,0 +1,18 @@ +version: v1 +plugins: + # https://github.com/protocolbuffers/protobuf/tree/v3.20.1/js + - name: js + out: gen/proto/js + opt: + - import_style=commonjs,binary + + # https://github.com/grpc/grpc-node/tree/grpc-tools%401.11.2/packages/grpc-tools/ + - name: grpc + out: gen/proto/js + opt: grpc_js + path: grpc_tools_node_protoc_plugin + + # https://github.com/agreatfool/grpc_tools_node_protoc_ts/tree/v5.0.1 + - name: ts + out: gen/proto/js + opt: "service=grpc-node" diff --git a/buf.work.yaml b/buf.work.yaml index b04eb28bbbb3b..ed56c80c50ae3 100644 --- a/buf.work.yaml +++ b/buf.work.yaml @@ -1,6 +1,4 @@ version: v1 directories: - api/proto - - lib/prehog/proto - - lib/teleterm/api/proto - proto diff --git a/build.assets/genproto.sh b/build.assets/genproto.sh index d17cc9a37c74f..6818ac1d4bfce 100755 --- a/build.assets/genproto.sh +++ b/build.assets/genproto.sh @@ -10,9 +10,8 @@ main() { # Generated protos are written to # /github.com/gravitational/teleport/..., so we copy them to # the correct relative path. - trap 'rm -fr github.com' EXIT # don't leave github.com/ behind - # cleanup gen/proto folders - rm -fr api/gen/proto gen/proto lib/teleterm/api/protogen lib/prehog/gen lib/prehog/gen-js + trap 'rm -fr github.com' EXIT # don't leave github.com/ behind + rm -fr api/gen/proto gen/proto # cleanup gen/proto folders # Generate Gogo protos. buf generate --template=buf-gogo.gen.yaml api/proto @@ -24,16 +23,17 @@ main() { --path=api/proto/teleport/devicetrust/ \ --path=api/proto/teleport/loginrule/ \ --path=api/proto/teleport/proxy/ \ - --path=proto/teleport/lib/multiplexer/ - buf generate --template=lib/prehog/buf.gen.yaml lib/prehog/proto - - # Generate lib/teleterm & JS protos. - # TODO(ravicious): Refactor generating JS protos to follow the approach from above, that is have a - # separate call to generate Go protos and another for JS protos instead of having - # teleterm-specific buf.gen.yaml files. - # https://github.com/gravitational/teleport/pull/19774#discussion_r1061524458 - buf generate --template=lib/prehog/buf-teleterm.gen.yaml lib/prehog/proto - buf generate --template=lib/teleterm/buf.gen.yaml lib/teleterm/api/proto + --path=proto/teleport/lib/multiplexer/ \ + --path=proto/teleport/lib/teleterm/ + + # Generate connect-go protos. + buf generate --template=buf-connect-go.gen.yaml \ + --path=proto/prehog/ + + # Generate JS protos. + buf generate --template=buf-js.gen.yaml \ + --path=proto/prehog/ \ + --path=proto/teleport/lib/teleterm/ cp -r github.com/gravitational/teleport/* . } diff --git a/lib/prehog/gen/prehog/v1alpha/connect.pb.go b/gen/proto/go/prehog/v1alpha/connect.pb.go similarity index 96% rename from lib/prehog/gen/prehog/v1alpha/connect.pb.go rename to gen/proto/go/prehog/v1alpha/connect.pb.go index f012b14255794..5a1914c9da6e7 100644 --- a/lib/prehog/gen/prehog/v1alpha/connect.pb.go +++ b/gen/proto/go/prehog/v1alpha/connect.pb.go @@ -18,7 +18,7 @@ // protoc (unknown) // source: prehog/v1alpha/connect.proto -package prehogv1alpha +package v1alpha import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -821,20 +821,11 @@ var file_prehog_v1alpha_connect_proto_rawDesc = []byte{ 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x42, 0xca, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, - 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x0c, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, - 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x70, - 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, - 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x3b, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x76, - 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0xa2, 0x02, 0x03, 0x50, 0x58, 0x58, 0xaa, 0x02, 0x0e, 0x50, - 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0xca, 0x02, 0x0e, - 0x50, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0xe2, 0x02, - 0x1a, 0x50, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x50, 0x72, - 0x65, 0x68, 0x6f, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x42, 0x3f, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, + 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, + 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/lib/prehog/gen/prehog/v1alpha/teleport.pb.go b/gen/proto/go/prehog/v1alpha/teleport.pb.go similarity index 99% rename from lib/prehog/gen/prehog/v1alpha/teleport.pb.go rename to gen/proto/go/prehog/v1alpha/teleport.pb.go index b6e11d701ea80..37386ae6486b4 100644 --- a/lib/prehog/gen/prehog/v1alpha/teleport.pb.go +++ b/gen/proto/go/prehog/v1alpha/teleport.pb.go @@ -18,7 +18,7 @@ // protoc (unknown) // source: prehog/v1alpha/teleport.proto -package prehogv1alpha +package v1alpha import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -3007,20 +3007,11 @@ var file_prehog_v1alpha_teleport_proto_rawDesc = []byte{ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x54, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x42, 0xcb, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, - 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x0d, 0x54, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, - 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, - 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x65, 0x68, 0x6f, - 0x67, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x3b, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, - 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0xa2, 0x02, 0x03, 0x50, 0x58, 0x58, 0xaa, 0x02, 0x0e, - 0x50, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0xca, 0x02, - 0x0e, 0x50, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0xe2, - 0x02, 0x1a, 0x50, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x50, - 0x72, 0x65, 0x68, 0x6f, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x42, 0x3f, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, + 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, + 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/lib/prehog/gen/prehog/v1alpha/prehogv1alphaconnect/connect.connect.go b/gen/proto/go/prehog/v1alpha/v1alphaconnect/connect.connect.go similarity index 97% rename from lib/prehog/gen/prehog/v1alpha/prehogv1alphaconnect/connect.connect.go rename to gen/proto/go/prehog/v1alpha/v1alphaconnect/connect.connect.go index b52c684b7863b..86e50b2b42fcb 100644 --- a/lib/prehog/gen/prehog/v1alpha/prehogv1alphaconnect/connect.connect.go +++ b/gen/proto/go/prehog/v1alpha/v1alphaconnect/connect.connect.go @@ -2,13 +2,13 @@ // // Source: prehog/v1alpha/connect.proto -package prehogv1alphaconnect +package v1alphaconnect import ( context "context" errors "errors" connect_go "github.com/bufbuild/connect-go" - v1alpha "github.com/gravitational/teleport/lib/prehog/gen/prehog/v1alpha" + v1alpha "github.com/gravitational/teleport/gen/proto/go/prehog/v1alpha" http "net/http" strings "strings" ) diff --git a/lib/prehog/gen/prehog/v1alpha/prehogv1alphaconnect/teleport.connect.go b/gen/proto/go/prehog/v1alpha/v1alphaconnect/teleport.connect.go similarity index 98% rename from lib/prehog/gen/prehog/v1alpha/prehogv1alphaconnect/teleport.connect.go rename to gen/proto/go/prehog/v1alpha/v1alphaconnect/teleport.connect.go index 9565e22b2d020..9efb661f6f4e9 100644 --- a/lib/prehog/gen/prehog/v1alpha/prehogv1alphaconnect/teleport.connect.go +++ b/gen/proto/go/prehog/v1alpha/v1alphaconnect/teleport.connect.go @@ -2,13 +2,13 @@ // // Source: prehog/v1alpha/teleport.proto -package prehogv1alphaconnect +package v1alphaconnect import ( context "context" errors "errors" connect_go "github.com/bufbuild/connect-go" - v1alpha "github.com/gravitational/teleport/lib/prehog/gen/prehog/v1alpha" + v1alpha "github.com/gravitational/teleport/gen/proto/go/prehog/v1alpha" http "net/http" strings "strings" ) diff --git a/lib/teleterm/api/protogen/golang/v1/access_request.pb.go b/gen/proto/go/teleport/lib/teleterm/v1/access_request.pb.go similarity index 51% rename from lib/teleterm/api/protogen/golang/v1/access_request.pb.go rename to gen/proto/go/teleport/lib/teleterm/v1/access_request.pb.go index 9a2e4f6ac26ac..b833f1f3e8d29 100644 --- a/lib/teleterm/api/protogen/golang/v1/access_request.pb.go +++ b/gen/proto/go/teleport/lib/teleterm/v1/access_request.pb.go @@ -16,7 +16,7 @@ // versions: // protoc-gen-go v1.28.1 // protoc (unknown) -// source: v1/access_request.proto +// source: teleport/lib/teleterm/v1/access_request.proto package v1 @@ -64,7 +64,7 @@ type AccessRequest struct { func (x *AccessRequest) Reset() { *x = AccessRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_access_request_proto_msgTypes[0] + mi := &file_teleport_lib_teleterm_v1_access_request_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -77,7 +77,7 @@ func (x *AccessRequest) String() string { func (*AccessRequest) ProtoMessage() {} func (x *AccessRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_access_request_proto_msgTypes[0] + mi := &file_teleport_lib_teleterm_v1_access_request_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -90,7 +90,7 @@ func (x *AccessRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use AccessRequest.ProtoReflect.Descriptor instead. func (*AccessRequest) Descriptor() ([]byte, []int) { - return file_v1_access_request_proto_rawDescGZIP(), []int{0} + return file_teleport_lib_teleterm_v1_access_request_proto_rawDescGZIP(), []int{0} } func (x *AccessRequest) GetId() string { @@ -203,7 +203,7 @@ type AccessRequestReview struct { func (x *AccessRequestReview) Reset() { *x = AccessRequestReview{} if protoimpl.UnsafeEnabled { - mi := &file_v1_access_request_proto_msgTypes[1] + mi := &file_teleport_lib_teleterm_v1_access_request_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -216,7 +216,7 @@ func (x *AccessRequestReview) String() string { func (*AccessRequestReview) ProtoMessage() {} func (x *AccessRequestReview) ProtoReflect() protoreflect.Message { - mi := &file_v1_access_request_proto_msgTypes[1] + mi := &file_teleport_lib_teleterm_v1_access_request_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -229,7 +229,7 @@ func (x *AccessRequestReview) ProtoReflect() protoreflect.Message { // Deprecated: Use AccessRequestReview.ProtoReflect.Descriptor instead. func (*AccessRequestReview) Descriptor() ([]byte, []int) { - return file_v1_access_request_proto_rawDescGZIP(), []int{1} + return file_teleport_lib_teleterm_v1_access_request_proto_rawDescGZIP(), []int{1} } func (x *AccessRequestReview) GetAuthor() string { @@ -281,7 +281,7 @@ type ResourceID struct { func (x *ResourceID) Reset() { *x = ResourceID{} if protoimpl.UnsafeEnabled { - mi := &file_v1_access_request_proto_msgTypes[2] + mi := &file_teleport_lib_teleterm_v1_access_request_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -294,7 +294,7 @@ func (x *ResourceID) String() string { func (*ResourceID) ProtoMessage() {} func (x *ResourceID) ProtoReflect() protoreflect.Message { - mi := &file_v1_access_request_proto_msgTypes[2] + mi := &file_teleport_lib_teleterm_v1_access_request_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -307,7 +307,7 @@ func (x *ResourceID) ProtoReflect() protoreflect.Message { // Deprecated: Use ResourceID.ProtoReflect.Descriptor instead. func (*ResourceID) Descriptor() ([]byte, []int) { - return file_v1_access_request_proto_rawDescGZIP(), []int{2} + return file_teleport_lib_teleterm_v1_access_request_proto_rawDescGZIP(), []int{2} } func (x *ResourceID) GetKind() string { @@ -349,7 +349,7 @@ type ResourceDetails struct { func (x *ResourceDetails) Reset() { *x = ResourceDetails{} if protoimpl.UnsafeEnabled { - mi := &file_v1_access_request_proto_msgTypes[3] + mi := &file_teleport_lib_teleterm_v1_access_request_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -362,7 +362,7 @@ func (x *ResourceDetails) String() string { func (*ResourceDetails) ProtoMessage() {} func (x *ResourceDetails) ProtoReflect() protoreflect.Message { - mi := &file_v1_access_request_proto_msgTypes[3] + mi := &file_teleport_lib_teleterm_v1_access_request_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -375,7 +375,7 @@ func (x *ResourceDetails) ProtoReflect() protoreflect.Message { // Deprecated: Use ResourceDetails.ProtoReflect.Descriptor instead. func (*ResourceDetails) Descriptor() ([]byte, []int) { - return file_v1_access_request_proto_rawDescGZIP(), []int{3} + return file_teleport_lib_teleterm_v1_access_request_proto_rawDescGZIP(), []int{3} } func (x *ResourceDetails) GetHostname() string { @@ -397,7 +397,7 @@ type Resource struct { func (x *Resource) Reset() { *x = Resource{} if protoimpl.UnsafeEnabled { - mi := &file_v1_access_request_proto_msgTypes[4] + mi := &file_teleport_lib_teleterm_v1_access_request_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -410,7 +410,7 @@ func (x *Resource) String() string { func (*Resource) ProtoMessage() {} func (x *Resource) ProtoReflect() protoreflect.Message { - mi := &file_v1_access_request_proto_msgTypes[4] + mi := &file_teleport_lib_teleterm_v1_access_request_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -423,7 +423,7 @@ func (x *Resource) ProtoReflect() protoreflect.Message { // Deprecated: Use Resource.ProtoReflect.Descriptor instead. func (*Resource) Descriptor() ([]byte, []int) { - return file_v1_access_request_proto_rawDescGZIP(), []int{4} + return file_teleport_lib_teleterm_v1_access_request_proto_rawDescGZIP(), []int{4} } func (x *Resource) GetId() *ResourceID { @@ -440,116 +440,120 @@ func (x *Resource) GetDetails() *ResourceDetails { return nil } -var File_v1_access_request_proto protoreflect.FileDescriptor - -var file_v1_access_request_proto_rawDesc = []byte{ - 0x0a, 0x17, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x72, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x74, 0x65, 0x6c, 0x65, 0x70, - 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 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, - 0x22, 0xbb, 0x04, 0x0a, 0x0d, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x6f, - 0x6c, 0x76, 0x65, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, - 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, - 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, - 0x6c, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, - 0x12, 0x34, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, +var File_teleport_lib_teleterm_v1_access_request_proto protoreflect.FileDescriptor + +var file_teleport_lib_teleterm_v1_access_request_proto_rawDesc = []byte{ + 0x0a, 0x2d, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x18, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 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, 0x22, 0xc7, 0x04, 0x0a, 0x0d, 0x41, + 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x5f, 0x72, 0x65, + 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x6f, + 0x6c, 0x76, 0x65, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, + 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x75, 0x73, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x06, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x07, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x64, 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, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x12, 0x34, 0x0a, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x18, 0x08, 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, 0x07, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x34, 0x0a, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, - 0x73, 0x18, 0x08, 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, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x12, 0x43, 0x0a, 0x07, - 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, - 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, - 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x07, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, - 0x73, 0x12, 0x2f, 0x0a, 0x13, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x72, - 0x65, 0x76, 0x69, 0x65, 0x77, 0x65, 0x72, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, - 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x65, - 0x72, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x74, 0x68, 0x72, - 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x43, 0x0a, 0x0c, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x20, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, - 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x49, 0x44, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x73, - 0x12, 0x3c, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x0d, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, - 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x22, 0xa7, - 0x01, 0x0a, 0x13, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x12, 0x14, - 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, - 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, - 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, - 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x05, 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, - 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x22, 0x83, 0x01, 0x0a, 0x0a, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x44, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x21, 0x0a, 0x0c, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x75, 0x62, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x73, - 0x75, 0x62, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x2d, - 0x0a, 0x0f, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, - 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x7d, 0x0a, - 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x30, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, - 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x44, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3f, 0x0a, 0x07, 0x64, - 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x74, - 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, - 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, 0x74, 0x61, - 0x69, 0x6c, 0x73, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x42, 0x33, 0x5a, 0x31, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, - 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, - 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, - 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, + 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, + 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, + 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x07, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x73, 0x12, + 0x2f, 0x0a, 0x13, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x76, + 0x69, 0x65, 0x77, 0x65, 0x72, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 0x73, 0x75, + 0x67, 0x67, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x65, 0x72, 0x73, + 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x74, 0x68, 0x72, 0x65, 0x73, + 0x68, 0x6f, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x0c, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x24, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x49, 0x44, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, + 0x64, 0x73, 0x12, 0x40, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, + 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, + 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, + 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x22, 0xa7, 0x01, 0x0a, 0x13, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x12, 0x16, 0x0a, 0x06, + 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, + 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x64, 0x18, 0x05, 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, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x22, 0x83, + 0x01, 0x0a, 0x0a, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x44, 0x12, 0x12, 0x0a, + 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, + 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x75, 0x62, 0x5f, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x75, 0x62, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x2d, 0x0a, 0x0f, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, + 0x61, 0x6d, 0x65, 0x22, 0x85, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x12, 0x34, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x74, + 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x49, 0x44, 0x52, 0x02, 0x69, 0x64, 0x12, 0x43, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, + 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, + 0x6c, 0x73, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x42, 0x49, 0x5a, 0x47, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, + 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x65, + 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_v1_access_request_proto_rawDescOnce sync.Once - file_v1_access_request_proto_rawDescData = file_v1_access_request_proto_rawDesc + file_teleport_lib_teleterm_v1_access_request_proto_rawDescOnce sync.Once + file_teleport_lib_teleterm_v1_access_request_proto_rawDescData = file_teleport_lib_teleterm_v1_access_request_proto_rawDesc ) -func file_v1_access_request_proto_rawDescGZIP() []byte { - file_v1_access_request_proto_rawDescOnce.Do(func() { - file_v1_access_request_proto_rawDescData = protoimpl.X.CompressGZIP(file_v1_access_request_proto_rawDescData) +func file_teleport_lib_teleterm_v1_access_request_proto_rawDescGZIP() []byte { + file_teleport_lib_teleterm_v1_access_request_proto_rawDescOnce.Do(func() { + file_teleport_lib_teleterm_v1_access_request_proto_rawDescData = protoimpl.X.CompressGZIP(file_teleport_lib_teleterm_v1_access_request_proto_rawDescData) }) - return file_v1_access_request_proto_rawDescData + return file_teleport_lib_teleterm_v1_access_request_proto_rawDescData } -var file_v1_access_request_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_v1_access_request_proto_goTypes = []interface{}{ - (*AccessRequest)(nil), // 0: teleport.terminal.v1.AccessRequest - (*AccessRequestReview)(nil), // 1: teleport.terminal.v1.AccessRequestReview - (*ResourceID)(nil), // 2: teleport.terminal.v1.ResourceID - (*ResourceDetails)(nil), // 3: teleport.terminal.v1.ResourceDetails - (*Resource)(nil), // 4: teleport.terminal.v1.Resource +var file_teleport_lib_teleterm_v1_access_request_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_teleport_lib_teleterm_v1_access_request_proto_goTypes = []interface{}{ + (*AccessRequest)(nil), // 0: teleport.lib.teleterm.v1.AccessRequest + (*AccessRequestReview)(nil), // 1: teleport.lib.teleterm.v1.AccessRequestReview + (*ResourceID)(nil), // 2: teleport.lib.teleterm.v1.ResourceID + (*ResourceDetails)(nil), // 3: teleport.lib.teleterm.v1.ResourceDetails + (*Resource)(nil), // 4: teleport.lib.teleterm.v1.Resource (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp } -var file_v1_access_request_proto_depIdxs = []int32{ - 5, // 0: teleport.terminal.v1.AccessRequest.created:type_name -> google.protobuf.Timestamp - 5, // 1: teleport.terminal.v1.AccessRequest.expires:type_name -> google.protobuf.Timestamp - 1, // 2: teleport.terminal.v1.AccessRequest.reviews:type_name -> teleport.terminal.v1.AccessRequestReview - 2, // 3: teleport.terminal.v1.AccessRequest.resource_ids:type_name -> teleport.terminal.v1.ResourceID - 4, // 4: teleport.terminal.v1.AccessRequest.resources:type_name -> teleport.terminal.v1.Resource - 5, // 5: teleport.terminal.v1.AccessRequestReview.created:type_name -> google.protobuf.Timestamp - 2, // 6: teleport.terminal.v1.Resource.id:type_name -> teleport.terminal.v1.ResourceID - 3, // 7: teleport.terminal.v1.Resource.details:type_name -> teleport.terminal.v1.ResourceDetails +var file_teleport_lib_teleterm_v1_access_request_proto_depIdxs = []int32{ + 5, // 0: teleport.lib.teleterm.v1.AccessRequest.created:type_name -> google.protobuf.Timestamp + 5, // 1: teleport.lib.teleterm.v1.AccessRequest.expires:type_name -> google.protobuf.Timestamp + 1, // 2: teleport.lib.teleterm.v1.AccessRequest.reviews:type_name -> teleport.lib.teleterm.v1.AccessRequestReview + 2, // 3: teleport.lib.teleterm.v1.AccessRequest.resource_ids:type_name -> teleport.lib.teleterm.v1.ResourceID + 4, // 4: teleport.lib.teleterm.v1.AccessRequest.resources:type_name -> teleport.lib.teleterm.v1.Resource + 5, // 5: teleport.lib.teleterm.v1.AccessRequestReview.created:type_name -> google.protobuf.Timestamp + 2, // 6: teleport.lib.teleterm.v1.Resource.id:type_name -> teleport.lib.teleterm.v1.ResourceID + 3, // 7: teleport.lib.teleterm.v1.Resource.details:type_name -> teleport.lib.teleterm.v1.ResourceDetails 8, // [8:8] is the sub-list for method output_type 8, // [8:8] is the sub-list for method input_type 8, // [8:8] is the sub-list for extension type_name @@ -557,13 +561,13 @@ var file_v1_access_request_proto_depIdxs = []int32{ 0, // [0:8] is the sub-list for field type_name } -func init() { file_v1_access_request_proto_init() } -func file_v1_access_request_proto_init() { - if File_v1_access_request_proto != nil { +func init() { file_teleport_lib_teleterm_v1_access_request_proto_init() } +func file_teleport_lib_teleterm_v1_access_request_proto_init() { + if File_teleport_lib_teleterm_v1_access_request_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_v1_access_request_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_access_request_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AccessRequest); i { case 0: return &v.state @@ -575,7 +579,7 @@ func file_v1_access_request_proto_init() { return nil } } - file_v1_access_request_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_access_request_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AccessRequestReview); i { case 0: return &v.state @@ -587,7 +591,7 @@ func file_v1_access_request_proto_init() { return nil } } - file_v1_access_request_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_access_request_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ResourceID); i { case 0: return &v.state @@ -599,7 +603,7 @@ func file_v1_access_request_proto_init() { return nil } } - file_v1_access_request_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_access_request_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ResourceDetails); i { case 0: return &v.state @@ -611,7 +615,7 @@ func file_v1_access_request_proto_init() { return nil } } - file_v1_access_request_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_access_request_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Resource); i { case 0: return &v.state @@ -628,18 +632,18 @@ func file_v1_access_request_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_v1_access_request_proto_rawDesc, + RawDescriptor: file_teleport_lib_teleterm_v1_access_request_proto_rawDesc, NumEnums: 0, NumMessages: 5, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_v1_access_request_proto_goTypes, - DependencyIndexes: file_v1_access_request_proto_depIdxs, - MessageInfos: file_v1_access_request_proto_msgTypes, + GoTypes: file_teleport_lib_teleterm_v1_access_request_proto_goTypes, + DependencyIndexes: file_teleport_lib_teleterm_v1_access_request_proto_depIdxs, + MessageInfos: file_teleport_lib_teleterm_v1_access_request_proto_msgTypes, }.Build() - File_v1_access_request_proto = out.File - file_v1_access_request_proto_rawDesc = nil - file_v1_access_request_proto_goTypes = nil - file_v1_access_request_proto_depIdxs = nil + File_teleport_lib_teleterm_v1_access_request_proto = out.File + file_teleport_lib_teleterm_v1_access_request_proto_rawDesc = nil + file_teleport_lib_teleterm_v1_access_request_proto_goTypes = nil + file_teleport_lib_teleterm_v1_access_request_proto_depIdxs = nil } diff --git a/lib/teleterm/api/protogen/golang/v1/app.pb.go b/gen/proto/go/teleport/lib/teleterm/v1/app.pb.go similarity index 59% rename from lib/teleterm/api/protogen/golang/v1/app.pb.go rename to gen/proto/go/teleport/lib/teleterm/v1/app.pb.go index 3a47c6b49f33b..ad02c493a88a6 100644 --- a/lib/teleterm/api/protogen/golang/v1/app.pb.go +++ b/gen/proto/go/teleport/lib/teleterm/v1/app.pb.go @@ -16,7 +16,7 @@ // versions: // protoc-gen-go v1.28.1 // protoc (unknown) -// source: v1/app.proto +// source: teleport/lib/teleterm/v1/app.proto package v1 @@ -63,7 +63,7 @@ type App struct { func (x *App) Reset() { *x = App{} if protoimpl.UnsafeEnabled { - mi := &file_v1_app_proto_msgTypes[0] + mi := &file_teleport_lib_teleterm_v1_app_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -76,7 +76,7 @@ func (x *App) String() string { func (*App) ProtoMessage() {} func (x *App) ProtoReflect() protoreflect.Message { - mi := &file_v1_app_proto_msgTypes[0] + mi := &file_teleport_lib_teleterm_v1_app_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -89,7 +89,7 @@ func (x *App) ProtoReflect() protoreflect.Message { // Deprecated: Use App.ProtoReflect.Descriptor instead. func (*App) Descriptor() ([]byte, []int) { - return file_v1_app_proto_rawDescGZIP(), []int{0} + return file_teleport_lib_teleterm_v1_app_proto_rawDescGZIP(), []int{0} } func (x *App) GetUri() string { @@ -169,7 +169,7 @@ type App_AWSRole struct { func (x *App_AWSRole) Reset() { *x = App_AWSRole{} if protoimpl.UnsafeEnabled { - mi := &file_v1_app_proto_msgTypes[1] + mi := &file_teleport_lib_teleterm_v1_app_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -182,7 +182,7 @@ func (x *App_AWSRole) String() string { func (*App_AWSRole) ProtoMessage() {} func (x *App_AWSRole) ProtoReflect() protoreflect.Message { - mi := &file_v1_app_proto_msgTypes[1] + mi := &file_teleport_lib_teleterm_v1_app_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -195,7 +195,7 @@ func (x *App_AWSRole) ProtoReflect() protoreflect.Message { // Deprecated: Use App_AWSRole.ProtoReflect.Descriptor instead. func (*App_AWSRole) Descriptor() ([]byte, []int) { - return file_v1_app_proto_rawDescGZIP(), []int{0, 0} + return file_teleport_lib_teleterm_v1_app_proto_rawDescGZIP(), []int{0, 0} } func (x *App_AWSRole) GetDisplay() string { @@ -212,13 +212,16 @@ func (x *App_AWSRole) GetArn() string { return "" } -var File_v1_app_proto protoreflect.FileDescriptor +var File_teleport_lib_teleterm_v1_app_proto protoreflect.FileDescriptor -var file_v1_app_proto_rawDesc = []byte{ - 0x0a, 0x0c, 0x76, 0x31, 0x2f, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, - 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, - 0x6c, 0x2e, 0x76, 0x31, 0x1a, 0x0e, 0x76, 0x31, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe8, 0x02, 0x0a, 0x03, 0x41, 0x70, 0x70, 0x12, 0x10, 0x0a, 0x03, +var file_teleport_lib_teleterm_v1_app_proto_rawDesc = []byte{ + 0x0a, 0x22, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x70, 0x70, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, + 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x1a, 0x24, + 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf0, 0x02, 0x0a, 0x03, 0x41, 0x70, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, @@ -228,46 +231,48 @@ var file_v1_app_proto_rawDesc = []byte{ 0x0b, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x41, 0x64, 0x64, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x71, 0x64, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x71, - 0x64, 0x6e, 0x12, 0x33, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, - 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, - 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x77, 0x73, 0x5f, 0x63, - 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x61, 0x77, - 0x73, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x12, 0x3e, 0x0a, 0x09, 0x61, 0x77, 0x73, 0x5f, - 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x74, 0x65, - 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, - 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x41, 0x57, 0x53, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x08, - 0x61, 0x77, 0x73, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x1a, 0x35, 0x0a, 0x07, 0x41, 0x57, 0x53, 0x52, - 0x6f, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x12, 0x10, 0x0a, - 0x03, 0x61, 0x72, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x61, 0x72, 0x6e, 0x42, - 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, - 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, - 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x64, 0x6e, 0x12, 0x37, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, + 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, + 0x62, 0x65, 0x6c, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x61, + 0x77, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x0a, 0x61, 0x77, 0x73, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x12, 0x42, 0x0a, 0x09, + 0x61, 0x77, 0x73, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x25, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x41, + 0x57, 0x53, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x08, 0x61, 0x77, 0x73, 0x52, 0x6f, 0x6c, 0x65, 0x73, + 0x1a, 0x35, 0x0a, 0x07, 0x41, 0x57, 0x53, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x64, + 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x69, + 0x73, 0x70, 0x6c, 0x61, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x72, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x61, 0x72, 0x6e, 0x42, 0x49, 0x5a, 0x47, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x67, 0x65, 0x6e, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, + 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_v1_app_proto_rawDescOnce sync.Once - file_v1_app_proto_rawDescData = file_v1_app_proto_rawDesc + file_teleport_lib_teleterm_v1_app_proto_rawDescOnce sync.Once + file_teleport_lib_teleterm_v1_app_proto_rawDescData = file_teleport_lib_teleterm_v1_app_proto_rawDesc ) -func file_v1_app_proto_rawDescGZIP() []byte { - file_v1_app_proto_rawDescOnce.Do(func() { - file_v1_app_proto_rawDescData = protoimpl.X.CompressGZIP(file_v1_app_proto_rawDescData) +func file_teleport_lib_teleterm_v1_app_proto_rawDescGZIP() []byte { + file_teleport_lib_teleterm_v1_app_proto_rawDescOnce.Do(func() { + file_teleport_lib_teleterm_v1_app_proto_rawDescData = protoimpl.X.CompressGZIP(file_teleport_lib_teleterm_v1_app_proto_rawDescData) }) - return file_v1_app_proto_rawDescData + return file_teleport_lib_teleterm_v1_app_proto_rawDescData } -var file_v1_app_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_v1_app_proto_goTypes = []interface{}{ - (*App)(nil), // 0: teleport.terminal.v1.App - (*App_AWSRole)(nil), // 1: teleport.terminal.v1.App.AWSRole - (*Label)(nil), // 2: teleport.terminal.v1.Label +var file_teleport_lib_teleterm_v1_app_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_teleport_lib_teleterm_v1_app_proto_goTypes = []interface{}{ + (*App)(nil), // 0: teleport.lib.teleterm.v1.App + (*App_AWSRole)(nil), // 1: teleport.lib.teleterm.v1.App.AWSRole + (*Label)(nil), // 2: teleport.lib.teleterm.v1.Label } -var file_v1_app_proto_depIdxs = []int32{ - 2, // 0: teleport.terminal.v1.App.labels:type_name -> teleport.terminal.v1.Label - 1, // 1: teleport.terminal.v1.App.aws_roles:type_name -> teleport.terminal.v1.App.AWSRole +var file_teleport_lib_teleterm_v1_app_proto_depIdxs = []int32{ + 2, // 0: teleport.lib.teleterm.v1.App.labels:type_name -> teleport.lib.teleterm.v1.Label + 1, // 1: teleport.lib.teleterm.v1.App.aws_roles:type_name -> teleport.lib.teleterm.v1.App.AWSRole 2, // [2:2] is the sub-list for method output_type 2, // [2:2] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name @@ -275,14 +280,14 @@ var file_v1_app_proto_depIdxs = []int32{ 0, // [0:2] is the sub-list for field type_name } -func init() { file_v1_app_proto_init() } -func file_v1_app_proto_init() { - if File_v1_app_proto != nil { +func init() { file_teleport_lib_teleterm_v1_app_proto_init() } +func file_teleport_lib_teleterm_v1_app_proto_init() { + if File_teleport_lib_teleterm_v1_app_proto != nil { return } - file_v1_label_proto_init() + file_teleport_lib_teleterm_v1_label_proto_init() if !protoimpl.UnsafeEnabled { - file_v1_app_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_app_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*App); i { case 0: return &v.state @@ -294,7 +299,7 @@ func file_v1_app_proto_init() { return nil } } - file_v1_app_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_app_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*App_AWSRole); i { case 0: return &v.state @@ -311,18 +316,18 @@ func file_v1_app_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_v1_app_proto_rawDesc, + RawDescriptor: file_teleport_lib_teleterm_v1_app_proto_rawDesc, NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_v1_app_proto_goTypes, - DependencyIndexes: file_v1_app_proto_depIdxs, - MessageInfos: file_v1_app_proto_msgTypes, + GoTypes: file_teleport_lib_teleterm_v1_app_proto_goTypes, + DependencyIndexes: file_teleport_lib_teleterm_v1_app_proto_depIdxs, + MessageInfos: file_teleport_lib_teleterm_v1_app_proto_msgTypes, }.Build() - File_v1_app_proto = out.File - file_v1_app_proto_rawDesc = nil - file_v1_app_proto_goTypes = nil - file_v1_app_proto_depIdxs = nil + File_teleport_lib_teleterm_v1_app_proto = out.File + file_teleport_lib_teleterm_v1_app_proto_rawDesc = nil + file_teleport_lib_teleterm_v1_app_proto_goTypes = nil + file_teleport_lib_teleterm_v1_app_proto_depIdxs = nil } diff --git a/lib/teleterm/api/protogen/golang/v1/auth_settings.pb.go b/gen/proto/go/teleport/lib/teleterm/v1/auth_settings.pb.go similarity index 52% rename from lib/teleterm/api/protogen/golang/v1/auth_settings.pb.go rename to gen/proto/go/teleport/lib/teleterm/v1/auth_settings.pb.go index 4eecf4d11c011..9a6dc6fa17ce6 100644 --- a/lib/teleterm/api/protogen/golang/v1/auth_settings.pb.go +++ b/gen/proto/go/teleport/lib/teleterm/v1/auth_settings.pb.go @@ -16,7 +16,7 @@ // versions: // protoc-gen-go v1.28.1 // protoc (unknown) -// source: v1/auth_settings.proto +// source: teleport/lib/teleterm/v1/auth_settings.proto package v1 @@ -63,7 +63,7 @@ type AuthSettings struct { func (x *AuthSettings) Reset() { *x = AuthSettings{} if protoimpl.UnsafeEnabled { - mi := &file_v1_auth_settings_proto_msgTypes[0] + mi := &file_teleport_lib_teleterm_v1_auth_settings_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -76,7 +76,7 @@ func (x *AuthSettings) String() string { func (*AuthSettings) ProtoMessage() {} func (x *AuthSettings) ProtoReflect() protoreflect.Message { - mi := &file_v1_auth_settings_proto_msgTypes[0] + mi := &file_teleport_lib_teleterm_v1_auth_settings_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -89,7 +89,7 @@ func (x *AuthSettings) ProtoReflect() protoreflect.Message { // Deprecated: Use AuthSettings.ProtoReflect.Descriptor instead. func (*AuthSettings) Descriptor() ([]byte, []int) { - return file_v1_auth_settings_proto_rawDescGZIP(), []int{0} + return file_teleport_lib_teleterm_v1_auth_settings_proto_rawDescGZIP(), []int{0} } func (x *AuthSettings) GetLocalAuthEnabled() bool { @@ -166,7 +166,7 @@ type AuthProvider struct { func (x *AuthProvider) Reset() { *x = AuthProvider{} if protoimpl.UnsafeEnabled { - mi := &file_v1_auth_settings_proto_msgTypes[1] + mi := &file_teleport_lib_teleterm_v1_auth_settings_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -179,7 +179,7 @@ func (x *AuthProvider) String() string { func (*AuthProvider) ProtoMessage() {} func (x *AuthProvider) ProtoReflect() protoreflect.Message { - mi := &file_v1_auth_settings_proto_msgTypes[1] + mi := &file_teleport_lib_teleterm_v1_auth_settings_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -192,7 +192,7 @@ func (x *AuthProvider) ProtoReflect() protoreflect.Message { // Deprecated: Use AuthProvider.ProtoReflect.Descriptor instead. func (*AuthProvider) Descriptor() ([]byte, []int) { - return file_v1_auth_settings_proto_rawDescGZIP(), []int{1} + return file_teleport_lib_teleterm_v1_auth_settings_proto_rawDescGZIP(), []int{1} } func (x *AuthProvider) GetType() string { @@ -216,67 +216,70 @@ func (x *AuthProvider) GetDisplayName() string { return "" } -var File_v1_auth_settings_proto protoreflect.FileDescriptor - -var file_v1_auth_settings_proto_rawDesc = []byte{ - 0x0a, 0x16, 0x76, 0x31, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, - 0x67, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x22, 0x83, - 0x03, 0x0a, 0x0c, 0x41, 0x75, 0x74, 0x68, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, - 0x2c, 0x0a, 0x12, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x65, 0x6e, - 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x6c, 0x6f, 0x63, - 0x61, 0x6c, 0x41, 0x75, 0x74, 0x68, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x23, 0x0a, - 0x0d, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x46, 0x61, 0x63, 0x74, - 0x6f, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x5f, - 0x6d, 0x66, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x65, 0x66, 0x65, - 0x72, 0x72, 0x65, 0x64, 0x4d, 0x66, 0x61, 0x12, 0x49, 0x0a, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x5f, - 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x22, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, - 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x52, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x73, 0x12, 0x32, 0x0a, 0x16, 0x68, 0x61, 0x73, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x74, 0x68, 0x65, 0x5f, 0x64, 0x61, 0x79, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x12, 0x68, 0x61, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x66, - 0x54, 0x68, 0x65, 0x44, 0x61, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x75, 0x74, 0x68, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x61, 0x73, - 0x73, 0x77, 0x6f, 0x72, 0x64, 0x6c, 0x65, 0x73, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x11, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x6c, 0x65, - 0x73, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x12, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x59, 0x0a, 0x0c, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, - 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x42, - 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, - 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, - 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var File_teleport_lib_teleterm_v1_auth_settings_proto protoreflect.FileDescriptor + +var file_teleport_lib_teleterm_v1_auth_settings_proto_rawDesc = []byte{ + 0x0a, 0x2c, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x5f, + 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, + 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x22, 0x87, 0x03, 0x0a, 0x0c, 0x41, 0x75, 0x74, + 0x68, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x6c, 0x6f, 0x63, + 0x61, 0x6c, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x41, 0x75, 0x74, 0x68, + 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x63, 0x6f, 0x6e, + 0x64, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, + 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x23, 0x0a, 0x0d, + 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x5f, 0x6d, 0x66, 0x61, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x4d, 0x66, + 0x61, 0x12, 0x4d, 0x0a, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x74, 0x65, 0x6c, 0x65, + 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, + 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x52, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, + 0x12, 0x32, 0x0a, 0x16, 0x68, 0x61, 0x73, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, + 0x6f, 0x66, 0x5f, 0x74, 0x68, 0x65, 0x5f, 0x64, 0x61, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x12, 0x68, 0x61, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x66, 0x54, 0x68, + 0x65, 0x44, 0x61, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, + 0x6f, 0x72, 0x64, 0x6c, 0x65, 0x73, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x61, + 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x6c, 0x65, 0x73, 0x73, + 0x12, 0x30, 0x0a, 0x14, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, + 0x74, 0x6f, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, + 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x4e, 0x61, + 0x6d, 0x65, 0x22, 0x59, 0x0a, 0x0c, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, + 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x49, 0x5a, + 0x47, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, + 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, + 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_v1_auth_settings_proto_rawDescOnce sync.Once - file_v1_auth_settings_proto_rawDescData = file_v1_auth_settings_proto_rawDesc + file_teleport_lib_teleterm_v1_auth_settings_proto_rawDescOnce sync.Once + file_teleport_lib_teleterm_v1_auth_settings_proto_rawDescData = file_teleport_lib_teleterm_v1_auth_settings_proto_rawDesc ) -func file_v1_auth_settings_proto_rawDescGZIP() []byte { - file_v1_auth_settings_proto_rawDescOnce.Do(func() { - file_v1_auth_settings_proto_rawDescData = protoimpl.X.CompressGZIP(file_v1_auth_settings_proto_rawDescData) +func file_teleport_lib_teleterm_v1_auth_settings_proto_rawDescGZIP() []byte { + file_teleport_lib_teleterm_v1_auth_settings_proto_rawDescOnce.Do(func() { + file_teleport_lib_teleterm_v1_auth_settings_proto_rawDescData = protoimpl.X.CompressGZIP(file_teleport_lib_teleterm_v1_auth_settings_proto_rawDescData) }) - return file_v1_auth_settings_proto_rawDescData + return file_teleport_lib_teleterm_v1_auth_settings_proto_rawDescData } -var file_v1_auth_settings_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_v1_auth_settings_proto_goTypes = []interface{}{ - (*AuthSettings)(nil), // 0: teleport.terminal.v1.AuthSettings - (*AuthProvider)(nil), // 1: teleport.terminal.v1.AuthProvider +var file_teleport_lib_teleterm_v1_auth_settings_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_teleport_lib_teleterm_v1_auth_settings_proto_goTypes = []interface{}{ + (*AuthSettings)(nil), // 0: teleport.lib.teleterm.v1.AuthSettings + (*AuthProvider)(nil), // 1: teleport.lib.teleterm.v1.AuthProvider } -var file_v1_auth_settings_proto_depIdxs = []int32{ - 1, // 0: teleport.terminal.v1.AuthSettings.auth_providers:type_name -> teleport.terminal.v1.AuthProvider +var file_teleport_lib_teleterm_v1_auth_settings_proto_depIdxs = []int32{ + 1, // 0: teleport.lib.teleterm.v1.AuthSettings.auth_providers:type_name -> teleport.lib.teleterm.v1.AuthProvider 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 @@ -284,13 +287,13 @@ var file_v1_auth_settings_proto_depIdxs = []int32{ 0, // [0:1] is the sub-list for field type_name } -func init() { file_v1_auth_settings_proto_init() } -func file_v1_auth_settings_proto_init() { - if File_v1_auth_settings_proto != nil { +func init() { file_teleport_lib_teleterm_v1_auth_settings_proto_init() } +func file_teleport_lib_teleterm_v1_auth_settings_proto_init() { + if File_teleport_lib_teleterm_v1_auth_settings_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_v1_auth_settings_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_auth_settings_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AuthSettings); i { case 0: return &v.state @@ -302,7 +305,7 @@ func file_v1_auth_settings_proto_init() { return nil } } - file_v1_auth_settings_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_auth_settings_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AuthProvider); i { case 0: return &v.state @@ -319,18 +322,18 @@ func file_v1_auth_settings_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_v1_auth_settings_proto_rawDesc, + RawDescriptor: file_teleport_lib_teleterm_v1_auth_settings_proto_rawDesc, NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_v1_auth_settings_proto_goTypes, - DependencyIndexes: file_v1_auth_settings_proto_depIdxs, - MessageInfos: file_v1_auth_settings_proto_msgTypes, + GoTypes: file_teleport_lib_teleterm_v1_auth_settings_proto_goTypes, + DependencyIndexes: file_teleport_lib_teleterm_v1_auth_settings_proto_depIdxs, + MessageInfos: file_teleport_lib_teleterm_v1_auth_settings_proto_msgTypes, }.Build() - File_v1_auth_settings_proto = out.File - file_v1_auth_settings_proto_rawDesc = nil - file_v1_auth_settings_proto_goTypes = nil - file_v1_auth_settings_proto_depIdxs = nil + File_teleport_lib_teleterm_v1_auth_settings_proto = out.File + file_teleport_lib_teleterm_v1_auth_settings_proto_rawDesc = nil + file_teleport_lib_teleterm_v1_auth_settings_proto_goTypes = nil + file_teleport_lib_teleterm_v1_auth_settings_proto_depIdxs = nil } diff --git a/lib/teleterm/api/protogen/golang/v1/cluster.pb.go b/gen/proto/go/teleport/lib/teleterm/v1/cluster.pb.go similarity index 51% rename from lib/teleterm/api/protogen/golang/v1/cluster.pb.go rename to gen/proto/go/teleport/lib/teleterm/v1/cluster.pb.go index 175cb7103e300..0a41492e673c6 100644 --- a/lib/teleterm/api/protogen/golang/v1/cluster.pb.go +++ b/gen/proto/go/teleport/lib/teleterm/v1/cluster.pb.go @@ -16,7 +16,7 @@ // versions: // protoc-gen-go v1.28.1 // protoc (unknown) -// source: v1/cluster.proto +// source: teleport/lib/teleterm/v1/cluster.proto package v1 @@ -67,7 +67,7 @@ type Cluster struct { func (x *Cluster) Reset() { *x = Cluster{} if protoimpl.UnsafeEnabled { - mi := &file_v1_cluster_proto_msgTypes[0] + mi := &file_teleport_lib_teleterm_v1_cluster_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -80,7 +80,7 @@ func (x *Cluster) String() string { func (*Cluster) ProtoMessage() {} func (x *Cluster) ProtoReflect() protoreflect.Message { - mi := &file_v1_cluster_proto_msgTypes[0] + mi := &file_teleport_lib_teleterm_v1_cluster_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -93,7 +93,7 @@ func (x *Cluster) ProtoReflect() protoreflect.Message { // Deprecated: Use Cluster.ProtoReflect.Descriptor instead. func (*Cluster) Descriptor() ([]byte, []int) { - return file_v1_cluster_proto_rawDescGZIP(), []int{0} + return file_teleport_lib_teleterm_v1_cluster_proto_rawDescGZIP(), []int{0} } func (x *Cluster) GetUri() string { @@ -175,7 +175,7 @@ type LoggedInUser struct { func (x *LoggedInUser) Reset() { *x = LoggedInUser{} if protoimpl.UnsafeEnabled { - mi := &file_v1_cluster_proto_msgTypes[1] + mi := &file_teleport_lib_teleterm_v1_cluster_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -188,7 +188,7 @@ func (x *LoggedInUser) String() string { func (*LoggedInUser) ProtoMessage() {} func (x *LoggedInUser) ProtoReflect() protoreflect.Message { - mi := &file_v1_cluster_proto_msgTypes[1] + mi := &file_teleport_lib_teleterm_v1_cluster_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -201,7 +201,7 @@ func (x *LoggedInUser) ProtoReflect() protoreflect.Message { // Deprecated: Use LoggedInUser.ProtoReflect.Descriptor instead. func (*LoggedInUser) Descriptor() ([]byte, []int) { - return file_v1_cluster_proto_rawDescGZIP(), []int{1} + return file_teleport_lib_teleterm_v1_cluster_proto_rawDescGZIP(), []int{1} } func (x *LoggedInUser) GetName() string { @@ -288,7 +288,7 @@ type ACL struct { func (x *ACL) Reset() { *x = ACL{} if protoimpl.UnsafeEnabled { - mi := &file_v1_cluster_proto_msgTypes[2] + mi := &file_teleport_lib_teleterm_v1_cluster_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -301,7 +301,7 @@ func (x *ACL) String() string { func (*ACL) ProtoMessage() {} func (x *ACL) ProtoReflect() protoreflect.Message { - mi := &file_v1_cluster_proto_msgTypes[2] + mi := &file_teleport_lib_teleterm_v1_cluster_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -314,7 +314,7 @@ func (x *ACL) ProtoReflect() protoreflect.Message { // Deprecated: Use ACL.ProtoReflect.Descriptor instead. func (*ACL) Descriptor() ([]byte, []int) { - return file_v1_cluster_proto_rawDescGZIP(), []int{2} + return file_teleport_lib_teleterm_v1_cluster_proto_rawDescGZIP(), []int{2} } func (x *ACL) GetSessions() *ResourceAccess { @@ -422,7 +422,7 @@ type ResourceAccess struct { func (x *ResourceAccess) Reset() { *x = ResourceAccess{} if protoimpl.UnsafeEnabled { - mi := &file_v1_cluster_proto_msgTypes[3] + mi := &file_teleport_lib_teleterm_v1_cluster_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -435,7 +435,7 @@ func (x *ResourceAccess) String() string { func (*ResourceAccess) ProtoMessage() {} func (x *ResourceAccess) ProtoReflect() protoreflect.Message { - mi := &file_v1_cluster_proto_msgTypes[3] + mi := &file_teleport_lib_teleterm_v1_cluster_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -448,7 +448,7 @@ func (x *ResourceAccess) ProtoReflect() protoreflect.Message { // Deprecated: Use ResourceAccess.ProtoReflect.Descriptor instead. func (*ResourceAccess) Descriptor() ([]byte, []int) { - return file_v1_cluster_proto_rawDescGZIP(), []int{3} + return file_teleport_lib_teleterm_v1_cluster_proto_rawDescGZIP(), []int{3} } func (x *ResourceAccess) GetList() bool { @@ -499,7 +499,7 @@ type Features struct { func (x *Features) Reset() { *x = Features{} if protoimpl.UnsafeEnabled { - mi := &file_v1_cluster_proto_msgTypes[4] + mi := &file_teleport_lib_teleterm_v1_cluster_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -512,7 +512,7 @@ func (x *Features) String() string { func (*Features) ProtoMessage() {} func (x *Features) ProtoReflect() protoreflect.Message { - mi := &file_v1_cluster_proto_msgTypes[4] + mi := &file_teleport_lib_teleterm_v1_cluster_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -525,7 +525,7 @@ func (x *Features) ProtoReflect() protoreflect.Message { // Deprecated: Use Features.ProtoReflect.Descriptor instead. func (*Features) Descriptor() ([]byte, []int) { - return file_v1_cluster_proto_rawDescGZIP(), []int{4} + return file_teleport_lib_teleterm_v1_cluster_proto_rawDescGZIP(), []int{4} } func (x *Features) GetAdvancedAccessWorkflows() bool { @@ -535,153 +535,159 @@ func (x *Features) GetAdvancedAccessWorkflows() bool { return false } -var File_v1_cluster_proto protoreflect.FileDescriptor - -var file_v1_cluster_proto_rawDesc = []byte{ - 0x0a, 0x10, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x14, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, - 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x22, 0xae, 0x02, 0x0a, 0x07, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, - 0x6f, 0x78, 0x79, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x70, 0x72, 0x6f, 0x78, 0x79, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x65, 0x61, 0x66, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x6c, 0x65, 0x61, 0x66, 0x12, 0x48, 0x0a, 0x0e, 0x6c, - 0x6f, 0x67, 0x67, 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, - 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x67, 0x65, - 0x64, 0x49, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x0c, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x64, 0x49, - 0x6e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x3a, 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, - 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x46, - 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, - 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x75, 0x74, 0x68, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, 0x8b, 0x02, 0x0a, 0x0c, 0x4c, 0x6f, - 0x67, 0x67, 0x65, 0x64, 0x49, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, - 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, - 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x73, 0x68, 0x5f, 0x6c, 0x6f, 0x67, 0x69, - 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x73, 0x73, 0x68, 0x4c, 0x6f, 0x67, - 0x69, 0x6e, 0x73, 0x12, 0x2b, 0x0a, 0x03, 0x61, 0x63, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, - 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x43, 0x4c, 0x52, 0x03, 0x61, 0x63, 0x6c, - 0x12, 0x27, 0x0a, 0x0f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x61, 0x63, 0x74, 0x69, 0x76, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x2f, 0x0a, 0x13, 0x73, 0x75, 0x67, - 0x67, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x65, 0x72, 0x73, - 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x65, - 0x64, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x65, 0x72, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, - 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0xa4, 0x06, 0x0a, 0x03, 0x41, 0x43, 0x4c, 0x12, - 0x40, 0x0a, 0x08, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x24, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, - 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x08, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x12, 0x4d, 0x0a, 0x0f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x74, 0x65, 0x6c, - 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, - 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, - 0x52, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, - 0x12, 0x3a, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x24, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, - 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, - 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x3a, 0x0a, 0x05, - 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x74, 0x65, - 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, +var File_teleport_lib_teleterm_v1_cluster_proto protoreflect.FileDescriptor + +var file_teleport_lib_teleterm_v1_cluster_proto_rawDesc = []byte{ + 0x0a, 0x26, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, + 0x76, 0x31, 0x22, 0xb6, 0x02, 0x0a, 0x07, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x10, + 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x68, 0x6f, + 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x48, + 0x6f, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, + 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x65, 0x61, 0x66, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x04, 0x6c, 0x65, 0x61, 0x66, 0x12, 0x4c, 0x0a, 0x0e, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x64, 0x5f, + 0x69, 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, + 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x67, 0x65, 0x64, 0x49, + 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x0c, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x64, 0x49, 0x6e, 0x55, + 0x73, 0x65, 0x72, 0x12, 0x3e, 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, + 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, + 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, + 0x72, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x75, + 0x74, 0x68, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, 0x8f, 0x02, 0x0a, 0x0c, + 0x4c, 0x6f, 0x67, 0x67, 0x65, 0x64, 0x49, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x73, 0x68, 0x5f, 0x6c, 0x6f, + 0x67, 0x69, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x73, 0x73, 0x68, 0x4c, + 0x6f, 0x67, 0x69, 0x6e, 0x73, 0x12, 0x2f, 0x0a, 0x03, 0x61, 0x63, 0x6c, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, + 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x43, + 0x4c, 0x52, 0x03, 0x61, 0x63, 0x6c, 0x12, 0x27, 0x0a, 0x0f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, + 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x0e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, + 0x2f, 0x0a, 0x13, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x76, + 0x69, 0x65, 0x77, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 0x73, 0x75, + 0x67, 0x67, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x65, 0x72, 0x73, + 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, + 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0xd4, 0x06, + 0x0a, 0x03, 0x41, 0x43, 0x4c, 0x12, 0x44, 0x0a, 0x08, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x12, 0x4f, 0x0a, 0x10, 0x74, 0x72, 0x75, 0x73, - 0x74, 0x65, 0x64, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, - 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x0f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x65, - 0x64, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x12, 0x3c, 0x0a, 0x06, 0x65, 0x76, 0x65, - 0x6e, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x74, 0x65, 0x6c, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, - 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, - 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x3c, 0x0a, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x52, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x06, 0x74, - 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x3e, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, - 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, - 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x07, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x73, 0x12, 0x38, 0x0a, 0x04, 0x61, 0x70, 0x70, 0x73, 0x18, 0x09, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, - 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x04, 0x61, 0x70, 0x70, 0x73, 0x12, - 0x36, 0x0a, 0x03, 0x64, 0x62, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x74, - 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, + 0x73, 0x52, 0x08, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x51, 0x0a, 0x0f, 0x61, + 0x75, 0x74, 0x68, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, + 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x0e, + 0x61, 0x75, 0x74, 0x68, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x3e, + 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, + 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x3e, + 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, + 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x12, 0x53, + 0x0a, 0x10, 0x74, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, + 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x63, 0x63, 0x65, - 0x73, 0x73, 0x52, 0x03, 0x64, 0x62, 0x73, 0x12, 0x46, 0x0a, 0x0b, 0x6b, 0x75, 0x62, 0x65, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x74, - 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, + 0x73, 0x73, 0x52, 0x0f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x73, 0x12, 0x40, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, + 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x06, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x40, 0x0a, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, + 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, + 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, + 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x42, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, + 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x63, 0x63, 0x65, - 0x73, 0x73, 0x52, 0x0b, 0x6b, 0x75, 0x62, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x12, - 0x4d, 0x0a, 0x0f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, - 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x0e, - 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0x7c, - 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, - 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, - 0x6c, 0x69, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x65, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x04, 0x72, 0x65, 0x61, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x64, 0x69, 0x74, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x65, 0x64, 0x69, 0x74, 0x12, 0x16, 0x0a, 0x06, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x22, 0x46, 0x0a, 0x08, - 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x3a, 0x0a, 0x19, 0x61, 0x64, 0x76, 0x61, - 0x6e, 0x63, 0x65, 0x64, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x77, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x61, 0x64, 0x76, - 0x61, 0x6e, 0x63, 0x65, 0x64, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x57, 0x6f, 0x72, 0x6b, 0x66, - 0x6c, 0x6f, 0x77, 0x73, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, - 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x73, 0x73, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x12, 0x3c, 0x0a, 0x04, 0x61, + 0x70, 0x70, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x74, 0x65, 0x6c, 0x65, + 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, + 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x63, 0x63, + 0x65, 0x73, 0x73, 0x52, 0x04, 0x61, 0x70, 0x70, 0x73, 0x12, 0x3a, 0x0a, 0x03, 0x64, 0x62, 0x73, + 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x52, 0x03, 0x64, 0x62, 0x73, 0x12, 0x4a, 0x0a, 0x0b, 0x6b, 0x75, 0x62, 0x65, 0x73, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x74, 0x65, 0x6c, + 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x52, 0x0b, 0x6b, 0x75, 0x62, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x73, 0x12, 0x51, 0x0a, 0x0f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x74, 0x65, 0x6c, + 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x52, 0x0e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x73, 0x22, 0x7c, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x65, + 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x72, 0x65, 0x61, 0x64, 0x12, 0x12, + 0x0a, 0x04, 0x65, 0x64, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x65, 0x64, + 0x69, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x06, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x64, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x22, 0x46, 0x0a, 0x08, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x3a, + 0x0a, 0x19, 0x61, 0x64, 0x76, 0x61, 0x6e, 0x63, 0x65, 0x64, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x17, 0x61, 0x64, 0x76, 0x61, 0x6e, 0x63, 0x65, 0x64, 0x41, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x42, 0x49, 0x5a, 0x47, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, + 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x6c, + 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_v1_cluster_proto_rawDescOnce sync.Once - file_v1_cluster_proto_rawDescData = file_v1_cluster_proto_rawDesc + file_teleport_lib_teleterm_v1_cluster_proto_rawDescOnce sync.Once + file_teleport_lib_teleterm_v1_cluster_proto_rawDescData = file_teleport_lib_teleterm_v1_cluster_proto_rawDesc ) -func file_v1_cluster_proto_rawDescGZIP() []byte { - file_v1_cluster_proto_rawDescOnce.Do(func() { - file_v1_cluster_proto_rawDescData = protoimpl.X.CompressGZIP(file_v1_cluster_proto_rawDescData) +func file_teleport_lib_teleterm_v1_cluster_proto_rawDescGZIP() []byte { + file_teleport_lib_teleterm_v1_cluster_proto_rawDescOnce.Do(func() { + file_teleport_lib_teleterm_v1_cluster_proto_rawDescData = protoimpl.X.CompressGZIP(file_teleport_lib_teleterm_v1_cluster_proto_rawDescData) }) - return file_v1_cluster_proto_rawDescData -} - -var file_v1_cluster_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_v1_cluster_proto_goTypes = []interface{}{ - (*Cluster)(nil), // 0: teleport.terminal.v1.Cluster - (*LoggedInUser)(nil), // 1: teleport.terminal.v1.LoggedInUser - (*ACL)(nil), // 2: teleport.terminal.v1.ACL - (*ResourceAccess)(nil), // 3: teleport.terminal.v1.ResourceAccess - (*Features)(nil), // 4: teleport.terminal.v1.Features -} -var file_v1_cluster_proto_depIdxs = []int32{ - 1, // 0: teleport.terminal.v1.Cluster.logged_in_user:type_name -> teleport.terminal.v1.LoggedInUser - 4, // 1: teleport.terminal.v1.Cluster.features:type_name -> teleport.terminal.v1.Features - 2, // 2: teleport.terminal.v1.LoggedInUser.acl:type_name -> teleport.terminal.v1.ACL - 3, // 3: teleport.terminal.v1.ACL.sessions:type_name -> teleport.terminal.v1.ResourceAccess - 3, // 4: teleport.terminal.v1.ACL.auth_connectors:type_name -> teleport.terminal.v1.ResourceAccess - 3, // 5: teleport.terminal.v1.ACL.roles:type_name -> teleport.terminal.v1.ResourceAccess - 3, // 6: teleport.terminal.v1.ACL.users:type_name -> teleport.terminal.v1.ResourceAccess - 3, // 7: teleport.terminal.v1.ACL.trusted_clusters:type_name -> teleport.terminal.v1.ResourceAccess - 3, // 8: teleport.terminal.v1.ACL.events:type_name -> teleport.terminal.v1.ResourceAccess - 3, // 9: teleport.terminal.v1.ACL.tokens:type_name -> teleport.terminal.v1.ResourceAccess - 3, // 10: teleport.terminal.v1.ACL.servers:type_name -> teleport.terminal.v1.ResourceAccess - 3, // 11: teleport.terminal.v1.ACL.apps:type_name -> teleport.terminal.v1.ResourceAccess - 3, // 12: teleport.terminal.v1.ACL.dbs:type_name -> teleport.terminal.v1.ResourceAccess - 3, // 13: teleport.terminal.v1.ACL.kubeservers:type_name -> teleport.terminal.v1.ResourceAccess - 3, // 14: teleport.terminal.v1.ACL.access_requests:type_name -> teleport.terminal.v1.ResourceAccess + return file_teleport_lib_teleterm_v1_cluster_proto_rawDescData +} + +var file_teleport_lib_teleterm_v1_cluster_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_teleport_lib_teleterm_v1_cluster_proto_goTypes = []interface{}{ + (*Cluster)(nil), // 0: teleport.lib.teleterm.v1.Cluster + (*LoggedInUser)(nil), // 1: teleport.lib.teleterm.v1.LoggedInUser + (*ACL)(nil), // 2: teleport.lib.teleterm.v1.ACL + (*ResourceAccess)(nil), // 3: teleport.lib.teleterm.v1.ResourceAccess + (*Features)(nil), // 4: teleport.lib.teleterm.v1.Features +} +var file_teleport_lib_teleterm_v1_cluster_proto_depIdxs = []int32{ + 1, // 0: teleport.lib.teleterm.v1.Cluster.logged_in_user:type_name -> teleport.lib.teleterm.v1.LoggedInUser + 4, // 1: teleport.lib.teleterm.v1.Cluster.features:type_name -> teleport.lib.teleterm.v1.Features + 2, // 2: teleport.lib.teleterm.v1.LoggedInUser.acl:type_name -> teleport.lib.teleterm.v1.ACL + 3, // 3: teleport.lib.teleterm.v1.ACL.sessions:type_name -> teleport.lib.teleterm.v1.ResourceAccess + 3, // 4: teleport.lib.teleterm.v1.ACL.auth_connectors:type_name -> teleport.lib.teleterm.v1.ResourceAccess + 3, // 5: teleport.lib.teleterm.v1.ACL.roles:type_name -> teleport.lib.teleterm.v1.ResourceAccess + 3, // 6: teleport.lib.teleterm.v1.ACL.users:type_name -> teleport.lib.teleterm.v1.ResourceAccess + 3, // 7: teleport.lib.teleterm.v1.ACL.trusted_clusters:type_name -> teleport.lib.teleterm.v1.ResourceAccess + 3, // 8: teleport.lib.teleterm.v1.ACL.events:type_name -> teleport.lib.teleterm.v1.ResourceAccess + 3, // 9: teleport.lib.teleterm.v1.ACL.tokens:type_name -> teleport.lib.teleterm.v1.ResourceAccess + 3, // 10: teleport.lib.teleterm.v1.ACL.servers:type_name -> teleport.lib.teleterm.v1.ResourceAccess + 3, // 11: teleport.lib.teleterm.v1.ACL.apps:type_name -> teleport.lib.teleterm.v1.ResourceAccess + 3, // 12: teleport.lib.teleterm.v1.ACL.dbs:type_name -> teleport.lib.teleterm.v1.ResourceAccess + 3, // 13: teleport.lib.teleterm.v1.ACL.kubeservers:type_name -> teleport.lib.teleterm.v1.ResourceAccess + 3, // 14: teleport.lib.teleterm.v1.ACL.access_requests:type_name -> teleport.lib.teleterm.v1.ResourceAccess 15, // [15:15] is the sub-list for method output_type 15, // [15:15] is the sub-list for method input_type 15, // [15:15] is the sub-list for extension type_name @@ -689,13 +695,13 @@ var file_v1_cluster_proto_depIdxs = []int32{ 0, // [0:15] is the sub-list for field type_name } -func init() { file_v1_cluster_proto_init() } -func file_v1_cluster_proto_init() { - if File_v1_cluster_proto != nil { +func init() { file_teleport_lib_teleterm_v1_cluster_proto_init() } +func file_teleport_lib_teleterm_v1_cluster_proto_init() { + if File_teleport_lib_teleterm_v1_cluster_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_v1_cluster_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_cluster_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Cluster); i { case 0: return &v.state @@ -707,7 +713,7 @@ func file_v1_cluster_proto_init() { return nil } } - file_v1_cluster_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_cluster_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LoggedInUser); i { case 0: return &v.state @@ -719,7 +725,7 @@ func file_v1_cluster_proto_init() { return nil } } - file_v1_cluster_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_cluster_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ACL); i { case 0: return &v.state @@ -731,7 +737,7 @@ func file_v1_cluster_proto_init() { return nil } } - file_v1_cluster_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_cluster_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ResourceAccess); i { case 0: return &v.state @@ -743,7 +749,7 @@ func file_v1_cluster_proto_init() { return nil } } - file_v1_cluster_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_cluster_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Features); i { case 0: return &v.state @@ -760,18 +766,18 @@ func file_v1_cluster_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_v1_cluster_proto_rawDesc, + RawDescriptor: file_teleport_lib_teleterm_v1_cluster_proto_rawDesc, NumEnums: 0, NumMessages: 5, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_v1_cluster_proto_goTypes, - DependencyIndexes: file_v1_cluster_proto_depIdxs, - MessageInfos: file_v1_cluster_proto_msgTypes, + GoTypes: file_teleport_lib_teleterm_v1_cluster_proto_goTypes, + DependencyIndexes: file_teleport_lib_teleterm_v1_cluster_proto_depIdxs, + MessageInfos: file_teleport_lib_teleterm_v1_cluster_proto_msgTypes, }.Build() - File_v1_cluster_proto = out.File - file_v1_cluster_proto_rawDesc = nil - file_v1_cluster_proto_goTypes = nil - file_v1_cluster_proto_depIdxs = nil + File_teleport_lib_teleterm_v1_cluster_proto = out.File + file_teleport_lib_teleterm_v1_cluster_proto_rawDesc = nil + file_teleport_lib_teleterm_v1_cluster_proto_goTypes = nil + file_teleport_lib_teleterm_v1_cluster_proto_depIdxs = nil } diff --git a/lib/teleterm/api/protogen/golang/v1/database.pb.go b/gen/proto/go/teleport/lib/teleterm/v1/database.pb.go similarity index 60% rename from lib/teleterm/api/protogen/golang/v1/database.pb.go rename to gen/proto/go/teleport/lib/teleterm/v1/database.pb.go index 3718e5531386e..e07165e94be6c 100644 --- a/lib/teleterm/api/protogen/golang/v1/database.pb.go +++ b/gen/proto/go/teleport/lib/teleterm/v1/database.pb.go @@ -16,7 +16,7 @@ // versions: // protoc-gen-go v1.28.1 // protoc (unknown) -// source: v1/database.proto +// source: teleport/lib/teleterm/v1/database.proto package v1 @@ -61,7 +61,7 @@ type Database struct { func (x *Database) Reset() { *x = Database{} if protoimpl.UnsafeEnabled { - mi := &file_v1_database_proto_msgTypes[0] + mi := &file_teleport_lib_teleterm_v1_database_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -74,7 +74,7 @@ func (x *Database) String() string { func (*Database) ProtoMessage() {} func (x *Database) ProtoReflect() protoreflect.Message { - mi := &file_v1_database_proto_msgTypes[0] + mi := &file_teleport_lib_teleterm_v1_database_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -87,7 +87,7 @@ func (x *Database) ProtoReflect() protoreflect.Message { // Deprecated: Use Database.ProtoReflect.Descriptor instead. func (*Database) Descriptor() ([]byte, []int) { - return file_v1_database_proto_rawDescGZIP(), []int{0} + return file_teleport_lib_teleterm_v1_database_proto_rawDescGZIP(), []int{0} } func (x *Database) GetUri() string { @@ -146,13 +146,16 @@ func (x *Database) GetLabels() []*Label { return nil } -var File_v1_database_proto protoreflect.FileDescriptor +var File_teleport_lib_teleterm_v1_database_proto protoreflect.FileDescriptor -var file_v1_database_proto_rawDesc = []byte{ - 0x0a, 0x11, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, - 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x1a, 0x0e, 0x76, 0x31, 0x2f, 0x6c, 0x61, - 0x62, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd9, 0x01, 0x0a, 0x08, 0x44, 0x61, +var file_teleport_lib_teleterm_v1_database_proto_rawDesc = []byte{ + 0x0a, 0x27, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, + 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x74, 0x65, 0x6c, 0x65, 0x70, + 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, + 0x2e, 0x76, 0x31, 0x1a, 0x24, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, + 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x61, + 0x62, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdd, 0x01, 0x0a, 0x08, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, @@ -163,35 +166,36 @@ var file_v1_database_proto_rawDesc = []byte{ 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, - 0x12, 0x33, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x1b, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, - 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x06, 0x6c, - 0x61, 0x62, 0x65, 0x6c, 0x73, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, - 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x12, 0x37, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, + 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x62, 0x65, + 0x6c, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x42, 0x49, 0x5a, 0x47, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x67, + 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x6c, 0x65, + 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, + 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_v1_database_proto_rawDescOnce sync.Once - file_v1_database_proto_rawDescData = file_v1_database_proto_rawDesc + file_teleport_lib_teleterm_v1_database_proto_rawDescOnce sync.Once + file_teleport_lib_teleterm_v1_database_proto_rawDescData = file_teleport_lib_teleterm_v1_database_proto_rawDesc ) -func file_v1_database_proto_rawDescGZIP() []byte { - file_v1_database_proto_rawDescOnce.Do(func() { - file_v1_database_proto_rawDescData = protoimpl.X.CompressGZIP(file_v1_database_proto_rawDescData) +func file_teleport_lib_teleterm_v1_database_proto_rawDescGZIP() []byte { + file_teleport_lib_teleterm_v1_database_proto_rawDescOnce.Do(func() { + file_teleport_lib_teleterm_v1_database_proto_rawDescData = protoimpl.X.CompressGZIP(file_teleport_lib_teleterm_v1_database_proto_rawDescData) }) - return file_v1_database_proto_rawDescData + return file_teleport_lib_teleterm_v1_database_proto_rawDescData } -var file_v1_database_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_v1_database_proto_goTypes = []interface{}{ - (*Database)(nil), // 0: teleport.terminal.v1.Database - (*Label)(nil), // 1: teleport.terminal.v1.Label +var file_teleport_lib_teleterm_v1_database_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_teleport_lib_teleterm_v1_database_proto_goTypes = []interface{}{ + (*Database)(nil), // 0: teleport.lib.teleterm.v1.Database + (*Label)(nil), // 1: teleport.lib.teleterm.v1.Label } -var file_v1_database_proto_depIdxs = []int32{ - 1, // 0: teleport.terminal.v1.Database.labels:type_name -> teleport.terminal.v1.Label +var file_teleport_lib_teleterm_v1_database_proto_depIdxs = []int32{ + 1, // 0: teleport.lib.teleterm.v1.Database.labels:type_name -> teleport.lib.teleterm.v1.Label 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 @@ -199,14 +203,14 @@ var file_v1_database_proto_depIdxs = []int32{ 0, // [0:1] is the sub-list for field type_name } -func init() { file_v1_database_proto_init() } -func file_v1_database_proto_init() { - if File_v1_database_proto != nil { +func init() { file_teleport_lib_teleterm_v1_database_proto_init() } +func file_teleport_lib_teleterm_v1_database_proto_init() { + if File_teleport_lib_teleterm_v1_database_proto != nil { return } - file_v1_label_proto_init() + file_teleport_lib_teleterm_v1_label_proto_init() if !protoimpl.UnsafeEnabled { - file_v1_database_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_database_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Database); i { case 0: return &v.state @@ -223,18 +227,18 @@ func file_v1_database_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_v1_database_proto_rawDesc, + RawDescriptor: file_teleport_lib_teleterm_v1_database_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_v1_database_proto_goTypes, - DependencyIndexes: file_v1_database_proto_depIdxs, - MessageInfos: file_v1_database_proto_msgTypes, + GoTypes: file_teleport_lib_teleterm_v1_database_proto_goTypes, + DependencyIndexes: file_teleport_lib_teleterm_v1_database_proto_depIdxs, + MessageInfos: file_teleport_lib_teleterm_v1_database_proto_msgTypes, }.Build() - File_v1_database_proto = out.File - file_v1_database_proto_rawDesc = nil - file_v1_database_proto_goTypes = nil - file_v1_database_proto_depIdxs = nil + File_teleport_lib_teleterm_v1_database_proto = out.File + file_teleport_lib_teleterm_v1_database_proto_rawDesc = nil + file_teleport_lib_teleterm_v1_database_proto_goTypes = nil + file_teleport_lib_teleterm_v1_database_proto_depIdxs = nil } diff --git a/lib/teleterm/api/protogen/golang/v1/gateway.pb.go b/gen/proto/go/teleport/lib/teleterm/v1/gateway.pb.go similarity index 56% rename from lib/teleterm/api/protogen/golang/v1/gateway.pb.go rename to gen/proto/go/teleport/lib/teleterm/v1/gateway.pb.go index 71431c4fe048c..3330c30c3fc31 100644 --- a/lib/teleterm/api/protogen/golang/v1/gateway.pb.go +++ b/gen/proto/go/teleport/lib/teleterm/v1/gateway.pb.go @@ -16,7 +16,7 @@ // versions: // protoc-gen-go v1.28.1 // protoc (unknown) -// source: v1/gateway.proto +// source: teleport/lib/teleterm/v1/gateway.proto package v1 @@ -76,7 +76,7 @@ type Gateway struct { func (x *Gateway) Reset() { *x = Gateway{} if protoimpl.UnsafeEnabled { - mi := &file_v1_gateway_proto_msgTypes[0] + mi := &file_teleport_lib_teleterm_v1_gateway_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -89,7 +89,7 @@ func (x *Gateway) String() string { func (*Gateway) ProtoMessage() {} func (x *Gateway) ProtoReflect() protoreflect.Message { - mi := &file_v1_gateway_proto_msgTypes[0] + mi := &file_teleport_lib_teleterm_v1_gateway_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -102,7 +102,7 @@ func (x *Gateway) ProtoReflect() protoreflect.Message { // Deprecated: Use Gateway.ProtoReflect.Descriptor instead. func (*Gateway) Descriptor() ([]byte, []int) { - return file_v1_gateway_proto_rawDescGZIP(), []int{0} + return file_teleport_lib_teleterm_v1_gateway_proto_rawDescGZIP(), []int{0} } func (x *Gateway) GetUri() string { @@ -168,54 +168,57 @@ func (x *Gateway) GetTargetSubresourceName() string { return "" } -var File_v1_gateway_proto protoreflect.FileDescriptor +var File_teleport_lib_teleterm_v1_gateway_proto protoreflect.FileDescriptor -var file_v1_gateway_proto_rawDesc = []byte{ - 0x0a, 0x10, 0x76, 0x31, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x14, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, - 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x22, 0xb5, 0x02, 0x0a, 0x07, 0x47, 0x61, 0x74, - 0x65, 0x77, 0x61, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x61, 0x72, - 0x67, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x72, - 0x67, 0x65, 0x74, 0x55, 0x72, 0x69, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x61, 0x72, - 0x67, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x6c, - 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1d, 0x0a, 0x0a, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x69, 0x5f, 0x63, - 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, - 0x69, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x36, 0x0a, 0x17, 0x74, 0x61, 0x72, 0x67, - 0x65, 0x74, 0x5f, 0x73, 0x75, 0x62, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x74, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x53, 0x75, 0x62, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, - 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, - 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, +var file_teleport_lib_teleterm_v1_gateway_proto_rawDesc = []byte{ + 0x0a, 0x26, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, + 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, + 0x76, 0x31, 0x22, 0xb5, 0x02, 0x0a, 0x07, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x12, 0x10, + 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, + 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x55, 0x72, 0x69, + 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x55, 0x73, 0x65, + 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, + 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6c, 0x6f, 0x63, 0x61, + 0x6c, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, + 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, + 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x69, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x69, 0x43, 0x6f, 0x6d, 0x6d, 0x61, + 0x6e, 0x64, 0x12, 0x36, 0x0a, 0x17, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x75, 0x62, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x15, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x75, 0x62, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x49, 0x5a, 0x47, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, + 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_v1_gateway_proto_rawDescOnce sync.Once - file_v1_gateway_proto_rawDescData = file_v1_gateway_proto_rawDesc + file_teleport_lib_teleterm_v1_gateway_proto_rawDescOnce sync.Once + file_teleport_lib_teleterm_v1_gateway_proto_rawDescData = file_teleport_lib_teleterm_v1_gateway_proto_rawDesc ) -func file_v1_gateway_proto_rawDescGZIP() []byte { - file_v1_gateway_proto_rawDescOnce.Do(func() { - file_v1_gateway_proto_rawDescData = protoimpl.X.CompressGZIP(file_v1_gateway_proto_rawDescData) +func file_teleport_lib_teleterm_v1_gateway_proto_rawDescGZIP() []byte { + file_teleport_lib_teleterm_v1_gateway_proto_rawDescOnce.Do(func() { + file_teleport_lib_teleterm_v1_gateway_proto_rawDescData = protoimpl.X.CompressGZIP(file_teleport_lib_teleterm_v1_gateway_proto_rawDescData) }) - return file_v1_gateway_proto_rawDescData + return file_teleport_lib_teleterm_v1_gateway_proto_rawDescData } -var file_v1_gateway_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_v1_gateway_proto_goTypes = []interface{}{ - (*Gateway)(nil), // 0: teleport.terminal.v1.Gateway +var file_teleport_lib_teleterm_v1_gateway_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_teleport_lib_teleterm_v1_gateway_proto_goTypes = []interface{}{ + (*Gateway)(nil), // 0: teleport.lib.teleterm.v1.Gateway } -var file_v1_gateway_proto_depIdxs = []int32{ +var file_teleport_lib_teleterm_v1_gateway_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name @@ -223,13 +226,13 @@ var file_v1_gateway_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for field type_name } -func init() { file_v1_gateway_proto_init() } -func file_v1_gateway_proto_init() { - if File_v1_gateway_proto != nil { +func init() { file_teleport_lib_teleterm_v1_gateway_proto_init() } +func file_teleport_lib_teleterm_v1_gateway_proto_init() { + if File_teleport_lib_teleterm_v1_gateway_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_v1_gateway_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_gateway_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Gateway); i { case 0: return &v.state @@ -246,18 +249,18 @@ func file_v1_gateway_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_v1_gateway_proto_rawDesc, + RawDescriptor: file_teleport_lib_teleterm_v1_gateway_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_v1_gateway_proto_goTypes, - DependencyIndexes: file_v1_gateway_proto_depIdxs, - MessageInfos: file_v1_gateway_proto_msgTypes, + GoTypes: file_teleport_lib_teleterm_v1_gateway_proto_goTypes, + DependencyIndexes: file_teleport_lib_teleterm_v1_gateway_proto_depIdxs, + MessageInfos: file_teleport_lib_teleterm_v1_gateway_proto_msgTypes, }.Build() - File_v1_gateway_proto = out.File - file_v1_gateway_proto_rawDesc = nil - file_v1_gateway_proto_goTypes = nil - file_v1_gateway_proto_depIdxs = nil + File_teleport_lib_teleterm_v1_gateway_proto = out.File + file_teleport_lib_teleterm_v1_gateway_proto_rawDesc = nil + file_teleport_lib_teleterm_v1_gateway_proto_goTypes = nil + file_teleport_lib_teleterm_v1_gateway_proto_depIdxs = nil } diff --git a/gen/proto/go/teleport/lib/teleterm/v1/kube.pb.go b/gen/proto/go/teleport/lib/teleterm/v1/kube.pb.go new file mode 100644 index 0000000000000..2347b83f83dfa --- /dev/null +++ b/gen/proto/go/teleport/lib/teleterm/v1/kube.pb.go @@ -0,0 +1,191 @@ +// Copyright 2021 Gravitational, Inc +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc (unknown) +// source: teleport/lib/teleterm/v1/kube.proto + +package v1 + +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) +) + +// Kube describes connected Kubernetes cluster +type Kube struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // uri is the kube resource URI + Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` + // name is the kube name + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // labels is the kube labels + Labels []*Label `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty"` +} + +func (x *Kube) Reset() { + *x = Kube{} + if protoimpl.UnsafeEnabled { + mi := &file_teleport_lib_teleterm_v1_kube_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Kube) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Kube) ProtoMessage() {} + +func (x *Kube) ProtoReflect() protoreflect.Message { + mi := &file_teleport_lib_teleterm_v1_kube_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 Kube.ProtoReflect.Descriptor instead. +func (*Kube) Descriptor() ([]byte, []int) { + return file_teleport_lib_teleterm_v1_kube_proto_rawDescGZIP(), []int{0} +} + +func (x *Kube) GetUri() string { + if x != nil { + return x.Uri + } + return "" +} + +func (x *Kube) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Kube) GetLabels() []*Label { + if x != nil { + return x.Labels + } + return nil +} + +var File_teleport_lib_teleterm_v1_kube_proto protoreflect.FileDescriptor + +var file_teleport_lib_teleterm_v1_kube_proto_rawDesc = []byte{ + 0x0a, 0x23, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, + 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x1a, + 0x24, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x65, 0x0a, 0x04, 0x4b, 0x75, 0x62, 0x65, 0x12, 0x10, 0x0a, + 0x03, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, + 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, + 0x61, 0x62, 0x65, 0x6c, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x42, 0x49, 0x5a, 0x47, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, + 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x74, + 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_teleport_lib_teleterm_v1_kube_proto_rawDescOnce sync.Once + file_teleport_lib_teleterm_v1_kube_proto_rawDescData = file_teleport_lib_teleterm_v1_kube_proto_rawDesc +) + +func file_teleport_lib_teleterm_v1_kube_proto_rawDescGZIP() []byte { + file_teleport_lib_teleterm_v1_kube_proto_rawDescOnce.Do(func() { + file_teleport_lib_teleterm_v1_kube_proto_rawDescData = protoimpl.X.CompressGZIP(file_teleport_lib_teleterm_v1_kube_proto_rawDescData) + }) + return file_teleport_lib_teleterm_v1_kube_proto_rawDescData +} + +var file_teleport_lib_teleterm_v1_kube_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_teleport_lib_teleterm_v1_kube_proto_goTypes = []interface{}{ + (*Kube)(nil), // 0: teleport.lib.teleterm.v1.Kube + (*Label)(nil), // 1: teleport.lib.teleterm.v1.Label +} +var file_teleport_lib_teleterm_v1_kube_proto_depIdxs = []int32{ + 1, // 0: teleport.lib.teleterm.v1.Kube.labels:type_name -> teleport.lib.teleterm.v1.Label + 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_teleport_lib_teleterm_v1_kube_proto_init() } +func file_teleport_lib_teleterm_v1_kube_proto_init() { + if File_teleport_lib_teleterm_v1_kube_proto != nil { + return + } + file_teleport_lib_teleterm_v1_label_proto_init() + if !protoimpl.UnsafeEnabled { + file_teleport_lib_teleterm_v1_kube_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Kube); 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_teleport_lib_teleterm_v1_kube_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_teleport_lib_teleterm_v1_kube_proto_goTypes, + DependencyIndexes: file_teleport_lib_teleterm_v1_kube_proto_depIdxs, + MessageInfos: file_teleport_lib_teleterm_v1_kube_proto_msgTypes, + }.Build() + File_teleport_lib_teleterm_v1_kube_proto = out.File + file_teleport_lib_teleterm_v1_kube_proto_rawDesc = nil + file_teleport_lib_teleterm_v1_kube_proto_goTypes = nil + file_teleport_lib_teleterm_v1_kube_proto_depIdxs = nil +} diff --git a/lib/teleterm/api/protogen/golang/v1/label.pb.go b/gen/proto/go/teleport/lib/teleterm/v1/label.pb.go similarity index 51% rename from lib/teleterm/api/protogen/golang/v1/label.pb.go rename to gen/proto/go/teleport/lib/teleterm/v1/label.pb.go index a18c3e8c6ccdf..abcef1a87f828 100644 --- a/lib/teleterm/api/protogen/golang/v1/label.pb.go +++ b/gen/proto/go/teleport/lib/teleterm/v1/label.pb.go @@ -16,7 +16,7 @@ // versions: // protoc-gen-go v1.28.1 // protoc (unknown) -// source: v1/label.proto +// source: teleport/lib/teleterm/v1/label.proto package v1 @@ -49,7 +49,7 @@ type Label struct { func (x *Label) Reset() { *x = Label{} if protoimpl.UnsafeEnabled { - mi := &file_v1_label_proto_msgTypes[0] + mi := &file_teleport_lib_teleterm_v1_label_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -62,7 +62,7 @@ func (x *Label) String() string { func (*Label) ProtoMessage() {} func (x *Label) ProtoReflect() protoreflect.Message { - mi := &file_v1_label_proto_msgTypes[0] + mi := &file_teleport_lib_teleterm_v1_label_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -75,7 +75,7 @@ func (x *Label) ProtoReflect() protoreflect.Message { // Deprecated: Use Label.ProtoReflect.Descriptor instead. func (*Label) Descriptor() ([]byte, []int) { - return file_v1_label_proto_rawDescGZIP(), []int{0} + return file_teleport_lib_teleterm_v1_label_proto_rawDescGZIP(), []int{0} } func (x *Label) GetName() string { @@ -92,38 +92,41 @@ func (x *Label) GetValue() string { return "" } -var File_v1_label_proto protoreflect.FileDescriptor - -var file_v1_label_proto_rawDesc = []byte{ - 0x0a, 0x0e, 0x76, 0x31, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x14, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, - 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x22, 0x31, 0x0a, 0x05, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, +var File_teleport_lib_teleterm_v1_label_proto protoreflect.FileDescriptor + +var file_teleport_lib_teleterm_v1_label_proto_rawDesc = []byte{ + 0x0a, 0x24, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, + 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, + 0x22, 0x31, 0x0a, 0x05, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x42, 0x49, 0x5a, 0x47, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, + 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_v1_label_proto_rawDescOnce sync.Once - file_v1_label_proto_rawDescData = file_v1_label_proto_rawDesc + file_teleport_lib_teleterm_v1_label_proto_rawDescOnce sync.Once + file_teleport_lib_teleterm_v1_label_proto_rawDescData = file_teleport_lib_teleterm_v1_label_proto_rawDesc ) -func file_v1_label_proto_rawDescGZIP() []byte { - file_v1_label_proto_rawDescOnce.Do(func() { - file_v1_label_proto_rawDescData = protoimpl.X.CompressGZIP(file_v1_label_proto_rawDescData) +func file_teleport_lib_teleterm_v1_label_proto_rawDescGZIP() []byte { + file_teleport_lib_teleterm_v1_label_proto_rawDescOnce.Do(func() { + file_teleport_lib_teleterm_v1_label_proto_rawDescData = protoimpl.X.CompressGZIP(file_teleport_lib_teleterm_v1_label_proto_rawDescData) }) - return file_v1_label_proto_rawDescData + return file_teleport_lib_teleterm_v1_label_proto_rawDescData } -var file_v1_label_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_v1_label_proto_goTypes = []interface{}{ - (*Label)(nil), // 0: teleport.terminal.v1.Label +var file_teleport_lib_teleterm_v1_label_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_teleport_lib_teleterm_v1_label_proto_goTypes = []interface{}{ + (*Label)(nil), // 0: teleport.lib.teleterm.v1.Label } -var file_v1_label_proto_depIdxs = []int32{ +var file_teleport_lib_teleterm_v1_label_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name @@ -131,13 +134,13 @@ var file_v1_label_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for field type_name } -func init() { file_v1_label_proto_init() } -func file_v1_label_proto_init() { - if File_v1_label_proto != nil { +func init() { file_teleport_lib_teleterm_v1_label_proto_init() } +func file_teleport_lib_teleterm_v1_label_proto_init() { + if File_teleport_lib_teleterm_v1_label_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_v1_label_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_label_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Label); i { case 0: return &v.state @@ -154,18 +157,18 @@ func file_v1_label_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_v1_label_proto_rawDesc, + RawDescriptor: file_teleport_lib_teleterm_v1_label_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_v1_label_proto_goTypes, - DependencyIndexes: file_v1_label_proto_depIdxs, - MessageInfos: file_v1_label_proto_msgTypes, + GoTypes: file_teleport_lib_teleterm_v1_label_proto_goTypes, + DependencyIndexes: file_teleport_lib_teleterm_v1_label_proto_depIdxs, + MessageInfos: file_teleport_lib_teleterm_v1_label_proto_msgTypes, }.Build() - File_v1_label_proto = out.File - file_v1_label_proto_rawDesc = nil - file_v1_label_proto_goTypes = nil - file_v1_label_proto_depIdxs = nil + File_teleport_lib_teleterm_v1_label_proto = out.File + file_teleport_lib_teleterm_v1_label_proto_rawDesc = nil + file_teleport_lib_teleterm_v1_label_proto_goTypes = nil + file_teleport_lib_teleterm_v1_label_proto_depIdxs = nil } diff --git a/lib/teleterm/api/protogen/golang/v1/server.pb.go b/gen/proto/go/teleport/lib/teleterm/v1/server.pb.go similarity index 56% rename from lib/teleterm/api/protogen/golang/v1/server.pb.go rename to gen/proto/go/teleport/lib/teleterm/v1/server.pb.go index 096cb5462a187..f9f73444d686d 100644 --- a/lib/teleterm/api/protogen/golang/v1/server.pb.go +++ b/gen/proto/go/teleport/lib/teleterm/v1/server.pb.go @@ -16,7 +16,7 @@ // versions: // protoc-gen-go v1.28.1 // protoc (unknown) -// source: v1/server.proto +// source: teleport/lib/teleterm/v1/server.proto package v1 @@ -57,7 +57,7 @@ type Server struct { func (x *Server) Reset() { *x = Server{} if protoimpl.UnsafeEnabled { - mi := &file_v1_server_proto_msgTypes[0] + mi := &file_teleport_lib_teleterm_v1_server_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -70,7 +70,7 @@ func (x *Server) String() string { func (*Server) ProtoMessage() {} func (x *Server) ProtoReflect() protoreflect.Message { - mi := &file_v1_server_proto_msgTypes[0] + mi := &file_teleport_lib_teleterm_v1_server_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -83,7 +83,7 @@ func (x *Server) ProtoReflect() protoreflect.Message { // Deprecated: Use Server.ProtoReflect.Descriptor instead. func (*Server) Descriptor() ([]byte, []int) { - return file_v1_server_proto_rawDescGZIP(), []int{0} + return file_teleport_lib_teleterm_v1_server_proto_rawDescGZIP(), []int{0} } func (x *Server) GetUri() string { @@ -128,13 +128,16 @@ func (x *Server) GetLabels() []*Label { return nil } -var File_v1_server_proto protoreflect.FileDescriptor +var File_teleport_lib_teleterm_v1_server_proto protoreflect.FileDescriptor -var file_v1_server_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x14, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, - 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x1a, 0x0e, 0x76, 0x31, 0x2f, 0x6c, 0x61, 0x62, 0x65, - 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xab, 0x01, 0x0a, 0x06, 0x53, 0x65, 0x72, 0x76, +var file_teleport_lib_teleterm_v1_server_proto_rawDesc = []byte{ + 0x0a, 0x25, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, + 0x31, 0x1a, 0x24, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, + 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x61, 0x62, 0x65, + 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xaf, 0x01, 0x0a, 0x06, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x04, @@ -142,35 +145,36 @@ var file_v1_server_proto_rawDesc = []byte{ 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, - 0x12, 0x33, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x1b, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, - 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x06, 0x6c, - 0x61, 0x62, 0x65, 0x6c, 0x73, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, - 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x12, 0x37, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, + 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x62, 0x65, + 0x6c, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x42, 0x49, 0x5a, 0x47, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x67, + 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x6c, 0x65, + 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, + 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_v1_server_proto_rawDescOnce sync.Once - file_v1_server_proto_rawDescData = file_v1_server_proto_rawDesc + file_teleport_lib_teleterm_v1_server_proto_rawDescOnce sync.Once + file_teleport_lib_teleterm_v1_server_proto_rawDescData = file_teleport_lib_teleterm_v1_server_proto_rawDesc ) -func file_v1_server_proto_rawDescGZIP() []byte { - file_v1_server_proto_rawDescOnce.Do(func() { - file_v1_server_proto_rawDescData = protoimpl.X.CompressGZIP(file_v1_server_proto_rawDescData) +func file_teleport_lib_teleterm_v1_server_proto_rawDescGZIP() []byte { + file_teleport_lib_teleterm_v1_server_proto_rawDescOnce.Do(func() { + file_teleport_lib_teleterm_v1_server_proto_rawDescData = protoimpl.X.CompressGZIP(file_teleport_lib_teleterm_v1_server_proto_rawDescData) }) - return file_v1_server_proto_rawDescData + return file_teleport_lib_teleterm_v1_server_proto_rawDescData } -var file_v1_server_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_v1_server_proto_goTypes = []interface{}{ - (*Server)(nil), // 0: teleport.terminal.v1.Server - (*Label)(nil), // 1: teleport.terminal.v1.Label +var file_teleport_lib_teleterm_v1_server_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_teleport_lib_teleterm_v1_server_proto_goTypes = []interface{}{ + (*Server)(nil), // 0: teleport.lib.teleterm.v1.Server + (*Label)(nil), // 1: teleport.lib.teleterm.v1.Label } -var file_v1_server_proto_depIdxs = []int32{ - 1, // 0: teleport.terminal.v1.Server.labels:type_name -> teleport.terminal.v1.Label +var file_teleport_lib_teleterm_v1_server_proto_depIdxs = []int32{ + 1, // 0: teleport.lib.teleterm.v1.Server.labels:type_name -> teleport.lib.teleterm.v1.Label 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 @@ -178,14 +182,14 @@ var file_v1_server_proto_depIdxs = []int32{ 0, // [0:1] is the sub-list for field type_name } -func init() { file_v1_server_proto_init() } -func file_v1_server_proto_init() { - if File_v1_server_proto != nil { +func init() { file_teleport_lib_teleterm_v1_server_proto_init() } +func file_teleport_lib_teleterm_v1_server_proto_init() { + if File_teleport_lib_teleterm_v1_server_proto != nil { return } - file_v1_label_proto_init() + file_teleport_lib_teleterm_v1_label_proto_init() if !protoimpl.UnsafeEnabled { - file_v1_server_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_server_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Server); i { case 0: return &v.state @@ -202,18 +206,18 @@ func file_v1_server_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_v1_server_proto_rawDesc, + RawDescriptor: file_teleport_lib_teleterm_v1_server_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_v1_server_proto_goTypes, - DependencyIndexes: file_v1_server_proto_depIdxs, - MessageInfos: file_v1_server_proto_msgTypes, + GoTypes: file_teleport_lib_teleterm_v1_server_proto_goTypes, + DependencyIndexes: file_teleport_lib_teleterm_v1_server_proto_depIdxs, + MessageInfos: file_teleport_lib_teleterm_v1_server_proto_msgTypes, }.Build() - File_v1_server_proto = out.File - file_v1_server_proto_rawDesc = nil - file_v1_server_proto_goTypes = nil - file_v1_server_proto_depIdxs = nil + File_teleport_lib_teleterm_v1_server_proto = out.File + file_teleport_lib_teleterm_v1_server_proto_rawDesc = nil + file_teleport_lib_teleterm_v1_server_proto_goTypes = nil + file_teleport_lib_teleterm_v1_server_proto_depIdxs = nil } diff --git a/lib/teleterm/api/protogen/golang/v1/service.pb.go b/gen/proto/go/teleport/lib/teleterm/v1/service.pb.go similarity index 57% rename from lib/teleterm/api/protogen/golang/v1/service.pb.go rename to gen/proto/go/teleport/lib/teleterm/v1/service.pb.go index 8c18a84480917..7bddefd3914d4 100644 --- a/lib/teleterm/api/protogen/golang/v1/service.pb.go +++ b/gen/proto/go/teleport/lib/teleterm/v1/service.pb.go @@ -16,7 +16,7 @@ // versions: // protoc-gen-go v1.28.1 // protoc (unknown) -// source: v1/service.proto +// source: teleport/lib/teleterm/v1/service.proto package v1 @@ -76,11 +76,11 @@ func (x PasswordlessPrompt) String() string { } func (PasswordlessPrompt) Descriptor() protoreflect.EnumDescriptor { - return file_v1_service_proto_enumTypes[0].Descriptor() + return file_teleport_lib_teleterm_v1_service_proto_enumTypes[0].Descriptor() } func (PasswordlessPrompt) Type() protoreflect.EnumType { - return &file_v1_service_proto_enumTypes[0] + return &file_teleport_lib_teleterm_v1_service_proto_enumTypes[0] } func (x PasswordlessPrompt) Number() protoreflect.EnumNumber { @@ -89,7 +89,7 @@ func (x PasswordlessPrompt) Number() protoreflect.EnumNumber { // Deprecated: Use PasswordlessPrompt.Descriptor instead. func (PasswordlessPrompt) EnumDescriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{0} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{0} } // FileTransferDirection describes directions of a file transfer @@ -126,11 +126,11 @@ func (x FileTransferDirection) String() string { } func (FileTransferDirection) Descriptor() protoreflect.EnumDescriptor { - return file_v1_service_proto_enumTypes[1].Descriptor() + return file_teleport_lib_teleterm_v1_service_proto_enumTypes[1].Descriptor() } func (FileTransferDirection) Type() protoreflect.EnumType { - return &file_v1_service_proto_enumTypes[1] + return &file_teleport_lib_teleterm_v1_service_proto_enumTypes[1] } func (x FileTransferDirection) Number() protoreflect.EnumNumber { @@ -139,7 +139,7 @@ func (x FileTransferDirection) Number() protoreflect.EnumNumber { // Deprecated: Use FileTransferDirection.Descriptor instead. func (FileTransferDirection) EnumDescriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{1} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{1} } type EmptyResponse struct { @@ -151,7 +151,7 @@ type EmptyResponse struct { func (x *EmptyResponse) Reset() { *x = EmptyResponse{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[0] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -164,7 +164,7 @@ func (x *EmptyResponse) String() string { func (*EmptyResponse) ProtoMessage() {} func (x *EmptyResponse) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[0] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -177,7 +177,7 @@ func (x *EmptyResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use EmptyResponse.ProtoReflect.Descriptor instead. func (*EmptyResponse) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{0} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{0} } // RemoveClusterRequest describes RemoveClusterRequest @@ -192,7 +192,7 @@ type RemoveClusterRequest struct { func (x *RemoveClusterRequest) Reset() { *x = RemoveClusterRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[1] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -205,7 +205,7 @@ func (x *RemoveClusterRequest) String() string { func (*RemoveClusterRequest) ProtoMessage() {} func (x *RemoveClusterRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[1] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -218,7 +218,7 @@ func (x *RemoveClusterRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RemoveClusterRequest.ProtoReflect.Descriptor instead. func (*RemoveClusterRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{1} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{1} } func (x *RemoveClusterRequest) GetClusterUri() string { @@ -240,7 +240,7 @@ type GetClusterRequest struct { func (x *GetClusterRequest) Reset() { *x = GetClusterRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[2] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -253,7 +253,7 @@ func (x *GetClusterRequest) String() string { func (*GetClusterRequest) ProtoMessage() {} func (x *GetClusterRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[2] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -266,7 +266,7 @@ func (x *GetClusterRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetClusterRequest.ProtoReflect.Descriptor instead. func (*GetClusterRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{2} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{2} } func (x *GetClusterRequest) GetClusterUri() string { @@ -288,7 +288,7 @@ type LogoutRequest struct { func (x *LogoutRequest) Reset() { *x = LogoutRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[3] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -301,7 +301,7 @@ func (x *LogoutRequest) String() string { func (*LogoutRequest) ProtoMessage() {} func (x *LogoutRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[3] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -314,7 +314,7 @@ func (x *LogoutRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use LogoutRequest.ProtoReflect.Descriptor instead. func (*LogoutRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{3} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{3} } func (x *LogoutRequest) GetClusterUri() string { @@ -337,7 +337,7 @@ type GetAccessRequestRequest struct { func (x *GetAccessRequestRequest) Reset() { *x = GetAccessRequestRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[4] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -350,7 +350,7 @@ func (x *GetAccessRequestRequest) String() string { func (*GetAccessRequestRequest) ProtoMessage() {} func (x *GetAccessRequestRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[4] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -363,7 +363,7 @@ func (x *GetAccessRequestRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetAccessRequestRequest.ProtoReflect.Descriptor instead. func (*GetAccessRequestRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{4} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{4} } func (x *GetAccessRequestRequest) GetClusterUri() string { @@ -392,7 +392,7 @@ type GetAccessRequestsRequest struct { func (x *GetAccessRequestsRequest) Reset() { *x = GetAccessRequestsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[5] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -405,7 +405,7 @@ func (x *GetAccessRequestsRequest) String() string { func (*GetAccessRequestsRequest) ProtoMessage() {} func (x *GetAccessRequestsRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[5] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -418,7 +418,7 @@ func (x *GetAccessRequestsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetAccessRequestsRequest.ProtoReflect.Descriptor instead. func (*GetAccessRequestsRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{5} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{5} } func (x *GetAccessRequestsRequest) GetClusterUri() string { @@ -439,7 +439,7 @@ type GetAccessRequestResponse struct { func (x *GetAccessRequestResponse) Reset() { *x = GetAccessRequestResponse{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[6] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -452,7 +452,7 @@ func (x *GetAccessRequestResponse) String() string { func (*GetAccessRequestResponse) ProtoMessage() {} func (x *GetAccessRequestResponse) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[6] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -465,7 +465,7 @@ func (x *GetAccessRequestResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetAccessRequestResponse.ProtoReflect.Descriptor instead. func (*GetAccessRequestResponse) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{6} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{6} } func (x *GetAccessRequestResponse) GetRequest() *AccessRequest { @@ -486,7 +486,7 @@ type GetAccessRequestsResponse struct { func (x *GetAccessRequestsResponse) Reset() { *x = GetAccessRequestsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[7] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -499,7 +499,7 @@ func (x *GetAccessRequestsResponse) String() string { func (*GetAccessRequestsResponse) ProtoMessage() {} func (x *GetAccessRequestsResponse) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[7] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -512,7 +512,7 @@ func (x *GetAccessRequestsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetAccessRequestsResponse.ProtoReflect.Descriptor instead. func (*GetAccessRequestsResponse) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{7} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{7} } func (x *GetAccessRequestsResponse) GetRequests() []*AccessRequest { @@ -534,7 +534,7 @@ type DeleteAccessRequestRequest struct { func (x *DeleteAccessRequestRequest) Reset() { *x = DeleteAccessRequestRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[8] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -547,7 +547,7 @@ func (x *DeleteAccessRequestRequest) String() string { func (*DeleteAccessRequestRequest) ProtoMessage() {} func (x *DeleteAccessRequestRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[8] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -560,7 +560,7 @@ func (x *DeleteAccessRequestRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteAccessRequestRequest.ProtoReflect.Descriptor instead. func (*DeleteAccessRequestRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{8} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{8} } func (x *DeleteAccessRequestRequest) GetRootClusterUri() string { @@ -592,7 +592,7 @@ type CreateAccessRequestRequest struct { func (x *CreateAccessRequestRequest) Reset() { *x = CreateAccessRequestRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[9] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -605,7 +605,7 @@ func (x *CreateAccessRequestRequest) String() string { func (*CreateAccessRequestRequest) ProtoMessage() {} func (x *CreateAccessRequestRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[9] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -618,7 +618,7 @@ func (x *CreateAccessRequestRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateAccessRequestRequest.ProtoReflect.Descriptor instead. func (*CreateAccessRequestRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{9} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{9} } func (x *CreateAccessRequestRequest) GetRootClusterUri() string { @@ -667,7 +667,7 @@ type CreateAccessRequestResponse struct { func (x *CreateAccessRequestResponse) Reset() { *x = CreateAccessRequestResponse{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[10] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -680,7 +680,7 @@ func (x *CreateAccessRequestResponse) String() string { func (*CreateAccessRequestResponse) ProtoMessage() {} func (x *CreateAccessRequestResponse) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[10] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -693,7 +693,7 @@ func (x *CreateAccessRequestResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateAccessRequestResponse.ProtoReflect.Descriptor instead. func (*CreateAccessRequestResponse) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{10} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{10} } func (x *CreateAccessRequestResponse) GetRequest() *AccessRequest { @@ -716,7 +716,7 @@ type AssumeRoleRequest struct { func (x *AssumeRoleRequest) Reset() { *x = AssumeRoleRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[11] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -729,7 +729,7 @@ func (x *AssumeRoleRequest) String() string { func (*AssumeRoleRequest) ProtoMessage() {} func (x *AssumeRoleRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[11] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -742,7 +742,7 @@ func (x *AssumeRoleRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use AssumeRoleRequest.ProtoReflect.Descriptor instead. func (*AssumeRoleRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{11} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{11} } func (x *AssumeRoleRequest) GetRootClusterUri() string { @@ -778,7 +778,7 @@ type GetRequestableRolesRequest struct { func (x *GetRequestableRolesRequest) Reset() { *x = GetRequestableRolesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[12] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -791,7 +791,7 @@ func (x *GetRequestableRolesRequest) String() string { func (*GetRequestableRolesRequest) ProtoMessage() {} func (x *GetRequestableRolesRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[12] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -804,7 +804,7 @@ func (x *GetRequestableRolesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetRequestableRolesRequest.ProtoReflect.Descriptor instead. func (*GetRequestableRolesRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{12} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{12} } func (x *GetRequestableRolesRequest) GetClusterUri() string { @@ -833,7 +833,7 @@ type GetRequestableRolesResponse struct { func (x *GetRequestableRolesResponse) Reset() { *x = GetRequestableRolesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[13] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -846,7 +846,7 @@ func (x *GetRequestableRolesResponse) String() string { func (*GetRequestableRolesResponse) ProtoMessage() {} func (x *GetRequestableRolesResponse) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[13] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -859,7 +859,7 @@ func (x *GetRequestableRolesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetRequestableRolesResponse.ProtoReflect.Descriptor instead. func (*GetRequestableRolesResponse) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{13} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{13} } func (x *GetRequestableRolesResponse) GetRoles() []string { @@ -891,7 +891,7 @@ type ReviewAccessRequestRequest struct { func (x *ReviewAccessRequestRequest) Reset() { *x = ReviewAccessRequestRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[14] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -904,7 +904,7 @@ func (x *ReviewAccessRequestRequest) String() string { func (*ReviewAccessRequestRequest) ProtoMessage() {} func (x *ReviewAccessRequestRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[14] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -917,7 +917,7 @@ func (x *ReviewAccessRequestRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ReviewAccessRequestRequest.ProtoReflect.Descriptor instead. func (*ReviewAccessRequestRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{14} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{14} } func (x *ReviewAccessRequestRequest) GetRootClusterUri() string { @@ -966,7 +966,7 @@ type ReviewAccessRequestResponse struct { func (x *ReviewAccessRequestResponse) Reset() { *x = ReviewAccessRequestResponse{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[15] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -979,7 +979,7 @@ func (x *ReviewAccessRequestResponse) String() string { func (*ReviewAccessRequestResponse) ProtoMessage() {} func (x *ReviewAccessRequestResponse) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[15] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -992,7 +992,7 @@ func (x *ReviewAccessRequestResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ReviewAccessRequestResponse.ProtoReflect.Descriptor instead. func (*ReviewAccessRequestResponse) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{15} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{15} } func (x *ReviewAccessRequestResponse) GetRequest() *AccessRequest { @@ -1014,7 +1014,7 @@ type CredentialInfo struct { func (x *CredentialInfo) Reset() { *x = CredentialInfo{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[16] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1027,7 +1027,7 @@ func (x *CredentialInfo) String() string { func (*CredentialInfo) ProtoMessage() {} func (x *CredentialInfo) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[16] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1040,7 +1040,7 @@ func (x *CredentialInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use CredentialInfo.ProtoReflect.Descriptor instead. func (*CredentialInfo) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{16} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{16} } func (x *CredentialInfo) GetUsername() string { @@ -1057,14 +1057,14 @@ type LoginPasswordlessResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Prompt PasswordlessPrompt `protobuf:"varint,1,opt,name=prompt,proto3,enum=teleport.terminal.v1.PasswordlessPrompt" json:"prompt,omitempty"` + Prompt PasswordlessPrompt `protobuf:"varint,1,opt,name=prompt,proto3,enum=teleport.lib.teleterm.v1.PasswordlessPrompt" json:"prompt,omitempty"` Credentials []*CredentialInfo `protobuf:"bytes,2,rep,name=credentials,proto3" json:"credentials,omitempty"` } func (x *LoginPasswordlessResponse) Reset() { *x = LoginPasswordlessResponse{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[17] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1077,7 +1077,7 @@ func (x *LoginPasswordlessResponse) String() string { func (*LoginPasswordlessResponse) ProtoMessage() {} func (x *LoginPasswordlessResponse) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[17] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1090,7 +1090,7 @@ func (x *LoginPasswordlessResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use LoginPasswordlessResponse.ProtoReflect.Descriptor instead. func (*LoginPasswordlessResponse) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{17} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{17} } func (x *LoginPasswordlessResponse) GetPrompt() PasswordlessPrompt { @@ -1124,7 +1124,7 @@ type LoginPasswordlessRequest struct { func (x *LoginPasswordlessRequest) Reset() { *x = LoginPasswordlessRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[18] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1137,7 +1137,7 @@ func (x *LoginPasswordlessRequest) String() string { func (*LoginPasswordlessRequest) ProtoMessage() {} func (x *LoginPasswordlessRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[18] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1150,7 +1150,7 @@ func (x *LoginPasswordlessRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use LoginPasswordlessRequest.ProtoReflect.Descriptor instead. func (*LoginPasswordlessRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{18} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{18} } func (m *LoginPasswordlessRequest) GetRequest() isLoginPasswordlessRequest_Request { @@ -1216,13 +1216,13 @@ type FileTransferRequest struct { // destination path of the transferred file Destination string `protobuf:"bytes,5,opt,name=destination,proto3" json:"destination,omitempty"` // indicates whether the file is uploaded/downloaded - Direction FileTransferDirection `protobuf:"varint,6,opt,name=direction,proto3,enum=teleport.terminal.v1.FileTransferDirection" json:"direction,omitempty"` + Direction FileTransferDirection `protobuf:"varint,6,opt,name=direction,proto3,enum=teleport.lib.teleterm.v1.FileTransferDirection" json:"direction,omitempty"` } func (x *FileTransferRequest) Reset() { *x = FileTransferRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[19] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1235,7 +1235,7 @@ func (x *FileTransferRequest) String() string { func (*FileTransferRequest) ProtoMessage() {} func (x *FileTransferRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[19] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1248,7 +1248,7 @@ func (x *FileTransferRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use FileTransferRequest.ProtoReflect.Descriptor instead. func (*FileTransferRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{19} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{19} } func (x *FileTransferRequest) GetClusterUri() string { @@ -1304,7 +1304,7 @@ type FileTransferProgress struct { func (x *FileTransferProgress) Reset() { *x = FileTransferProgress{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[20] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1317,7 +1317,7 @@ func (x *FileTransferProgress) String() string { func (*FileTransferProgress) ProtoMessage() {} func (x *FileTransferProgress) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[20] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1330,7 +1330,7 @@ func (x *FileTransferProgress) ProtoReflect() protoreflect.Message { // Deprecated: Use FileTransferProgress.ProtoReflect.Descriptor instead. func (*FileTransferProgress) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{20} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{20} } func (x *FileTransferProgress) GetPercentage() uint32 { @@ -1358,7 +1358,7 @@ type LoginRequest struct { func (x *LoginRequest) Reset() { *x = LoginRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[21] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1371,7 +1371,7 @@ func (x *LoginRequest) String() string { func (*LoginRequest) ProtoMessage() {} func (x *LoginRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[21] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1384,7 +1384,7 @@ func (x *LoginRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead. func (*LoginRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{21} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{21} } func (x *LoginRequest) GetClusterUri() string { @@ -1444,7 +1444,7 @@ type AddClusterRequest struct { func (x *AddClusterRequest) Reset() { *x = AddClusterRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[22] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1457,7 +1457,7 @@ func (x *AddClusterRequest) String() string { func (*AddClusterRequest) ProtoMessage() {} func (x *AddClusterRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[22] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1470,7 +1470,7 @@ func (x *AddClusterRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use AddClusterRequest.ProtoReflect.Descriptor instead. func (*AddClusterRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{22} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{22} } func (x *AddClusterRequest) GetName() string { @@ -1491,7 +1491,7 @@ type ListAppsRequest struct { func (x *ListAppsRequest) Reset() { *x = ListAppsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[23] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1504,7 +1504,7 @@ func (x *ListAppsRequest) String() string { func (*ListAppsRequest) ProtoMessage() {} func (x *ListAppsRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[23] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1517,7 +1517,7 @@ func (x *ListAppsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListAppsRequest.ProtoReflect.Descriptor instead. func (*ListAppsRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{23} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{23} } func (x *ListAppsRequest) GetClusterUri() string { @@ -1536,7 +1536,7 @@ type ListClustersRequest struct { func (x *ListClustersRequest) Reset() { *x = ListClustersRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[24] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1549,7 +1549,7 @@ func (x *ListClustersRequest) String() string { func (*ListClustersRequest) ProtoMessage() {} func (x *ListClustersRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[24] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1562,7 +1562,7 @@ func (x *ListClustersRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListClustersRequest.ProtoReflect.Descriptor instead. func (*ListClustersRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{24} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{24} } type ListClustersResponse struct { @@ -1576,7 +1576,7 @@ type ListClustersResponse struct { func (x *ListClustersResponse) Reset() { *x = ListClustersResponse{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[25] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1589,7 +1589,7 @@ func (x *ListClustersResponse) String() string { func (*ListClustersResponse) ProtoMessage() {} func (x *ListClustersResponse) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[25] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1602,7 +1602,7 @@ func (x *ListClustersResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListClustersResponse.ProtoReflect.Descriptor instead. func (*ListClustersResponse) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{25} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{25} } func (x *ListClustersResponse) GetClusters() []*Cluster { @@ -1623,7 +1623,7 @@ type GetAllDatabasesRequest struct { func (x *GetAllDatabasesRequest) Reset() { *x = GetAllDatabasesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[26] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1636,7 +1636,7 @@ func (x *GetAllDatabasesRequest) String() string { func (*GetAllDatabasesRequest) ProtoMessage() {} func (x *GetAllDatabasesRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[26] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1649,7 +1649,7 @@ func (x *GetAllDatabasesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetAllDatabasesRequest.ProtoReflect.Descriptor instead. func (*GetAllDatabasesRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{26} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{26} } func (x *GetAllDatabasesRequest) GetClusterUri() string { @@ -1676,7 +1676,7 @@ type GetDatabasesRequest struct { func (x *GetDatabasesRequest) Reset() { *x = GetDatabasesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[27] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1689,7 +1689,7 @@ func (x *GetDatabasesRequest) String() string { func (*GetDatabasesRequest) ProtoMessage() {} func (x *GetDatabasesRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[27] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1702,7 +1702,7 @@ func (x *GetDatabasesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetDatabasesRequest.ProtoReflect.Descriptor instead. func (*GetDatabasesRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{27} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{27} } func (x *GetDatabasesRequest) GetClusterUri() string { @@ -1765,7 +1765,7 @@ type ListLeafClustersRequest struct { func (x *ListLeafClustersRequest) Reset() { *x = ListLeafClustersRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[28] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1778,7 +1778,7 @@ func (x *ListLeafClustersRequest) String() string { func (*ListLeafClustersRequest) ProtoMessage() {} func (x *ListLeafClustersRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[28] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1791,7 +1791,7 @@ func (x *ListLeafClustersRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListLeafClustersRequest.ProtoReflect.Descriptor instead. func (*ListLeafClustersRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{28} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{28} } func (x *ListLeafClustersRequest) GetClusterUri() string { @@ -1812,7 +1812,7 @@ type GetAllDatabasesResponse struct { func (x *GetAllDatabasesResponse) Reset() { *x = GetAllDatabasesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[29] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1825,7 +1825,7 @@ func (x *GetAllDatabasesResponse) String() string { func (*GetAllDatabasesResponse) ProtoMessage() {} func (x *GetAllDatabasesResponse) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[29] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1838,7 +1838,7 @@ func (x *GetAllDatabasesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetAllDatabasesResponse.ProtoReflect.Descriptor instead. func (*GetAllDatabasesResponse) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{29} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{29} } func (x *GetAllDatabasesResponse) GetDatabases() []*Database { @@ -1859,7 +1859,7 @@ type ListDatabaseUsersRequest struct { func (x *ListDatabaseUsersRequest) Reset() { *x = ListDatabaseUsersRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[30] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1872,7 +1872,7 @@ func (x *ListDatabaseUsersRequest) String() string { func (*ListDatabaseUsersRequest) ProtoMessage() {} func (x *ListDatabaseUsersRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[30] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1885,7 +1885,7 @@ func (x *ListDatabaseUsersRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListDatabaseUsersRequest.ProtoReflect.Descriptor instead. func (*ListDatabaseUsersRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{30} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{30} } func (x *ListDatabaseUsersRequest) GetDbUri() string { @@ -1906,7 +1906,7 @@ type ListDatabaseUsersResponse struct { func (x *ListDatabaseUsersResponse) Reset() { *x = ListDatabaseUsersResponse{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[31] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1919,7 +1919,7 @@ func (x *ListDatabaseUsersResponse) String() string { func (*ListDatabaseUsersResponse) ProtoMessage() {} func (x *ListDatabaseUsersResponse) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[31] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1932,7 +1932,7 @@ func (x *ListDatabaseUsersResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListDatabaseUsersResponse.ProtoReflect.Descriptor instead. func (*ListDatabaseUsersResponse) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{31} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{31} } func (x *ListDatabaseUsersResponse) GetUsers() []string { @@ -1956,7 +1956,7 @@ type CreateGatewayRequest struct { func (x *CreateGatewayRequest) Reset() { *x = CreateGatewayRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[32] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1969,7 +1969,7 @@ func (x *CreateGatewayRequest) String() string { func (*CreateGatewayRequest) ProtoMessage() {} func (x *CreateGatewayRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[32] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1982,7 +1982,7 @@ func (x *CreateGatewayRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateGatewayRequest.ProtoReflect.Descriptor instead. func (*CreateGatewayRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{32} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{32} } func (x *CreateGatewayRequest) GetTargetUri() string { @@ -2024,7 +2024,7 @@ type ListGatewaysRequest struct { func (x *ListGatewaysRequest) Reset() { *x = ListGatewaysRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[33] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2037,7 +2037,7 @@ func (x *ListGatewaysRequest) String() string { func (*ListGatewaysRequest) ProtoMessage() {} func (x *ListGatewaysRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[33] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2050,7 +2050,7 @@ func (x *ListGatewaysRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListGatewaysRequest.ProtoReflect.Descriptor instead. func (*ListGatewaysRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{33} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{33} } func (x *ListGatewaysRequest) GetClusterIds() []string { @@ -2071,7 +2071,7 @@ type ListGatewaysResponse struct { func (x *ListGatewaysResponse) Reset() { *x = ListGatewaysResponse{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[34] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2084,7 +2084,7 @@ func (x *ListGatewaysResponse) String() string { func (*ListGatewaysResponse) ProtoMessage() {} func (x *ListGatewaysResponse) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[34] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2097,7 +2097,7 @@ func (x *ListGatewaysResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListGatewaysResponse.ProtoReflect.Descriptor instead. func (*ListGatewaysResponse) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{34} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{34} } func (x *ListGatewaysResponse) GetGateways() []*Gateway { @@ -2118,7 +2118,7 @@ type RemoveGatewayRequest struct { func (x *RemoveGatewayRequest) Reset() { *x = RemoveGatewayRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[35] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2131,7 +2131,7 @@ func (x *RemoveGatewayRequest) String() string { func (*RemoveGatewayRequest) ProtoMessage() {} func (x *RemoveGatewayRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[35] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2144,7 +2144,7 @@ func (x *RemoveGatewayRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RemoveGatewayRequest.ProtoReflect.Descriptor instead. func (*RemoveGatewayRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{35} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{35} } func (x *RemoveGatewayRequest) GetGatewayUri() string { @@ -2165,7 +2165,7 @@ type RestartGatewayRequest struct { func (x *RestartGatewayRequest) Reset() { *x = RestartGatewayRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[36] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2178,7 +2178,7 @@ func (x *RestartGatewayRequest) String() string { func (*RestartGatewayRequest) ProtoMessage() {} func (x *RestartGatewayRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[36] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2191,7 +2191,7 @@ func (x *RestartGatewayRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RestartGatewayRequest.ProtoReflect.Descriptor instead. func (*RestartGatewayRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{36} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{36} } func (x *RestartGatewayRequest) GetGatewayUri() string { @@ -2213,7 +2213,7 @@ type SetGatewayTargetSubresourceNameRequest struct { func (x *SetGatewayTargetSubresourceNameRequest) Reset() { *x = SetGatewayTargetSubresourceNameRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[37] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2226,7 +2226,7 @@ func (x *SetGatewayTargetSubresourceNameRequest) String() string { func (*SetGatewayTargetSubresourceNameRequest) ProtoMessage() {} func (x *SetGatewayTargetSubresourceNameRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[37] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2239,7 +2239,7 @@ func (x *SetGatewayTargetSubresourceNameRequest) ProtoReflect() protoreflect.Mes // Deprecated: Use SetGatewayTargetSubresourceNameRequest.ProtoReflect.Descriptor instead. func (*SetGatewayTargetSubresourceNameRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{37} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{37} } func (x *SetGatewayTargetSubresourceNameRequest) GetGatewayUri() string { @@ -2268,7 +2268,7 @@ type SetGatewayLocalPortRequest struct { func (x *SetGatewayLocalPortRequest) Reset() { *x = SetGatewayLocalPortRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[38] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2281,7 +2281,7 @@ func (x *SetGatewayLocalPortRequest) String() string { func (*SetGatewayLocalPortRequest) ProtoMessage() {} func (x *SetGatewayLocalPortRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[38] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2294,7 +2294,7 @@ func (x *SetGatewayLocalPortRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SetGatewayLocalPortRequest.ProtoReflect.Descriptor instead. func (*SetGatewayLocalPortRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{38} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{38} } func (x *SetGatewayLocalPortRequest) GetGatewayUri() string { @@ -2322,7 +2322,7 @@ type GetAllServersRequest struct { func (x *GetAllServersRequest) Reset() { *x = GetAllServersRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[39] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2335,7 +2335,7 @@ func (x *GetAllServersRequest) String() string { func (*GetAllServersRequest) ProtoMessage() {} func (x *GetAllServersRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[39] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2348,7 +2348,7 @@ func (x *GetAllServersRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetAllServersRequest.ProtoReflect.Descriptor instead. func (*GetAllServersRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{39} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{39} } func (x *GetAllServersRequest) GetClusterUri() string { @@ -2369,7 +2369,7 @@ type GetAllServersResponse struct { func (x *GetAllServersResponse) Reset() { *x = GetAllServersResponse{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[40] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2382,7 +2382,7 @@ func (x *GetAllServersResponse) String() string { func (*GetAllServersResponse) ProtoMessage() {} func (x *GetAllServersResponse) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[40] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2395,7 +2395,7 @@ func (x *GetAllServersResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetAllServersResponse.ProtoReflect.Descriptor instead. func (*GetAllServersResponse) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{40} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{40} } func (x *GetAllServersResponse) GetServers() []*Server { @@ -2422,7 +2422,7 @@ type GetServersRequest struct { func (x *GetServersRequest) Reset() { *x = GetServersRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[41] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2435,7 +2435,7 @@ func (x *GetServersRequest) String() string { func (*GetServersRequest) ProtoMessage() {} func (x *GetServersRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[41] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2448,7 +2448,7 @@ func (x *GetServersRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetServersRequest.ProtoReflect.Descriptor instead. func (*GetServersRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{41} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{41} } func (x *GetServersRequest) GetClusterUri() string { @@ -2513,7 +2513,7 @@ type GetServersResponse struct { func (x *GetServersResponse) Reset() { *x = GetServersResponse{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[42] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2526,7 +2526,7 @@ func (x *GetServersResponse) String() string { func (*GetServersResponse) ProtoMessage() {} func (x *GetServersResponse) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[42] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2539,7 +2539,7 @@ func (x *GetServersResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetServersResponse.ProtoReflect.Descriptor instead. func (*GetServersResponse) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{42} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{42} } func (x *GetServersResponse) GetAgents() []*Server { @@ -2576,7 +2576,7 @@ type GetDatabasesResponse struct { func (x *GetDatabasesResponse) Reset() { *x = GetDatabasesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[43] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2589,7 +2589,7 @@ func (x *GetDatabasesResponse) String() string { func (*GetDatabasesResponse) ProtoMessage() {} func (x *GetDatabasesResponse) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[43] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2602,7 +2602,7 @@ func (x *GetDatabasesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetDatabasesResponse.ProtoReflect.Descriptor instead. func (*GetDatabasesResponse) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{43} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{43} } func (x *GetDatabasesResponse) GetAgents() []*Database { @@ -2637,7 +2637,7 @@ type GetAllKubesRequest struct { func (x *GetAllKubesRequest) Reset() { *x = GetAllKubesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[44] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2650,7 +2650,7 @@ func (x *GetAllKubesRequest) String() string { func (*GetAllKubesRequest) ProtoMessage() {} func (x *GetAllKubesRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[44] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[44] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2663,7 +2663,7 @@ func (x *GetAllKubesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetAllKubesRequest.ProtoReflect.Descriptor instead. func (*GetAllKubesRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{44} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{44} } func (x *GetAllKubesRequest) GetClusterUri() string { @@ -2684,7 +2684,7 @@ type GetAllKubesResponse struct { func (x *GetAllKubesResponse) Reset() { *x = GetAllKubesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[45] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2697,7 +2697,7 @@ func (x *GetAllKubesResponse) String() string { func (*GetAllKubesResponse) ProtoMessage() {} func (x *GetAllKubesResponse) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[45] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[45] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2710,7 +2710,7 @@ func (x *GetAllKubesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetAllKubesResponse.ProtoReflect.Descriptor instead. func (*GetAllKubesResponse) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{45} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{45} } func (x *GetAllKubesResponse) GetKubes() []*Kube { @@ -2737,7 +2737,7 @@ type GetKubesRequest struct { func (x *GetKubesRequest) Reset() { *x = GetKubesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[46] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2750,7 +2750,7 @@ func (x *GetKubesRequest) String() string { func (*GetKubesRequest) ProtoMessage() {} func (x *GetKubesRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[46] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[46] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2763,7 +2763,7 @@ func (x *GetKubesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetKubesRequest.ProtoReflect.Descriptor instead. func (*GetKubesRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{46} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{46} } func (x *GetKubesRequest) GetClusterUri() string { @@ -2828,7 +2828,7 @@ type GetKubesResponse struct { func (x *GetKubesResponse) Reset() { *x = GetKubesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[47] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2841,7 +2841,7 @@ func (x *GetKubesResponse) String() string { func (*GetKubesResponse) ProtoMessage() {} func (x *GetKubesResponse) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[47] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[47] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2854,7 +2854,7 @@ func (x *GetKubesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetKubesResponse.ProtoReflect.Descriptor instead. func (*GetKubesResponse) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{47} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{47} } func (x *GetKubesResponse) GetAgents() []*Kube { @@ -2889,7 +2889,7 @@ type ListAppsResponse struct { func (x *ListAppsResponse) Reset() { *x = ListAppsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[48] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2902,7 +2902,7 @@ func (x *ListAppsResponse) String() string { func (*ListAppsResponse) ProtoMessage() {} func (x *ListAppsResponse) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[48] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[48] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2915,7 +2915,7 @@ func (x *ListAppsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListAppsResponse.ProtoReflect.Descriptor instead. func (*ListAppsResponse) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{48} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{48} } func (x *ListAppsResponse) GetApps() []*App { @@ -2936,7 +2936,7 @@ type GetAuthSettingsRequest struct { func (x *GetAuthSettingsRequest) Reset() { *x = GetAuthSettingsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[49] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2949,7 +2949,7 @@ func (x *GetAuthSettingsRequest) String() string { func (*GetAuthSettingsRequest) ProtoMessage() {} func (x *GetAuthSettingsRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[49] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[49] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2962,7 +2962,7 @@ func (x *GetAuthSettingsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetAuthSettingsRequest.ProtoReflect.Descriptor instead. func (*GetAuthSettingsRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{49} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{49} } func (x *GetAuthSettingsRequest) GetClusterUri() string { @@ -2983,7 +2983,7 @@ type UpdateTshdEventsServerAddressRequest struct { func (x *UpdateTshdEventsServerAddressRequest) Reset() { *x = UpdateTshdEventsServerAddressRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[50] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2996,7 +2996,7 @@ func (x *UpdateTshdEventsServerAddressRequest) String() string { func (*UpdateTshdEventsServerAddressRequest) ProtoMessage() {} func (x *UpdateTshdEventsServerAddressRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[50] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[50] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3009,7 +3009,7 @@ func (x *UpdateTshdEventsServerAddressRequest) ProtoReflect() protoreflect.Messa // Deprecated: Use UpdateTshdEventsServerAddressRequest.ProtoReflect.Descriptor instead. func (*UpdateTshdEventsServerAddressRequest) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{50} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{50} } func (x *UpdateTshdEventsServerAddressRequest) GetAddress() string { @@ -3028,7 +3028,7 @@ type UpdateTshdEventsServerAddressResponse struct { func (x *UpdateTshdEventsServerAddressResponse) Reset() { *x = UpdateTshdEventsServerAddressResponse{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[51] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3041,7 +3041,7 @@ func (x *UpdateTshdEventsServerAddressResponse) String() string { func (*UpdateTshdEventsServerAddressResponse) ProtoMessage() {} func (x *UpdateTshdEventsServerAddressResponse) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[51] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[51] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3054,7 +3054,7 @@ func (x *UpdateTshdEventsServerAddressResponse) ProtoReflect() protoreflect.Mess // Deprecated: Use UpdateTshdEventsServerAddressResponse.ProtoReflect.Descriptor instead. func (*UpdateTshdEventsServerAddressResponse) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{51} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{51} } // LoginPasswordlessRequestInit contains fields needed to init the stream request. @@ -3070,7 +3070,7 @@ type LoginPasswordlessRequest_LoginPasswordlessRequestInit struct { func (x *LoginPasswordlessRequest_LoginPasswordlessRequestInit) Reset() { *x = LoginPasswordlessRequest_LoginPasswordlessRequestInit{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[52] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3083,7 +3083,7 @@ func (x *LoginPasswordlessRequest_LoginPasswordlessRequestInit) String() string func (*LoginPasswordlessRequest_LoginPasswordlessRequestInit) ProtoMessage() {} func (x *LoginPasswordlessRequest_LoginPasswordlessRequestInit) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[52] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[52] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3096,7 +3096,7 @@ func (x *LoginPasswordlessRequest_LoginPasswordlessRequestInit) ProtoReflect() p // Deprecated: Use LoginPasswordlessRequest_LoginPasswordlessRequestInit.ProtoReflect.Descriptor instead. func (*LoginPasswordlessRequest_LoginPasswordlessRequestInit) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{18, 0} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{18, 0} } func (x *LoginPasswordlessRequest_LoginPasswordlessRequestInit) GetClusterUri() string { @@ -3119,7 +3119,7 @@ type LoginPasswordlessRequest_LoginPasswordlessPINResponse struct { func (x *LoginPasswordlessRequest_LoginPasswordlessPINResponse) Reset() { *x = LoginPasswordlessRequest_LoginPasswordlessPINResponse{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[53] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3132,7 +3132,7 @@ func (x *LoginPasswordlessRequest_LoginPasswordlessPINResponse) String() string func (*LoginPasswordlessRequest_LoginPasswordlessPINResponse) ProtoMessage() {} func (x *LoginPasswordlessRequest_LoginPasswordlessPINResponse) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[53] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[53] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3145,7 +3145,7 @@ func (x *LoginPasswordlessRequest_LoginPasswordlessPINResponse) ProtoReflect() p // Deprecated: Use LoginPasswordlessRequest_LoginPasswordlessPINResponse.ProtoReflect.Descriptor instead. func (*LoginPasswordlessRequest_LoginPasswordlessPINResponse) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{18, 1} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{18, 1} } func (x *LoginPasswordlessRequest_LoginPasswordlessPINResponse) GetPin() string { @@ -3170,7 +3170,7 @@ type LoginPasswordlessRequest_LoginPasswordlessCredentialResponse struct { func (x *LoginPasswordlessRequest_LoginPasswordlessCredentialResponse) Reset() { *x = LoginPasswordlessRequest_LoginPasswordlessCredentialResponse{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[54] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3183,7 +3183,7 @@ func (x *LoginPasswordlessRequest_LoginPasswordlessCredentialResponse) String() func (*LoginPasswordlessRequest_LoginPasswordlessCredentialResponse) ProtoMessage() {} func (x *LoginPasswordlessRequest_LoginPasswordlessCredentialResponse) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[54] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[54] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3196,7 +3196,7 @@ func (x *LoginPasswordlessRequest_LoginPasswordlessCredentialResponse) ProtoRefl // Deprecated: Use LoginPasswordlessRequest_LoginPasswordlessCredentialResponse.ProtoReflect.Descriptor instead. func (*LoginPasswordlessRequest_LoginPasswordlessCredentialResponse) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{18, 2} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{18, 2} } func (x *LoginPasswordlessRequest_LoginPasswordlessCredentialResponse) GetIndex() int64 { @@ -3223,7 +3223,7 @@ type LoginRequest_LocalParams struct { func (x *LoginRequest_LocalParams) Reset() { *x = LoginRequest_LocalParams{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[55] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3236,7 +3236,7 @@ func (x *LoginRequest_LocalParams) String() string { func (*LoginRequest_LocalParams) ProtoMessage() {} func (x *LoginRequest_LocalParams) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[55] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[55] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3249,7 +3249,7 @@ func (x *LoginRequest_LocalParams) ProtoReflect() protoreflect.Message { // Deprecated: Use LoginRequest_LocalParams.ProtoReflect.Descriptor instead. func (*LoginRequest_LocalParams) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{21, 0} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{21, 0} } func (x *LoginRequest_LocalParams) GetUser() string { @@ -3288,7 +3288,7 @@ type LoginRequest_SsoParams struct { func (x *LoginRequest_SsoParams) Reset() { *x = LoginRequest_SsoParams{} if protoimpl.UnsafeEnabled { - mi := &file_v1_service_proto_msgTypes[56] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3301,7 +3301,7 @@ func (x *LoginRequest_SsoParams) String() string { func (*LoginRequest_SsoParams) ProtoMessage() {} func (x *LoginRequest_SsoParams) ProtoReflect() protoreflect.Message { - mi := &file_v1_service_proto_msgTypes[56] + mi := &file_teleport_lib_teleterm_v1_service_proto_msgTypes[56] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3314,7 +3314,7 @@ func (x *LoginRequest_SsoParams) ProtoReflect() protoreflect.Message { // Deprecated: Use LoginRequest_SsoParams.ProtoReflect.Descriptor instead. func (*LoginRequest_SsoParams) Descriptor() ([]byte, []int) { - return file_v1_service_proto_rawDescGZIP(), []int{21, 1} + return file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP(), []int{21, 1} } func (x *LoginRequest_SsoParams) GetProviderType() string { @@ -3331,21 +3331,35 @@ func (x *LoginRequest_SsoParams) GetProviderName() string { return "" } -var File_v1_service_proto protoreflect.FileDescriptor +var File_teleport_lib_teleterm_v1_service_proto protoreflect.FileDescriptor -var file_v1_service_proto_rawDesc = []byte{ - 0x0a, 0x10, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x14, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, - 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x1a, 0x17, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, +var file_teleport_lib_teleterm_v1_service_proto_rawDesc = []byte{ + 0x0a, 0x26, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, + 0x76, 0x31, 0x1a, 0x2d, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, + 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x0c, 0x76, 0x31, 0x2f, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x16, 0x76, 0x31, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x10, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x76, 0x31, 0x2f, 0x64, 0x61, - 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x10, 0x76, 0x31, - 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, - 0x76, 0x31, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0f, 0x76, - 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, + 0x6f, 0x1a, 0x22, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, + 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x70, 0x70, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, + 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, + 0x61, 0x75, 0x74, 0x68, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, + 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x74, 0x65, 0x6c, + 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, + 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x67, + 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x74, 0x65, + 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x25, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, + 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2b, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x0f, 0x0a, 0x0d, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x0a, 0x14, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, @@ -3368,45 +3382,46 @@ var file_v1_service_proto_rawDesc = []byte{ 0x3b, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x72, 0x69, 0x22, 0x59, 0x0a, 0x18, + 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x72, 0x69, 0x22, 0x5d, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x74, 0x65, 0x6c, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, - 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, - 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x5c, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x41, 0x63, - 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, - 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, - 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x08, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0x72, 0x0a, 0x1a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, - 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x10, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x63, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, - 0x6f, 0x6f, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x72, 0x69, 0x12, 0x2a, 0x0a, - 0x11, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0xea, 0x01, 0x0a, 0x1a, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x10, 0x72, 0x6f, 0x6f, 0x74, - 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0e, 0x72, 0x6f, 0x6f, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, - 0x72, 0x69, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, - 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, - 0x12, 0x2f, 0x0a, 0x13, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x65, - 0x76, 0x69, 0x65, 0x77, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 0x73, - 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x65, 0x72, - 0x73, 0x12, 0x43, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, - 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x52, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x44, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x49, 0x64, 0x73, 0x22, 0x5c, 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, - 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x74, 0x65, 0x6c, 0x65, + 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, + 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x60, 0x0a, 0x19, 0x47, + 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x74, 0x65, 0x6c, + 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0x72, 0x0a, + 0x1a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x10, 0x72, + 0x6f, 0x6f, 0x74, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x75, 0x72, 0x69, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x6f, 0x6f, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x55, 0x72, 0x69, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, + 0x64, 0x22, 0xee, 0x01, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x65, + 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x28, 0x0a, 0x10, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x6f, 0x6f, 0x74, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x72, 0x69, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, + 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, + 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x2f, 0x0a, 0x13, 0x73, 0x75, 0x67, 0x67, + 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x65, 0x72, 0x73, 0x18, + 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x65, 0x64, + 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x65, 0x72, 0x73, 0x12, 0x47, 0x0a, 0x0c, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x24, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x49, 0x44, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, + 0x64, 0x73, 0x22, 0x60, 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x65, + 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x41, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, + 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x95, 0x01, 0x0a, 0x11, 0x41, 0x73, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x10, 0x72, 0x6f, @@ -3417,165 +3432,168 @@ var file_v1_service_proto_rawDesc = []byte{ 0x52, 0x10, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x64, 0x72, - 0x6f, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x73, 0x22, 0x82, 0x01, 0x0a, + 0x6f, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x73, 0x22, 0x86, 0x01, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x72, 0x69, 0x12, 0x43, 0x0a, 0x0c, + 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x72, 0x69, 0x12, 0x47, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, - 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x49, 0x44, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, - 0x73, 0x22, 0x5e, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x29, 0x0a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x0f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x6c, 0x65, - 0x73, 0x22, 0xb6, 0x01, 0x0a, 0x1a, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x41, 0x63, 0x63, 0x65, - 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x28, 0x0a, 0x10, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x6f, 0x6f, 0x74, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x72, 0x69, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, - 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, - 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, - 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x2a, - 0x0a, 0x11, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x5c, 0x0a, 0x1b, 0x52, 0x65, - 0x76, 0x69, 0x65, 0x77, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x07, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x74, 0x65, 0x6c, - 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, - 0x31, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, - 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x2c, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, - 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, - 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xa5, 0x01, 0x0a, 0x19, 0x4c, 0x6f, 0x67, 0x69, 0x6e, - 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x6c, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, - 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x73, 0x73, - 0x77, 0x6f, 0x72, 0x64, 0x6c, 0x65, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x52, 0x06, - 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x12, 0x46, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x61, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x74, 0x65, - 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, + 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, + 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x44, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x49, 0x64, 0x73, 0x22, 0x5e, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x29, 0x0a, 0x10, 0x61, 0x70, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x62, 0x6c, 0x65, + 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0xb6, 0x01, 0x0a, 0x1a, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, + 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x10, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, + 0x72, 0x6f, 0x6f, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x72, 0x69, 0x12, 0x14, + 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, + 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, + 0x65, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, + 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x60, + 0x0a, 0x1b, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, + 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, + 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x22, 0x2c, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x49, 0x6e, + 0x66, 0x6f, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xad, + 0x01, 0x0a, 0x19, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, + 0x6c, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x06, + 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x74, + 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, + 0x6c, 0x65, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x52, 0x06, 0x70, 0x72, 0x6f, 0x6d, + 0x70, 0x74, 0x12, 0x4a, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x49, 0x6e, 0x66, - 0x6f, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x22, 0x8f, + 0x6f, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x22, 0x9b, 0x04, 0x0a, 0x18, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, - 0x6c, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x61, 0x0a, 0x04, 0x69, - 0x6e, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4b, 0x2e, 0x74, 0x65, 0x6c, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, - 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x6c, 0x65, - 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x6c, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x49, 0x6e, 0x69, 0x74, 0x48, 0x00, 0x52, 0x04, 0x69, 0x6e, 0x69, 0x74, 0x12, 0x5f, - 0x0a, 0x03, 0x70, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4b, 0x2e, 0x74, 0x65, - 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, - 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, - 0x6c, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4c, 0x6f, 0x67, 0x69, - 0x6e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x6c, 0x65, 0x73, 0x73, 0x50, 0x49, 0x4e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x03, 0x70, 0x69, 0x6e, 0x12, - 0x74, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x52, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, - 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, + 0x6c, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x65, 0x0a, 0x04, 0x69, + 0x6e, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4f, 0x2e, 0x74, 0x65, 0x6c, 0x65, + 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, + 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, + 0x72, 0x64, 0x6c, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4c, 0x6f, + 0x67, 0x69, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x6c, 0x65, 0x73, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x69, 0x74, 0x48, 0x00, 0x52, 0x04, 0x69, 0x6e, + 0x69, 0x74, 0x12, 0x63, 0x0a, 0x03, 0x70, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x4f, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x6c, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, - 0x64, 0x6c, 0x65, 0x73, 0x73, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x1a, 0x3f, 0x0a, 0x1c, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x61, - 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x6c, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x49, 0x6e, 0x69, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x55, 0x72, 0x69, 0x1a, 0x30, 0x0a, 0x1c, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x6c, 0x65, 0x73, 0x73, 0x50, 0x49, 0x4e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x69, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x70, 0x69, 0x6e, 0x1a, 0x3b, 0x0a, 0x23, 0x4c, 0x6f, 0x67, 0x69, - 0x6e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x6c, 0x65, 0x73, 0x73, 0x43, 0x72, 0x65, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, - 0x69, 0x6e, 0x64, 0x65, 0x78, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x22, 0xed, 0x01, 0x0a, 0x13, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, - 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x72, 0x69, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x6f, 0x67, - 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x12, - 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x49, 0x0a, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, - 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, + 0x64, 0x6c, 0x65, 0x73, 0x73, 0x50, 0x49, 0x4e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x48, 0x00, 0x52, 0x03, 0x70, 0x69, 0x6e, 0x12, 0x78, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x56, 0x2e, 0x74, 0x65, + 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x61, 0x73, 0x73, + 0x77, 0x6f, 0x72, 0x64, 0x6c, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, + 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x6c, 0x65, 0x73, + 0x73, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, + 0x6c, 0x1a, 0x3f, 0x0a, 0x1c, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, + 0x72, 0x64, 0x6c, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x69, + 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x75, 0x72, 0x69, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, + 0x72, 0x69, 0x1a, 0x30, 0x0a, 0x1c, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x77, + 0x6f, 0x72, 0x64, 0x6c, 0x65, 0x73, 0x73, 0x50, 0x49, 0x4e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x70, 0x69, 0x6e, 0x1a, 0x3b, 0x0a, 0x23, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x61, 0x73, + 0x73, 0x77, 0x6f, 0x72, 0x64, 0x6c, 0x65, 0x73, 0x73, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x69, + 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, + 0x78, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xf1, 0x01, 0x0a, + 0x13, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, + 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x55, 0x72, 0x69, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x68, + 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, + 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, + 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x4d, 0x0a, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, + 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x36, 0x0a, 0x14, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x70, 0x65, - 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x22, 0xef, 0x02, 0x0a, 0x0c, 0x4c, 0x6f, 0x67, + 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x22, 0xf7, 0x02, 0x0a, 0x0c, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, - 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x72, 0x69, 0x12, 0x46, 0x0a, 0x05, 0x6c, 0x6f, - 0x63, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x74, 0x65, 0x6c, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, - 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4c, 0x6f, - 0x63, 0x61, 0x6c, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x48, 0x00, 0x52, 0x05, 0x6c, 0x6f, 0x63, - 0x61, 0x6c, 0x12, 0x40, 0x0a, 0x03, 0x73, 0x73, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x2c, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, - 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x2e, 0x53, 0x73, 0x6f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x48, 0x00, 0x52, - 0x03, 0x73, 0x73, 0x6f, 0x1a, 0x53, 0x0a, 0x0b, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, - 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, - 0x6f, 0x72, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x1a, 0x55, 0x0a, 0x09, 0x53, 0x73, 0x6f, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, - 0x42, 0x08, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x27, 0x0a, 0x11, 0x41, 0x64, - 0x64, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x22, 0x32, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x70, 0x70, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x55, 0x72, 0x69, 0x22, 0x15, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x43, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x51, - 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x08, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, - 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x08, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x73, 0x22, 0x39, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x62, - 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x72, 0x69, 0x22, 0xd8, 0x01, 0x0a, - 0x13, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, - 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x55, 0x72, 0x69, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x73, - 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x61, 0x72, - 0x63, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, - 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x62, - 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x72, 0x74, 0x42, 0x79, 0x12, - 0x26, 0x0a, 0x0f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x61, 0x73, 0x5f, 0x72, 0x6f, 0x6c, - 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, - 0x41, 0x73, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x3a, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x4c, - 0x65, 0x61, 0x66, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x75, 0x72, - 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x55, 0x72, 0x69, 0x22, 0x57, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x44, 0x61, 0x74, - 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, - 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x1e, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, - 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x72, 0x69, 0x12, 0x4a, 0x0a, 0x05, 0x6c, 0x6f, + 0x63, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x74, 0x65, 0x6c, 0x65, + 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, + 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x48, 0x00, 0x52, + 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x12, 0x44, 0x0a, 0x03, 0x73, 0x73, 0x6f, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, + 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, + 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53, 0x73, 0x6f, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x48, 0x00, 0x52, 0x03, 0x73, 0x73, 0x6f, 0x1a, 0x53, 0x0a, 0x0b, + 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x75, + 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, + 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x1a, 0x55, 0x0a, 0x09, 0x53, 0x73, 0x6f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x23, + 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x22, 0x27, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x32, 0x0a, 0x0f, 0x4c, + 0x69, 0x73, 0x74, 0x41, 0x70, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, + 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x72, 0x69, 0x22, + 0x15, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x55, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, + 0x0a, 0x08, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x21, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, + 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x52, 0x08, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x22, 0x39, 0x0a, + 0x16, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x72, 0x69, 0x22, 0xd8, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, + 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x75, 0x72, 0x69, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x72, + 0x69, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x14, 0x0a, 0x05, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x79, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x72, 0x74, 0x42, 0x79, 0x12, 0x26, 0x0a, 0x0f, 0x73, + 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x61, 0x73, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x73, 0x52, 0x6f, + 0x6c, 0x65, 0x73, 0x22, 0x3a, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x65, 0x61, 0x66, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, + 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x72, 0x69, 0x22, + 0x5b, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x09, 0x64, 0x61, + 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, + 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x09, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x22, 0x31, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x64, 0x62, 0x5f, 0x75, @@ -3597,68 +3615,69 @@ var file_v1_service_proto_rawDesc = []byte{ 0x6d, 0x65, 0x22, 0x36, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, - 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x22, 0x51, 0x0a, 0x14, 0x4c, 0x69, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x22, 0x55, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x39, 0x0a, 0x08, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, - 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x61, 0x74, 0x65, - 0x77, 0x61, 0x79, 0x52, 0x08, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x73, 0x22, 0x37, 0x0a, - 0x14, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, - 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x67, 0x61, 0x74, 0x65, - 0x77, 0x61, 0x79, 0x55, 0x72, 0x69, 0x22, 0x38, 0x0a, 0x15, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, - 0x74, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x08, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, + 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, + 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x52, 0x08, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, + 0x73, 0x22, 0x37, 0x0a, 0x14, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x47, 0x61, 0x74, 0x65, 0x77, + 0x61, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x67, 0x61, 0x74, + 0x65, 0x77, 0x61, 0x79, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x55, 0x72, 0x69, 0x22, 0x38, 0x0a, 0x15, 0x52, 0x65, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x75, + 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, + 0x79, 0x55, 0x72, 0x69, 0x22, 0x81, 0x01, 0x0a, 0x26, 0x53, 0x65, 0x74, 0x47, 0x61, 0x74, 0x65, + 0x77, 0x61, 0x79, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x75, 0x62, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x55, 0x72, 0x69, - 0x22, 0x81, 0x01, 0x0a, 0x26, 0x53, 0x65, 0x74, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x54, - 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x75, 0x62, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x67, - 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x55, 0x72, 0x69, 0x12, 0x36, 0x0a, 0x17, - 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x75, 0x62, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x74, - 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x75, 0x62, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x5c, 0x0a, 0x1a, 0x53, 0x65, 0x74, 0x47, 0x61, 0x74, 0x65, 0x77, - 0x61, 0x79, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x75, 0x72, - 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, - 0x55, 0x72, 0x69, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x70, 0x6f, 0x72, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x50, 0x6f, - 0x72, 0x74, 0x22, 0x37, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x53, 0x65, 0x72, 0x76, + 0x12, 0x36, 0x0a, 0x17, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x75, 0x62, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x15, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x75, 0x62, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x5c, 0x0a, 0x1a, 0x53, 0x65, 0x74, 0x47, + 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x50, 0x6f, 0x72, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, + 0x79, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x67, 0x61, 0x74, + 0x65, 0x77, 0x61, 0x79, 0x55, 0x72, 0x69, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, + 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6c, 0x6f, 0x63, + 0x61, 0x6c, 0x50, 0x6f, 0x72, 0x74, 0x22, 0x37, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, + 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, + 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x72, 0x69, 0x22, + 0x53, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x74, 0x65, 0x6c, 0x65, + 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, + 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x07, 0x73, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x73, 0x22, 0xd6, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x72, 0x69, 0x22, 0x4f, 0x0a, 0x15, 0x47, - 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, - 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x22, 0xd6, 0x01, 0x0a, - 0x11, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x75, 0x72, - 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x55, 0x72, 0x69, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, 0x61, - 0x72, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x74, - 0x61, 0x72, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x14, - 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x79, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x72, 0x74, 0x42, 0x79, 0x12, 0x26, 0x0a, - 0x0f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x61, 0x73, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x73, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x73, - 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x88, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x06, - 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x74, - 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, - 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, - 0x75, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6b, 0x65, 0x79, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4b, 0x65, 0x79, - 0x22, 0x8c, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x06, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x74, 0x65, 0x6c, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, + 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x72, 0x69, 0x12, 0x14, 0x0a, 0x05, 0x6c, + 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, + 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x16, + 0x0a, 0x06, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x17, 0x0a, 0x07, + 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, + 0x6f, 0x72, 0x74, 0x42, 0x79, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, + 0x61, 0x73, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, + 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x73, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x8c, 0x01, + 0x0a, 0x12, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, + 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1f, + 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, + 0x1b, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4b, 0x65, 0x79, 0x22, 0x90, 0x01, 0x0a, + 0x14, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, + 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, @@ -3667,467 +3686,485 @@ var file_v1_service_proto_rawDesc = []byte{ 0x35, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x4b, 0x75, 0x62, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x55, 0x72, 0x69, 0x22, 0x47, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, - 0x4b, 0x75, 0x62, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, - 0x05, 0x6b, 0x75, 0x62, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x74, - 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, - 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x52, 0x05, 0x6b, 0x75, 0x62, 0x65, 0x73, 0x22, - 0xd4, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x4b, 0x75, 0x62, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x75, - 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x55, 0x72, 0x69, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, - 0x61, 0x72, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, - 0x74, 0x61, 0x72, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x61, 0x72, 0x63, - 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, - 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x79, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x72, 0x74, 0x42, 0x79, 0x12, 0x26, - 0x0a, 0x0f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x61, 0x73, 0x5f, 0x72, 0x6f, 0x6c, 0x65, - 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, - 0x73, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x84, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x4b, 0x75, - 0x62, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x06, 0x61, - 0x67, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x74, 0x65, - 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, - 0x76, 0x31, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, - 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, - 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4b, 0x65, 0x79, 0x22, 0x41, 0x0a, - 0x10, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x70, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x61, 0x70, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, - 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x52, 0x04, 0x61, 0x70, 0x70, 0x73, - 0x22, 0x39, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x53, 0x65, 0x74, 0x74, 0x69, - 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x72, 0x69, 0x22, 0x40, 0x0a, 0x24, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x73, 0x68, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x53, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x27, 0x0a, - 0x25, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x73, 0x68, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x73, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0x97, 0x01, 0x0a, 0x12, 0x50, 0x61, 0x73, 0x73, 0x77, - 0x6f, 0x72, 0x64, 0x6c, 0x65, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x12, 0x23, 0x0a, - 0x1f, 0x50, 0x41, 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, 0x4c, 0x45, 0x53, 0x53, 0x5f, 0x50, 0x52, - 0x4f, 0x4d, 0x50, 0x54, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, - 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x41, 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, 0x4c, 0x45, - 0x53, 0x53, 0x5f, 0x50, 0x52, 0x4f, 0x4d, 0x50, 0x54, 0x5f, 0x50, 0x49, 0x4e, 0x10, 0x01, 0x12, - 0x1b, 0x0a, 0x17, 0x50, 0x41, 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, 0x4c, 0x45, 0x53, 0x53, 0x5f, - 0x50, 0x52, 0x4f, 0x4d, 0x50, 0x54, 0x5f, 0x54, 0x41, 0x50, 0x10, 0x02, 0x12, 0x22, 0x0a, 0x1e, - 0x50, 0x41, 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, 0x4c, 0x45, 0x53, 0x53, 0x5f, 0x50, 0x52, 0x4f, - 0x4d, 0x50, 0x54, 0x5f, 0x43, 0x52, 0x45, 0x44, 0x45, 0x4e, 0x54, 0x49, 0x41, 0x4c, 0x10, 0x03, - 0x2a, 0x8a, 0x01, 0x0a, 0x15, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, - 0x72, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x0a, 0x23, 0x46, 0x49, - 0x4c, 0x45, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x44, 0x49, 0x52, 0x45, - 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, - 0x44, 0x10, 0x00, 0x12, 0x24, 0x0a, 0x20, 0x46, 0x49, 0x4c, 0x45, 0x5f, 0x54, 0x52, 0x41, 0x4e, - 0x53, 0x46, 0x45, 0x52, 0x5f, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x44, - 0x4f, 0x57, 0x4e, 0x4c, 0x4f, 0x41, 0x44, 0x10, 0x01, 0x12, 0x22, 0x0a, 0x1e, 0x46, 0x49, 0x4c, - 0x45, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x44, 0x49, 0x52, 0x45, 0x43, - 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x50, 0x4c, 0x4f, 0x41, 0x44, 0x10, 0x02, 0x32, 0xb4, 0x1b, - 0x0a, 0x0f, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x12, 0x98, 0x01, 0x0a, 0x1d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x73, 0x68, 0x64, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x12, 0x3a, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, - 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x74, 0x65, 0x72, 0x55, 0x72, 0x69, 0x22, 0x4b, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, + 0x4b, 0x75, 0x62, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, + 0x05, 0x6b, 0x75, 0x62, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x74, + 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x52, 0x05, 0x6b, 0x75, + 0x62, 0x65, 0x73, 0x22, 0xd4, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x4b, 0x75, 0x62, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x72, 0x69, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x1b, + 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x73, + 0x65, 0x61, 0x72, 0x63, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x61, + 0x72, 0x63, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x6f, 0x72, + 0x74, 0x5f, 0x62, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x72, 0x74, + 0x42, 0x79, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x61, 0x73, 0x5f, + 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x61, + 0x72, 0x63, 0x68, 0x41, 0x73, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x88, 0x01, 0x0a, 0x10, 0x47, + 0x65, 0x74, 0x4b, 0x75, 0x62, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x36, 0x0a, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x1e, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x52, + 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, + 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x74, 0x6f, + 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x74, 0x61, + 0x72, 0x74, 0x4b, 0x65, 0x79, 0x22, 0x45, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x70, 0x70, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x04, 0x61, 0x70, 0x70, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, + 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x52, 0x04, 0x61, 0x70, 0x70, 0x73, 0x22, 0x39, 0x0a, 0x16, + 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x55, 0x72, 0x69, 0x22, 0x40, 0x0a, 0x24, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x54, 0x73, 0x68, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x27, 0x0a, 0x25, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x54, 0x73, 0x68, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x53, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x2a, 0x97, 0x01, 0x0a, 0x12, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x6c, + 0x65, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x12, 0x23, 0x0a, 0x1f, 0x50, 0x41, 0x53, + 0x53, 0x57, 0x4f, 0x52, 0x44, 0x4c, 0x45, 0x53, 0x53, 0x5f, 0x50, 0x52, 0x4f, 0x4d, 0x50, 0x54, + 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1b, + 0x0a, 0x17, 0x50, 0x41, 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, 0x4c, 0x45, 0x53, 0x53, 0x5f, 0x50, + 0x52, 0x4f, 0x4d, 0x50, 0x54, 0x5f, 0x50, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x50, + 0x41, 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, 0x4c, 0x45, 0x53, 0x53, 0x5f, 0x50, 0x52, 0x4f, 0x4d, + 0x50, 0x54, 0x5f, 0x54, 0x41, 0x50, 0x10, 0x02, 0x12, 0x22, 0x0a, 0x1e, 0x50, 0x41, 0x53, 0x53, + 0x57, 0x4f, 0x52, 0x44, 0x4c, 0x45, 0x53, 0x53, 0x5f, 0x50, 0x52, 0x4f, 0x4d, 0x50, 0x54, 0x5f, + 0x43, 0x52, 0x45, 0x44, 0x45, 0x4e, 0x54, 0x49, 0x41, 0x4c, 0x10, 0x03, 0x2a, 0x8a, 0x01, 0x0a, + 0x15, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x44, 0x69, 0x72, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x0a, 0x23, 0x46, 0x49, 0x4c, 0x45, 0x5f, 0x54, + 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, 0x4f, + 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, + 0x24, 0x0a, 0x20, 0x46, 0x49, 0x4c, 0x45, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, + 0x5f, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x4f, 0x57, 0x4e, 0x4c, + 0x4f, 0x41, 0x44, 0x10, 0x01, 0x12, 0x22, 0x0a, 0x1e, 0x46, 0x49, 0x4c, 0x45, 0x5f, 0x54, 0x52, + 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, + 0x5f, 0x55, 0x50, 0x4c, 0x4f, 0x41, 0x44, 0x10, 0x02, 0x32, 0xc1, 0x1d, 0x0a, 0x0f, 0x54, 0x65, + 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xa0, 0x01, + 0x0a, 0x1d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x73, 0x68, 0x64, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, + 0x3e, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x73, 0x68, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x3b, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, - 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x73, 0x68, - 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x10, - 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x6f, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, - 0x12, 0x29, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, - 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x74, 0x65, - 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, - 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6d, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x4c, - 0x65, 0x61, 0x66, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x12, 0x2d, 0x2e, 0x74, 0x65, - 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, + 0x3f, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x54, 0x73, 0x68, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x71, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x6f, 0x74, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x73, 0x12, 0x2d, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, + 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, + 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x75, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x65, 0x61, 0x66, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x12, 0x31, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x65, 0x61, 0x66, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x74, 0x65, 0x6c, - 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, - 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, - 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x2c, 0x2e, 0x74, 0x65, 0x6c, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, - 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, - 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x29, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, - 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, + 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x74, 0x65, 0x6c, + 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x76, 0x0a, 0x0f, 0x47, 0x65, + 0x74, 0x41, 0x6c, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x30, 0x2e, + 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x44, + 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x31, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, + 0x6c, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x6d, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, + 0x65, 0x73, 0x12, 0x2d, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, + 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2a, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, - 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, - 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, - 0x11, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x55, 0x73, 0x65, - 0x72, 0x73, 0x12, 0x2e, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, - 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, - 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, - 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, - 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x73, 0x12, 0x2a, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, - 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, + 0x74, 0x1a, 0x2e, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, + 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x7c, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, + 0x65, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x32, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x55, 0x73, + 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x74, 0x65, 0x6c, + 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, + 0x73, 0x65, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x70, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, + 0x12, 0x2e, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, + 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2b, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, - 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x53, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, - 0x0a, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x12, 0x27, 0x2e, 0x74, 0x65, - 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, - 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, - 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, - 0x0a, 0x11, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x73, 0x12, 0x2e, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, - 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, + 0x1a, 0x2f, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, + 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, + 0x6c, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x67, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x12, + 0x2b, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x74, + 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x11, 0x47, 0x65, + 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, + 0x32, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, - 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, - 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2d, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, - 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, - 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, - 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x63, 0x63, 0x65, + 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, + 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x79, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x41, + 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x2e, 0x74, + 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x32, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x63, 0x63, + 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x2e, 0x74, 0x65, 0x6c, + 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x23, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, - 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7a, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, - 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, 0x2e, 0x74, - 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, - 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, - 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x65, - 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x7a, 0x0a, 0x13, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x41, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, - 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, - 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x74, 0x65, 0x6c, - 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, + 0x1a, 0x27, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, + 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x82, 0x01, 0x0a, 0x13, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x34, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, + 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, + 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x82, + 0x01, 0x0a, 0x13, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7a, 0x0a, - 0x13, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x52, - 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x30, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, - 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, - 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x6c, 0x65, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x0a, 0x41, 0x73, 0x73, - 0x75, 0x6d, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x27, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x41, - 0x73, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x23, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, - 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x4b, - 0x75, 0x62, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, - 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, - 0x6c, 0x6c, 0x4b, 0x75, 0x62, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, - 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, - 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x4b, 0x75, 0x62, 0x65, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x08, 0x47, 0x65, 0x74, - 0x4b, 0x75, 0x62, 0x65, 0x73, 0x12, 0x25, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, - 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, - 0x4b, 0x75, 0x62, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x74, - 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4b, 0x75, 0x62, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x08, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x70, 0x70, 0x73, - 0x12, 0x25, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, - 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x70, 0x70, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, - 0x69, 0x73, 0x74, 0x41, 0x70, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x54, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x27, 0x2e, - 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, - 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, - 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x60, 0x0a, 0x0d, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x43, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x2a, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, - 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, - 0x6d, 0x6f, 0x76, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, - 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x47, - 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x73, 0x12, 0x29, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, - 0x69, 0x73, 0x74, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, - 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x61, - 0x74, 0x65, 0x77, 0x61, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, - 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x12, - 0x2a, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, - 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x61, 0x74, - 0x65, 0x77, 0x61, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x74, 0x65, - 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, - 0x76, 0x31, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x12, 0x60, 0x0a, 0x0d, 0x52, 0x65, - 0x6d, 0x6f, 0x76, 0x65, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x12, 0x2a, 0x2e, 0x74, 0x65, - 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, - 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x45, - 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x0e, - 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x12, 0x2b, - 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, - 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x47, 0x61, 0x74, - 0x65, 0x77, 0x61, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x74, 0x65, - 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, - 0x76, 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x7e, 0x0a, 0x1f, 0x53, 0x65, 0x74, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x54, 0x61, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x74, + 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x41, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x82, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x34, 0x2e, 0x74, 0x65, + 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x35, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, + 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x0a, 0x41, 0x73, 0x73, 0x75, + 0x6d, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x2b, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, + 0x31, 0x2e, 0x41, 0x73, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, + 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x45, + 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6a, 0x0a, 0x0b, + 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x4b, 0x75, 0x62, 0x65, 0x73, 0x12, 0x2c, 0x2e, 0x74, 0x65, + 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x4b, 0x75, 0x62, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x74, 0x65, 0x6c, 0x65, + 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, + 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x4b, 0x75, 0x62, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x4b, + 0x75, 0x62, 0x65, 0x73, 0x12, 0x29, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, + 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x4b, 0x75, 0x62, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2a, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4b, 0x75, + 0x62, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x08, 0x4c, + 0x69, 0x73, 0x74, 0x41, 0x70, 0x70, 0x73, 0x12, 0x29, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, + 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x70, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, + 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x41, 0x70, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, + 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x2b, 0x2e, 0x74, + 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x74, 0x65, 0x6c, 0x65, + 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, + 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x68, 0x0a, 0x0d, + 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x2e, 0x2e, + 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, + 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6d, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x61, + 0x74, 0x65, 0x77, 0x61, 0x79, 0x73, 0x12, 0x2d, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, + 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, + 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x12, 0x2e, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, + 0x31, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x12, 0x68, 0x0a, 0x0d, 0x52, 0x65, 0x6d, + 0x6f, 0x76, 0x65, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x12, 0x2e, 0x2e, 0x74, 0x65, 0x6c, + 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x47, 0x61, 0x74, 0x65, + 0x77, 0x61, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x74, 0x65, 0x6c, + 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x6a, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x47, 0x61, + 0x74, 0x65, 0x77, 0x61, 0x79, 0x12, 0x2f, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, + 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, + 0x2e, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, + 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x86, 0x01, 0x0a, 0x1f, 0x53, 0x65, 0x74, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x75, 0x62, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, - 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x47, 0x61, - 0x74, 0x65, 0x77, 0x61, 0x79, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x75, 0x62, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x1d, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, - 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, - 0x12, 0x66, 0x0a, 0x13, 0x53, 0x65, 0x74, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x4c, 0x6f, - 0x63, 0x61, 0x6c, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x30, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, - 0x65, 0x74, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x50, 0x6f, - 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x74, 0x65, 0x6c, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, - 0x2e, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x12, 0x63, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, - 0x75, 0x74, 0x68, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x2c, 0x2e, 0x74, 0x65, - 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, - 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, - 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x74, 0x65, 0x6c, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, - 0x2e, 0x41, 0x75, 0x74, 0x68, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x54, 0x0a, - 0x0a, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x27, 0x2e, 0x74, 0x65, - 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, - 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, - 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x12, 0x50, 0x0a, 0x05, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x22, 0x2e, 0x74, - 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, - 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x23, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, - 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x78, 0x0a, 0x11, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x61, - 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x6c, 0x65, 0x73, 0x73, 0x12, 0x2e, 0x2e, 0x74, 0x65, 0x6c, - 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, - 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x6c, - 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x74, 0x65, 0x6c, - 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, - 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x6c, - 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, 0x12, - 0x52, 0x0a, 0x06, 0x4c, 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x12, 0x23, 0x2e, 0x74, 0x65, 0x6c, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, - 0x2e, 0x4c, 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, - 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, - 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x67, 0x0a, 0x0c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x46, - 0x69, 0x6c, 0x65, 0x12, 0x29, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, - 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, - 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, - 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, - 0x65, 0x72, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x30, 0x01, 0x12, 0x66, 0x0a, 0x10, - 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x55, 0x73, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x12, 0x2d, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, - 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x55, 0x73, - 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x23, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, - 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, - 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x61, 0x6d, 0x65, 0x12, 0x40, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, + 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x53, + 0x65, 0x74, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, + 0x75, 0x62, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, + 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, + 0x2e, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x12, 0x6e, 0x0a, 0x13, 0x53, 0x65, 0x74, 0x47, + 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x50, 0x6f, 0x72, 0x74, 0x12, + 0x34, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x47, 0x61, + 0x74, 0x65, 0x77, 0x61, 0x79, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, + 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, + 0x2e, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x12, 0x6b, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, + 0x75, 0x74, 0x68, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x30, 0x2e, 0x74, 0x65, + 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x53, 0x65, + 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, + 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x53, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x5c, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x12, 0x2b, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, + 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x21, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, + 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x12, 0x58, 0x0a, 0x05, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x26, 0x2e, 0x74, + 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, + 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x80, 0x01, + 0x0a, 0x11, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x6c, + 0x65, 0x73, 0x73, 0x12, 0x32, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, + 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, + 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x6c, 0x65, 0x73, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, + 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, + 0x6c, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, + 0x12, 0x5a, 0x0a, 0x06, 0x4c, 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x12, 0x27, 0x2e, 0x74, 0x65, 0x6c, + 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, + 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x45, + 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x0c, + 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x2d, 0x2e, 0x74, + 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x74, 0x65, + 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x66, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x30, 0x01, 0x12, 0x6e, 0x0a, + 0x10, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x55, 0x73, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x12, 0x31, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, + 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, + 0x6f, 0x72, 0x74, 0x55, 0x73, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, + 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x49, 0x5a, + 0x47, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, + 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, + 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_v1_service_proto_rawDescOnce sync.Once - file_v1_service_proto_rawDescData = file_v1_service_proto_rawDesc + file_teleport_lib_teleterm_v1_service_proto_rawDescOnce sync.Once + file_teleport_lib_teleterm_v1_service_proto_rawDescData = file_teleport_lib_teleterm_v1_service_proto_rawDesc ) -func file_v1_service_proto_rawDescGZIP() []byte { - file_v1_service_proto_rawDescOnce.Do(func() { - file_v1_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_v1_service_proto_rawDescData) +func file_teleport_lib_teleterm_v1_service_proto_rawDescGZIP() []byte { + file_teleport_lib_teleterm_v1_service_proto_rawDescOnce.Do(func() { + file_teleport_lib_teleterm_v1_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_teleport_lib_teleterm_v1_service_proto_rawDescData) }) - return file_v1_service_proto_rawDescData -} - -var file_v1_service_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 57) -var file_v1_service_proto_goTypes = []interface{}{ - (PasswordlessPrompt)(0), // 0: teleport.terminal.v1.PasswordlessPrompt - (FileTransferDirection)(0), // 1: teleport.terminal.v1.FileTransferDirection - (*EmptyResponse)(nil), // 2: teleport.terminal.v1.EmptyResponse - (*RemoveClusterRequest)(nil), // 3: teleport.terminal.v1.RemoveClusterRequest - (*GetClusterRequest)(nil), // 4: teleport.terminal.v1.GetClusterRequest - (*LogoutRequest)(nil), // 5: teleport.terminal.v1.LogoutRequest - (*GetAccessRequestRequest)(nil), // 6: teleport.terminal.v1.GetAccessRequestRequest - (*GetAccessRequestsRequest)(nil), // 7: teleport.terminal.v1.GetAccessRequestsRequest - (*GetAccessRequestResponse)(nil), // 8: teleport.terminal.v1.GetAccessRequestResponse - (*GetAccessRequestsResponse)(nil), // 9: teleport.terminal.v1.GetAccessRequestsResponse - (*DeleteAccessRequestRequest)(nil), // 10: teleport.terminal.v1.DeleteAccessRequestRequest - (*CreateAccessRequestRequest)(nil), // 11: teleport.terminal.v1.CreateAccessRequestRequest - (*CreateAccessRequestResponse)(nil), // 12: teleport.terminal.v1.CreateAccessRequestResponse - (*AssumeRoleRequest)(nil), // 13: teleport.terminal.v1.AssumeRoleRequest - (*GetRequestableRolesRequest)(nil), // 14: teleport.terminal.v1.GetRequestableRolesRequest - (*GetRequestableRolesResponse)(nil), // 15: teleport.terminal.v1.GetRequestableRolesResponse - (*ReviewAccessRequestRequest)(nil), // 16: teleport.terminal.v1.ReviewAccessRequestRequest - (*ReviewAccessRequestResponse)(nil), // 17: teleport.terminal.v1.ReviewAccessRequestResponse - (*CredentialInfo)(nil), // 18: teleport.terminal.v1.CredentialInfo - (*LoginPasswordlessResponse)(nil), // 19: teleport.terminal.v1.LoginPasswordlessResponse - (*LoginPasswordlessRequest)(nil), // 20: teleport.terminal.v1.LoginPasswordlessRequest - (*FileTransferRequest)(nil), // 21: teleport.terminal.v1.FileTransferRequest - (*FileTransferProgress)(nil), // 22: teleport.terminal.v1.FileTransferProgress - (*LoginRequest)(nil), // 23: teleport.terminal.v1.LoginRequest - (*AddClusterRequest)(nil), // 24: teleport.terminal.v1.AddClusterRequest - (*ListAppsRequest)(nil), // 25: teleport.terminal.v1.ListAppsRequest - (*ListClustersRequest)(nil), // 26: teleport.terminal.v1.ListClustersRequest - (*ListClustersResponse)(nil), // 27: teleport.terminal.v1.ListClustersResponse - (*GetAllDatabasesRequest)(nil), // 28: teleport.terminal.v1.GetAllDatabasesRequest - (*GetDatabasesRequest)(nil), // 29: teleport.terminal.v1.GetDatabasesRequest - (*ListLeafClustersRequest)(nil), // 30: teleport.terminal.v1.ListLeafClustersRequest - (*GetAllDatabasesResponse)(nil), // 31: teleport.terminal.v1.GetAllDatabasesResponse - (*ListDatabaseUsersRequest)(nil), // 32: teleport.terminal.v1.ListDatabaseUsersRequest - (*ListDatabaseUsersResponse)(nil), // 33: teleport.terminal.v1.ListDatabaseUsersResponse - (*CreateGatewayRequest)(nil), // 34: teleport.terminal.v1.CreateGatewayRequest - (*ListGatewaysRequest)(nil), // 35: teleport.terminal.v1.ListGatewaysRequest - (*ListGatewaysResponse)(nil), // 36: teleport.terminal.v1.ListGatewaysResponse - (*RemoveGatewayRequest)(nil), // 37: teleport.terminal.v1.RemoveGatewayRequest - (*RestartGatewayRequest)(nil), // 38: teleport.terminal.v1.RestartGatewayRequest - (*SetGatewayTargetSubresourceNameRequest)(nil), // 39: teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest - (*SetGatewayLocalPortRequest)(nil), // 40: teleport.terminal.v1.SetGatewayLocalPortRequest - (*GetAllServersRequest)(nil), // 41: teleport.terminal.v1.GetAllServersRequest - (*GetAllServersResponse)(nil), // 42: teleport.terminal.v1.GetAllServersResponse - (*GetServersRequest)(nil), // 43: teleport.terminal.v1.GetServersRequest - (*GetServersResponse)(nil), // 44: teleport.terminal.v1.GetServersResponse - (*GetDatabasesResponse)(nil), // 45: teleport.terminal.v1.GetDatabasesResponse - (*GetAllKubesRequest)(nil), // 46: teleport.terminal.v1.GetAllKubesRequest - (*GetAllKubesResponse)(nil), // 47: teleport.terminal.v1.GetAllKubesResponse - (*GetKubesRequest)(nil), // 48: teleport.terminal.v1.GetKubesRequest - (*GetKubesResponse)(nil), // 49: teleport.terminal.v1.GetKubesResponse - (*ListAppsResponse)(nil), // 50: teleport.terminal.v1.ListAppsResponse - (*GetAuthSettingsRequest)(nil), // 51: teleport.terminal.v1.GetAuthSettingsRequest - (*UpdateTshdEventsServerAddressRequest)(nil), // 52: teleport.terminal.v1.UpdateTshdEventsServerAddressRequest - (*UpdateTshdEventsServerAddressResponse)(nil), // 53: teleport.terminal.v1.UpdateTshdEventsServerAddressResponse - (*LoginPasswordlessRequest_LoginPasswordlessRequestInit)(nil), // 54: teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit - (*LoginPasswordlessRequest_LoginPasswordlessPINResponse)(nil), // 55: teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse - (*LoginPasswordlessRequest_LoginPasswordlessCredentialResponse)(nil), // 56: teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse - (*LoginRequest_LocalParams)(nil), // 57: teleport.terminal.v1.LoginRequest.LocalParams - (*LoginRequest_SsoParams)(nil), // 58: teleport.terminal.v1.LoginRequest.SsoParams - (*AccessRequest)(nil), // 59: teleport.terminal.v1.AccessRequest - (*ResourceID)(nil), // 60: teleport.terminal.v1.ResourceID - (*Cluster)(nil), // 61: teleport.terminal.v1.Cluster - (*Database)(nil), // 62: teleport.terminal.v1.Database - (*Gateway)(nil), // 63: teleport.terminal.v1.Gateway - (*Server)(nil), // 64: teleport.terminal.v1.Server - (*Kube)(nil), // 65: teleport.terminal.v1.Kube - (*App)(nil), // 66: teleport.terminal.v1.App - (*ReportUsageEventRequest)(nil), // 67: teleport.terminal.v1.ReportUsageEventRequest - (*AuthSettings)(nil), // 68: teleport.terminal.v1.AuthSettings -} -var file_v1_service_proto_depIdxs = []int32{ - 59, // 0: teleport.terminal.v1.GetAccessRequestResponse.request:type_name -> teleport.terminal.v1.AccessRequest - 59, // 1: teleport.terminal.v1.GetAccessRequestsResponse.requests:type_name -> teleport.terminal.v1.AccessRequest - 60, // 2: teleport.terminal.v1.CreateAccessRequestRequest.resource_ids:type_name -> teleport.terminal.v1.ResourceID - 59, // 3: teleport.terminal.v1.CreateAccessRequestResponse.request:type_name -> teleport.terminal.v1.AccessRequest - 60, // 4: teleport.terminal.v1.GetRequestableRolesRequest.resource_ids:type_name -> teleport.terminal.v1.ResourceID - 59, // 5: teleport.terminal.v1.ReviewAccessRequestResponse.request:type_name -> teleport.terminal.v1.AccessRequest - 0, // 6: teleport.terminal.v1.LoginPasswordlessResponse.prompt:type_name -> teleport.terminal.v1.PasswordlessPrompt - 18, // 7: teleport.terminal.v1.LoginPasswordlessResponse.credentials:type_name -> teleport.terminal.v1.CredentialInfo - 54, // 8: teleport.terminal.v1.LoginPasswordlessRequest.init:type_name -> teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit - 55, // 9: teleport.terminal.v1.LoginPasswordlessRequest.pin:type_name -> teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse - 56, // 10: teleport.terminal.v1.LoginPasswordlessRequest.credential:type_name -> teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse - 1, // 11: teleport.terminal.v1.FileTransferRequest.direction:type_name -> teleport.terminal.v1.FileTransferDirection - 57, // 12: teleport.terminal.v1.LoginRequest.local:type_name -> teleport.terminal.v1.LoginRequest.LocalParams - 58, // 13: teleport.terminal.v1.LoginRequest.sso:type_name -> teleport.terminal.v1.LoginRequest.SsoParams - 61, // 14: teleport.terminal.v1.ListClustersResponse.clusters:type_name -> teleport.terminal.v1.Cluster - 62, // 15: teleport.terminal.v1.GetAllDatabasesResponse.databases:type_name -> teleport.terminal.v1.Database - 63, // 16: teleport.terminal.v1.ListGatewaysResponse.gateways:type_name -> teleport.terminal.v1.Gateway - 64, // 17: teleport.terminal.v1.GetAllServersResponse.servers:type_name -> teleport.terminal.v1.Server - 64, // 18: teleport.terminal.v1.GetServersResponse.agents:type_name -> teleport.terminal.v1.Server - 62, // 19: teleport.terminal.v1.GetDatabasesResponse.agents:type_name -> teleport.terminal.v1.Database - 65, // 20: teleport.terminal.v1.GetAllKubesResponse.kubes:type_name -> teleport.terminal.v1.Kube - 65, // 21: teleport.terminal.v1.GetKubesResponse.agents:type_name -> teleport.terminal.v1.Kube - 66, // 22: teleport.terminal.v1.ListAppsResponse.apps:type_name -> teleport.terminal.v1.App - 52, // 23: teleport.terminal.v1.TerminalService.UpdateTshdEventsServerAddress:input_type -> teleport.terminal.v1.UpdateTshdEventsServerAddressRequest - 26, // 24: teleport.terminal.v1.TerminalService.ListRootClusters:input_type -> teleport.terminal.v1.ListClustersRequest - 30, // 25: teleport.terminal.v1.TerminalService.ListLeafClusters:input_type -> teleport.terminal.v1.ListLeafClustersRequest - 28, // 26: teleport.terminal.v1.TerminalService.GetAllDatabases:input_type -> teleport.terminal.v1.GetAllDatabasesRequest - 29, // 27: teleport.terminal.v1.TerminalService.GetDatabases:input_type -> teleport.terminal.v1.GetDatabasesRequest - 32, // 28: teleport.terminal.v1.TerminalService.ListDatabaseUsers:input_type -> teleport.terminal.v1.ListDatabaseUsersRequest - 41, // 29: teleport.terminal.v1.TerminalService.GetAllServers:input_type -> teleport.terminal.v1.GetAllServersRequest - 43, // 30: teleport.terminal.v1.TerminalService.GetServers:input_type -> teleport.terminal.v1.GetServersRequest - 7, // 31: teleport.terminal.v1.TerminalService.GetAccessRequests:input_type -> teleport.terminal.v1.GetAccessRequestsRequest - 6, // 32: teleport.terminal.v1.TerminalService.GetAccessRequest:input_type -> teleport.terminal.v1.GetAccessRequestRequest - 10, // 33: teleport.terminal.v1.TerminalService.DeleteAccessRequest:input_type -> teleport.terminal.v1.DeleteAccessRequestRequest - 11, // 34: teleport.terminal.v1.TerminalService.CreateAccessRequest:input_type -> teleport.terminal.v1.CreateAccessRequestRequest - 16, // 35: teleport.terminal.v1.TerminalService.ReviewAccessRequest:input_type -> teleport.terminal.v1.ReviewAccessRequestRequest - 14, // 36: teleport.terminal.v1.TerminalService.GetRequestableRoles:input_type -> teleport.terminal.v1.GetRequestableRolesRequest - 13, // 37: teleport.terminal.v1.TerminalService.AssumeRole:input_type -> teleport.terminal.v1.AssumeRoleRequest - 46, // 38: teleport.terminal.v1.TerminalService.GetAllKubes:input_type -> teleport.terminal.v1.GetAllKubesRequest - 48, // 39: teleport.terminal.v1.TerminalService.GetKubes:input_type -> teleport.terminal.v1.GetKubesRequest - 25, // 40: teleport.terminal.v1.TerminalService.ListApps:input_type -> teleport.terminal.v1.ListAppsRequest - 24, // 41: teleport.terminal.v1.TerminalService.AddCluster:input_type -> teleport.terminal.v1.AddClusterRequest - 3, // 42: teleport.terminal.v1.TerminalService.RemoveCluster:input_type -> teleport.terminal.v1.RemoveClusterRequest - 35, // 43: teleport.terminal.v1.TerminalService.ListGateways:input_type -> teleport.terminal.v1.ListGatewaysRequest - 34, // 44: teleport.terminal.v1.TerminalService.CreateGateway:input_type -> teleport.terminal.v1.CreateGatewayRequest - 37, // 45: teleport.terminal.v1.TerminalService.RemoveGateway:input_type -> teleport.terminal.v1.RemoveGatewayRequest - 38, // 46: teleport.terminal.v1.TerminalService.RestartGateway:input_type -> teleport.terminal.v1.RestartGatewayRequest - 39, // 47: teleport.terminal.v1.TerminalService.SetGatewayTargetSubresourceName:input_type -> teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest - 40, // 48: teleport.terminal.v1.TerminalService.SetGatewayLocalPort:input_type -> teleport.terminal.v1.SetGatewayLocalPortRequest - 51, // 49: teleport.terminal.v1.TerminalService.GetAuthSettings:input_type -> teleport.terminal.v1.GetAuthSettingsRequest - 4, // 50: teleport.terminal.v1.TerminalService.GetCluster:input_type -> teleport.terminal.v1.GetClusterRequest - 23, // 51: teleport.terminal.v1.TerminalService.Login:input_type -> teleport.terminal.v1.LoginRequest - 20, // 52: teleport.terminal.v1.TerminalService.LoginPasswordless:input_type -> teleport.terminal.v1.LoginPasswordlessRequest - 5, // 53: teleport.terminal.v1.TerminalService.Logout:input_type -> teleport.terminal.v1.LogoutRequest - 21, // 54: teleport.terminal.v1.TerminalService.TransferFile:input_type -> teleport.terminal.v1.FileTransferRequest - 67, // 55: teleport.terminal.v1.TerminalService.ReportUsageEvent:input_type -> teleport.terminal.v1.ReportUsageEventRequest - 53, // 56: teleport.terminal.v1.TerminalService.UpdateTshdEventsServerAddress:output_type -> teleport.terminal.v1.UpdateTshdEventsServerAddressResponse - 27, // 57: teleport.terminal.v1.TerminalService.ListRootClusters:output_type -> teleport.terminal.v1.ListClustersResponse - 27, // 58: teleport.terminal.v1.TerminalService.ListLeafClusters:output_type -> teleport.terminal.v1.ListClustersResponse - 31, // 59: teleport.terminal.v1.TerminalService.GetAllDatabases:output_type -> teleport.terminal.v1.GetAllDatabasesResponse - 45, // 60: teleport.terminal.v1.TerminalService.GetDatabases:output_type -> teleport.terminal.v1.GetDatabasesResponse - 33, // 61: teleport.terminal.v1.TerminalService.ListDatabaseUsers:output_type -> teleport.terminal.v1.ListDatabaseUsersResponse - 42, // 62: teleport.terminal.v1.TerminalService.GetAllServers:output_type -> teleport.terminal.v1.GetAllServersResponse - 44, // 63: teleport.terminal.v1.TerminalService.GetServers:output_type -> teleport.terminal.v1.GetServersResponse - 9, // 64: teleport.terminal.v1.TerminalService.GetAccessRequests:output_type -> teleport.terminal.v1.GetAccessRequestsResponse - 8, // 65: teleport.terminal.v1.TerminalService.GetAccessRequest:output_type -> teleport.terminal.v1.GetAccessRequestResponse - 2, // 66: teleport.terminal.v1.TerminalService.DeleteAccessRequest:output_type -> teleport.terminal.v1.EmptyResponse - 12, // 67: teleport.terminal.v1.TerminalService.CreateAccessRequest:output_type -> teleport.terminal.v1.CreateAccessRequestResponse - 17, // 68: teleport.terminal.v1.TerminalService.ReviewAccessRequest:output_type -> teleport.terminal.v1.ReviewAccessRequestResponse - 15, // 69: teleport.terminal.v1.TerminalService.GetRequestableRoles:output_type -> teleport.terminal.v1.GetRequestableRolesResponse - 2, // 70: teleport.terminal.v1.TerminalService.AssumeRole:output_type -> teleport.terminal.v1.EmptyResponse - 47, // 71: teleport.terminal.v1.TerminalService.GetAllKubes:output_type -> teleport.terminal.v1.GetAllKubesResponse - 49, // 72: teleport.terminal.v1.TerminalService.GetKubes:output_type -> teleport.terminal.v1.GetKubesResponse - 50, // 73: teleport.terminal.v1.TerminalService.ListApps:output_type -> teleport.terminal.v1.ListAppsResponse - 61, // 74: teleport.terminal.v1.TerminalService.AddCluster:output_type -> teleport.terminal.v1.Cluster - 2, // 75: teleport.terminal.v1.TerminalService.RemoveCluster:output_type -> teleport.terminal.v1.EmptyResponse - 36, // 76: teleport.terminal.v1.TerminalService.ListGateways:output_type -> teleport.terminal.v1.ListGatewaysResponse - 63, // 77: teleport.terminal.v1.TerminalService.CreateGateway:output_type -> teleport.terminal.v1.Gateway - 2, // 78: teleport.terminal.v1.TerminalService.RemoveGateway:output_type -> teleport.terminal.v1.EmptyResponse - 2, // 79: teleport.terminal.v1.TerminalService.RestartGateway:output_type -> teleport.terminal.v1.EmptyResponse - 63, // 80: teleport.terminal.v1.TerminalService.SetGatewayTargetSubresourceName:output_type -> teleport.terminal.v1.Gateway - 63, // 81: teleport.terminal.v1.TerminalService.SetGatewayLocalPort:output_type -> teleport.terminal.v1.Gateway - 68, // 82: teleport.terminal.v1.TerminalService.GetAuthSettings:output_type -> teleport.terminal.v1.AuthSettings - 61, // 83: teleport.terminal.v1.TerminalService.GetCluster:output_type -> teleport.terminal.v1.Cluster - 2, // 84: teleport.terminal.v1.TerminalService.Login:output_type -> teleport.terminal.v1.EmptyResponse - 19, // 85: teleport.terminal.v1.TerminalService.LoginPasswordless:output_type -> teleport.terminal.v1.LoginPasswordlessResponse - 2, // 86: teleport.terminal.v1.TerminalService.Logout:output_type -> teleport.terminal.v1.EmptyResponse - 22, // 87: teleport.terminal.v1.TerminalService.TransferFile:output_type -> teleport.terminal.v1.FileTransferProgress - 2, // 88: teleport.terminal.v1.TerminalService.ReportUsageEvent:output_type -> teleport.terminal.v1.EmptyResponse + return file_teleport_lib_teleterm_v1_service_proto_rawDescData +} + +var file_teleport_lib_teleterm_v1_service_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_teleport_lib_teleterm_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 57) +var file_teleport_lib_teleterm_v1_service_proto_goTypes = []interface{}{ + (PasswordlessPrompt)(0), // 0: teleport.lib.teleterm.v1.PasswordlessPrompt + (FileTransferDirection)(0), // 1: teleport.lib.teleterm.v1.FileTransferDirection + (*EmptyResponse)(nil), // 2: teleport.lib.teleterm.v1.EmptyResponse + (*RemoveClusterRequest)(nil), // 3: teleport.lib.teleterm.v1.RemoveClusterRequest + (*GetClusterRequest)(nil), // 4: teleport.lib.teleterm.v1.GetClusterRequest + (*LogoutRequest)(nil), // 5: teleport.lib.teleterm.v1.LogoutRequest + (*GetAccessRequestRequest)(nil), // 6: teleport.lib.teleterm.v1.GetAccessRequestRequest + (*GetAccessRequestsRequest)(nil), // 7: teleport.lib.teleterm.v1.GetAccessRequestsRequest + (*GetAccessRequestResponse)(nil), // 8: teleport.lib.teleterm.v1.GetAccessRequestResponse + (*GetAccessRequestsResponse)(nil), // 9: teleport.lib.teleterm.v1.GetAccessRequestsResponse + (*DeleteAccessRequestRequest)(nil), // 10: teleport.lib.teleterm.v1.DeleteAccessRequestRequest + (*CreateAccessRequestRequest)(nil), // 11: teleport.lib.teleterm.v1.CreateAccessRequestRequest + (*CreateAccessRequestResponse)(nil), // 12: teleport.lib.teleterm.v1.CreateAccessRequestResponse + (*AssumeRoleRequest)(nil), // 13: teleport.lib.teleterm.v1.AssumeRoleRequest + (*GetRequestableRolesRequest)(nil), // 14: teleport.lib.teleterm.v1.GetRequestableRolesRequest + (*GetRequestableRolesResponse)(nil), // 15: teleport.lib.teleterm.v1.GetRequestableRolesResponse + (*ReviewAccessRequestRequest)(nil), // 16: teleport.lib.teleterm.v1.ReviewAccessRequestRequest + (*ReviewAccessRequestResponse)(nil), // 17: teleport.lib.teleterm.v1.ReviewAccessRequestResponse + (*CredentialInfo)(nil), // 18: teleport.lib.teleterm.v1.CredentialInfo + (*LoginPasswordlessResponse)(nil), // 19: teleport.lib.teleterm.v1.LoginPasswordlessResponse + (*LoginPasswordlessRequest)(nil), // 20: teleport.lib.teleterm.v1.LoginPasswordlessRequest + (*FileTransferRequest)(nil), // 21: teleport.lib.teleterm.v1.FileTransferRequest + (*FileTransferProgress)(nil), // 22: teleport.lib.teleterm.v1.FileTransferProgress + (*LoginRequest)(nil), // 23: teleport.lib.teleterm.v1.LoginRequest + (*AddClusterRequest)(nil), // 24: teleport.lib.teleterm.v1.AddClusterRequest + (*ListAppsRequest)(nil), // 25: teleport.lib.teleterm.v1.ListAppsRequest + (*ListClustersRequest)(nil), // 26: teleport.lib.teleterm.v1.ListClustersRequest + (*ListClustersResponse)(nil), // 27: teleport.lib.teleterm.v1.ListClustersResponse + (*GetAllDatabasesRequest)(nil), // 28: teleport.lib.teleterm.v1.GetAllDatabasesRequest + (*GetDatabasesRequest)(nil), // 29: teleport.lib.teleterm.v1.GetDatabasesRequest + (*ListLeafClustersRequest)(nil), // 30: teleport.lib.teleterm.v1.ListLeafClustersRequest + (*GetAllDatabasesResponse)(nil), // 31: teleport.lib.teleterm.v1.GetAllDatabasesResponse + (*ListDatabaseUsersRequest)(nil), // 32: teleport.lib.teleterm.v1.ListDatabaseUsersRequest + (*ListDatabaseUsersResponse)(nil), // 33: teleport.lib.teleterm.v1.ListDatabaseUsersResponse + (*CreateGatewayRequest)(nil), // 34: teleport.lib.teleterm.v1.CreateGatewayRequest + (*ListGatewaysRequest)(nil), // 35: teleport.lib.teleterm.v1.ListGatewaysRequest + (*ListGatewaysResponse)(nil), // 36: teleport.lib.teleterm.v1.ListGatewaysResponse + (*RemoveGatewayRequest)(nil), // 37: teleport.lib.teleterm.v1.RemoveGatewayRequest + (*RestartGatewayRequest)(nil), // 38: teleport.lib.teleterm.v1.RestartGatewayRequest + (*SetGatewayTargetSubresourceNameRequest)(nil), // 39: teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest + (*SetGatewayLocalPortRequest)(nil), // 40: teleport.lib.teleterm.v1.SetGatewayLocalPortRequest + (*GetAllServersRequest)(nil), // 41: teleport.lib.teleterm.v1.GetAllServersRequest + (*GetAllServersResponse)(nil), // 42: teleport.lib.teleterm.v1.GetAllServersResponse + (*GetServersRequest)(nil), // 43: teleport.lib.teleterm.v1.GetServersRequest + (*GetServersResponse)(nil), // 44: teleport.lib.teleterm.v1.GetServersResponse + (*GetDatabasesResponse)(nil), // 45: teleport.lib.teleterm.v1.GetDatabasesResponse + (*GetAllKubesRequest)(nil), // 46: teleport.lib.teleterm.v1.GetAllKubesRequest + (*GetAllKubesResponse)(nil), // 47: teleport.lib.teleterm.v1.GetAllKubesResponse + (*GetKubesRequest)(nil), // 48: teleport.lib.teleterm.v1.GetKubesRequest + (*GetKubesResponse)(nil), // 49: teleport.lib.teleterm.v1.GetKubesResponse + (*ListAppsResponse)(nil), // 50: teleport.lib.teleterm.v1.ListAppsResponse + (*GetAuthSettingsRequest)(nil), // 51: teleport.lib.teleterm.v1.GetAuthSettingsRequest + (*UpdateTshdEventsServerAddressRequest)(nil), // 52: teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest + (*UpdateTshdEventsServerAddressResponse)(nil), // 53: teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressResponse + (*LoginPasswordlessRequest_LoginPasswordlessRequestInit)(nil), // 54: teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit + (*LoginPasswordlessRequest_LoginPasswordlessPINResponse)(nil), // 55: teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse + (*LoginPasswordlessRequest_LoginPasswordlessCredentialResponse)(nil), // 56: teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse + (*LoginRequest_LocalParams)(nil), // 57: teleport.lib.teleterm.v1.LoginRequest.LocalParams + (*LoginRequest_SsoParams)(nil), // 58: teleport.lib.teleterm.v1.LoginRequest.SsoParams + (*AccessRequest)(nil), // 59: teleport.lib.teleterm.v1.AccessRequest + (*ResourceID)(nil), // 60: teleport.lib.teleterm.v1.ResourceID + (*Cluster)(nil), // 61: teleport.lib.teleterm.v1.Cluster + (*Database)(nil), // 62: teleport.lib.teleterm.v1.Database + (*Gateway)(nil), // 63: teleport.lib.teleterm.v1.Gateway + (*Server)(nil), // 64: teleport.lib.teleterm.v1.Server + (*Kube)(nil), // 65: teleport.lib.teleterm.v1.Kube + (*App)(nil), // 66: teleport.lib.teleterm.v1.App + (*ReportUsageEventRequest)(nil), // 67: teleport.lib.teleterm.v1.ReportUsageEventRequest + (*AuthSettings)(nil), // 68: teleport.lib.teleterm.v1.AuthSettings +} +var file_teleport_lib_teleterm_v1_service_proto_depIdxs = []int32{ + 59, // 0: teleport.lib.teleterm.v1.GetAccessRequestResponse.request:type_name -> teleport.lib.teleterm.v1.AccessRequest + 59, // 1: teleport.lib.teleterm.v1.GetAccessRequestsResponse.requests:type_name -> teleport.lib.teleterm.v1.AccessRequest + 60, // 2: teleport.lib.teleterm.v1.CreateAccessRequestRequest.resource_ids:type_name -> teleport.lib.teleterm.v1.ResourceID + 59, // 3: teleport.lib.teleterm.v1.CreateAccessRequestResponse.request:type_name -> teleport.lib.teleterm.v1.AccessRequest + 60, // 4: teleport.lib.teleterm.v1.GetRequestableRolesRequest.resource_ids:type_name -> teleport.lib.teleterm.v1.ResourceID + 59, // 5: teleport.lib.teleterm.v1.ReviewAccessRequestResponse.request:type_name -> teleport.lib.teleterm.v1.AccessRequest + 0, // 6: teleport.lib.teleterm.v1.LoginPasswordlessResponse.prompt:type_name -> teleport.lib.teleterm.v1.PasswordlessPrompt + 18, // 7: teleport.lib.teleterm.v1.LoginPasswordlessResponse.credentials:type_name -> teleport.lib.teleterm.v1.CredentialInfo + 54, // 8: teleport.lib.teleterm.v1.LoginPasswordlessRequest.init:type_name -> teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit + 55, // 9: teleport.lib.teleterm.v1.LoginPasswordlessRequest.pin:type_name -> teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse + 56, // 10: teleport.lib.teleterm.v1.LoginPasswordlessRequest.credential:type_name -> teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse + 1, // 11: teleport.lib.teleterm.v1.FileTransferRequest.direction:type_name -> teleport.lib.teleterm.v1.FileTransferDirection + 57, // 12: teleport.lib.teleterm.v1.LoginRequest.local:type_name -> teleport.lib.teleterm.v1.LoginRequest.LocalParams + 58, // 13: teleport.lib.teleterm.v1.LoginRequest.sso:type_name -> teleport.lib.teleterm.v1.LoginRequest.SsoParams + 61, // 14: teleport.lib.teleterm.v1.ListClustersResponse.clusters:type_name -> teleport.lib.teleterm.v1.Cluster + 62, // 15: teleport.lib.teleterm.v1.GetAllDatabasesResponse.databases:type_name -> teleport.lib.teleterm.v1.Database + 63, // 16: teleport.lib.teleterm.v1.ListGatewaysResponse.gateways:type_name -> teleport.lib.teleterm.v1.Gateway + 64, // 17: teleport.lib.teleterm.v1.GetAllServersResponse.servers:type_name -> teleport.lib.teleterm.v1.Server + 64, // 18: teleport.lib.teleterm.v1.GetServersResponse.agents:type_name -> teleport.lib.teleterm.v1.Server + 62, // 19: teleport.lib.teleterm.v1.GetDatabasesResponse.agents:type_name -> teleport.lib.teleterm.v1.Database + 65, // 20: teleport.lib.teleterm.v1.GetAllKubesResponse.kubes:type_name -> teleport.lib.teleterm.v1.Kube + 65, // 21: teleport.lib.teleterm.v1.GetKubesResponse.agents:type_name -> teleport.lib.teleterm.v1.Kube + 66, // 22: teleport.lib.teleterm.v1.ListAppsResponse.apps:type_name -> teleport.lib.teleterm.v1.App + 52, // 23: teleport.lib.teleterm.v1.TerminalService.UpdateTshdEventsServerAddress:input_type -> teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest + 26, // 24: teleport.lib.teleterm.v1.TerminalService.ListRootClusters:input_type -> teleport.lib.teleterm.v1.ListClustersRequest + 30, // 25: teleport.lib.teleterm.v1.TerminalService.ListLeafClusters:input_type -> teleport.lib.teleterm.v1.ListLeafClustersRequest + 28, // 26: teleport.lib.teleterm.v1.TerminalService.GetAllDatabases:input_type -> teleport.lib.teleterm.v1.GetAllDatabasesRequest + 29, // 27: teleport.lib.teleterm.v1.TerminalService.GetDatabases:input_type -> teleport.lib.teleterm.v1.GetDatabasesRequest + 32, // 28: teleport.lib.teleterm.v1.TerminalService.ListDatabaseUsers:input_type -> teleport.lib.teleterm.v1.ListDatabaseUsersRequest + 41, // 29: teleport.lib.teleterm.v1.TerminalService.GetAllServers:input_type -> teleport.lib.teleterm.v1.GetAllServersRequest + 43, // 30: teleport.lib.teleterm.v1.TerminalService.GetServers:input_type -> teleport.lib.teleterm.v1.GetServersRequest + 7, // 31: teleport.lib.teleterm.v1.TerminalService.GetAccessRequests:input_type -> teleport.lib.teleterm.v1.GetAccessRequestsRequest + 6, // 32: teleport.lib.teleterm.v1.TerminalService.GetAccessRequest:input_type -> teleport.lib.teleterm.v1.GetAccessRequestRequest + 10, // 33: teleport.lib.teleterm.v1.TerminalService.DeleteAccessRequest:input_type -> teleport.lib.teleterm.v1.DeleteAccessRequestRequest + 11, // 34: teleport.lib.teleterm.v1.TerminalService.CreateAccessRequest:input_type -> teleport.lib.teleterm.v1.CreateAccessRequestRequest + 16, // 35: teleport.lib.teleterm.v1.TerminalService.ReviewAccessRequest:input_type -> teleport.lib.teleterm.v1.ReviewAccessRequestRequest + 14, // 36: teleport.lib.teleterm.v1.TerminalService.GetRequestableRoles:input_type -> teleport.lib.teleterm.v1.GetRequestableRolesRequest + 13, // 37: teleport.lib.teleterm.v1.TerminalService.AssumeRole:input_type -> teleport.lib.teleterm.v1.AssumeRoleRequest + 46, // 38: teleport.lib.teleterm.v1.TerminalService.GetAllKubes:input_type -> teleport.lib.teleterm.v1.GetAllKubesRequest + 48, // 39: teleport.lib.teleterm.v1.TerminalService.GetKubes:input_type -> teleport.lib.teleterm.v1.GetKubesRequest + 25, // 40: teleport.lib.teleterm.v1.TerminalService.ListApps:input_type -> teleport.lib.teleterm.v1.ListAppsRequest + 24, // 41: teleport.lib.teleterm.v1.TerminalService.AddCluster:input_type -> teleport.lib.teleterm.v1.AddClusterRequest + 3, // 42: teleport.lib.teleterm.v1.TerminalService.RemoveCluster:input_type -> teleport.lib.teleterm.v1.RemoveClusterRequest + 35, // 43: teleport.lib.teleterm.v1.TerminalService.ListGateways:input_type -> teleport.lib.teleterm.v1.ListGatewaysRequest + 34, // 44: teleport.lib.teleterm.v1.TerminalService.CreateGateway:input_type -> teleport.lib.teleterm.v1.CreateGatewayRequest + 37, // 45: teleport.lib.teleterm.v1.TerminalService.RemoveGateway:input_type -> teleport.lib.teleterm.v1.RemoveGatewayRequest + 38, // 46: teleport.lib.teleterm.v1.TerminalService.RestartGateway:input_type -> teleport.lib.teleterm.v1.RestartGatewayRequest + 39, // 47: teleport.lib.teleterm.v1.TerminalService.SetGatewayTargetSubresourceName:input_type -> teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest + 40, // 48: teleport.lib.teleterm.v1.TerminalService.SetGatewayLocalPort:input_type -> teleport.lib.teleterm.v1.SetGatewayLocalPortRequest + 51, // 49: teleport.lib.teleterm.v1.TerminalService.GetAuthSettings:input_type -> teleport.lib.teleterm.v1.GetAuthSettingsRequest + 4, // 50: teleport.lib.teleterm.v1.TerminalService.GetCluster:input_type -> teleport.lib.teleterm.v1.GetClusterRequest + 23, // 51: teleport.lib.teleterm.v1.TerminalService.Login:input_type -> teleport.lib.teleterm.v1.LoginRequest + 20, // 52: teleport.lib.teleterm.v1.TerminalService.LoginPasswordless:input_type -> teleport.lib.teleterm.v1.LoginPasswordlessRequest + 5, // 53: teleport.lib.teleterm.v1.TerminalService.Logout:input_type -> teleport.lib.teleterm.v1.LogoutRequest + 21, // 54: teleport.lib.teleterm.v1.TerminalService.TransferFile:input_type -> teleport.lib.teleterm.v1.FileTransferRequest + 67, // 55: teleport.lib.teleterm.v1.TerminalService.ReportUsageEvent:input_type -> teleport.lib.teleterm.v1.ReportUsageEventRequest + 53, // 56: teleport.lib.teleterm.v1.TerminalService.UpdateTshdEventsServerAddress:output_type -> teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressResponse + 27, // 57: teleport.lib.teleterm.v1.TerminalService.ListRootClusters:output_type -> teleport.lib.teleterm.v1.ListClustersResponse + 27, // 58: teleport.lib.teleterm.v1.TerminalService.ListLeafClusters:output_type -> teleport.lib.teleterm.v1.ListClustersResponse + 31, // 59: teleport.lib.teleterm.v1.TerminalService.GetAllDatabases:output_type -> teleport.lib.teleterm.v1.GetAllDatabasesResponse + 45, // 60: teleport.lib.teleterm.v1.TerminalService.GetDatabases:output_type -> teleport.lib.teleterm.v1.GetDatabasesResponse + 33, // 61: teleport.lib.teleterm.v1.TerminalService.ListDatabaseUsers:output_type -> teleport.lib.teleterm.v1.ListDatabaseUsersResponse + 42, // 62: teleport.lib.teleterm.v1.TerminalService.GetAllServers:output_type -> teleport.lib.teleterm.v1.GetAllServersResponse + 44, // 63: teleport.lib.teleterm.v1.TerminalService.GetServers:output_type -> teleport.lib.teleterm.v1.GetServersResponse + 9, // 64: teleport.lib.teleterm.v1.TerminalService.GetAccessRequests:output_type -> teleport.lib.teleterm.v1.GetAccessRequestsResponse + 8, // 65: teleport.lib.teleterm.v1.TerminalService.GetAccessRequest:output_type -> teleport.lib.teleterm.v1.GetAccessRequestResponse + 2, // 66: teleport.lib.teleterm.v1.TerminalService.DeleteAccessRequest:output_type -> teleport.lib.teleterm.v1.EmptyResponse + 12, // 67: teleport.lib.teleterm.v1.TerminalService.CreateAccessRequest:output_type -> teleport.lib.teleterm.v1.CreateAccessRequestResponse + 17, // 68: teleport.lib.teleterm.v1.TerminalService.ReviewAccessRequest:output_type -> teleport.lib.teleterm.v1.ReviewAccessRequestResponse + 15, // 69: teleport.lib.teleterm.v1.TerminalService.GetRequestableRoles:output_type -> teleport.lib.teleterm.v1.GetRequestableRolesResponse + 2, // 70: teleport.lib.teleterm.v1.TerminalService.AssumeRole:output_type -> teleport.lib.teleterm.v1.EmptyResponse + 47, // 71: teleport.lib.teleterm.v1.TerminalService.GetAllKubes:output_type -> teleport.lib.teleterm.v1.GetAllKubesResponse + 49, // 72: teleport.lib.teleterm.v1.TerminalService.GetKubes:output_type -> teleport.lib.teleterm.v1.GetKubesResponse + 50, // 73: teleport.lib.teleterm.v1.TerminalService.ListApps:output_type -> teleport.lib.teleterm.v1.ListAppsResponse + 61, // 74: teleport.lib.teleterm.v1.TerminalService.AddCluster:output_type -> teleport.lib.teleterm.v1.Cluster + 2, // 75: teleport.lib.teleterm.v1.TerminalService.RemoveCluster:output_type -> teleport.lib.teleterm.v1.EmptyResponse + 36, // 76: teleport.lib.teleterm.v1.TerminalService.ListGateways:output_type -> teleport.lib.teleterm.v1.ListGatewaysResponse + 63, // 77: teleport.lib.teleterm.v1.TerminalService.CreateGateway:output_type -> teleport.lib.teleterm.v1.Gateway + 2, // 78: teleport.lib.teleterm.v1.TerminalService.RemoveGateway:output_type -> teleport.lib.teleterm.v1.EmptyResponse + 2, // 79: teleport.lib.teleterm.v1.TerminalService.RestartGateway:output_type -> teleport.lib.teleterm.v1.EmptyResponse + 63, // 80: teleport.lib.teleterm.v1.TerminalService.SetGatewayTargetSubresourceName:output_type -> teleport.lib.teleterm.v1.Gateway + 63, // 81: teleport.lib.teleterm.v1.TerminalService.SetGatewayLocalPort:output_type -> teleport.lib.teleterm.v1.Gateway + 68, // 82: teleport.lib.teleterm.v1.TerminalService.GetAuthSettings:output_type -> teleport.lib.teleterm.v1.AuthSettings + 61, // 83: teleport.lib.teleterm.v1.TerminalService.GetCluster:output_type -> teleport.lib.teleterm.v1.Cluster + 2, // 84: teleport.lib.teleterm.v1.TerminalService.Login:output_type -> teleport.lib.teleterm.v1.EmptyResponse + 19, // 85: teleport.lib.teleterm.v1.TerminalService.LoginPasswordless:output_type -> teleport.lib.teleterm.v1.LoginPasswordlessResponse + 2, // 86: teleport.lib.teleterm.v1.TerminalService.Logout:output_type -> teleport.lib.teleterm.v1.EmptyResponse + 22, // 87: teleport.lib.teleterm.v1.TerminalService.TransferFile:output_type -> teleport.lib.teleterm.v1.FileTransferProgress + 2, // 88: teleport.lib.teleterm.v1.TerminalService.ReportUsageEvent:output_type -> teleport.lib.teleterm.v1.EmptyResponse 56, // [56:89] is the sub-list for method output_type 23, // [23:56] is the sub-list for method input_type 23, // [23:23] is the sub-list for extension type_name @@ -4135,22 +4172,22 @@ var file_v1_service_proto_depIdxs = []int32{ 0, // [0:23] is the sub-list for field type_name } -func init() { file_v1_service_proto_init() } -func file_v1_service_proto_init() { - if File_v1_service_proto != nil { +func init() { file_teleport_lib_teleterm_v1_service_proto_init() } +func file_teleport_lib_teleterm_v1_service_proto_init() { + if File_teleport_lib_teleterm_v1_service_proto != nil { return } - file_v1_access_request_proto_init() - file_v1_app_proto_init() - file_v1_auth_settings_proto_init() - file_v1_cluster_proto_init() - file_v1_database_proto_init() - file_v1_gateway_proto_init() - file_v1_kube_proto_init() - file_v1_server_proto_init() - file_v1_usage_events_proto_init() + file_teleport_lib_teleterm_v1_access_request_proto_init() + file_teleport_lib_teleterm_v1_app_proto_init() + file_teleport_lib_teleterm_v1_auth_settings_proto_init() + file_teleport_lib_teleterm_v1_cluster_proto_init() + file_teleport_lib_teleterm_v1_database_proto_init() + file_teleport_lib_teleterm_v1_gateway_proto_init() + file_teleport_lib_teleterm_v1_kube_proto_init() + file_teleport_lib_teleterm_v1_server_proto_init() + file_teleport_lib_teleterm_v1_usage_events_proto_init() if !protoimpl.UnsafeEnabled { - file_v1_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EmptyResponse); i { case 0: return &v.state @@ -4162,7 +4199,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RemoveClusterRequest); i { case 0: return &v.state @@ -4174,7 +4211,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetClusterRequest); i { case 0: return &v.state @@ -4186,7 +4223,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LogoutRequest); i { case 0: return &v.state @@ -4198,7 +4235,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetAccessRequestRequest); i { case 0: return &v.state @@ -4210,7 +4247,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetAccessRequestsRequest); i { case 0: return &v.state @@ -4222,7 +4259,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetAccessRequestResponse); i { case 0: return &v.state @@ -4234,7 +4271,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetAccessRequestsResponse); i { case 0: return &v.state @@ -4246,7 +4283,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteAccessRequestRequest); i { case 0: return &v.state @@ -4258,7 +4295,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateAccessRequestRequest); i { case 0: return &v.state @@ -4270,7 +4307,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateAccessRequestResponse); i { case 0: return &v.state @@ -4282,7 +4319,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AssumeRoleRequest); i { case 0: return &v.state @@ -4294,7 +4331,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetRequestableRolesRequest); i { case 0: return &v.state @@ -4306,7 +4343,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetRequestableRolesResponse); i { case 0: return &v.state @@ -4318,7 +4355,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ReviewAccessRequestRequest); i { case 0: return &v.state @@ -4330,7 +4367,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ReviewAccessRequestResponse); i { case 0: return &v.state @@ -4342,7 +4379,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CredentialInfo); i { case 0: return &v.state @@ -4354,7 +4391,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LoginPasswordlessResponse); i { case 0: return &v.state @@ -4366,7 +4403,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LoginPasswordlessRequest); i { case 0: return &v.state @@ -4378,7 +4415,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*FileTransferRequest); i { case 0: return &v.state @@ -4390,7 +4427,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*FileTransferProgress); i { case 0: return &v.state @@ -4402,7 +4439,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LoginRequest); i { case 0: return &v.state @@ -4414,7 +4451,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AddClusterRequest); i { case 0: return &v.state @@ -4426,7 +4463,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListAppsRequest); i { case 0: return &v.state @@ -4438,7 +4475,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListClustersRequest); i { case 0: return &v.state @@ -4450,7 +4487,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListClustersResponse); i { case 0: return &v.state @@ -4462,7 +4499,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetAllDatabasesRequest); i { case 0: return &v.state @@ -4474,7 +4511,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetDatabasesRequest); i { case 0: return &v.state @@ -4486,7 +4523,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListLeafClustersRequest); i { case 0: return &v.state @@ -4498,7 +4535,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetAllDatabasesResponse); i { case 0: return &v.state @@ -4510,7 +4547,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListDatabaseUsersRequest); i { case 0: return &v.state @@ -4522,7 +4559,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListDatabaseUsersResponse); i { case 0: return &v.state @@ -4534,7 +4571,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateGatewayRequest); i { case 0: return &v.state @@ -4546,7 +4583,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListGatewaysRequest); i { case 0: return &v.state @@ -4558,7 +4595,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListGatewaysResponse); i { case 0: return &v.state @@ -4570,7 +4607,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RemoveGatewayRequest); i { case 0: return &v.state @@ -4582,7 +4619,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RestartGatewayRequest); i { case 0: return &v.state @@ -4594,7 +4631,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SetGatewayTargetSubresourceNameRequest); i { case 0: return &v.state @@ -4606,7 +4643,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SetGatewayLocalPortRequest); i { case 0: return &v.state @@ -4618,7 +4655,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetAllServersRequest); i { case 0: return &v.state @@ -4630,7 +4667,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetAllServersResponse); i { case 0: return &v.state @@ -4642,7 +4679,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetServersRequest); i { case 0: return &v.state @@ -4654,7 +4691,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetServersResponse); i { case 0: return &v.state @@ -4666,7 +4703,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetDatabasesResponse); i { case 0: return &v.state @@ -4678,7 +4715,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetAllKubesRequest); i { case 0: return &v.state @@ -4690,7 +4727,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetAllKubesResponse); i { case 0: return &v.state @@ -4702,7 +4739,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetKubesRequest); i { case 0: return &v.state @@ -4714,7 +4751,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetKubesResponse); i { case 0: return &v.state @@ -4726,7 +4763,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListAppsResponse); i { case 0: return &v.state @@ -4738,7 +4775,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetAuthSettingsRequest); i { case 0: return &v.state @@ -4750,7 +4787,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateTshdEventsServerAddressRequest); i { case 0: return &v.state @@ -4762,7 +4799,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateTshdEventsServerAddressResponse); i { case 0: return &v.state @@ -4774,7 +4811,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LoginPasswordlessRequest_LoginPasswordlessRequestInit); i { case 0: return &v.state @@ -4786,7 +4823,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LoginPasswordlessRequest_LoginPasswordlessPINResponse); i { case 0: return &v.state @@ -4798,7 +4835,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LoginPasswordlessRequest_LoginPasswordlessCredentialResponse); i { case 0: return &v.state @@ -4810,7 +4847,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LoginRequest_LocalParams); i { case 0: return &v.state @@ -4822,7 +4859,7 @@ func file_v1_service_proto_init() { return nil } } - file_v1_service_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_service_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LoginRequest_SsoParams); i { case 0: return &v.state @@ -4835,12 +4872,12 @@ func file_v1_service_proto_init() { } } } - file_v1_service_proto_msgTypes[18].OneofWrappers = []interface{}{ + file_teleport_lib_teleterm_v1_service_proto_msgTypes[18].OneofWrappers = []interface{}{ (*LoginPasswordlessRequest_Init)(nil), (*LoginPasswordlessRequest_Pin)(nil), (*LoginPasswordlessRequest_Credential)(nil), } - file_v1_service_proto_msgTypes[21].OneofWrappers = []interface{}{ + file_teleport_lib_teleterm_v1_service_proto_msgTypes[21].OneofWrappers = []interface{}{ (*LoginRequest_Local)(nil), (*LoginRequest_Sso)(nil), } @@ -4848,19 +4885,19 @@ func file_v1_service_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_v1_service_proto_rawDesc, + RawDescriptor: file_teleport_lib_teleterm_v1_service_proto_rawDesc, NumEnums: 2, NumMessages: 57, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_v1_service_proto_goTypes, - DependencyIndexes: file_v1_service_proto_depIdxs, - EnumInfos: file_v1_service_proto_enumTypes, - MessageInfos: file_v1_service_proto_msgTypes, + GoTypes: file_teleport_lib_teleterm_v1_service_proto_goTypes, + DependencyIndexes: file_teleport_lib_teleterm_v1_service_proto_depIdxs, + EnumInfos: file_teleport_lib_teleterm_v1_service_proto_enumTypes, + MessageInfos: file_teleport_lib_teleterm_v1_service_proto_msgTypes, }.Build() - File_v1_service_proto = out.File - file_v1_service_proto_rawDesc = nil - file_v1_service_proto_goTypes = nil - file_v1_service_proto_depIdxs = nil + File_teleport_lib_teleterm_v1_service_proto = out.File + file_teleport_lib_teleterm_v1_service_proto_rawDesc = nil + file_teleport_lib_teleterm_v1_service_proto_goTypes = nil + file_teleport_lib_teleterm_v1_service_proto_depIdxs = nil } diff --git a/lib/teleterm/api/protogen/golang/v1/service_grpc.pb.go b/gen/proto/go/teleport/lib/teleterm/v1/service_grpc.pb.go similarity index 90% rename from lib/teleterm/api/protogen/golang/v1/service_grpc.pb.go rename to gen/proto/go/teleport/lib/teleterm/v1/service_grpc.pb.go index 729a48e46444c..864d386f2295c 100644 --- a/lib/teleterm/api/protogen/golang/v1/service_grpc.pb.go +++ b/gen/proto/go/teleport/lib/teleterm/v1/service_grpc.pb.go @@ -2,7 +2,7 @@ // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc (unknown) -// source: v1/service.proto +// source: teleport/lib/teleterm/v1/service.proto package v1 @@ -128,7 +128,7 @@ func NewTerminalServiceClient(cc grpc.ClientConnInterface) TerminalServiceClient func (c *terminalServiceClient) UpdateTshdEventsServerAddress(ctx context.Context, in *UpdateTshdEventsServerAddressRequest, opts ...grpc.CallOption) (*UpdateTshdEventsServerAddressResponse, error) { out := new(UpdateTshdEventsServerAddressResponse) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/UpdateTshdEventsServerAddress", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/UpdateTshdEventsServerAddress", in, out, opts...) if err != nil { return nil, err } @@ -137,7 +137,7 @@ func (c *terminalServiceClient) UpdateTshdEventsServerAddress(ctx context.Contex func (c *terminalServiceClient) ListRootClusters(ctx context.Context, in *ListClustersRequest, opts ...grpc.CallOption) (*ListClustersResponse, error) { out := new(ListClustersResponse) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/ListRootClusters", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/ListRootClusters", in, out, opts...) if err != nil { return nil, err } @@ -146,7 +146,7 @@ func (c *terminalServiceClient) ListRootClusters(ctx context.Context, in *ListCl func (c *terminalServiceClient) ListLeafClusters(ctx context.Context, in *ListLeafClustersRequest, opts ...grpc.CallOption) (*ListClustersResponse, error) { out := new(ListClustersResponse) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/ListLeafClusters", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/ListLeafClusters", in, out, opts...) if err != nil { return nil, err } @@ -155,7 +155,7 @@ func (c *terminalServiceClient) ListLeafClusters(ctx context.Context, in *ListLe func (c *terminalServiceClient) GetAllDatabases(ctx context.Context, in *GetAllDatabasesRequest, opts ...grpc.CallOption) (*GetAllDatabasesResponse, error) { out := new(GetAllDatabasesResponse) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/GetAllDatabases", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/GetAllDatabases", in, out, opts...) if err != nil { return nil, err } @@ -164,7 +164,7 @@ func (c *terminalServiceClient) GetAllDatabases(ctx context.Context, in *GetAllD func (c *terminalServiceClient) GetDatabases(ctx context.Context, in *GetDatabasesRequest, opts ...grpc.CallOption) (*GetDatabasesResponse, error) { out := new(GetDatabasesResponse) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/GetDatabases", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/GetDatabases", in, out, opts...) if err != nil { return nil, err } @@ -173,7 +173,7 @@ func (c *terminalServiceClient) GetDatabases(ctx context.Context, in *GetDatabas func (c *terminalServiceClient) ListDatabaseUsers(ctx context.Context, in *ListDatabaseUsersRequest, opts ...grpc.CallOption) (*ListDatabaseUsersResponse, error) { out := new(ListDatabaseUsersResponse) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/ListDatabaseUsers", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/ListDatabaseUsers", in, out, opts...) if err != nil { return nil, err } @@ -182,7 +182,7 @@ func (c *terminalServiceClient) ListDatabaseUsers(ctx context.Context, in *ListD func (c *terminalServiceClient) GetAllServers(ctx context.Context, in *GetAllServersRequest, opts ...grpc.CallOption) (*GetAllServersResponse, error) { out := new(GetAllServersResponse) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/GetAllServers", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/GetAllServers", in, out, opts...) if err != nil { return nil, err } @@ -191,7 +191,7 @@ func (c *terminalServiceClient) GetAllServers(ctx context.Context, in *GetAllSer func (c *terminalServiceClient) GetServers(ctx context.Context, in *GetServersRequest, opts ...grpc.CallOption) (*GetServersResponse, error) { out := new(GetServersResponse) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/GetServers", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/GetServers", in, out, opts...) if err != nil { return nil, err } @@ -200,7 +200,7 @@ func (c *terminalServiceClient) GetServers(ctx context.Context, in *GetServersRe func (c *terminalServiceClient) GetAccessRequests(ctx context.Context, in *GetAccessRequestsRequest, opts ...grpc.CallOption) (*GetAccessRequestsResponse, error) { out := new(GetAccessRequestsResponse) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/GetAccessRequests", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/GetAccessRequests", in, out, opts...) if err != nil { return nil, err } @@ -209,7 +209,7 @@ func (c *terminalServiceClient) GetAccessRequests(ctx context.Context, in *GetAc func (c *terminalServiceClient) GetAccessRequest(ctx context.Context, in *GetAccessRequestRequest, opts ...grpc.CallOption) (*GetAccessRequestResponse, error) { out := new(GetAccessRequestResponse) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/GetAccessRequest", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/GetAccessRequest", in, out, opts...) if err != nil { return nil, err } @@ -218,7 +218,7 @@ func (c *terminalServiceClient) GetAccessRequest(ctx context.Context, in *GetAcc func (c *terminalServiceClient) DeleteAccessRequest(ctx context.Context, in *DeleteAccessRequestRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { out := new(EmptyResponse) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/DeleteAccessRequest", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/DeleteAccessRequest", in, out, opts...) if err != nil { return nil, err } @@ -227,7 +227,7 @@ func (c *terminalServiceClient) DeleteAccessRequest(ctx context.Context, in *Del func (c *terminalServiceClient) CreateAccessRequest(ctx context.Context, in *CreateAccessRequestRequest, opts ...grpc.CallOption) (*CreateAccessRequestResponse, error) { out := new(CreateAccessRequestResponse) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/CreateAccessRequest", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/CreateAccessRequest", in, out, opts...) if err != nil { return nil, err } @@ -236,7 +236,7 @@ func (c *terminalServiceClient) CreateAccessRequest(ctx context.Context, in *Cre func (c *terminalServiceClient) ReviewAccessRequest(ctx context.Context, in *ReviewAccessRequestRequest, opts ...grpc.CallOption) (*ReviewAccessRequestResponse, error) { out := new(ReviewAccessRequestResponse) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/ReviewAccessRequest", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/ReviewAccessRequest", in, out, opts...) if err != nil { return nil, err } @@ -245,7 +245,7 @@ func (c *terminalServiceClient) ReviewAccessRequest(ctx context.Context, in *Rev func (c *terminalServiceClient) GetRequestableRoles(ctx context.Context, in *GetRequestableRolesRequest, opts ...grpc.CallOption) (*GetRequestableRolesResponse, error) { out := new(GetRequestableRolesResponse) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/GetRequestableRoles", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/GetRequestableRoles", in, out, opts...) if err != nil { return nil, err } @@ -254,7 +254,7 @@ func (c *terminalServiceClient) GetRequestableRoles(ctx context.Context, in *Get func (c *terminalServiceClient) AssumeRole(ctx context.Context, in *AssumeRoleRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { out := new(EmptyResponse) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/AssumeRole", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/AssumeRole", in, out, opts...) if err != nil { return nil, err } @@ -263,7 +263,7 @@ func (c *terminalServiceClient) AssumeRole(ctx context.Context, in *AssumeRoleRe func (c *terminalServiceClient) GetAllKubes(ctx context.Context, in *GetAllKubesRequest, opts ...grpc.CallOption) (*GetAllKubesResponse, error) { out := new(GetAllKubesResponse) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/GetAllKubes", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/GetAllKubes", in, out, opts...) if err != nil { return nil, err } @@ -272,7 +272,7 @@ func (c *terminalServiceClient) GetAllKubes(ctx context.Context, in *GetAllKubes func (c *terminalServiceClient) GetKubes(ctx context.Context, in *GetKubesRequest, opts ...grpc.CallOption) (*GetKubesResponse, error) { out := new(GetKubesResponse) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/GetKubes", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/GetKubes", in, out, opts...) if err != nil { return nil, err } @@ -281,7 +281,7 @@ func (c *terminalServiceClient) GetKubes(ctx context.Context, in *GetKubesReques func (c *terminalServiceClient) ListApps(ctx context.Context, in *ListAppsRequest, opts ...grpc.CallOption) (*ListAppsResponse, error) { out := new(ListAppsResponse) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/ListApps", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/ListApps", in, out, opts...) if err != nil { return nil, err } @@ -290,7 +290,7 @@ func (c *terminalServiceClient) ListApps(ctx context.Context, in *ListAppsReques func (c *terminalServiceClient) AddCluster(ctx context.Context, in *AddClusterRequest, opts ...grpc.CallOption) (*Cluster, error) { out := new(Cluster) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/AddCluster", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/AddCluster", in, out, opts...) if err != nil { return nil, err } @@ -299,7 +299,7 @@ func (c *terminalServiceClient) AddCluster(ctx context.Context, in *AddClusterRe func (c *terminalServiceClient) RemoveCluster(ctx context.Context, in *RemoveClusterRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { out := new(EmptyResponse) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/RemoveCluster", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/RemoveCluster", in, out, opts...) if err != nil { return nil, err } @@ -308,7 +308,7 @@ func (c *terminalServiceClient) RemoveCluster(ctx context.Context, in *RemoveClu func (c *terminalServiceClient) ListGateways(ctx context.Context, in *ListGatewaysRequest, opts ...grpc.CallOption) (*ListGatewaysResponse, error) { out := new(ListGatewaysResponse) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/ListGateways", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/ListGateways", in, out, opts...) if err != nil { return nil, err } @@ -317,7 +317,7 @@ func (c *terminalServiceClient) ListGateways(ctx context.Context, in *ListGatewa func (c *terminalServiceClient) CreateGateway(ctx context.Context, in *CreateGatewayRequest, opts ...grpc.CallOption) (*Gateway, error) { out := new(Gateway) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/CreateGateway", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/CreateGateway", in, out, opts...) if err != nil { return nil, err } @@ -326,7 +326,7 @@ func (c *terminalServiceClient) CreateGateway(ctx context.Context, in *CreateGat func (c *terminalServiceClient) RemoveGateway(ctx context.Context, in *RemoveGatewayRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { out := new(EmptyResponse) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/RemoveGateway", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/RemoveGateway", in, out, opts...) if err != nil { return nil, err } @@ -335,7 +335,7 @@ func (c *terminalServiceClient) RemoveGateway(ctx context.Context, in *RemoveGat func (c *terminalServiceClient) RestartGateway(ctx context.Context, in *RestartGatewayRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { out := new(EmptyResponse) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/RestartGateway", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/RestartGateway", in, out, opts...) if err != nil { return nil, err } @@ -344,7 +344,7 @@ func (c *terminalServiceClient) RestartGateway(ctx context.Context, in *RestartG func (c *terminalServiceClient) SetGatewayTargetSubresourceName(ctx context.Context, in *SetGatewayTargetSubresourceNameRequest, opts ...grpc.CallOption) (*Gateway, error) { out := new(Gateway) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/SetGatewayTargetSubresourceName", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/SetGatewayTargetSubresourceName", in, out, opts...) if err != nil { return nil, err } @@ -353,7 +353,7 @@ func (c *terminalServiceClient) SetGatewayTargetSubresourceName(ctx context.Cont func (c *terminalServiceClient) SetGatewayLocalPort(ctx context.Context, in *SetGatewayLocalPortRequest, opts ...grpc.CallOption) (*Gateway, error) { out := new(Gateway) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/SetGatewayLocalPort", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/SetGatewayLocalPort", in, out, opts...) if err != nil { return nil, err } @@ -362,7 +362,7 @@ func (c *terminalServiceClient) SetGatewayLocalPort(ctx context.Context, in *Set func (c *terminalServiceClient) GetAuthSettings(ctx context.Context, in *GetAuthSettingsRequest, opts ...grpc.CallOption) (*AuthSettings, error) { out := new(AuthSettings) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/GetAuthSettings", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/GetAuthSettings", in, out, opts...) if err != nil { return nil, err } @@ -371,7 +371,7 @@ func (c *terminalServiceClient) GetAuthSettings(ctx context.Context, in *GetAuth func (c *terminalServiceClient) GetCluster(ctx context.Context, in *GetClusterRequest, opts ...grpc.CallOption) (*Cluster, error) { out := new(Cluster) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/GetCluster", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/GetCluster", in, out, opts...) if err != nil { return nil, err } @@ -380,7 +380,7 @@ func (c *terminalServiceClient) GetCluster(ctx context.Context, in *GetClusterRe func (c *terminalServiceClient) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { out := new(EmptyResponse) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/Login", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/Login", in, out, opts...) if err != nil { return nil, err } @@ -388,7 +388,7 @@ func (c *terminalServiceClient) Login(ctx context.Context, in *LoginRequest, opt } func (c *terminalServiceClient) LoginPasswordless(ctx context.Context, opts ...grpc.CallOption) (TerminalService_LoginPasswordlessClient, error) { - stream, err := c.cc.NewStream(ctx, &TerminalService_ServiceDesc.Streams[0], "/teleport.terminal.v1.TerminalService/LoginPasswordless", opts...) + stream, err := c.cc.NewStream(ctx, &TerminalService_ServiceDesc.Streams[0], "/teleport.lib.teleterm.v1.TerminalService/LoginPasswordless", opts...) if err != nil { return nil, err } @@ -420,7 +420,7 @@ func (x *terminalServiceLoginPasswordlessClient) Recv() (*LoginPasswordlessRespo func (c *terminalServiceClient) Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { out := new(EmptyResponse) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/Logout", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/Logout", in, out, opts...) if err != nil { return nil, err } @@ -428,7 +428,7 @@ func (c *terminalServiceClient) Logout(ctx context.Context, in *LogoutRequest, o } func (c *terminalServiceClient) TransferFile(ctx context.Context, in *FileTransferRequest, opts ...grpc.CallOption) (TerminalService_TransferFileClient, error) { - stream, err := c.cc.NewStream(ctx, &TerminalService_ServiceDesc.Streams[1], "/teleport.terminal.v1.TerminalService/TransferFile", opts...) + stream, err := c.cc.NewStream(ctx, &TerminalService_ServiceDesc.Streams[1], "/teleport.lib.teleterm.v1.TerminalService/TransferFile", opts...) if err != nil { return nil, err } @@ -461,7 +461,7 @@ func (x *terminalServiceTransferFileClient) Recv() (*FileTransferProgress, error func (c *terminalServiceClient) ReportUsageEvent(ctx context.Context, in *ReportUsageEventRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { out := new(EmptyResponse) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TerminalService/ReportUsageEvent", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TerminalService/ReportUsageEvent", in, out, opts...) if err != nil { return nil, err } @@ -695,7 +695,7 @@ func _TerminalService_UpdateTshdEventsServerAddress_Handler(srv interface{}, ctx } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/UpdateTshdEventsServerAddress", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/UpdateTshdEventsServerAddress", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).UpdateTshdEventsServerAddress(ctx, req.(*UpdateTshdEventsServerAddressRequest)) @@ -713,7 +713,7 @@ func _TerminalService_ListRootClusters_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/ListRootClusters", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/ListRootClusters", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).ListRootClusters(ctx, req.(*ListClustersRequest)) @@ -731,7 +731,7 @@ func _TerminalService_ListLeafClusters_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/ListLeafClusters", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/ListLeafClusters", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).ListLeafClusters(ctx, req.(*ListLeafClustersRequest)) @@ -749,7 +749,7 @@ func _TerminalService_GetAllDatabases_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/GetAllDatabases", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/GetAllDatabases", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).GetAllDatabases(ctx, req.(*GetAllDatabasesRequest)) @@ -767,7 +767,7 @@ func _TerminalService_GetDatabases_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/GetDatabases", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/GetDatabases", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).GetDatabases(ctx, req.(*GetDatabasesRequest)) @@ -785,7 +785,7 @@ func _TerminalService_ListDatabaseUsers_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/ListDatabaseUsers", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/ListDatabaseUsers", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).ListDatabaseUsers(ctx, req.(*ListDatabaseUsersRequest)) @@ -803,7 +803,7 @@ func _TerminalService_GetAllServers_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/GetAllServers", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/GetAllServers", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).GetAllServers(ctx, req.(*GetAllServersRequest)) @@ -821,7 +821,7 @@ func _TerminalService_GetServers_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/GetServers", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/GetServers", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).GetServers(ctx, req.(*GetServersRequest)) @@ -839,7 +839,7 @@ func _TerminalService_GetAccessRequests_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/GetAccessRequests", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/GetAccessRequests", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).GetAccessRequests(ctx, req.(*GetAccessRequestsRequest)) @@ -857,7 +857,7 @@ func _TerminalService_GetAccessRequest_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/GetAccessRequest", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/GetAccessRequest", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).GetAccessRequest(ctx, req.(*GetAccessRequestRequest)) @@ -875,7 +875,7 @@ func _TerminalService_DeleteAccessRequest_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/DeleteAccessRequest", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/DeleteAccessRequest", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).DeleteAccessRequest(ctx, req.(*DeleteAccessRequestRequest)) @@ -893,7 +893,7 @@ func _TerminalService_CreateAccessRequest_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/CreateAccessRequest", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/CreateAccessRequest", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).CreateAccessRequest(ctx, req.(*CreateAccessRequestRequest)) @@ -911,7 +911,7 @@ func _TerminalService_ReviewAccessRequest_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/ReviewAccessRequest", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/ReviewAccessRequest", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).ReviewAccessRequest(ctx, req.(*ReviewAccessRequestRequest)) @@ -929,7 +929,7 @@ func _TerminalService_GetRequestableRoles_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/GetRequestableRoles", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/GetRequestableRoles", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).GetRequestableRoles(ctx, req.(*GetRequestableRolesRequest)) @@ -947,7 +947,7 @@ func _TerminalService_AssumeRole_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/AssumeRole", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/AssumeRole", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).AssumeRole(ctx, req.(*AssumeRoleRequest)) @@ -965,7 +965,7 @@ func _TerminalService_GetAllKubes_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/GetAllKubes", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/GetAllKubes", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).GetAllKubes(ctx, req.(*GetAllKubesRequest)) @@ -983,7 +983,7 @@ func _TerminalService_GetKubes_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/GetKubes", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/GetKubes", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).GetKubes(ctx, req.(*GetKubesRequest)) @@ -1001,7 +1001,7 @@ func _TerminalService_ListApps_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/ListApps", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/ListApps", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).ListApps(ctx, req.(*ListAppsRequest)) @@ -1019,7 +1019,7 @@ func _TerminalService_AddCluster_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/AddCluster", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/AddCluster", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).AddCluster(ctx, req.(*AddClusterRequest)) @@ -1037,7 +1037,7 @@ func _TerminalService_RemoveCluster_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/RemoveCluster", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/RemoveCluster", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).RemoveCluster(ctx, req.(*RemoveClusterRequest)) @@ -1055,7 +1055,7 @@ func _TerminalService_ListGateways_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/ListGateways", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/ListGateways", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).ListGateways(ctx, req.(*ListGatewaysRequest)) @@ -1073,7 +1073,7 @@ func _TerminalService_CreateGateway_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/CreateGateway", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/CreateGateway", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).CreateGateway(ctx, req.(*CreateGatewayRequest)) @@ -1091,7 +1091,7 @@ func _TerminalService_RemoveGateway_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/RemoveGateway", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/RemoveGateway", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).RemoveGateway(ctx, req.(*RemoveGatewayRequest)) @@ -1109,7 +1109,7 @@ func _TerminalService_RestartGateway_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/RestartGateway", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/RestartGateway", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).RestartGateway(ctx, req.(*RestartGatewayRequest)) @@ -1127,7 +1127,7 @@ func _TerminalService_SetGatewayTargetSubresourceName_Handler(srv interface{}, c } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/SetGatewayTargetSubresourceName", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/SetGatewayTargetSubresourceName", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).SetGatewayTargetSubresourceName(ctx, req.(*SetGatewayTargetSubresourceNameRequest)) @@ -1145,7 +1145,7 @@ func _TerminalService_SetGatewayLocalPort_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/SetGatewayLocalPort", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/SetGatewayLocalPort", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).SetGatewayLocalPort(ctx, req.(*SetGatewayLocalPortRequest)) @@ -1163,7 +1163,7 @@ func _TerminalService_GetAuthSettings_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/GetAuthSettings", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/GetAuthSettings", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).GetAuthSettings(ctx, req.(*GetAuthSettingsRequest)) @@ -1181,7 +1181,7 @@ func _TerminalService_GetCluster_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/GetCluster", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/GetCluster", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).GetCluster(ctx, req.(*GetClusterRequest)) @@ -1199,7 +1199,7 @@ func _TerminalService_Login_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/Login", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/Login", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).Login(ctx, req.(*LoginRequest)) @@ -1243,7 +1243,7 @@ func _TerminalService_Logout_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/Logout", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/Logout", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).Logout(ctx, req.(*LogoutRequest)) @@ -1282,7 +1282,7 @@ func _TerminalService_ReportUsageEvent_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TerminalService/ReportUsageEvent", + FullMethod: "/teleport.lib.teleterm.v1.TerminalService/ReportUsageEvent", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TerminalServiceServer).ReportUsageEvent(ctx, req.(*ReportUsageEventRequest)) @@ -1294,7 +1294,7 @@ func _TerminalService_ReportUsageEvent_Handler(srv interface{}, ctx context.Cont // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var TerminalService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "teleport.terminal.v1.TerminalService", + ServiceName: "teleport.lib.teleterm.v1.TerminalService", HandlerType: (*TerminalServiceServer)(nil), Methods: []grpc.MethodDesc{ { @@ -1435,5 +1435,5 @@ var TerminalService_ServiceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, - Metadata: "v1/service.proto", + Metadata: "teleport/lib/teleterm/v1/service.proto", } diff --git a/lib/teleterm/api/protogen/golang/v1/tshd_events_service.pb.go b/gen/proto/go/teleport/lib/teleterm/v1/tshd_events_service.pb.go similarity index 52% rename from lib/teleterm/api/protogen/golang/v1/tshd_events_service.pb.go rename to gen/proto/go/teleport/lib/teleterm/v1/tshd_events_service.pb.go index fe4c5b8b729c8..cebfb4c157c36 100644 --- a/lib/teleterm/api/protogen/golang/v1/tshd_events_service.pb.go +++ b/gen/proto/go/teleport/lib/teleterm/v1/tshd_events_service.pb.go @@ -16,7 +16,7 @@ // versions: // protoc-gen-go v1.28.1 // protoc (unknown) -// source: v1/tshd_events_service.proto +// source: teleport/lib/teleterm/v1/tshd_events_service.proto package v1 @@ -49,7 +49,7 @@ type ReloginRequest struct { func (x *ReloginRequest) Reset() { *x = ReloginRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_tshd_events_service_proto_msgTypes[0] + mi := &file_teleport_lib_teleterm_v1_tshd_events_service_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -62,7 +62,7 @@ func (x *ReloginRequest) String() string { func (*ReloginRequest) ProtoMessage() {} func (x *ReloginRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_tshd_events_service_proto_msgTypes[0] + mi := &file_teleport_lib_teleterm_v1_tshd_events_service_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -75,7 +75,7 @@ func (x *ReloginRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ReloginRequest.ProtoReflect.Descriptor instead. func (*ReloginRequest) Descriptor() ([]byte, []int) { - return file_v1_tshd_events_service_proto_rawDescGZIP(), []int{0} + return file_teleport_lib_teleterm_v1_tshd_events_service_proto_rawDescGZIP(), []int{0} } func (x *ReloginRequest) GetRootClusterUri() string { @@ -127,7 +127,7 @@ type GatewayCertExpired struct { func (x *GatewayCertExpired) Reset() { *x = GatewayCertExpired{} if protoimpl.UnsafeEnabled { - mi := &file_v1_tshd_events_service_proto_msgTypes[1] + mi := &file_teleport_lib_teleterm_v1_tshd_events_service_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -140,7 +140,7 @@ func (x *GatewayCertExpired) String() string { func (*GatewayCertExpired) ProtoMessage() {} func (x *GatewayCertExpired) ProtoReflect() protoreflect.Message { - mi := &file_v1_tshd_events_service_proto_msgTypes[1] + mi := &file_teleport_lib_teleterm_v1_tshd_events_service_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -153,7 +153,7 @@ func (x *GatewayCertExpired) ProtoReflect() protoreflect.Message { // Deprecated: Use GatewayCertExpired.ProtoReflect.Descriptor instead. func (*GatewayCertExpired) Descriptor() ([]byte, []int) { - return file_v1_tshd_events_service_proto_rawDescGZIP(), []int{1} + return file_teleport_lib_teleterm_v1_tshd_events_service_proto_rawDescGZIP(), []int{1} } func (x *GatewayCertExpired) GetGatewayUri() string { @@ -179,7 +179,7 @@ type ReloginResponse struct { func (x *ReloginResponse) Reset() { *x = ReloginResponse{} if protoimpl.UnsafeEnabled { - mi := &file_v1_tshd_events_service_proto_msgTypes[2] + mi := &file_teleport_lib_teleterm_v1_tshd_events_service_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -192,7 +192,7 @@ func (x *ReloginResponse) String() string { func (*ReloginResponse) ProtoMessage() {} func (x *ReloginResponse) ProtoReflect() protoreflect.Message { - mi := &file_v1_tshd_events_service_proto_msgTypes[2] + mi := &file_teleport_lib_teleterm_v1_tshd_events_service_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -205,7 +205,7 @@ func (x *ReloginResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ReloginResponse.ProtoReflect.Descriptor instead. func (*ReloginResponse) Descriptor() ([]byte, []int) { - return file_v1_tshd_events_service_proto_rawDescGZIP(), []int{2} + return file_teleport_lib_teleterm_v1_tshd_events_service_proto_rawDescGZIP(), []int{2} } type SendNotificationRequest struct { @@ -222,7 +222,7 @@ type SendNotificationRequest struct { func (x *SendNotificationRequest) Reset() { *x = SendNotificationRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_tshd_events_service_proto_msgTypes[3] + mi := &file_teleport_lib_teleterm_v1_tshd_events_service_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -235,7 +235,7 @@ func (x *SendNotificationRequest) String() string { func (*SendNotificationRequest) ProtoMessage() {} func (x *SendNotificationRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_tshd_events_service_proto_msgTypes[3] + mi := &file_teleport_lib_teleterm_v1_tshd_events_service_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -248,7 +248,7 @@ func (x *SendNotificationRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SendNotificationRequest.ProtoReflect.Descriptor instead. func (*SendNotificationRequest) Descriptor() ([]byte, []int) { - return file_v1_tshd_events_service_proto_rawDescGZIP(), []int{3} + return file_teleport_lib_teleterm_v1_tshd_events_service_proto_rawDescGZIP(), []int{3} } func (m *SendNotificationRequest) GetSubject() isSendNotificationRequest_Subject { @@ -292,7 +292,7 @@ type CannotProxyGatewayConnection struct { func (x *CannotProxyGatewayConnection) Reset() { *x = CannotProxyGatewayConnection{} if protoimpl.UnsafeEnabled { - mi := &file_v1_tshd_events_service_proto_msgTypes[4] + mi := &file_teleport_lib_teleterm_v1_tshd_events_service_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -305,7 +305,7 @@ func (x *CannotProxyGatewayConnection) String() string { func (*CannotProxyGatewayConnection) ProtoMessage() {} func (x *CannotProxyGatewayConnection) ProtoReflect() protoreflect.Message { - mi := &file_v1_tshd_events_service_proto_msgTypes[4] + mi := &file_teleport_lib_teleterm_v1_tshd_events_service_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -318,7 +318,7 @@ func (x *CannotProxyGatewayConnection) ProtoReflect() protoreflect.Message { // Deprecated: Use CannotProxyGatewayConnection.ProtoReflect.Descriptor instead. func (*CannotProxyGatewayConnection) Descriptor() ([]byte, []int) { - return file_v1_tshd_events_service_proto_rawDescGZIP(), []int{4} + return file_teleport_lib_teleterm_v1_tshd_events_service_proto_rawDescGZIP(), []int{4} } func (x *CannotProxyGatewayConnection) GetGatewayUri() string { @@ -351,7 +351,7 @@ type SendNotificationResponse struct { func (x *SendNotificationResponse) Reset() { *x = SendNotificationResponse{} if protoimpl.UnsafeEnabled { - mi := &file_v1_tshd_events_service_proto_msgTypes[5] + mi := &file_teleport_lib_teleterm_v1_tshd_events_service_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -364,7 +364,7 @@ func (x *SendNotificationResponse) String() string { func (*SendNotificationResponse) ProtoMessage() {} func (x *SendNotificationResponse) ProtoReflect() protoreflect.Message { - mi := &file_v1_tshd_events_service_proto_msgTypes[5] + mi := &file_teleport_lib_teleterm_v1_tshd_events_service_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -377,100 +377,104 @@ func (x *SendNotificationResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SendNotificationResponse.ProtoReflect.Descriptor instead. func (*SendNotificationResponse) Descriptor() ([]byte, []int) { - return file_v1_tshd_events_service_proto_rawDescGZIP(), []int{5} -} - -var File_v1_tshd_events_service_proto protoreflect.FileDescriptor - -var file_v1_tshd_events_service_proto_rawDesc = []byte{ - 0x0a, 0x1c, 0x76, 0x31, 0x2f, 0x74, 0x73, 0x68, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, - 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, - 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, - 0x6c, 0x2e, 0x76, 0x31, 0x22, 0xa2, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x6c, 0x6f, 0x67, 0x69, 0x6e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x10, 0x72, 0x6f, 0x6f, 0x74, 0x5f, - 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0e, 0x72, 0x6f, 0x6f, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x72, - 0x69, 0x12, 0x5c, 0x0a, 0x14, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x63, 0x65, 0x72, - 0x74, 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x28, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, - 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x43, 0x65, - 0x72, 0x74, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x48, 0x00, 0x52, 0x12, 0x67, 0x61, 0x74, - 0x65, 0x77, 0x61, 0x79, 0x43, 0x65, 0x72, 0x74, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x42, - 0x08, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x54, 0x0a, 0x12, 0x47, 0x61, 0x74, - 0x65, 0x77, 0x61, 0x79, 0x43, 0x65, 0x72, 0x74, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x12, - 0x1f, 0x0a, 0x0b, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x55, 0x72, 0x69, - 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x55, 0x72, 0x69, 0x22, - 0x11, 0x0a, 0x0f, 0x52, 0x65, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0xa1, 0x01, 0x0a, 0x17, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x7b, - 0x0a, 0x1f, 0x63, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x67, - 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, - 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, - 0x79, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x1c, 0x63, - 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, - 0x79, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x09, 0x0a, 0x07, 0x73, - 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x74, 0x0a, 0x1c, 0x43, 0x61, 0x6e, 0x6e, 0x6f, 0x74, - 0x50, 0x72, 0x6f, 0x78, 0x79, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, - 0x79, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x67, 0x61, 0x74, - 0x65, 0x77, 0x61, 0x79, 0x55, 0x72, 0x69, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x72, - 0x67, 0x65, 0x74, 0x55, 0x72, 0x69, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x1a, 0x0a, 0x18, + return file_teleport_lib_teleterm_v1_tshd_events_service_proto_rawDescGZIP(), []int{5} +} + +var File_teleport_lib_teleterm_v1_tshd_events_service_proto protoreflect.FileDescriptor + +var file_teleport_lib_teleterm_v1_tshd_events_service_proto_rawDesc = []byte{ + 0x0a, 0x32, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x73, 0x68, 0x64, 0x5f, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, + 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x22, 0xa6, + 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x28, 0x0a, 0x10, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x6f, 0x6f, + 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x72, 0x69, 0x12, 0x60, 0x0a, 0x14, 0x67, + 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x5f, 0x65, 0x78, 0x70, 0x69, + 0x72, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x74, 0x65, 0x6c, 0x65, + 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, + 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x43, 0x65, 0x72, 0x74, + 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x48, 0x00, 0x52, 0x12, 0x67, 0x61, 0x74, 0x65, 0x77, + 0x61, 0x79, 0x43, 0x65, 0x72, 0x74, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x42, 0x08, 0x0a, + 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x54, 0x0a, 0x12, 0x47, 0x61, 0x74, 0x65, 0x77, + 0x61, 0x79, 0x43, 0x65, 0x72, 0x74, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x12, 0x1f, 0x0a, + 0x0b, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x55, 0x72, 0x69, 0x12, 0x1d, + 0x0a, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x55, 0x72, 0x69, 0x22, 0x11, 0x0a, + 0x0f, 0x52, 0x65, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0xa5, 0x01, 0x0a, 0x17, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x7f, 0x0a, 0x1f, + 0x63, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x67, 0x61, 0x74, + 0x65, 0x77, 0x61, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, + 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x47, 0x61, 0x74, 0x65, + 0x77, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, + 0x1c, 0x63, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x47, 0x61, 0x74, 0x65, + 0x77, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x09, 0x0a, + 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x74, 0x0a, 0x1c, 0x43, 0x61, 0x6e, 0x6e, + 0x6f, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x43, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x67, 0x61, 0x74, 0x65, + 0x77, 0x61, 0x79, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x67, + 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x55, 0x72, 0x69, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, + 0x61, 0x72, 0x67, 0x65, 0x74, 0x55, 0x72, 0x69, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x1a, + 0x0a, 0x18, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xee, 0x01, 0x0a, 0x11, 0x54, + 0x73, 0x68, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x12, 0x5e, 0x0a, 0x07, 0x52, 0x65, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x28, 0x2e, 0x74, 0x65, + 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, + 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, + 0x2e, 0x52, 0x65, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x79, 0x0a, 0x10, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x31, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, + 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xde, 0x01, 0x0a, 0x11, 0x54, 0x73, 0x68, - 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x56, - 0x0a, 0x07, 0x52, 0x65, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x24, 0x2e, 0x74, 0x65, 0x6c, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, - 0x2e, 0x52, 0x65, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x25, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, - 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x10, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x6f, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x2e, 0x74, 0x65, 0x6c, - 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, - 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x74, 0x65, 0x6c, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, - 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, - 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, + 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x49, 0x5a, 0x47, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, + 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x65, + 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_v1_tshd_events_service_proto_rawDescOnce sync.Once - file_v1_tshd_events_service_proto_rawDescData = file_v1_tshd_events_service_proto_rawDesc + file_teleport_lib_teleterm_v1_tshd_events_service_proto_rawDescOnce sync.Once + file_teleport_lib_teleterm_v1_tshd_events_service_proto_rawDescData = file_teleport_lib_teleterm_v1_tshd_events_service_proto_rawDesc ) -func file_v1_tshd_events_service_proto_rawDescGZIP() []byte { - file_v1_tshd_events_service_proto_rawDescOnce.Do(func() { - file_v1_tshd_events_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_v1_tshd_events_service_proto_rawDescData) +func file_teleport_lib_teleterm_v1_tshd_events_service_proto_rawDescGZIP() []byte { + file_teleport_lib_teleterm_v1_tshd_events_service_proto_rawDescOnce.Do(func() { + file_teleport_lib_teleterm_v1_tshd_events_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_teleport_lib_teleterm_v1_tshd_events_service_proto_rawDescData) }) - return file_v1_tshd_events_service_proto_rawDescData -} - -var file_v1_tshd_events_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_v1_tshd_events_service_proto_goTypes = []interface{}{ - (*ReloginRequest)(nil), // 0: teleport.terminal.v1.ReloginRequest - (*GatewayCertExpired)(nil), // 1: teleport.terminal.v1.GatewayCertExpired - (*ReloginResponse)(nil), // 2: teleport.terminal.v1.ReloginResponse - (*SendNotificationRequest)(nil), // 3: teleport.terminal.v1.SendNotificationRequest - (*CannotProxyGatewayConnection)(nil), // 4: teleport.terminal.v1.CannotProxyGatewayConnection - (*SendNotificationResponse)(nil), // 5: teleport.terminal.v1.SendNotificationResponse -} -var file_v1_tshd_events_service_proto_depIdxs = []int32{ - 1, // 0: teleport.terminal.v1.ReloginRequest.gateway_cert_expired:type_name -> teleport.terminal.v1.GatewayCertExpired - 4, // 1: teleport.terminal.v1.SendNotificationRequest.cannot_proxy_gateway_connection:type_name -> teleport.terminal.v1.CannotProxyGatewayConnection - 0, // 2: teleport.terminal.v1.TshdEventsService.Relogin:input_type -> teleport.terminal.v1.ReloginRequest - 3, // 3: teleport.terminal.v1.TshdEventsService.SendNotification:input_type -> teleport.terminal.v1.SendNotificationRequest - 2, // 4: teleport.terminal.v1.TshdEventsService.Relogin:output_type -> teleport.terminal.v1.ReloginResponse - 5, // 5: teleport.terminal.v1.TshdEventsService.SendNotification:output_type -> teleport.terminal.v1.SendNotificationResponse + return file_teleport_lib_teleterm_v1_tshd_events_service_proto_rawDescData +} + +var file_teleport_lib_teleterm_v1_tshd_events_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_teleport_lib_teleterm_v1_tshd_events_service_proto_goTypes = []interface{}{ + (*ReloginRequest)(nil), // 0: teleport.lib.teleterm.v1.ReloginRequest + (*GatewayCertExpired)(nil), // 1: teleport.lib.teleterm.v1.GatewayCertExpired + (*ReloginResponse)(nil), // 2: teleport.lib.teleterm.v1.ReloginResponse + (*SendNotificationRequest)(nil), // 3: teleport.lib.teleterm.v1.SendNotificationRequest + (*CannotProxyGatewayConnection)(nil), // 4: teleport.lib.teleterm.v1.CannotProxyGatewayConnection + (*SendNotificationResponse)(nil), // 5: teleport.lib.teleterm.v1.SendNotificationResponse +} +var file_teleport_lib_teleterm_v1_tshd_events_service_proto_depIdxs = []int32{ + 1, // 0: teleport.lib.teleterm.v1.ReloginRequest.gateway_cert_expired:type_name -> teleport.lib.teleterm.v1.GatewayCertExpired + 4, // 1: teleport.lib.teleterm.v1.SendNotificationRequest.cannot_proxy_gateway_connection:type_name -> teleport.lib.teleterm.v1.CannotProxyGatewayConnection + 0, // 2: teleport.lib.teleterm.v1.TshdEventsService.Relogin:input_type -> teleport.lib.teleterm.v1.ReloginRequest + 3, // 3: teleport.lib.teleterm.v1.TshdEventsService.SendNotification:input_type -> teleport.lib.teleterm.v1.SendNotificationRequest + 2, // 4: teleport.lib.teleterm.v1.TshdEventsService.Relogin:output_type -> teleport.lib.teleterm.v1.ReloginResponse + 5, // 5: teleport.lib.teleterm.v1.TshdEventsService.SendNotification:output_type -> teleport.lib.teleterm.v1.SendNotificationResponse 4, // [4:6] is the sub-list for method output_type 2, // [2:4] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name @@ -478,13 +482,13 @@ var file_v1_tshd_events_service_proto_depIdxs = []int32{ 0, // [0:2] is the sub-list for field type_name } -func init() { file_v1_tshd_events_service_proto_init() } -func file_v1_tshd_events_service_proto_init() { - if File_v1_tshd_events_service_proto != nil { +func init() { file_teleport_lib_teleterm_v1_tshd_events_service_proto_init() } +func file_teleport_lib_teleterm_v1_tshd_events_service_proto_init() { + if File_teleport_lib_teleterm_v1_tshd_events_service_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_v1_tshd_events_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_tshd_events_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ReloginRequest); i { case 0: return &v.state @@ -496,7 +500,7 @@ func file_v1_tshd_events_service_proto_init() { return nil } } - file_v1_tshd_events_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_tshd_events_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GatewayCertExpired); i { case 0: return &v.state @@ -508,7 +512,7 @@ func file_v1_tshd_events_service_proto_init() { return nil } } - file_v1_tshd_events_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_tshd_events_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ReloginResponse); i { case 0: return &v.state @@ -520,7 +524,7 @@ func file_v1_tshd_events_service_proto_init() { return nil } } - file_v1_tshd_events_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_tshd_events_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SendNotificationRequest); i { case 0: return &v.state @@ -532,7 +536,7 @@ func file_v1_tshd_events_service_proto_init() { return nil } } - file_v1_tshd_events_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_tshd_events_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CannotProxyGatewayConnection); i { case 0: return &v.state @@ -544,7 +548,7 @@ func file_v1_tshd_events_service_proto_init() { return nil } } - file_v1_tshd_events_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_teleport_lib_teleterm_v1_tshd_events_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SendNotificationResponse); i { case 0: return &v.state @@ -557,28 +561,28 @@ func file_v1_tshd_events_service_proto_init() { } } } - file_v1_tshd_events_service_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_teleport_lib_teleterm_v1_tshd_events_service_proto_msgTypes[0].OneofWrappers = []interface{}{ (*ReloginRequest_GatewayCertExpired)(nil), } - file_v1_tshd_events_service_proto_msgTypes[3].OneofWrappers = []interface{}{ + file_teleport_lib_teleterm_v1_tshd_events_service_proto_msgTypes[3].OneofWrappers = []interface{}{ (*SendNotificationRequest_CannotProxyGatewayConnection)(nil), } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_v1_tshd_events_service_proto_rawDesc, + RawDescriptor: file_teleport_lib_teleterm_v1_tshd_events_service_proto_rawDesc, NumEnums: 0, NumMessages: 6, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_v1_tshd_events_service_proto_goTypes, - DependencyIndexes: file_v1_tshd_events_service_proto_depIdxs, - MessageInfos: file_v1_tshd_events_service_proto_msgTypes, + GoTypes: file_teleport_lib_teleterm_v1_tshd_events_service_proto_goTypes, + DependencyIndexes: file_teleport_lib_teleterm_v1_tshd_events_service_proto_depIdxs, + MessageInfos: file_teleport_lib_teleterm_v1_tshd_events_service_proto_msgTypes, }.Build() - File_v1_tshd_events_service_proto = out.File - file_v1_tshd_events_service_proto_rawDesc = nil - file_v1_tshd_events_service_proto_goTypes = nil - file_v1_tshd_events_service_proto_depIdxs = nil + File_teleport_lib_teleterm_v1_tshd_events_service_proto = out.File + file_teleport_lib_teleterm_v1_tshd_events_service_proto_rawDesc = nil + file_teleport_lib_teleterm_v1_tshd_events_service_proto_goTypes = nil + file_teleport_lib_teleterm_v1_tshd_events_service_proto_depIdxs = nil } diff --git a/lib/teleterm/api/protogen/golang/v1/tshd_events_service_grpc.pb.go b/gen/proto/go/teleport/lib/teleterm/v1/tshd_events_service_grpc.pb.go similarity index 91% rename from lib/teleterm/api/protogen/golang/v1/tshd_events_service_grpc.pb.go rename to gen/proto/go/teleport/lib/teleterm/v1/tshd_events_service_grpc.pb.go index 9956001ca81a3..2648cfe51b267 100644 --- a/lib/teleterm/api/protogen/golang/v1/tshd_events_service_grpc.pb.go +++ b/gen/proto/go/teleport/lib/teleterm/v1/tshd_events_service_grpc.pb.go @@ -2,7 +2,7 @@ // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc (unknown) -// source: v1/tshd_events_service.proto +// source: teleport/lib/teleterm/v1/tshd_events_service.proto package v1 @@ -41,7 +41,7 @@ func NewTshdEventsServiceClient(cc grpc.ClientConnInterface) TshdEventsServiceCl func (c *tshdEventsServiceClient) Relogin(ctx context.Context, in *ReloginRequest, opts ...grpc.CallOption) (*ReloginResponse, error) { out := new(ReloginResponse) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TshdEventsService/Relogin", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TshdEventsService/Relogin", in, out, opts...) if err != nil { return nil, err } @@ -50,7 +50,7 @@ func (c *tshdEventsServiceClient) Relogin(ctx context.Context, in *ReloginReques func (c *tshdEventsServiceClient) SendNotification(ctx context.Context, in *SendNotificationRequest, opts ...grpc.CallOption) (*SendNotificationResponse, error) { out := new(SendNotificationResponse) - err := c.cc.Invoke(ctx, "/teleport.terminal.v1.TshdEventsService/SendNotification", in, out, opts...) + err := c.cc.Invoke(ctx, "/teleport.lib.teleterm.v1.TshdEventsService/SendNotification", in, out, opts...) if err != nil { return nil, err } @@ -104,7 +104,7 @@ func _TshdEventsService_Relogin_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TshdEventsService/Relogin", + FullMethod: "/teleport.lib.teleterm.v1.TshdEventsService/Relogin", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TshdEventsServiceServer).Relogin(ctx, req.(*ReloginRequest)) @@ -122,7 +122,7 @@ func _TshdEventsService_SendNotification_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/teleport.terminal.v1.TshdEventsService/SendNotification", + FullMethod: "/teleport.lib.teleterm.v1.TshdEventsService/SendNotification", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TshdEventsServiceServer).SendNotification(ctx, req.(*SendNotificationRequest)) @@ -134,7 +134,7 @@ func _TshdEventsService_SendNotification_Handler(srv interface{}, ctx context.Co // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var TshdEventsService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "teleport.terminal.v1.TshdEventsService", + ServiceName: "teleport.lib.teleterm.v1.TshdEventsService", HandlerType: (*TshdEventsServiceServer)(nil), Methods: []grpc.MethodDesc{ { @@ -147,5 +147,5 @@ var TshdEventsService_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "v1/tshd_events_service.proto", + Metadata: "teleport/lib/teleterm/v1/tshd_events_service.proto", } diff --git a/gen/proto/go/teleport/lib/teleterm/v1/usage_events.pb.go b/gen/proto/go/teleport/lib/teleterm/v1/usage_events.pb.go new file mode 100644 index 0000000000000..77e837054e27e --- /dev/null +++ b/gen/proto/go/teleport/lib/teleterm/v1/usage_events.pb.go @@ -0,0 +1,182 @@ +// Copyright 2022 Gravitational, Inc +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc (unknown) +// source: teleport/lib/teleterm/v1/usage_events.proto + +package v1 + +import ( + v1alpha "github.com/gravitational/teleport/gen/proto/go/prehog/v1alpha" + 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 ReportUsageEventRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AuthClusterId string `protobuf:"bytes,1,opt,name=auth_cluster_id,json=authClusterId,proto3" json:"auth_cluster_id,omitempty"` + PrehogReq *v1alpha.SubmitConnectEventRequest `protobuf:"bytes,2,opt,name=prehog_req,json=prehogReq,proto3" json:"prehog_req,omitempty"` +} + +func (x *ReportUsageEventRequest) Reset() { + *x = ReportUsageEventRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_teleport_lib_teleterm_v1_usage_events_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReportUsageEventRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReportUsageEventRequest) ProtoMessage() {} + +func (x *ReportUsageEventRequest) ProtoReflect() protoreflect.Message { + mi := &file_teleport_lib_teleterm_v1_usage_events_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 ReportUsageEventRequest.ProtoReflect.Descriptor instead. +func (*ReportUsageEventRequest) Descriptor() ([]byte, []int) { + return file_teleport_lib_teleterm_v1_usage_events_proto_rawDescGZIP(), []int{0} +} + +func (x *ReportUsageEventRequest) GetAuthClusterId() string { + if x != nil { + return x.AuthClusterId + } + return "" +} + +func (x *ReportUsageEventRequest) GetPrehogReq() *v1alpha.SubmitConnectEventRequest { + if x != nil { + return x.PrehogReq + } + return nil +} + +var File_teleport_lib_teleterm_v1_usage_events_proto protoreflect.FileDescriptor + +var file_teleport_lib_teleterm_v1_usage_events_proto_rawDesc = []byte{ + 0x0a, 0x2b, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x61, 0x67, 0x65, + 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x74, + 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2f, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8b, 0x01, 0x0a, 0x17, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, + 0x55, 0x73, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x75, 0x74, 0x68, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x48, 0x0a, 0x0a, 0x70, 0x72, 0x65, + 0x68, 0x6f, 0x67, 0x5f, 0x72, 0x65, 0x71, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, + 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, + 0x75, 0x62, 0x6d, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x09, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, + 0x52, 0x65, 0x71, 0x42, 0x49, 0x5a, 0x47, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, + 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, + 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_teleport_lib_teleterm_v1_usage_events_proto_rawDescOnce sync.Once + file_teleport_lib_teleterm_v1_usage_events_proto_rawDescData = file_teleport_lib_teleterm_v1_usage_events_proto_rawDesc +) + +func file_teleport_lib_teleterm_v1_usage_events_proto_rawDescGZIP() []byte { + file_teleport_lib_teleterm_v1_usage_events_proto_rawDescOnce.Do(func() { + file_teleport_lib_teleterm_v1_usage_events_proto_rawDescData = protoimpl.X.CompressGZIP(file_teleport_lib_teleterm_v1_usage_events_proto_rawDescData) + }) + return file_teleport_lib_teleterm_v1_usage_events_proto_rawDescData +} + +var file_teleport_lib_teleterm_v1_usage_events_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_teleport_lib_teleterm_v1_usage_events_proto_goTypes = []interface{}{ + (*ReportUsageEventRequest)(nil), // 0: teleport.lib.teleterm.v1.ReportUsageEventRequest + (*v1alpha.SubmitConnectEventRequest)(nil), // 1: prehog.v1alpha.SubmitConnectEventRequest +} +var file_teleport_lib_teleterm_v1_usage_events_proto_depIdxs = []int32{ + 1, // 0: teleport.lib.teleterm.v1.ReportUsageEventRequest.prehog_req:type_name -> prehog.v1alpha.SubmitConnectEventRequest + 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_teleport_lib_teleterm_v1_usage_events_proto_init() } +func file_teleport_lib_teleterm_v1_usage_events_proto_init() { + if File_teleport_lib_teleterm_v1_usage_events_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_teleport_lib_teleterm_v1_usage_events_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReportUsageEventRequest); 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_teleport_lib_teleterm_v1_usage_events_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_teleport_lib_teleterm_v1_usage_events_proto_goTypes, + DependencyIndexes: file_teleport_lib_teleterm_v1_usage_events_proto_depIdxs, + MessageInfos: file_teleport_lib_teleterm_v1_usage_events_proto_msgTypes, + }.Build() + File_teleport_lib_teleterm_v1_usage_events_proto = out.File + file_teleport_lib_teleterm_v1_usage_events_proto_rawDesc = nil + file_teleport_lib_teleterm_v1_usage_events_proto_goTypes = nil + file_teleport_lib_teleterm_v1_usage_events_proto_depIdxs = nil +} diff --git a/lib/prehog/gen-js/prehog/v1alpha/connect_grpc_pb.d.ts b/gen/proto/js/prehog/v1alpha/connect_grpc_pb.d.ts similarity index 100% rename from lib/prehog/gen-js/prehog/v1alpha/connect_grpc_pb.d.ts rename to gen/proto/js/prehog/v1alpha/connect_grpc_pb.d.ts diff --git a/lib/prehog/gen-js/prehog/v1alpha/connect_grpc_pb.js b/gen/proto/js/prehog/v1alpha/connect_grpc_pb.js similarity index 100% rename from lib/prehog/gen-js/prehog/v1alpha/connect_grpc_pb.js rename to gen/proto/js/prehog/v1alpha/connect_grpc_pb.js diff --git a/lib/prehog/gen-js/prehog/v1alpha/connect_pb.d.ts b/gen/proto/js/prehog/v1alpha/connect_pb.d.ts similarity index 100% rename from lib/prehog/gen-js/prehog/v1alpha/connect_pb.d.ts rename to gen/proto/js/prehog/v1alpha/connect_pb.d.ts diff --git a/lib/prehog/gen-js/prehog/v1alpha/connect_pb.js b/gen/proto/js/prehog/v1alpha/connect_pb.js similarity index 100% rename from lib/prehog/gen-js/prehog/v1alpha/connect_pb.js rename to gen/proto/js/prehog/v1alpha/connect_pb.js diff --git a/lib/prehog/gen-js/prehog/v1alpha/teleport_grpc_pb.d.ts b/gen/proto/js/prehog/v1alpha/teleport_grpc_pb.d.ts similarity index 100% rename from lib/prehog/gen-js/prehog/v1alpha/teleport_grpc_pb.d.ts rename to gen/proto/js/prehog/v1alpha/teleport_grpc_pb.d.ts diff --git a/lib/prehog/gen-js/prehog/v1alpha/teleport_grpc_pb.js b/gen/proto/js/prehog/v1alpha/teleport_grpc_pb.js similarity index 100% rename from lib/prehog/gen-js/prehog/v1alpha/teleport_grpc_pb.js rename to gen/proto/js/prehog/v1alpha/teleport_grpc_pb.js diff --git a/lib/prehog/gen-js/prehog/v1alpha/teleport_pb.d.ts b/gen/proto/js/prehog/v1alpha/teleport_pb.d.ts similarity index 100% rename from lib/prehog/gen-js/prehog/v1alpha/teleport_pb.d.ts rename to gen/proto/js/prehog/v1alpha/teleport_pb.d.ts diff --git a/lib/prehog/gen-js/prehog/v1alpha/teleport_pb.js b/gen/proto/js/prehog/v1alpha/teleport_pb.js similarity index 100% rename from lib/prehog/gen-js/prehog/v1alpha/teleport_pb.js rename to gen/proto/js/prehog/v1alpha/teleport_pb.js diff --git a/lib/teleterm/api/protogen/js/v1/access_request_grpc_pb.js b/gen/proto/js/teleport/lib/teleterm/v1/access_request_grpc_pb.js similarity index 100% rename from lib/teleterm/api/protogen/js/v1/access_request_grpc_pb.js rename to gen/proto/js/teleport/lib/teleterm/v1/access_request_grpc_pb.js diff --git a/web/packages/teleterm/src/services/tshd/v1/access_request_pb.d.ts b/gen/proto/js/teleport/lib/teleterm/v1/access_request_pb.d.ts similarity index 98% rename from web/packages/teleterm/src/services/tshd/v1/access_request_pb.d.ts rename to gen/proto/js/teleport/lib/teleterm/v1/access_request_pb.d.ts index c57fc6bf052ce..d478a30e0a97f 100644 --- a/web/packages/teleterm/src/services/tshd/v1/access_request_pb.d.ts +++ b/gen/proto/js/teleport/lib/teleterm/v1/access_request_pb.d.ts @@ -1,5 +1,5 @@ -// package: teleport.terminal.v1 -// file: v1/access_request.proto +// package: teleport.lib.teleterm.v1 +// file: teleport/lib/teleterm/v1/access_request.proto /* tslint:disable */ /* eslint-disable */ diff --git a/web/packages/teleterm/src/services/tshd/v1/access_request_pb.js b/gen/proto/js/teleport/lib/teleterm/v1/access_request_pb.js similarity index 59% rename from web/packages/teleterm/src/services/tshd/v1/access_request_pb.js rename to gen/proto/js/teleport/lib/teleterm/v1/access_request_pb.js index 39a06ca22afdd..ff0982d41f0f0 100644 --- a/web/packages/teleterm/src/services/tshd/v1/access_request_pb.js +++ b/gen/proto/js/teleport/lib/teleterm/v1/access_request_pb.js @@ -1,4 +1,4 @@ -// source: v1/access_request.proto +// source: teleport/lib/teleterm/v1/access_request.proto /** * @fileoverview * @enhanceable @@ -17,11 +17,11 @@ var global = (function() { return this || window || global || self || Function(' var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); goog.object.extend(proto, google_protobuf_timestamp_pb); -goog.exportSymbol('proto.teleport.terminal.v1.AccessRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.AccessRequestReview', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.Resource', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ResourceDetails', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ResourceID', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.AccessRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.AccessRequestReview', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.Resource', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.ResourceDetails', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.ResourceID', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -32,16 +32,16 @@ goog.exportSymbol('proto.teleport.terminal.v1.ResourceID', null, global); * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.AccessRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.AccessRequest.repeatedFields_, null); +proto.teleport.lib.teleterm.v1.AccessRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.lib.teleterm.v1.AccessRequest.repeatedFields_, null); }; -goog.inherits(proto.teleport.terminal.v1.AccessRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.AccessRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.AccessRequest.displayName = 'proto.teleport.terminal.v1.AccessRequest'; + proto.teleport.lib.teleterm.v1.AccessRequest.displayName = 'proto.teleport.lib.teleterm.v1.AccessRequest'; } /** * Generated by JsPbCodeGenerator. @@ -53,16 +53,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.AccessRequestReview = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.AccessRequestReview.repeatedFields_, null); +proto.teleport.lib.teleterm.v1.AccessRequestReview = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.lib.teleterm.v1.AccessRequestReview.repeatedFields_, null); }; -goog.inherits(proto.teleport.terminal.v1.AccessRequestReview, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.AccessRequestReview, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.AccessRequestReview.displayName = 'proto.teleport.terminal.v1.AccessRequestReview'; + proto.teleport.lib.teleterm.v1.AccessRequestReview.displayName = 'proto.teleport.lib.teleterm.v1.AccessRequestReview'; } /** * Generated by JsPbCodeGenerator. @@ -74,16 +74,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.ResourceID = function(opt_data) { +proto.teleport.lib.teleterm.v1.ResourceID = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.ResourceID, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.ResourceID, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.ResourceID.displayName = 'proto.teleport.terminal.v1.ResourceID'; + proto.teleport.lib.teleterm.v1.ResourceID.displayName = 'proto.teleport.lib.teleterm.v1.ResourceID'; } /** * Generated by JsPbCodeGenerator. @@ -95,16 +95,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.ResourceDetails = function(opt_data) { +proto.teleport.lib.teleterm.v1.ResourceDetails = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.ResourceDetails, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.ResourceDetails, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.ResourceDetails.displayName = 'proto.teleport.terminal.v1.ResourceDetails'; + proto.teleport.lib.teleterm.v1.ResourceDetails.displayName = 'proto.teleport.lib.teleterm.v1.ResourceDetails'; } /** * Generated by JsPbCodeGenerator. @@ -116,16 +116,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.Resource = function(opt_data) { +proto.teleport.lib.teleterm.v1.Resource = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.Resource, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.Resource, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.Resource.displayName = 'proto.teleport.terminal.v1.Resource'; + proto.teleport.lib.teleterm.v1.Resource.displayName = 'proto.teleport.lib.teleterm.v1.Resource'; } /** @@ -133,7 +133,7 @@ if (goog.DEBUG && !COMPILED) { * @private {!Array} * @const */ -proto.teleport.terminal.v1.AccessRequest.repeatedFields_ = [6,9,10,11,12,13]; +proto.teleport.lib.teleterm.v1.AccessRequest.repeatedFields_ = [6,9,10,11,12,13]; @@ -150,8 +150,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.AccessRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.AccessRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.AccessRequest.toObject(opt_includeInstance, this); }; @@ -160,11 +160,11 @@ proto.teleport.terminal.v1.AccessRequest.prototype.toObject = function(opt_inclu * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.AccessRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.AccessRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.AccessRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.AccessRequest.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), state: jspb.Message.getFieldWithDefault(msg, 2, ""), @@ -175,13 +175,13 @@ proto.teleport.terminal.v1.AccessRequest.toObject = function(includeInstance, ms created: (f = msg.getCreated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), expires: (f = msg.getExpires()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), reviewsList: jspb.Message.toObjectList(msg.getReviewsList(), - proto.teleport.terminal.v1.AccessRequestReview.toObject, includeInstance), + proto.teleport.lib.teleterm.v1.AccessRequestReview.toObject, includeInstance), suggestedReviewersList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f, thresholdNamesList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f, resourceIdsList: jspb.Message.toObjectList(msg.getResourceIdsList(), - proto.teleport.terminal.v1.ResourceID.toObject, includeInstance), + proto.teleport.lib.teleterm.v1.ResourceID.toObject, includeInstance), resourcesList: jspb.Message.toObjectList(msg.getResourcesList(), - proto.teleport.terminal.v1.Resource.toObject, includeInstance) + proto.teleport.lib.teleterm.v1.Resource.toObject, includeInstance) }; if (includeInstance) { @@ -195,23 +195,23 @@ proto.teleport.terminal.v1.AccessRequest.toObject = function(includeInstance, ms /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.AccessRequest} + * @return {!proto.teleport.lib.teleterm.v1.AccessRequest} */ -proto.teleport.terminal.v1.AccessRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.AccessRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.AccessRequest; - return proto.teleport.terminal.v1.AccessRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.AccessRequest; + return proto.teleport.lib.teleterm.v1.AccessRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.AccessRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.AccessRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.AccessRequest} + * @return {!proto.teleport.lib.teleterm.v1.AccessRequest} */ -proto.teleport.terminal.v1.AccessRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.AccessRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -253,8 +253,8 @@ proto.teleport.terminal.v1.AccessRequest.deserializeBinaryFromReader = function( msg.setExpires(value); break; case 9: - var value = new proto.teleport.terminal.v1.AccessRequestReview; - reader.readMessage(value,proto.teleport.terminal.v1.AccessRequestReview.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.AccessRequestReview; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.AccessRequestReview.deserializeBinaryFromReader); msg.addReviews(value); break; case 10: @@ -266,13 +266,13 @@ proto.teleport.terminal.v1.AccessRequest.deserializeBinaryFromReader = function( msg.addThresholdNames(value); break; case 12: - var value = new proto.teleport.terminal.v1.ResourceID; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceID.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.ResourceID; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.ResourceID.deserializeBinaryFromReader); msg.addResourceIds(value); break; case 13: - var value = new proto.teleport.terminal.v1.Resource; - reader.readMessage(value,proto.teleport.terminal.v1.Resource.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.Resource; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.Resource.deserializeBinaryFromReader); msg.addResources(value); break; default: @@ -288,9 +288,9 @@ proto.teleport.terminal.v1.AccessRequest.deserializeBinaryFromReader = function( * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.AccessRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.AccessRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.AccessRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -298,11 +298,11 @@ proto.teleport.terminal.v1.AccessRequest.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.AccessRequest} message + * @param {!proto.teleport.lib.teleterm.v1.AccessRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.AccessRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.AccessRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { @@ -367,7 +367,7 @@ proto.teleport.terminal.v1.AccessRequest.serializeBinaryToWriter = function(mess writer.writeRepeatedMessage( 9, f, - proto.teleport.terminal.v1.AccessRequestReview.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.AccessRequestReview.serializeBinaryToWriter ); } f = message.getSuggestedReviewersList(); @@ -389,7 +389,7 @@ proto.teleport.terminal.v1.AccessRequest.serializeBinaryToWriter = function(mess writer.writeRepeatedMessage( 12, f, - proto.teleport.terminal.v1.ResourceID.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.ResourceID.serializeBinaryToWriter ); } f = message.getResourcesList(); @@ -397,7 +397,7 @@ proto.teleport.terminal.v1.AccessRequest.serializeBinaryToWriter = function(mess writer.writeRepeatedMessage( 13, f, - proto.teleport.terminal.v1.Resource.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.Resource.serializeBinaryToWriter ); } }; @@ -407,16 +407,16 @@ proto.teleport.terminal.v1.AccessRequest.serializeBinaryToWriter = function(mess * optional string id = 1; * @return {string} */ -proto.teleport.terminal.v1.AccessRequest.prototype.getId = function() { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequest} returns this */ -proto.teleport.terminal.v1.AccessRequest.prototype.setId = function(value) { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -425,16 +425,16 @@ proto.teleport.terminal.v1.AccessRequest.prototype.setId = function(value) { * optional string state = 2; * @return {string} */ -proto.teleport.terminal.v1.AccessRequest.prototype.getState = function() { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.getState = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequest} returns this */ -proto.teleport.terminal.v1.AccessRequest.prototype.setState = function(value) { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.setState = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -443,16 +443,16 @@ proto.teleport.terminal.v1.AccessRequest.prototype.setState = function(value) { * optional string resolve_reason = 3; * @return {string} */ -proto.teleport.terminal.v1.AccessRequest.prototype.getResolveReason = function() { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.getResolveReason = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequest} returns this */ -proto.teleport.terminal.v1.AccessRequest.prototype.setResolveReason = function(value) { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.setResolveReason = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; @@ -461,16 +461,16 @@ proto.teleport.terminal.v1.AccessRequest.prototype.setResolveReason = function(v * optional string request_reason = 4; * @return {string} */ -proto.teleport.terminal.v1.AccessRequest.prototype.getRequestReason = function() { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.getRequestReason = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequest} returns this */ -proto.teleport.terminal.v1.AccessRequest.prototype.setRequestReason = function(value) { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.setRequestReason = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; @@ -479,16 +479,16 @@ proto.teleport.terminal.v1.AccessRequest.prototype.setRequestReason = function(v * optional string user = 5; * @return {string} */ -proto.teleport.terminal.v1.AccessRequest.prototype.getUser = function() { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.getUser = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequest} returns this */ -proto.teleport.terminal.v1.AccessRequest.prototype.setUser = function(value) { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.setUser = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; @@ -497,16 +497,16 @@ proto.teleport.terminal.v1.AccessRequest.prototype.setUser = function(value) { * repeated string roles = 6; * @return {!Array} */ -proto.teleport.terminal.v1.AccessRequest.prototype.getRolesList = function() { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.getRolesList = function() { return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 6)); }; /** * @param {!Array} value - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequest} returns this */ -proto.teleport.terminal.v1.AccessRequest.prototype.setRolesList = function(value) { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.setRolesList = function(value) { return jspb.Message.setField(this, 6, value || []); }; @@ -514,18 +514,18 @@ proto.teleport.terminal.v1.AccessRequest.prototype.setRolesList = function(value /** * @param {string} value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequest} returns this */ -proto.teleport.terminal.v1.AccessRequest.prototype.addRoles = function(value, opt_index) { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.addRoles = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 6, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequest} returns this */ -proto.teleport.terminal.v1.AccessRequest.prototype.clearRolesList = function() { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.clearRolesList = function() { return this.setRolesList([]); }; @@ -534,7 +534,7 @@ proto.teleport.terminal.v1.AccessRequest.prototype.clearRolesList = function() { * optional google.protobuf.Timestamp created = 7; * @return {?proto.google.protobuf.Timestamp} */ -proto.teleport.terminal.v1.AccessRequest.prototype.getCreated = function() { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.getCreated = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7)); }; @@ -542,18 +542,18 @@ proto.teleport.terminal.v1.AccessRequest.prototype.getCreated = function() { /** * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequest} returns this */ -proto.teleport.terminal.v1.AccessRequest.prototype.setCreated = function(value) { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.setCreated = function(value) { return jspb.Message.setWrapperField(this, 7, value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequest} returns this */ -proto.teleport.terminal.v1.AccessRequest.prototype.clearCreated = function() { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.clearCreated = function() { return this.setCreated(undefined); }; @@ -562,7 +562,7 @@ proto.teleport.terminal.v1.AccessRequest.prototype.clearCreated = function() { * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.AccessRequest.prototype.hasCreated = function() { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.hasCreated = function() { return jspb.Message.getField(this, 7) != null; }; @@ -571,7 +571,7 @@ proto.teleport.terminal.v1.AccessRequest.prototype.hasCreated = function() { * optional google.protobuf.Timestamp expires = 8; * @return {?proto.google.protobuf.Timestamp} */ -proto.teleport.terminal.v1.AccessRequest.prototype.getExpires = function() { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.getExpires = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); }; @@ -579,18 +579,18 @@ proto.teleport.terminal.v1.AccessRequest.prototype.getExpires = function() { /** * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequest} returns this */ -proto.teleport.terminal.v1.AccessRequest.prototype.setExpires = function(value) { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.setExpires = function(value) { return jspb.Message.setWrapperField(this, 8, value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequest} returns this */ -proto.teleport.terminal.v1.AccessRequest.prototype.clearExpires = function() { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.clearExpires = function() { return this.setExpires(undefined); }; @@ -599,45 +599,45 @@ proto.teleport.terminal.v1.AccessRequest.prototype.clearExpires = function() { * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.AccessRequest.prototype.hasExpires = function() { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.hasExpires = function() { return jspb.Message.getField(this, 8) != null; }; /** * repeated AccessRequestReview reviews = 9; - * @return {!Array} + * @return {!Array} */ -proto.teleport.terminal.v1.AccessRequest.prototype.getReviewsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.teleport.terminal.v1.AccessRequestReview, 9)); +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.getReviewsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.teleport.lib.teleterm.v1.AccessRequestReview, 9)); }; /** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this + * @param {!Array} value + * @return {!proto.teleport.lib.teleterm.v1.AccessRequest} returns this */ -proto.teleport.terminal.v1.AccessRequest.prototype.setReviewsList = function(value) { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.setReviewsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 9, value); }; /** - * @param {!proto.teleport.terminal.v1.AccessRequestReview=} opt_value + * @param {!proto.teleport.lib.teleterm.v1.AccessRequestReview=} opt_value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.AccessRequestReview} + * @return {!proto.teleport.lib.teleterm.v1.AccessRequestReview} */ -proto.teleport.terminal.v1.AccessRequest.prototype.addReviews = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.teleport.terminal.v1.AccessRequestReview, opt_index); +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.addReviews = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.teleport.lib.teleterm.v1.AccessRequestReview, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequest} returns this */ -proto.teleport.terminal.v1.AccessRequest.prototype.clearReviewsList = function() { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.clearReviewsList = function() { return this.setReviewsList([]); }; @@ -646,16 +646,16 @@ proto.teleport.terminal.v1.AccessRequest.prototype.clearReviewsList = function() * repeated string suggested_reviewers = 10; * @return {!Array} */ -proto.teleport.terminal.v1.AccessRequest.prototype.getSuggestedReviewersList = function() { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.getSuggestedReviewersList = function() { return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 10)); }; /** * @param {!Array} value - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequest} returns this */ -proto.teleport.terminal.v1.AccessRequest.prototype.setSuggestedReviewersList = function(value) { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.setSuggestedReviewersList = function(value) { return jspb.Message.setField(this, 10, value || []); }; @@ -663,18 +663,18 @@ proto.teleport.terminal.v1.AccessRequest.prototype.setSuggestedReviewersList = f /** * @param {string} value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequest} returns this */ -proto.teleport.terminal.v1.AccessRequest.prototype.addSuggestedReviewers = function(value, opt_index) { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.addSuggestedReviewers = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 10, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequest} returns this */ -proto.teleport.terminal.v1.AccessRequest.prototype.clearSuggestedReviewersList = function() { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.clearSuggestedReviewersList = function() { return this.setSuggestedReviewersList([]); }; @@ -683,16 +683,16 @@ proto.teleport.terminal.v1.AccessRequest.prototype.clearSuggestedReviewersList = * repeated string threshold_names = 11; * @return {!Array} */ -proto.teleport.terminal.v1.AccessRequest.prototype.getThresholdNamesList = function() { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.getThresholdNamesList = function() { return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 11)); }; /** * @param {!Array} value - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequest} returns this */ -proto.teleport.terminal.v1.AccessRequest.prototype.setThresholdNamesList = function(value) { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.setThresholdNamesList = function(value) { return jspb.Message.setField(this, 11, value || []); }; @@ -700,94 +700,94 @@ proto.teleport.terminal.v1.AccessRequest.prototype.setThresholdNamesList = funct /** * @param {string} value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequest} returns this */ -proto.teleport.terminal.v1.AccessRequest.prototype.addThresholdNames = function(value, opt_index) { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.addThresholdNames = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 11, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequest} returns this */ -proto.teleport.terminal.v1.AccessRequest.prototype.clearThresholdNamesList = function() { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.clearThresholdNamesList = function() { return this.setThresholdNamesList([]); }; /** * repeated ResourceID resource_ids = 12; - * @return {!Array} + * @return {!Array} */ -proto.teleport.terminal.v1.AccessRequest.prototype.getResourceIdsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.teleport.terminal.v1.ResourceID, 12)); +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.getResourceIdsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.teleport.lib.teleterm.v1.ResourceID, 12)); }; /** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this + * @param {!Array} value + * @return {!proto.teleport.lib.teleterm.v1.AccessRequest} returns this */ -proto.teleport.terminal.v1.AccessRequest.prototype.setResourceIdsList = function(value) { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.setResourceIdsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 12, value); }; /** - * @param {!proto.teleport.terminal.v1.ResourceID=} opt_value + * @param {!proto.teleport.lib.teleterm.v1.ResourceID=} opt_value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.ResourceID} + * @return {!proto.teleport.lib.teleterm.v1.ResourceID} */ -proto.teleport.terminal.v1.AccessRequest.prototype.addResourceIds = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.teleport.terminal.v1.ResourceID, opt_index); +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.addResourceIds = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.teleport.lib.teleterm.v1.ResourceID, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequest} returns this */ -proto.teleport.terminal.v1.AccessRequest.prototype.clearResourceIdsList = function() { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.clearResourceIdsList = function() { return this.setResourceIdsList([]); }; /** * repeated Resource resources = 13; - * @return {!Array} + * @return {!Array} */ -proto.teleport.terminal.v1.AccessRequest.prototype.getResourcesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.teleport.terminal.v1.Resource, 13)); +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.getResourcesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.teleport.lib.teleterm.v1.Resource, 13)); }; /** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this + * @param {!Array} value + * @return {!proto.teleport.lib.teleterm.v1.AccessRequest} returns this */ -proto.teleport.terminal.v1.AccessRequest.prototype.setResourcesList = function(value) { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.setResourcesList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 13, value); }; /** - * @param {!proto.teleport.terminal.v1.Resource=} opt_value + * @param {!proto.teleport.lib.teleterm.v1.Resource=} opt_value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.Resource} + * @return {!proto.teleport.lib.teleterm.v1.Resource} */ -proto.teleport.terminal.v1.AccessRequest.prototype.addResources = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 13, opt_value, proto.teleport.terminal.v1.Resource, opt_index); +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.addResources = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 13, opt_value, proto.teleport.lib.teleterm.v1.Resource, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequest} returns this */ -proto.teleport.terminal.v1.AccessRequest.prototype.clearResourcesList = function() { +proto.teleport.lib.teleterm.v1.AccessRequest.prototype.clearResourcesList = function() { return this.setResourcesList([]); }; @@ -798,7 +798,7 @@ proto.teleport.terminal.v1.AccessRequest.prototype.clearResourcesList = function * @private {!Array} * @const */ -proto.teleport.terminal.v1.AccessRequestReview.repeatedFields_ = [2]; +proto.teleport.lib.teleterm.v1.AccessRequestReview.repeatedFields_ = [2]; @@ -815,8 +815,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.AccessRequestReview.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.AccessRequestReview.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.AccessRequestReview.toObject(opt_includeInstance, this); }; @@ -825,11 +825,11 @@ proto.teleport.terminal.v1.AccessRequestReview.prototype.toObject = function(opt * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.AccessRequestReview} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.AccessRequestReview} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.AccessRequestReview.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.AccessRequestReview.toObject = function(includeInstance, msg) { var f, obj = { author: jspb.Message.getFieldWithDefault(msg, 1, ""), rolesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, @@ -849,23 +849,23 @@ proto.teleport.terminal.v1.AccessRequestReview.toObject = function(includeInstan /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.AccessRequestReview} + * @return {!proto.teleport.lib.teleterm.v1.AccessRequestReview} */ -proto.teleport.terminal.v1.AccessRequestReview.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.AccessRequestReview.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.AccessRequestReview; - return proto.teleport.terminal.v1.AccessRequestReview.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.AccessRequestReview; + return proto.teleport.lib.teleterm.v1.AccessRequestReview.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.AccessRequestReview} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.AccessRequestReview} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.AccessRequestReview} + * @return {!proto.teleport.lib.teleterm.v1.AccessRequestReview} */ -proto.teleport.terminal.v1.AccessRequestReview.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.AccessRequestReview.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -906,9 +906,9 @@ proto.teleport.terminal.v1.AccessRequestReview.deserializeBinaryFromReader = fun * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.AccessRequestReview.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.AccessRequestReview.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.AccessRequestReview.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -916,11 +916,11 @@ proto.teleport.terminal.v1.AccessRequestReview.prototype.serializeBinary = funct /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.AccessRequestReview} message + * @param {!proto.teleport.lib.teleterm.v1.AccessRequestReview} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.AccessRequestReview.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.AccessRequestReview.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getAuthor(); if (f.length > 0) { @@ -965,16 +965,16 @@ proto.teleport.terminal.v1.AccessRequestReview.serializeBinaryToWriter = functio * optional string author = 1; * @return {string} */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.getAuthor = function() { +proto.teleport.lib.teleterm.v1.AccessRequestReview.prototype.getAuthor = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.AccessRequestReview} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequestReview} returns this */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.setAuthor = function(value) { +proto.teleport.lib.teleterm.v1.AccessRequestReview.prototype.setAuthor = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -983,16 +983,16 @@ proto.teleport.terminal.v1.AccessRequestReview.prototype.setAuthor = function(va * repeated string roles = 2; * @return {!Array} */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.getRolesList = function() { +proto.teleport.lib.teleterm.v1.AccessRequestReview.prototype.getRolesList = function() { return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** * @param {!Array} value - * @return {!proto.teleport.terminal.v1.AccessRequestReview} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequestReview} returns this */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.setRolesList = function(value) { +proto.teleport.lib.teleterm.v1.AccessRequestReview.prototype.setRolesList = function(value) { return jspb.Message.setField(this, 2, value || []); }; @@ -1000,18 +1000,18 @@ proto.teleport.terminal.v1.AccessRequestReview.prototype.setRolesList = function /** * @param {string} value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.AccessRequestReview} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequestReview} returns this */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.addRoles = function(value, opt_index) { +proto.teleport.lib.teleterm.v1.AccessRequestReview.prototype.addRoles = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.AccessRequestReview} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequestReview} returns this */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.clearRolesList = function() { +proto.teleport.lib.teleterm.v1.AccessRequestReview.prototype.clearRolesList = function() { return this.setRolesList([]); }; @@ -1020,16 +1020,16 @@ proto.teleport.terminal.v1.AccessRequestReview.prototype.clearRolesList = functi * optional string state = 3; * @return {string} */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.getState = function() { +proto.teleport.lib.teleterm.v1.AccessRequestReview.prototype.getState = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.AccessRequestReview} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequestReview} returns this */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.setState = function(value) { +proto.teleport.lib.teleterm.v1.AccessRequestReview.prototype.setState = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; @@ -1038,16 +1038,16 @@ proto.teleport.terminal.v1.AccessRequestReview.prototype.setState = function(val * optional string reason = 4; * @return {string} */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.getReason = function() { +proto.teleport.lib.teleterm.v1.AccessRequestReview.prototype.getReason = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.AccessRequestReview} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequestReview} returns this */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.setReason = function(value) { +proto.teleport.lib.teleterm.v1.AccessRequestReview.prototype.setReason = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; @@ -1056,7 +1056,7 @@ proto.teleport.terminal.v1.AccessRequestReview.prototype.setReason = function(va * optional google.protobuf.Timestamp created = 5; * @return {?proto.google.protobuf.Timestamp} */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.getCreated = function() { +proto.teleport.lib.teleterm.v1.AccessRequestReview.prototype.getCreated = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); }; @@ -1064,18 +1064,18 @@ proto.teleport.terminal.v1.AccessRequestReview.prototype.getCreated = function() /** * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.teleport.terminal.v1.AccessRequestReview} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequestReview} returns this */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.setCreated = function(value) { +proto.teleport.lib.teleterm.v1.AccessRequestReview.prototype.setCreated = function(value) { return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.AccessRequestReview} returns this + * @return {!proto.teleport.lib.teleterm.v1.AccessRequestReview} returns this */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.clearCreated = function() { +proto.teleport.lib.teleterm.v1.AccessRequestReview.prototype.clearCreated = function() { return this.setCreated(undefined); }; @@ -1084,7 +1084,7 @@ proto.teleport.terminal.v1.AccessRequestReview.prototype.clearCreated = function * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.hasCreated = function() { +proto.teleport.lib.teleterm.v1.AccessRequestReview.prototype.hasCreated = function() { return jspb.Message.getField(this, 5) != null; }; @@ -1105,8 +1105,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.ResourceID.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ResourceID.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.ResourceID.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.ResourceID.toObject(opt_includeInstance, this); }; @@ -1115,11 +1115,11 @@ proto.teleport.terminal.v1.ResourceID.prototype.toObject = function(opt_includeI * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ResourceID} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.ResourceID} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ResourceID.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.ResourceID.toObject = function(includeInstance, msg) { var f, obj = { kind: jspb.Message.getFieldWithDefault(msg, 1, ""), name: jspb.Message.getFieldWithDefault(msg, 2, ""), @@ -1138,23 +1138,23 @@ proto.teleport.terminal.v1.ResourceID.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ResourceID} + * @return {!proto.teleport.lib.teleterm.v1.ResourceID} */ -proto.teleport.terminal.v1.ResourceID.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.ResourceID.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ResourceID; - return proto.teleport.terminal.v1.ResourceID.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.ResourceID; + return proto.teleport.lib.teleterm.v1.ResourceID.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ResourceID} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.ResourceID} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ResourceID} + * @return {!proto.teleport.lib.teleterm.v1.ResourceID} */ -proto.teleport.terminal.v1.ResourceID.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.ResourceID.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1190,9 +1190,9 @@ proto.teleport.terminal.v1.ResourceID.deserializeBinaryFromReader = function(msg * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.ResourceID.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.ResourceID.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ResourceID.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.ResourceID.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1200,11 +1200,11 @@ proto.teleport.terminal.v1.ResourceID.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ResourceID} message + * @param {!proto.teleport.lib.teleterm.v1.ResourceID} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ResourceID.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.ResourceID.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getKind(); if (f.length > 0) { @@ -1241,16 +1241,16 @@ proto.teleport.terminal.v1.ResourceID.serializeBinaryToWriter = function(message * optional string kind = 1; * @return {string} */ -proto.teleport.terminal.v1.ResourceID.prototype.getKind = function() { +proto.teleport.lib.teleterm.v1.ResourceID.prototype.getKind = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.ResourceID} returns this + * @return {!proto.teleport.lib.teleterm.v1.ResourceID} returns this */ -proto.teleport.terminal.v1.ResourceID.prototype.setKind = function(value) { +proto.teleport.lib.teleterm.v1.ResourceID.prototype.setKind = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -1259,16 +1259,16 @@ proto.teleport.terminal.v1.ResourceID.prototype.setKind = function(value) { * optional string name = 2; * @return {string} */ -proto.teleport.terminal.v1.ResourceID.prototype.getName = function() { +proto.teleport.lib.teleterm.v1.ResourceID.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.ResourceID} returns this + * @return {!proto.teleport.lib.teleterm.v1.ResourceID} returns this */ -proto.teleport.terminal.v1.ResourceID.prototype.setName = function(value) { +proto.teleport.lib.teleterm.v1.ResourceID.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -1277,16 +1277,16 @@ proto.teleport.terminal.v1.ResourceID.prototype.setName = function(value) { * optional string cluster_name = 3; * @return {string} */ -proto.teleport.terminal.v1.ResourceID.prototype.getClusterName = function() { +proto.teleport.lib.teleterm.v1.ResourceID.prototype.getClusterName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.ResourceID} returns this + * @return {!proto.teleport.lib.teleterm.v1.ResourceID} returns this */ -proto.teleport.terminal.v1.ResourceID.prototype.setClusterName = function(value) { +proto.teleport.lib.teleterm.v1.ResourceID.prototype.setClusterName = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; @@ -1295,16 +1295,16 @@ proto.teleport.terminal.v1.ResourceID.prototype.setClusterName = function(value) * optional string sub_resource_name = 4; * @return {string} */ -proto.teleport.terminal.v1.ResourceID.prototype.getSubResourceName = function() { +proto.teleport.lib.teleterm.v1.ResourceID.prototype.getSubResourceName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.ResourceID} returns this + * @return {!proto.teleport.lib.teleterm.v1.ResourceID} returns this */ -proto.teleport.terminal.v1.ResourceID.prototype.setSubResourceName = function(value) { +proto.teleport.lib.teleterm.v1.ResourceID.prototype.setSubResourceName = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; @@ -1325,8 +1325,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.ResourceDetails.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ResourceDetails.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.ResourceDetails.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.ResourceDetails.toObject(opt_includeInstance, this); }; @@ -1335,11 +1335,11 @@ proto.teleport.terminal.v1.ResourceDetails.prototype.toObject = function(opt_inc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ResourceDetails} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.ResourceDetails} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ResourceDetails.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.ResourceDetails.toObject = function(includeInstance, msg) { var f, obj = { hostname: jspb.Message.getFieldWithDefault(msg, 1, "") }; @@ -1355,23 +1355,23 @@ proto.teleport.terminal.v1.ResourceDetails.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ResourceDetails} + * @return {!proto.teleport.lib.teleterm.v1.ResourceDetails} */ -proto.teleport.terminal.v1.ResourceDetails.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.ResourceDetails.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ResourceDetails; - return proto.teleport.terminal.v1.ResourceDetails.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.ResourceDetails; + return proto.teleport.lib.teleterm.v1.ResourceDetails.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ResourceDetails} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.ResourceDetails} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ResourceDetails} + * @return {!proto.teleport.lib.teleterm.v1.ResourceDetails} */ -proto.teleport.terminal.v1.ResourceDetails.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.ResourceDetails.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1395,9 +1395,9 @@ proto.teleport.terminal.v1.ResourceDetails.deserializeBinaryFromReader = functio * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.ResourceDetails.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.ResourceDetails.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ResourceDetails.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.ResourceDetails.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1405,11 +1405,11 @@ proto.teleport.terminal.v1.ResourceDetails.prototype.serializeBinary = function( /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ResourceDetails} message + * @param {!proto.teleport.lib.teleterm.v1.ResourceDetails} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ResourceDetails.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.ResourceDetails.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getHostname(); if (f.length > 0) { @@ -1425,16 +1425,16 @@ proto.teleport.terminal.v1.ResourceDetails.serializeBinaryToWriter = function(me * optional string hostname = 1; * @return {string} */ -proto.teleport.terminal.v1.ResourceDetails.prototype.getHostname = function() { +proto.teleport.lib.teleterm.v1.ResourceDetails.prototype.getHostname = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.ResourceDetails} returns this + * @return {!proto.teleport.lib.teleterm.v1.ResourceDetails} returns this */ -proto.teleport.terminal.v1.ResourceDetails.prototype.setHostname = function(value) { +proto.teleport.lib.teleterm.v1.ResourceDetails.prototype.setHostname = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -1455,8 +1455,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.Resource.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.Resource.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.Resource.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.Resource.toObject(opt_includeInstance, this); }; @@ -1465,14 +1465,14 @@ proto.teleport.terminal.v1.Resource.prototype.toObject = function(opt_includeIns * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.Resource} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.Resource} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.Resource.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.Resource.toObject = function(includeInstance, msg) { var f, obj = { - id: (f = msg.getId()) && proto.teleport.terminal.v1.ResourceID.toObject(includeInstance, f), - details: (f = msg.getDetails()) && proto.teleport.terminal.v1.ResourceDetails.toObject(includeInstance, f) + id: (f = msg.getId()) && proto.teleport.lib.teleterm.v1.ResourceID.toObject(includeInstance, f), + details: (f = msg.getDetails()) && proto.teleport.lib.teleterm.v1.ResourceDetails.toObject(includeInstance, f) }; if (includeInstance) { @@ -1486,23 +1486,23 @@ proto.teleport.terminal.v1.Resource.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.Resource} + * @return {!proto.teleport.lib.teleterm.v1.Resource} */ -proto.teleport.terminal.v1.Resource.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.Resource.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.Resource; - return proto.teleport.terminal.v1.Resource.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.Resource; + return proto.teleport.lib.teleterm.v1.Resource.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.Resource} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.Resource} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.Resource} + * @return {!proto.teleport.lib.teleterm.v1.Resource} */ -proto.teleport.terminal.v1.Resource.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.Resource.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1510,13 +1510,13 @@ proto.teleport.terminal.v1.Resource.deserializeBinaryFromReader = function(msg, var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.teleport.terminal.v1.ResourceID; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceID.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.ResourceID; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.ResourceID.deserializeBinaryFromReader); msg.setId(value); break; case 2: - var value = new proto.teleport.terminal.v1.ResourceDetails; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceDetails.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.ResourceDetails; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.ResourceDetails.deserializeBinaryFromReader); msg.setDetails(value); break; default: @@ -1532,9 +1532,9 @@ proto.teleport.terminal.v1.Resource.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.Resource.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.Resource.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.Resource.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.Resource.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1542,18 +1542,18 @@ proto.teleport.terminal.v1.Resource.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.Resource} message + * @param {!proto.teleport.lib.teleterm.v1.Resource} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.Resource.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.Resource.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f != null) { writer.writeMessage( 1, f, - proto.teleport.terminal.v1.ResourceID.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.ResourceID.serializeBinaryToWriter ); } f = message.getDetails(); @@ -1561,7 +1561,7 @@ proto.teleport.terminal.v1.Resource.serializeBinaryToWriter = function(message, writer.writeMessage( 2, f, - proto.teleport.terminal.v1.ResourceDetails.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.ResourceDetails.serializeBinaryToWriter ); } }; @@ -1569,28 +1569,28 @@ proto.teleport.terminal.v1.Resource.serializeBinaryToWriter = function(message, /** * optional ResourceID id = 1; - * @return {?proto.teleport.terminal.v1.ResourceID} + * @return {?proto.teleport.lib.teleterm.v1.ResourceID} */ -proto.teleport.terminal.v1.Resource.prototype.getId = function() { - return /** @type{?proto.teleport.terminal.v1.ResourceID} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ResourceID, 1)); +proto.teleport.lib.teleterm.v1.Resource.prototype.getId = function() { + return /** @type{?proto.teleport.lib.teleterm.v1.ResourceID} */ ( + jspb.Message.getWrapperField(this, proto.teleport.lib.teleterm.v1.ResourceID, 1)); }; /** - * @param {?proto.teleport.terminal.v1.ResourceID|undefined} value - * @return {!proto.teleport.terminal.v1.Resource} returns this + * @param {?proto.teleport.lib.teleterm.v1.ResourceID|undefined} value + * @return {!proto.teleport.lib.teleterm.v1.Resource} returns this */ -proto.teleport.terminal.v1.Resource.prototype.setId = function(value) { +proto.teleport.lib.teleterm.v1.Resource.prototype.setId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.Resource} returns this + * @return {!proto.teleport.lib.teleterm.v1.Resource} returns this */ -proto.teleport.terminal.v1.Resource.prototype.clearId = function() { +proto.teleport.lib.teleterm.v1.Resource.prototype.clearId = function() { return this.setId(undefined); }; @@ -1599,35 +1599,35 @@ proto.teleport.terminal.v1.Resource.prototype.clearId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.Resource.prototype.hasId = function() { +proto.teleport.lib.teleterm.v1.Resource.prototype.hasId = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional ResourceDetails details = 2; - * @return {?proto.teleport.terminal.v1.ResourceDetails} + * @return {?proto.teleport.lib.teleterm.v1.ResourceDetails} */ -proto.teleport.terminal.v1.Resource.prototype.getDetails = function() { - return /** @type{?proto.teleport.terminal.v1.ResourceDetails} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ResourceDetails, 2)); +proto.teleport.lib.teleterm.v1.Resource.prototype.getDetails = function() { + return /** @type{?proto.teleport.lib.teleterm.v1.ResourceDetails} */ ( + jspb.Message.getWrapperField(this, proto.teleport.lib.teleterm.v1.ResourceDetails, 2)); }; /** - * @param {?proto.teleport.terminal.v1.ResourceDetails|undefined} value - * @return {!proto.teleport.terminal.v1.Resource} returns this + * @param {?proto.teleport.lib.teleterm.v1.ResourceDetails|undefined} value + * @return {!proto.teleport.lib.teleterm.v1.Resource} returns this */ -proto.teleport.terminal.v1.Resource.prototype.setDetails = function(value) { +proto.teleport.lib.teleterm.v1.Resource.prototype.setDetails = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.Resource} returns this + * @return {!proto.teleport.lib.teleterm.v1.Resource} returns this */ -proto.teleport.terminal.v1.Resource.prototype.clearDetails = function() { +proto.teleport.lib.teleterm.v1.Resource.prototype.clearDetails = function() { return this.setDetails(undefined); }; @@ -1636,9 +1636,9 @@ proto.teleport.terminal.v1.Resource.prototype.clearDetails = function() { * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.Resource.prototype.hasDetails = function() { +proto.teleport.lib.teleterm.v1.Resource.prototype.hasDetails = function() { return jspb.Message.getField(this, 2) != null; }; -goog.object.extend(exports, proto.teleport.terminal.v1); +goog.object.extend(exports, proto.teleport.lib.teleterm.v1); diff --git a/lib/teleterm/api/protogen/js/v1/app_grpc_pb.js b/gen/proto/js/teleport/lib/teleterm/v1/app_grpc_pb.js similarity index 100% rename from lib/teleterm/api/protogen/js/v1/app_grpc_pb.js rename to gen/proto/js/teleport/lib/teleterm/v1/app_grpc_pb.js diff --git a/lib/teleterm/api/protogen/js/v1/app_pb.d.ts b/gen/proto/js/teleport/lib/teleterm/v1/app_pb.d.ts similarity index 83% rename from lib/teleterm/api/protogen/js/v1/app_pb.d.ts rename to gen/proto/js/teleport/lib/teleterm/v1/app_pb.d.ts index 258a5bcc6e293..cef9fddb88fab 100644 --- a/lib/teleterm/api/protogen/js/v1/app_pb.d.ts +++ b/gen/proto/js/teleport/lib/teleterm/v1/app_pb.d.ts @@ -1,11 +1,11 @@ -// package: teleport.terminal.v1 -// file: v1/app.proto +// package: teleport.lib.teleterm.v1 +// file: teleport/lib/teleterm/v1/app.proto /* tslint:disable */ /* eslint-disable */ import * as jspb from "google-protobuf"; -import * as v1_label_pb from "../v1/label_pb"; +import * as teleport_lib_teleterm_v1_label_pb from "../../../../teleport/lib/teleterm/v1/label_pb"; export class App extends jspb.Message { getUri(): string; @@ -27,9 +27,9 @@ export class App extends jspb.Message { setFqdn(value: string): App; clearLabelsList(): void; - getLabelsList(): Array; - setLabelsList(value: Array): App; - addLabels(value?: v1_label_pb.Label, index?: number): v1_label_pb.Label; + getLabelsList(): Array; + setLabelsList(value: Array): App; + addLabels(value?: teleport_lib_teleterm_v1_label_pb.Label, index?: number): teleport_lib_teleterm_v1_label_pb.Label; getAwsConsole(): boolean; setAwsConsole(value: boolean): App; @@ -58,7 +58,7 @@ export namespace App { appUri: string, publicAddr: string, fqdn: string, - labelsList: Array, + labelsList: Array, awsConsole: boolean, awsRolesList: Array, } diff --git a/web/packages/teleterm/src/services/tshd/v1/app_pb.js b/gen/proto/js/teleport/lib/teleterm/v1/app_pb.js similarity index 60% rename from web/packages/teleterm/src/services/tshd/v1/app_pb.js rename to gen/proto/js/teleport/lib/teleterm/v1/app_pb.js index 1fb0888edd33f..d29f1d63eab80 100644 --- a/web/packages/teleterm/src/services/tshd/v1/app_pb.js +++ b/gen/proto/js/teleport/lib/teleterm/v1/app_pb.js @@ -1,4 +1,4 @@ -// source: v1/app.proto +// source: teleport/lib/teleterm/v1/app.proto /** * @fileoverview * @enhanceable @@ -15,10 +15,10 @@ var jspb = require('google-protobuf'); var goog = jspb; var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); -var v1_label_pb = require('../v1/label_pb.js'); -goog.object.extend(proto, v1_label_pb); -goog.exportSymbol('proto.teleport.terminal.v1.App', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.App.AWSRole', null, global); +var teleport_lib_teleterm_v1_label_pb = require('../../../../teleport/lib/teleterm/v1/label_pb.js'); +goog.object.extend(proto, teleport_lib_teleterm_v1_label_pb); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.App', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.App.AWSRole', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -29,16 +29,16 @@ goog.exportSymbol('proto.teleport.terminal.v1.App.AWSRole', null, global); * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.App = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.App.repeatedFields_, null); +proto.teleport.lib.teleterm.v1.App = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.lib.teleterm.v1.App.repeatedFields_, null); }; -goog.inherits(proto.teleport.terminal.v1.App, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.App, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.App.displayName = 'proto.teleport.terminal.v1.App'; + proto.teleport.lib.teleterm.v1.App.displayName = 'proto.teleport.lib.teleterm.v1.App'; } /** * Generated by JsPbCodeGenerator. @@ -50,16 +50,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.App.AWSRole = function(opt_data) { +proto.teleport.lib.teleterm.v1.App.AWSRole = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.App.AWSRole, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.App.AWSRole, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.App.AWSRole.displayName = 'proto.teleport.terminal.v1.App.AWSRole'; + proto.teleport.lib.teleterm.v1.App.AWSRole.displayName = 'proto.teleport.lib.teleterm.v1.App.AWSRole'; } /** @@ -67,7 +67,7 @@ if (goog.DEBUG && !COMPILED) { * @private {!Array} * @const */ -proto.teleport.terminal.v1.App.repeatedFields_ = [7,9]; +proto.teleport.lib.teleterm.v1.App.repeatedFields_ = [7,9]; @@ -84,8 +84,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.App.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.App.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.App.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.App.toObject(opt_includeInstance, this); }; @@ -94,11 +94,11 @@ proto.teleport.terminal.v1.App.prototype.toObject = function(opt_includeInstance * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.App} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.App} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.App.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.App.toObject = function(includeInstance, msg) { var f, obj = { uri: jspb.Message.getFieldWithDefault(msg, 1, ""), name: jspb.Message.getFieldWithDefault(msg, 2, ""), @@ -107,10 +107,10 @@ proto.teleport.terminal.v1.App.toObject = function(includeInstance, msg) { publicAddr: jspb.Message.getFieldWithDefault(msg, 5, ""), fqdn: jspb.Message.getFieldWithDefault(msg, 6, ""), labelsList: jspb.Message.toObjectList(msg.getLabelsList(), - v1_label_pb.Label.toObject, includeInstance), + teleport_lib_teleterm_v1_label_pb.Label.toObject, includeInstance), awsConsole: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), awsRolesList: jspb.Message.toObjectList(msg.getAwsRolesList(), - proto.teleport.terminal.v1.App.AWSRole.toObject, includeInstance) + proto.teleport.lib.teleterm.v1.App.AWSRole.toObject, includeInstance) }; if (includeInstance) { @@ -124,23 +124,23 @@ proto.teleport.terminal.v1.App.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.App} + * @return {!proto.teleport.lib.teleterm.v1.App} */ -proto.teleport.terminal.v1.App.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.App.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.App; - return proto.teleport.terminal.v1.App.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.App; + return proto.teleport.lib.teleterm.v1.App.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.App} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.App} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.App} + * @return {!proto.teleport.lib.teleterm.v1.App} */ -proto.teleport.terminal.v1.App.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.App.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -172,8 +172,8 @@ proto.teleport.terminal.v1.App.deserializeBinaryFromReader = function(msg, reade msg.setFqdn(value); break; case 7: - var value = new v1_label_pb.Label; - reader.readMessage(value,v1_label_pb.Label.deserializeBinaryFromReader); + var value = new teleport_lib_teleterm_v1_label_pb.Label; + reader.readMessage(value,teleport_lib_teleterm_v1_label_pb.Label.deserializeBinaryFromReader); msg.addLabels(value); break; case 8: @@ -181,8 +181,8 @@ proto.teleport.terminal.v1.App.deserializeBinaryFromReader = function(msg, reade msg.setAwsConsole(value); break; case 9: - var value = new proto.teleport.terminal.v1.App.AWSRole; - reader.readMessage(value,proto.teleport.terminal.v1.App.AWSRole.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.App.AWSRole; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.App.AWSRole.deserializeBinaryFromReader); msg.addAwsRoles(value); break; default: @@ -198,9 +198,9 @@ proto.teleport.terminal.v1.App.deserializeBinaryFromReader = function(msg, reade * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.App.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.App.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.App.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.App.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -208,11 +208,11 @@ proto.teleport.terminal.v1.App.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.App} message + * @param {!proto.teleport.lib.teleterm.v1.App} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.App.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.App.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUri(); if (f.length > 0) { @@ -261,7 +261,7 @@ proto.teleport.terminal.v1.App.serializeBinaryToWriter = function(message, write writer.writeRepeatedMessage( 7, f, - v1_label_pb.Label.serializeBinaryToWriter + teleport_lib_teleterm_v1_label_pb.Label.serializeBinaryToWriter ); } f = message.getAwsConsole(); @@ -276,7 +276,7 @@ proto.teleport.terminal.v1.App.serializeBinaryToWriter = function(message, write writer.writeRepeatedMessage( 9, f, - proto.teleport.terminal.v1.App.AWSRole.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.App.AWSRole.serializeBinaryToWriter ); } }; @@ -298,8 +298,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.App.AWSRole.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.App.AWSRole.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.App.AWSRole.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.App.AWSRole.toObject(opt_includeInstance, this); }; @@ -308,11 +308,11 @@ proto.teleport.terminal.v1.App.AWSRole.prototype.toObject = function(opt_include * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.App.AWSRole} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.App.AWSRole} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.App.AWSRole.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.App.AWSRole.toObject = function(includeInstance, msg) { var f, obj = { display: jspb.Message.getFieldWithDefault(msg, 1, ""), arn: jspb.Message.getFieldWithDefault(msg, 2, "") @@ -329,23 +329,23 @@ proto.teleport.terminal.v1.App.AWSRole.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.App.AWSRole} + * @return {!proto.teleport.lib.teleterm.v1.App.AWSRole} */ -proto.teleport.terminal.v1.App.AWSRole.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.App.AWSRole.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.App.AWSRole; - return proto.teleport.terminal.v1.App.AWSRole.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.App.AWSRole; + return proto.teleport.lib.teleterm.v1.App.AWSRole.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.App.AWSRole} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.App.AWSRole} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.App.AWSRole} + * @return {!proto.teleport.lib.teleterm.v1.App.AWSRole} */ -proto.teleport.terminal.v1.App.AWSRole.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.App.AWSRole.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -373,9 +373,9 @@ proto.teleport.terminal.v1.App.AWSRole.deserializeBinaryFromReader = function(ms * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.App.AWSRole.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.App.AWSRole.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.App.AWSRole.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.App.AWSRole.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -383,11 +383,11 @@ proto.teleport.terminal.v1.App.AWSRole.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.App.AWSRole} message + * @param {!proto.teleport.lib.teleterm.v1.App.AWSRole} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.App.AWSRole.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.App.AWSRole.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getDisplay(); if (f.length > 0) { @@ -410,16 +410,16 @@ proto.teleport.terminal.v1.App.AWSRole.serializeBinaryToWriter = function(messag * optional string display = 1; * @return {string} */ -proto.teleport.terminal.v1.App.AWSRole.prototype.getDisplay = function() { +proto.teleport.lib.teleterm.v1.App.AWSRole.prototype.getDisplay = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.App.AWSRole} returns this + * @return {!proto.teleport.lib.teleterm.v1.App.AWSRole} returns this */ -proto.teleport.terminal.v1.App.AWSRole.prototype.setDisplay = function(value) { +proto.teleport.lib.teleterm.v1.App.AWSRole.prototype.setDisplay = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -428,16 +428,16 @@ proto.teleport.terminal.v1.App.AWSRole.prototype.setDisplay = function(value) { * optional string arn = 2; * @return {string} */ -proto.teleport.terminal.v1.App.AWSRole.prototype.getArn = function() { +proto.teleport.lib.teleterm.v1.App.AWSRole.prototype.getArn = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.App.AWSRole} returns this + * @return {!proto.teleport.lib.teleterm.v1.App.AWSRole} returns this */ -proto.teleport.terminal.v1.App.AWSRole.prototype.setArn = function(value) { +proto.teleport.lib.teleterm.v1.App.AWSRole.prototype.setArn = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -446,16 +446,16 @@ proto.teleport.terminal.v1.App.AWSRole.prototype.setArn = function(value) { * optional string uri = 1; * @return {string} */ -proto.teleport.terminal.v1.App.prototype.getUri = function() { +proto.teleport.lib.teleterm.v1.App.prototype.getUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.App} returns this + * @return {!proto.teleport.lib.teleterm.v1.App} returns this */ -proto.teleport.terminal.v1.App.prototype.setUri = function(value) { +proto.teleport.lib.teleterm.v1.App.prototype.setUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -464,16 +464,16 @@ proto.teleport.terminal.v1.App.prototype.setUri = function(value) { * optional string name = 2; * @return {string} */ -proto.teleport.terminal.v1.App.prototype.getName = function() { +proto.teleport.lib.teleterm.v1.App.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.App} returns this + * @return {!proto.teleport.lib.teleterm.v1.App} returns this */ -proto.teleport.terminal.v1.App.prototype.setName = function(value) { +proto.teleport.lib.teleterm.v1.App.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -482,16 +482,16 @@ proto.teleport.terminal.v1.App.prototype.setName = function(value) { * optional string description = 3; * @return {string} */ -proto.teleport.terminal.v1.App.prototype.getDescription = function() { +proto.teleport.lib.teleterm.v1.App.prototype.getDescription = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.App} returns this + * @return {!proto.teleport.lib.teleterm.v1.App} returns this */ -proto.teleport.terminal.v1.App.prototype.setDescription = function(value) { +proto.teleport.lib.teleterm.v1.App.prototype.setDescription = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; @@ -500,16 +500,16 @@ proto.teleport.terminal.v1.App.prototype.setDescription = function(value) { * optional string app_uri = 4; * @return {string} */ -proto.teleport.terminal.v1.App.prototype.getAppUri = function() { +proto.teleport.lib.teleterm.v1.App.prototype.getAppUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.App} returns this + * @return {!proto.teleport.lib.teleterm.v1.App} returns this */ -proto.teleport.terminal.v1.App.prototype.setAppUri = function(value) { +proto.teleport.lib.teleterm.v1.App.prototype.setAppUri = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; @@ -518,16 +518,16 @@ proto.teleport.terminal.v1.App.prototype.setAppUri = function(value) { * optional string public_addr = 5; * @return {string} */ -proto.teleport.terminal.v1.App.prototype.getPublicAddr = function() { +proto.teleport.lib.teleterm.v1.App.prototype.getPublicAddr = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.App} returns this + * @return {!proto.teleport.lib.teleterm.v1.App} returns this */ -proto.teleport.terminal.v1.App.prototype.setPublicAddr = function(value) { +proto.teleport.lib.teleterm.v1.App.prototype.setPublicAddr = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; @@ -536,54 +536,54 @@ proto.teleport.terminal.v1.App.prototype.setPublicAddr = function(value) { * optional string fqdn = 6; * @return {string} */ -proto.teleport.terminal.v1.App.prototype.getFqdn = function() { +proto.teleport.lib.teleterm.v1.App.prototype.getFqdn = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.App} returns this + * @return {!proto.teleport.lib.teleterm.v1.App} returns this */ -proto.teleport.terminal.v1.App.prototype.setFqdn = function(value) { +proto.teleport.lib.teleterm.v1.App.prototype.setFqdn = function(value) { return jspb.Message.setProto3StringField(this, 6, value); }; /** * repeated Label labels = 7; - * @return {!Array} + * @return {!Array} */ -proto.teleport.terminal.v1.App.prototype.getLabelsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_label_pb.Label, 7)); +proto.teleport.lib.teleterm.v1.App.prototype.getLabelsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, teleport_lib_teleterm_v1_label_pb.Label, 7)); }; /** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.App} returns this + * @param {!Array} value + * @return {!proto.teleport.lib.teleterm.v1.App} returns this */ -proto.teleport.terminal.v1.App.prototype.setLabelsList = function(value) { +proto.teleport.lib.teleterm.v1.App.prototype.setLabelsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 7, value); }; /** - * @param {!proto.teleport.terminal.v1.Label=} opt_value + * @param {!proto.teleport.lib.teleterm.v1.Label=} opt_value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.Label} + * @return {!proto.teleport.lib.teleterm.v1.Label} */ -proto.teleport.terminal.v1.App.prototype.addLabels = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.teleport.terminal.v1.Label, opt_index); +proto.teleport.lib.teleterm.v1.App.prototype.addLabels = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.teleport.lib.teleterm.v1.Label, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.App} returns this + * @return {!proto.teleport.lib.teleterm.v1.App} returns this */ -proto.teleport.terminal.v1.App.prototype.clearLabelsList = function() { +proto.teleport.lib.teleterm.v1.App.prototype.clearLabelsList = function() { return this.setLabelsList([]); }; @@ -592,56 +592,56 @@ proto.teleport.terminal.v1.App.prototype.clearLabelsList = function() { * optional bool aws_console = 8; * @return {boolean} */ -proto.teleport.terminal.v1.App.prototype.getAwsConsole = function() { +proto.teleport.lib.teleterm.v1.App.prototype.getAwsConsole = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); }; /** * @param {boolean} value - * @return {!proto.teleport.terminal.v1.App} returns this + * @return {!proto.teleport.lib.teleterm.v1.App} returns this */ -proto.teleport.terminal.v1.App.prototype.setAwsConsole = function(value) { +proto.teleport.lib.teleterm.v1.App.prototype.setAwsConsole = function(value) { return jspb.Message.setProto3BooleanField(this, 8, value); }; /** * repeated AWSRole aws_roles = 9; - * @return {!Array} + * @return {!Array} */ -proto.teleport.terminal.v1.App.prototype.getAwsRolesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.teleport.terminal.v1.App.AWSRole, 9)); +proto.teleport.lib.teleterm.v1.App.prototype.getAwsRolesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.teleport.lib.teleterm.v1.App.AWSRole, 9)); }; /** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.App} returns this + * @param {!Array} value + * @return {!proto.teleport.lib.teleterm.v1.App} returns this */ -proto.teleport.terminal.v1.App.prototype.setAwsRolesList = function(value) { +proto.teleport.lib.teleterm.v1.App.prototype.setAwsRolesList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 9, value); }; /** - * @param {!proto.teleport.terminal.v1.App.AWSRole=} opt_value + * @param {!proto.teleport.lib.teleterm.v1.App.AWSRole=} opt_value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.App.AWSRole} + * @return {!proto.teleport.lib.teleterm.v1.App.AWSRole} */ -proto.teleport.terminal.v1.App.prototype.addAwsRoles = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.teleport.terminal.v1.App.AWSRole, opt_index); +proto.teleport.lib.teleterm.v1.App.prototype.addAwsRoles = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.teleport.lib.teleterm.v1.App.AWSRole, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.App} returns this + * @return {!proto.teleport.lib.teleterm.v1.App} returns this */ -proto.teleport.terminal.v1.App.prototype.clearAwsRolesList = function() { +proto.teleport.lib.teleterm.v1.App.prototype.clearAwsRolesList = function() { return this.setAwsRolesList([]); }; -goog.object.extend(exports, proto.teleport.terminal.v1); +goog.object.extend(exports, proto.teleport.lib.teleterm.v1); diff --git a/lib/teleterm/api/protogen/js/v1/auth_settings_grpc_pb.js b/gen/proto/js/teleport/lib/teleterm/v1/auth_settings_grpc_pb.js similarity index 100% rename from lib/teleterm/api/protogen/js/v1/auth_settings_grpc_pb.js rename to gen/proto/js/teleport/lib/teleterm/v1/auth_settings_grpc_pb.js diff --git a/web/packages/teleterm/src/services/tshd/v1/auth_settings_pb.d.ts b/gen/proto/js/teleport/lib/teleterm/v1/auth_settings_pb.d.ts similarity index 97% rename from web/packages/teleterm/src/services/tshd/v1/auth_settings_pb.d.ts rename to gen/proto/js/teleport/lib/teleterm/v1/auth_settings_pb.d.ts index 1ff6576a2acb6..8d51b6d55a0f4 100644 --- a/web/packages/teleterm/src/services/tshd/v1/auth_settings_pb.d.ts +++ b/gen/proto/js/teleport/lib/teleterm/v1/auth_settings_pb.d.ts @@ -1,5 +1,5 @@ -// package: teleport.terminal.v1 -// file: v1/auth_settings.proto +// package: teleport.lib.teleterm.v1 +// file: teleport/lib/teleterm/v1/auth_settings.proto /* tslint:disable */ /* eslint-disable */ diff --git a/web/packages/teleterm/src/services/tshd/v1/auth_settings_pb.js b/gen/proto/js/teleport/lib/teleterm/v1/auth_settings_pb.js similarity index 62% rename from web/packages/teleterm/src/services/tshd/v1/auth_settings_pb.js rename to gen/proto/js/teleport/lib/teleterm/v1/auth_settings_pb.js index 2f9065ee7e3a9..e8fd9764f7e06 100644 --- a/web/packages/teleterm/src/services/tshd/v1/auth_settings_pb.js +++ b/gen/proto/js/teleport/lib/teleterm/v1/auth_settings_pb.js @@ -1,4 +1,4 @@ -// source: v1/auth_settings.proto +// source: teleport/lib/teleterm/v1/auth_settings.proto /** * @fileoverview * @enhanceable @@ -15,8 +15,8 @@ var jspb = require('google-protobuf'); var goog = jspb; var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); -goog.exportSymbol('proto.teleport.terminal.v1.AuthProvider', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.AuthSettings', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.AuthProvider', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.AuthSettings', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -27,16 +27,16 @@ goog.exportSymbol('proto.teleport.terminal.v1.AuthSettings', null, global); * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.AuthSettings = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.AuthSettings.repeatedFields_, null); +proto.teleport.lib.teleterm.v1.AuthSettings = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.lib.teleterm.v1.AuthSettings.repeatedFields_, null); }; -goog.inherits(proto.teleport.terminal.v1.AuthSettings, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.AuthSettings, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.AuthSettings.displayName = 'proto.teleport.terminal.v1.AuthSettings'; + proto.teleport.lib.teleterm.v1.AuthSettings.displayName = 'proto.teleport.lib.teleterm.v1.AuthSettings'; } /** * Generated by JsPbCodeGenerator. @@ -48,16 +48,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.AuthProvider = function(opt_data) { +proto.teleport.lib.teleterm.v1.AuthProvider = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.AuthProvider, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.AuthProvider, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.AuthProvider.displayName = 'proto.teleport.terminal.v1.AuthProvider'; + proto.teleport.lib.teleterm.v1.AuthProvider.displayName = 'proto.teleport.lib.teleterm.v1.AuthProvider'; } /** @@ -65,7 +65,7 @@ if (goog.DEBUG && !COMPILED) { * @private {!Array} * @const */ -proto.teleport.terminal.v1.AuthSettings.repeatedFields_ = [4]; +proto.teleport.lib.teleterm.v1.AuthSettings.repeatedFields_ = [4]; @@ -82,8 +82,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.AuthSettings.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.AuthSettings.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.AuthSettings.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.AuthSettings.toObject(opt_includeInstance, this); }; @@ -92,17 +92,17 @@ proto.teleport.terminal.v1.AuthSettings.prototype.toObject = function(opt_includ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.AuthSettings} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.AuthSettings} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.AuthSettings.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.AuthSettings.toObject = function(includeInstance, msg) { var f, obj = { localAuthEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), secondFactor: jspb.Message.getFieldWithDefault(msg, 2, ""), preferredMfa: jspb.Message.getFieldWithDefault(msg, 3, ""), authProvidersList: jspb.Message.toObjectList(msg.getAuthProvidersList(), - proto.teleport.terminal.v1.AuthProvider.toObject, includeInstance), + proto.teleport.lib.teleterm.v1.AuthProvider.toObject, includeInstance), hasMessageOfTheDay: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), authType: jspb.Message.getFieldWithDefault(msg, 6, ""), allowPasswordless: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), @@ -120,23 +120,23 @@ proto.teleport.terminal.v1.AuthSettings.toObject = function(includeInstance, msg /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.AuthSettings} + * @return {!proto.teleport.lib.teleterm.v1.AuthSettings} */ -proto.teleport.terminal.v1.AuthSettings.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.AuthSettings.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.AuthSettings; - return proto.teleport.terminal.v1.AuthSettings.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.AuthSettings; + return proto.teleport.lib.teleterm.v1.AuthSettings.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.AuthSettings} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.AuthSettings} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.AuthSettings} + * @return {!proto.teleport.lib.teleterm.v1.AuthSettings} */ -proto.teleport.terminal.v1.AuthSettings.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.AuthSettings.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -156,8 +156,8 @@ proto.teleport.terminal.v1.AuthSettings.deserializeBinaryFromReader = function(m msg.setPreferredMfa(value); break; case 4: - var value = new proto.teleport.terminal.v1.AuthProvider; - reader.readMessage(value,proto.teleport.terminal.v1.AuthProvider.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.AuthProvider; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.AuthProvider.deserializeBinaryFromReader); msg.addAuthProviders(value); break; case 5: @@ -189,9 +189,9 @@ proto.teleport.terminal.v1.AuthSettings.deserializeBinaryFromReader = function(m * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.AuthSettings.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.AuthSettings.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.AuthSettings.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.AuthSettings.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -199,11 +199,11 @@ proto.teleport.terminal.v1.AuthSettings.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.AuthSettings} message + * @param {!proto.teleport.lib.teleterm.v1.AuthSettings} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.AuthSettings.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.AuthSettings.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getLocalAuthEnabled(); if (f) { @@ -231,7 +231,7 @@ proto.teleport.terminal.v1.AuthSettings.serializeBinaryToWriter = function(messa writer.writeRepeatedMessage( 4, f, - proto.teleport.terminal.v1.AuthProvider.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.AuthProvider.serializeBinaryToWriter ); } f = message.getHasMessageOfTheDay(); @@ -269,16 +269,16 @@ proto.teleport.terminal.v1.AuthSettings.serializeBinaryToWriter = function(messa * optional bool local_auth_enabled = 1; * @return {boolean} */ -proto.teleport.terminal.v1.AuthSettings.prototype.getLocalAuthEnabled = function() { +proto.teleport.lib.teleterm.v1.AuthSettings.prototype.getLocalAuthEnabled = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; /** * @param {boolean} value - * @return {!proto.teleport.terminal.v1.AuthSettings} returns this + * @return {!proto.teleport.lib.teleterm.v1.AuthSettings} returns this */ -proto.teleport.terminal.v1.AuthSettings.prototype.setLocalAuthEnabled = function(value) { +proto.teleport.lib.teleterm.v1.AuthSettings.prototype.setLocalAuthEnabled = function(value) { return jspb.Message.setProto3BooleanField(this, 1, value); }; @@ -287,16 +287,16 @@ proto.teleport.terminal.v1.AuthSettings.prototype.setLocalAuthEnabled = function * optional string second_factor = 2; * @return {string} */ -proto.teleport.terminal.v1.AuthSettings.prototype.getSecondFactor = function() { +proto.teleport.lib.teleterm.v1.AuthSettings.prototype.getSecondFactor = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.AuthSettings} returns this + * @return {!proto.teleport.lib.teleterm.v1.AuthSettings} returns this */ -proto.teleport.terminal.v1.AuthSettings.prototype.setSecondFactor = function(value) { +proto.teleport.lib.teleterm.v1.AuthSettings.prototype.setSecondFactor = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -305,54 +305,54 @@ proto.teleport.terminal.v1.AuthSettings.prototype.setSecondFactor = function(val * optional string preferred_mfa = 3; * @return {string} */ -proto.teleport.terminal.v1.AuthSettings.prototype.getPreferredMfa = function() { +proto.teleport.lib.teleterm.v1.AuthSettings.prototype.getPreferredMfa = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.AuthSettings} returns this + * @return {!proto.teleport.lib.teleterm.v1.AuthSettings} returns this */ -proto.teleport.terminal.v1.AuthSettings.prototype.setPreferredMfa = function(value) { +proto.teleport.lib.teleterm.v1.AuthSettings.prototype.setPreferredMfa = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * repeated AuthProvider auth_providers = 4; - * @return {!Array} + * @return {!Array} */ -proto.teleport.terminal.v1.AuthSettings.prototype.getAuthProvidersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.teleport.terminal.v1.AuthProvider, 4)); +proto.teleport.lib.teleterm.v1.AuthSettings.prototype.getAuthProvidersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.teleport.lib.teleterm.v1.AuthProvider, 4)); }; /** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.AuthSettings} returns this + * @param {!Array} value + * @return {!proto.teleport.lib.teleterm.v1.AuthSettings} returns this */ -proto.teleport.terminal.v1.AuthSettings.prototype.setAuthProvidersList = function(value) { +proto.teleport.lib.teleterm.v1.AuthSettings.prototype.setAuthProvidersList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 4, value); }; /** - * @param {!proto.teleport.terminal.v1.AuthProvider=} opt_value + * @param {!proto.teleport.lib.teleterm.v1.AuthProvider=} opt_value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.AuthProvider} + * @return {!proto.teleport.lib.teleterm.v1.AuthProvider} */ -proto.teleport.terminal.v1.AuthSettings.prototype.addAuthProviders = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.teleport.terminal.v1.AuthProvider, opt_index); +proto.teleport.lib.teleterm.v1.AuthSettings.prototype.addAuthProviders = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.teleport.lib.teleterm.v1.AuthProvider, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.AuthSettings} returns this + * @return {!proto.teleport.lib.teleterm.v1.AuthSettings} returns this */ -proto.teleport.terminal.v1.AuthSettings.prototype.clearAuthProvidersList = function() { +proto.teleport.lib.teleterm.v1.AuthSettings.prototype.clearAuthProvidersList = function() { return this.setAuthProvidersList([]); }; @@ -361,16 +361,16 @@ proto.teleport.terminal.v1.AuthSettings.prototype.clearAuthProvidersList = funct * optional bool has_message_of_the_day = 5; * @return {boolean} */ -proto.teleport.terminal.v1.AuthSettings.prototype.getHasMessageOfTheDay = function() { +proto.teleport.lib.teleterm.v1.AuthSettings.prototype.getHasMessageOfTheDay = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); }; /** * @param {boolean} value - * @return {!proto.teleport.terminal.v1.AuthSettings} returns this + * @return {!proto.teleport.lib.teleterm.v1.AuthSettings} returns this */ -proto.teleport.terminal.v1.AuthSettings.prototype.setHasMessageOfTheDay = function(value) { +proto.teleport.lib.teleterm.v1.AuthSettings.prototype.setHasMessageOfTheDay = function(value) { return jspb.Message.setProto3BooleanField(this, 5, value); }; @@ -379,16 +379,16 @@ proto.teleport.terminal.v1.AuthSettings.prototype.setHasMessageOfTheDay = functi * optional string auth_type = 6; * @return {string} */ -proto.teleport.terminal.v1.AuthSettings.prototype.getAuthType = function() { +proto.teleport.lib.teleterm.v1.AuthSettings.prototype.getAuthType = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.AuthSettings} returns this + * @return {!proto.teleport.lib.teleterm.v1.AuthSettings} returns this */ -proto.teleport.terminal.v1.AuthSettings.prototype.setAuthType = function(value) { +proto.teleport.lib.teleterm.v1.AuthSettings.prototype.setAuthType = function(value) { return jspb.Message.setProto3StringField(this, 6, value); }; @@ -397,16 +397,16 @@ proto.teleport.terminal.v1.AuthSettings.prototype.setAuthType = function(value) * optional bool allow_passwordless = 7; * @return {boolean} */ -proto.teleport.terminal.v1.AuthSettings.prototype.getAllowPasswordless = function() { +proto.teleport.lib.teleterm.v1.AuthSettings.prototype.getAllowPasswordless = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); }; /** * @param {boolean} value - * @return {!proto.teleport.terminal.v1.AuthSettings} returns this + * @return {!proto.teleport.lib.teleterm.v1.AuthSettings} returns this */ -proto.teleport.terminal.v1.AuthSettings.prototype.setAllowPasswordless = function(value) { +proto.teleport.lib.teleterm.v1.AuthSettings.prototype.setAllowPasswordless = function(value) { return jspb.Message.setProto3BooleanField(this, 7, value); }; @@ -415,16 +415,16 @@ proto.teleport.terminal.v1.AuthSettings.prototype.setAllowPasswordless = functio * optional string local_connector_name = 8; * @return {string} */ -proto.teleport.terminal.v1.AuthSettings.prototype.getLocalConnectorName = function() { +proto.teleport.lib.teleterm.v1.AuthSettings.prototype.getLocalConnectorName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.AuthSettings} returns this + * @return {!proto.teleport.lib.teleterm.v1.AuthSettings} returns this */ -proto.teleport.terminal.v1.AuthSettings.prototype.setLocalConnectorName = function(value) { +proto.teleport.lib.teleterm.v1.AuthSettings.prototype.setLocalConnectorName = function(value) { return jspb.Message.setProto3StringField(this, 8, value); }; @@ -445,8 +445,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.AuthProvider.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.AuthProvider.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.AuthProvider.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.AuthProvider.toObject(opt_includeInstance, this); }; @@ -455,11 +455,11 @@ proto.teleport.terminal.v1.AuthProvider.prototype.toObject = function(opt_includ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.AuthProvider} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.AuthProvider} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.AuthProvider.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.AuthProvider.toObject = function(includeInstance, msg) { var f, obj = { type: jspb.Message.getFieldWithDefault(msg, 1, ""), name: jspb.Message.getFieldWithDefault(msg, 2, ""), @@ -477,23 +477,23 @@ proto.teleport.terminal.v1.AuthProvider.toObject = function(includeInstance, msg /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.AuthProvider} + * @return {!proto.teleport.lib.teleterm.v1.AuthProvider} */ -proto.teleport.terminal.v1.AuthProvider.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.AuthProvider.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.AuthProvider; - return proto.teleport.terminal.v1.AuthProvider.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.AuthProvider; + return proto.teleport.lib.teleterm.v1.AuthProvider.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.AuthProvider} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.AuthProvider} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.AuthProvider} + * @return {!proto.teleport.lib.teleterm.v1.AuthProvider} */ -proto.teleport.terminal.v1.AuthProvider.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.AuthProvider.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -525,9 +525,9 @@ proto.teleport.terminal.v1.AuthProvider.deserializeBinaryFromReader = function(m * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.AuthProvider.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.AuthProvider.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.AuthProvider.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.AuthProvider.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -535,11 +535,11 @@ proto.teleport.terminal.v1.AuthProvider.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.AuthProvider} message + * @param {!proto.teleport.lib.teleterm.v1.AuthProvider} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.AuthProvider.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.AuthProvider.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getType(); if (f.length > 0) { @@ -569,16 +569,16 @@ proto.teleport.terminal.v1.AuthProvider.serializeBinaryToWriter = function(messa * optional string type = 1; * @return {string} */ -proto.teleport.terminal.v1.AuthProvider.prototype.getType = function() { +proto.teleport.lib.teleterm.v1.AuthProvider.prototype.getType = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.AuthProvider} returns this + * @return {!proto.teleport.lib.teleterm.v1.AuthProvider} returns this */ -proto.teleport.terminal.v1.AuthProvider.prototype.setType = function(value) { +proto.teleport.lib.teleterm.v1.AuthProvider.prototype.setType = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -587,16 +587,16 @@ proto.teleport.terminal.v1.AuthProvider.prototype.setType = function(value) { * optional string name = 2; * @return {string} */ -proto.teleport.terminal.v1.AuthProvider.prototype.getName = function() { +proto.teleport.lib.teleterm.v1.AuthProvider.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.AuthProvider} returns this + * @return {!proto.teleport.lib.teleterm.v1.AuthProvider} returns this */ -proto.teleport.terminal.v1.AuthProvider.prototype.setName = function(value) { +proto.teleport.lib.teleterm.v1.AuthProvider.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -605,18 +605,18 @@ proto.teleport.terminal.v1.AuthProvider.prototype.setName = function(value) { * optional string display_name = 3; * @return {string} */ -proto.teleport.terminal.v1.AuthProvider.prototype.getDisplayName = function() { +proto.teleport.lib.teleterm.v1.AuthProvider.prototype.getDisplayName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.AuthProvider} returns this + * @return {!proto.teleport.lib.teleterm.v1.AuthProvider} returns this */ -proto.teleport.terminal.v1.AuthProvider.prototype.setDisplayName = function(value) { +proto.teleport.lib.teleterm.v1.AuthProvider.prototype.setDisplayName = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; -goog.object.extend(exports, proto.teleport.terminal.v1); +goog.object.extend(exports, proto.teleport.lib.teleterm.v1); diff --git a/lib/teleterm/api/protogen/js/v1/cluster_grpc_pb.js b/gen/proto/js/teleport/lib/teleterm/v1/cluster_grpc_pb.js similarity index 100% rename from lib/teleterm/api/protogen/js/v1/cluster_grpc_pb.js rename to gen/proto/js/teleport/lib/teleterm/v1/cluster_grpc_pb.js diff --git a/lib/teleterm/api/protogen/js/v1/cluster_pb.d.ts b/gen/proto/js/teleport/lib/teleterm/v1/cluster_pb.d.ts similarity index 99% rename from lib/teleterm/api/protogen/js/v1/cluster_pb.d.ts rename to gen/proto/js/teleport/lib/teleterm/v1/cluster_pb.d.ts index 881f1e4120fcd..85b6adc668ccf 100644 --- a/lib/teleterm/api/protogen/js/v1/cluster_pb.d.ts +++ b/gen/proto/js/teleport/lib/teleterm/v1/cluster_pb.d.ts @@ -1,5 +1,5 @@ -// package: teleport.terminal.v1 -// file: v1/cluster.proto +// package: teleport.lib.teleterm.v1 +// file: teleport/lib/teleterm/v1/cluster.proto /* tslint:disable */ /* eslint-disable */ diff --git a/lib/teleterm/api/protogen/js/v1/cluster_pb.js b/gen/proto/js/teleport/lib/teleterm/v1/cluster_pb.js similarity index 54% rename from lib/teleterm/api/protogen/js/v1/cluster_pb.js rename to gen/proto/js/teleport/lib/teleterm/v1/cluster_pb.js index 5bb2b31171eb8..2bfabf8c1d228 100644 --- a/lib/teleterm/api/protogen/js/v1/cluster_pb.js +++ b/gen/proto/js/teleport/lib/teleterm/v1/cluster_pb.js @@ -1,4 +1,4 @@ -// source: v1/cluster.proto +// source: teleport/lib/teleterm/v1/cluster.proto /** * @fileoverview * @enhanceable @@ -15,11 +15,11 @@ var jspb = require('google-protobuf'); var goog = jspb; var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); -goog.exportSymbol('proto.teleport.terminal.v1.ACL', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.Cluster', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.Features', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.LoggedInUser', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ResourceAccess', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.ACL', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.Cluster', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.Features', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.LoggedInUser', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.ResourceAccess', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -30,16 +30,16 @@ goog.exportSymbol('proto.teleport.terminal.v1.ResourceAccess', null, global); * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.Cluster = function(opt_data) { +proto.teleport.lib.teleterm.v1.Cluster = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.Cluster, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.Cluster, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.Cluster.displayName = 'proto.teleport.terminal.v1.Cluster'; + proto.teleport.lib.teleterm.v1.Cluster.displayName = 'proto.teleport.lib.teleterm.v1.Cluster'; } /** * Generated by JsPbCodeGenerator. @@ -51,16 +51,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.LoggedInUser = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.LoggedInUser.repeatedFields_, null); +proto.teleport.lib.teleterm.v1.LoggedInUser = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.lib.teleterm.v1.LoggedInUser.repeatedFields_, null); }; -goog.inherits(proto.teleport.terminal.v1.LoggedInUser, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.LoggedInUser, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.LoggedInUser.displayName = 'proto.teleport.terminal.v1.LoggedInUser'; + proto.teleport.lib.teleterm.v1.LoggedInUser.displayName = 'proto.teleport.lib.teleterm.v1.LoggedInUser'; } /** * Generated by JsPbCodeGenerator. @@ -72,16 +72,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.ACL = function(opt_data) { +proto.teleport.lib.teleterm.v1.ACL = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.ACL, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.ACL, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.ACL.displayName = 'proto.teleport.terminal.v1.ACL'; + proto.teleport.lib.teleterm.v1.ACL.displayName = 'proto.teleport.lib.teleterm.v1.ACL'; } /** * Generated by JsPbCodeGenerator. @@ -93,16 +93,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.ResourceAccess = function(opt_data) { +proto.teleport.lib.teleterm.v1.ResourceAccess = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.ResourceAccess, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.ResourceAccess, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.ResourceAccess.displayName = 'proto.teleport.terminal.v1.ResourceAccess'; + proto.teleport.lib.teleterm.v1.ResourceAccess.displayName = 'proto.teleport.lib.teleterm.v1.ResourceAccess'; } /** * Generated by JsPbCodeGenerator. @@ -114,16 +114,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.Features = function(opt_data) { +proto.teleport.lib.teleterm.v1.Features = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.Features, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.Features, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.Features.displayName = 'proto.teleport.terminal.v1.Features'; + proto.teleport.lib.teleterm.v1.Features.displayName = 'proto.teleport.lib.teleterm.v1.Features'; } @@ -141,8 +141,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.Cluster.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.Cluster.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.Cluster.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.Cluster.toObject(opt_includeInstance, this); }; @@ -151,19 +151,19 @@ proto.teleport.terminal.v1.Cluster.prototype.toObject = function(opt_includeInst * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.Cluster} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.Cluster} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.Cluster.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.Cluster.toObject = function(includeInstance, msg) { var f, obj = { uri: jspb.Message.getFieldWithDefault(msg, 1, ""), name: jspb.Message.getFieldWithDefault(msg, 2, ""), proxyHost: jspb.Message.getFieldWithDefault(msg, 3, ""), connected: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), leaf: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - loggedInUser: (f = msg.getLoggedInUser()) && proto.teleport.terminal.v1.LoggedInUser.toObject(includeInstance, f), - features: (f = msg.getFeatures()) && proto.teleport.terminal.v1.Features.toObject(includeInstance, f), + loggedInUser: (f = msg.getLoggedInUser()) && proto.teleport.lib.teleterm.v1.LoggedInUser.toObject(includeInstance, f), + features: (f = msg.getFeatures()) && proto.teleport.lib.teleterm.v1.Features.toObject(includeInstance, f), authClusterId: jspb.Message.getFieldWithDefault(msg, 9, "") }; @@ -178,23 +178,23 @@ proto.teleport.terminal.v1.Cluster.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.Cluster} + * @return {!proto.teleport.lib.teleterm.v1.Cluster} */ -proto.teleport.terminal.v1.Cluster.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.Cluster.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.Cluster; - return proto.teleport.terminal.v1.Cluster.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.Cluster; + return proto.teleport.lib.teleterm.v1.Cluster.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.Cluster} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.Cluster} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.Cluster} + * @return {!proto.teleport.lib.teleterm.v1.Cluster} */ -proto.teleport.terminal.v1.Cluster.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.Cluster.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -222,13 +222,13 @@ proto.teleport.terminal.v1.Cluster.deserializeBinaryFromReader = function(msg, r msg.setLeaf(value); break; case 7: - var value = new proto.teleport.terminal.v1.LoggedInUser; - reader.readMessage(value,proto.teleport.terminal.v1.LoggedInUser.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.LoggedInUser; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.LoggedInUser.deserializeBinaryFromReader); msg.setLoggedInUser(value); break; case 8: - var value = new proto.teleport.terminal.v1.Features; - reader.readMessage(value,proto.teleport.terminal.v1.Features.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.Features; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.Features.deserializeBinaryFromReader); msg.setFeatures(value); break; case 9: @@ -248,9 +248,9 @@ proto.teleport.terminal.v1.Cluster.deserializeBinaryFromReader = function(msg, r * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.Cluster.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.Cluster.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.Cluster.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.Cluster.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -258,11 +258,11 @@ proto.teleport.terminal.v1.Cluster.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.Cluster} message + * @param {!proto.teleport.lib.teleterm.v1.Cluster} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.Cluster.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.Cluster.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUri(); if (f.length > 0) { @@ -304,7 +304,7 @@ proto.teleport.terminal.v1.Cluster.serializeBinaryToWriter = function(message, w writer.writeMessage( 7, f, - proto.teleport.terminal.v1.LoggedInUser.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.LoggedInUser.serializeBinaryToWriter ); } f = message.getFeatures(); @@ -312,7 +312,7 @@ proto.teleport.terminal.v1.Cluster.serializeBinaryToWriter = function(message, w writer.writeMessage( 8, f, - proto.teleport.terminal.v1.Features.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.Features.serializeBinaryToWriter ); } f = message.getAuthClusterId(); @@ -329,16 +329,16 @@ proto.teleport.terminal.v1.Cluster.serializeBinaryToWriter = function(message, w * optional string uri = 1; * @return {string} */ -proto.teleport.terminal.v1.Cluster.prototype.getUri = function() { +proto.teleport.lib.teleterm.v1.Cluster.prototype.getUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.Cluster} returns this + * @return {!proto.teleport.lib.teleterm.v1.Cluster} returns this */ -proto.teleport.terminal.v1.Cluster.prototype.setUri = function(value) { +proto.teleport.lib.teleterm.v1.Cluster.prototype.setUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -347,16 +347,16 @@ proto.teleport.terminal.v1.Cluster.prototype.setUri = function(value) { * optional string name = 2; * @return {string} */ -proto.teleport.terminal.v1.Cluster.prototype.getName = function() { +proto.teleport.lib.teleterm.v1.Cluster.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.Cluster} returns this + * @return {!proto.teleport.lib.teleterm.v1.Cluster} returns this */ -proto.teleport.terminal.v1.Cluster.prototype.setName = function(value) { +proto.teleport.lib.teleterm.v1.Cluster.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -365,16 +365,16 @@ proto.teleport.terminal.v1.Cluster.prototype.setName = function(value) { * optional string proxy_host = 3; * @return {string} */ -proto.teleport.terminal.v1.Cluster.prototype.getProxyHost = function() { +proto.teleport.lib.teleterm.v1.Cluster.prototype.getProxyHost = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.Cluster} returns this + * @return {!proto.teleport.lib.teleterm.v1.Cluster} returns this */ -proto.teleport.terminal.v1.Cluster.prototype.setProxyHost = function(value) { +proto.teleport.lib.teleterm.v1.Cluster.prototype.setProxyHost = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; @@ -383,16 +383,16 @@ proto.teleport.terminal.v1.Cluster.prototype.setProxyHost = function(value) { * optional bool connected = 4; * @return {boolean} */ -proto.teleport.terminal.v1.Cluster.prototype.getConnected = function() { +proto.teleport.lib.teleterm.v1.Cluster.prototype.getConnected = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); }; /** * @param {boolean} value - * @return {!proto.teleport.terminal.v1.Cluster} returns this + * @return {!proto.teleport.lib.teleterm.v1.Cluster} returns this */ -proto.teleport.terminal.v1.Cluster.prototype.setConnected = function(value) { +proto.teleport.lib.teleterm.v1.Cluster.prototype.setConnected = function(value) { return jspb.Message.setProto3BooleanField(this, 4, value); }; @@ -401,44 +401,44 @@ proto.teleport.terminal.v1.Cluster.prototype.setConnected = function(value) { * optional bool leaf = 5; * @return {boolean} */ -proto.teleport.terminal.v1.Cluster.prototype.getLeaf = function() { +proto.teleport.lib.teleterm.v1.Cluster.prototype.getLeaf = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); }; /** * @param {boolean} value - * @return {!proto.teleport.terminal.v1.Cluster} returns this + * @return {!proto.teleport.lib.teleterm.v1.Cluster} returns this */ -proto.teleport.terminal.v1.Cluster.prototype.setLeaf = function(value) { +proto.teleport.lib.teleterm.v1.Cluster.prototype.setLeaf = function(value) { return jspb.Message.setProto3BooleanField(this, 5, value); }; /** * optional LoggedInUser logged_in_user = 7; - * @return {?proto.teleport.terminal.v1.LoggedInUser} + * @return {?proto.teleport.lib.teleterm.v1.LoggedInUser} */ -proto.teleport.terminal.v1.Cluster.prototype.getLoggedInUser = function() { - return /** @type{?proto.teleport.terminal.v1.LoggedInUser} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.LoggedInUser, 7)); +proto.teleport.lib.teleterm.v1.Cluster.prototype.getLoggedInUser = function() { + return /** @type{?proto.teleport.lib.teleterm.v1.LoggedInUser} */ ( + jspb.Message.getWrapperField(this, proto.teleport.lib.teleterm.v1.LoggedInUser, 7)); }; /** - * @param {?proto.teleport.terminal.v1.LoggedInUser|undefined} value - * @return {!proto.teleport.terminal.v1.Cluster} returns this + * @param {?proto.teleport.lib.teleterm.v1.LoggedInUser|undefined} value + * @return {!proto.teleport.lib.teleterm.v1.Cluster} returns this */ -proto.teleport.terminal.v1.Cluster.prototype.setLoggedInUser = function(value) { +proto.teleport.lib.teleterm.v1.Cluster.prototype.setLoggedInUser = function(value) { return jspb.Message.setWrapperField(this, 7, value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.Cluster} returns this + * @return {!proto.teleport.lib.teleterm.v1.Cluster} returns this */ -proto.teleport.terminal.v1.Cluster.prototype.clearLoggedInUser = function() { +proto.teleport.lib.teleterm.v1.Cluster.prototype.clearLoggedInUser = function() { return this.setLoggedInUser(undefined); }; @@ -447,35 +447,35 @@ proto.teleport.terminal.v1.Cluster.prototype.clearLoggedInUser = function() { * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.Cluster.prototype.hasLoggedInUser = function() { +proto.teleport.lib.teleterm.v1.Cluster.prototype.hasLoggedInUser = function() { return jspb.Message.getField(this, 7) != null; }; /** * optional Features features = 8; - * @return {?proto.teleport.terminal.v1.Features} + * @return {?proto.teleport.lib.teleterm.v1.Features} */ -proto.teleport.terminal.v1.Cluster.prototype.getFeatures = function() { - return /** @type{?proto.teleport.terminal.v1.Features} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.Features, 8)); +proto.teleport.lib.teleterm.v1.Cluster.prototype.getFeatures = function() { + return /** @type{?proto.teleport.lib.teleterm.v1.Features} */ ( + jspb.Message.getWrapperField(this, proto.teleport.lib.teleterm.v1.Features, 8)); }; /** - * @param {?proto.teleport.terminal.v1.Features|undefined} value - * @return {!proto.teleport.terminal.v1.Cluster} returns this + * @param {?proto.teleport.lib.teleterm.v1.Features|undefined} value + * @return {!proto.teleport.lib.teleterm.v1.Cluster} returns this */ -proto.teleport.terminal.v1.Cluster.prototype.setFeatures = function(value) { +proto.teleport.lib.teleterm.v1.Cluster.prototype.setFeatures = function(value) { return jspb.Message.setWrapperField(this, 8, value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.Cluster} returns this + * @return {!proto.teleport.lib.teleterm.v1.Cluster} returns this */ -proto.teleport.terminal.v1.Cluster.prototype.clearFeatures = function() { +proto.teleport.lib.teleterm.v1.Cluster.prototype.clearFeatures = function() { return this.setFeatures(undefined); }; @@ -484,7 +484,7 @@ proto.teleport.terminal.v1.Cluster.prototype.clearFeatures = function() { * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.Cluster.prototype.hasFeatures = function() { +proto.teleport.lib.teleterm.v1.Cluster.prototype.hasFeatures = function() { return jspb.Message.getField(this, 8) != null; }; @@ -493,16 +493,16 @@ proto.teleport.terminal.v1.Cluster.prototype.hasFeatures = function() { * optional string auth_cluster_id = 9; * @return {string} */ -proto.teleport.terminal.v1.Cluster.prototype.getAuthClusterId = function() { +proto.teleport.lib.teleterm.v1.Cluster.prototype.getAuthClusterId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.Cluster} returns this + * @return {!proto.teleport.lib.teleterm.v1.Cluster} returns this */ -proto.teleport.terminal.v1.Cluster.prototype.setAuthClusterId = function(value) { +proto.teleport.lib.teleterm.v1.Cluster.prototype.setAuthClusterId = function(value) { return jspb.Message.setProto3StringField(this, 9, value); }; @@ -513,7 +513,7 @@ proto.teleport.terminal.v1.Cluster.prototype.setAuthClusterId = function(value) * @private {!Array} * @const */ -proto.teleport.terminal.v1.LoggedInUser.repeatedFields_ = [2,3,5,6,7]; +proto.teleport.lib.teleterm.v1.LoggedInUser.repeatedFields_ = [2,3,5,6,7]; @@ -530,8 +530,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.LoggedInUser.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.LoggedInUser.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.LoggedInUser.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.LoggedInUser.toObject(opt_includeInstance, this); }; @@ -540,16 +540,16 @@ proto.teleport.terminal.v1.LoggedInUser.prototype.toObject = function(opt_includ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.LoggedInUser} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.LoggedInUser} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.LoggedInUser.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.LoggedInUser.toObject = function(includeInstance, msg) { var f, obj = { name: jspb.Message.getFieldWithDefault(msg, 1, ""), rolesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, sshLoginsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, - acl: (f = msg.getAcl()) && proto.teleport.terminal.v1.ACL.toObject(includeInstance, f), + acl: (f = msg.getAcl()) && proto.teleport.lib.teleterm.v1.ACL.toObject(includeInstance, f), activeRequestsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f, suggestedReviewersList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f, requestableRolesList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f @@ -566,23 +566,23 @@ proto.teleport.terminal.v1.LoggedInUser.toObject = function(includeInstance, msg /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.LoggedInUser} + * @return {!proto.teleport.lib.teleterm.v1.LoggedInUser} */ -proto.teleport.terminal.v1.LoggedInUser.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.LoggedInUser.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.LoggedInUser; - return proto.teleport.terminal.v1.LoggedInUser.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.LoggedInUser; + return proto.teleport.lib.teleterm.v1.LoggedInUser.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.LoggedInUser} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.LoggedInUser} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.LoggedInUser} + * @return {!proto.teleport.lib.teleterm.v1.LoggedInUser} */ -proto.teleport.terminal.v1.LoggedInUser.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.LoggedInUser.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -602,8 +602,8 @@ proto.teleport.terminal.v1.LoggedInUser.deserializeBinaryFromReader = function(m msg.addSshLogins(value); break; case 4: - var value = new proto.teleport.terminal.v1.ACL; - reader.readMessage(value,proto.teleport.terminal.v1.ACL.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.ACL; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.ACL.deserializeBinaryFromReader); msg.setAcl(value); break; case 5: @@ -631,9 +631,9 @@ proto.teleport.terminal.v1.LoggedInUser.deserializeBinaryFromReader = function(m * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.LoggedInUser.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.LoggedInUser.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.LoggedInUser.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.LoggedInUser.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -641,11 +641,11 @@ proto.teleport.terminal.v1.LoggedInUser.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.LoggedInUser} message + * @param {!proto.teleport.lib.teleterm.v1.LoggedInUser} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.LoggedInUser.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.LoggedInUser.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getName(); if (f.length > 0) { @@ -673,7 +673,7 @@ proto.teleport.terminal.v1.LoggedInUser.serializeBinaryToWriter = function(messa writer.writeMessage( 4, f, - proto.teleport.terminal.v1.ACL.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.ACL.serializeBinaryToWriter ); } f = message.getActiveRequestsList(); @@ -704,16 +704,16 @@ proto.teleport.terminal.v1.LoggedInUser.serializeBinaryToWriter = function(messa * optional string name = 1; * @return {string} */ -proto.teleport.terminal.v1.LoggedInUser.prototype.getName = function() { +proto.teleport.lib.teleterm.v1.LoggedInUser.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoggedInUser} returns this */ -proto.teleport.terminal.v1.LoggedInUser.prototype.setName = function(value) { +proto.teleport.lib.teleterm.v1.LoggedInUser.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -722,16 +722,16 @@ proto.teleport.terminal.v1.LoggedInUser.prototype.setName = function(value) { * repeated string roles = 2; * @return {!Array} */ -proto.teleport.terminal.v1.LoggedInUser.prototype.getRolesList = function() { +proto.teleport.lib.teleterm.v1.LoggedInUser.prototype.getRolesList = function() { return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** * @param {!Array} value - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoggedInUser} returns this */ -proto.teleport.terminal.v1.LoggedInUser.prototype.setRolesList = function(value) { +proto.teleport.lib.teleterm.v1.LoggedInUser.prototype.setRolesList = function(value) { return jspb.Message.setField(this, 2, value || []); }; @@ -739,18 +739,18 @@ proto.teleport.terminal.v1.LoggedInUser.prototype.setRolesList = function(value) /** * @param {string} value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoggedInUser} returns this */ -proto.teleport.terminal.v1.LoggedInUser.prototype.addRoles = function(value, opt_index) { +proto.teleport.lib.teleterm.v1.LoggedInUser.prototype.addRoles = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoggedInUser} returns this */ -proto.teleport.terminal.v1.LoggedInUser.prototype.clearRolesList = function() { +proto.teleport.lib.teleterm.v1.LoggedInUser.prototype.clearRolesList = function() { return this.setRolesList([]); }; @@ -759,16 +759,16 @@ proto.teleport.terminal.v1.LoggedInUser.prototype.clearRolesList = function() { * repeated string ssh_logins = 3; * @return {!Array} */ -proto.teleport.terminal.v1.LoggedInUser.prototype.getSshLoginsList = function() { +proto.teleport.lib.teleterm.v1.LoggedInUser.prototype.getSshLoginsList = function() { return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); }; /** * @param {!Array} value - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoggedInUser} returns this */ -proto.teleport.terminal.v1.LoggedInUser.prototype.setSshLoginsList = function(value) { +proto.teleport.lib.teleterm.v1.LoggedInUser.prototype.setSshLoginsList = function(value) { return jspb.Message.setField(this, 3, value || []); }; @@ -776,46 +776,46 @@ proto.teleport.terminal.v1.LoggedInUser.prototype.setSshLoginsList = function(va /** * @param {string} value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoggedInUser} returns this */ -proto.teleport.terminal.v1.LoggedInUser.prototype.addSshLogins = function(value, opt_index) { +proto.teleport.lib.teleterm.v1.LoggedInUser.prototype.addSshLogins = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 3, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoggedInUser} returns this */ -proto.teleport.terminal.v1.LoggedInUser.prototype.clearSshLoginsList = function() { +proto.teleport.lib.teleterm.v1.LoggedInUser.prototype.clearSshLoginsList = function() { return this.setSshLoginsList([]); }; /** * optional ACL acl = 4; - * @return {?proto.teleport.terminal.v1.ACL} + * @return {?proto.teleport.lib.teleterm.v1.ACL} */ -proto.teleport.terminal.v1.LoggedInUser.prototype.getAcl = function() { - return /** @type{?proto.teleport.terminal.v1.ACL} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ACL, 4)); +proto.teleport.lib.teleterm.v1.LoggedInUser.prototype.getAcl = function() { + return /** @type{?proto.teleport.lib.teleterm.v1.ACL} */ ( + jspb.Message.getWrapperField(this, proto.teleport.lib.teleterm.v1.ACL, 4)); }; /** - * @param {?proto.teleport.terminal.v1.ACL|undefined} value - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this + * @param {?proto.teleport.lib.teleterm.v1.ACL|undefined} value + * @return {!proto.teleport.lib.teleterm.v1.LoggedInUser} returns this */ -proto.teleport.terminal.v1.LoggedInUser.prototype.setAcl = function(value) { +proto.teleport.lib.teleterm.v1.LoggedInUser.prototype.setAcl = function(value) { return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoggedInUser} returns this */ -proto.teleport.terminal.v1.LoggedInUser.prototype.clearAcl = function() { +proto.teleport.lib.teleterm.v1.LoggedInUser.prototype.clearAcl = function() { return this.setAcl(undefined); }; @@ -824,7 +824,7 @@ proto.teleport.terminal.v1.LoggedInUser.prototype.clearAcl = function() { * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.LoggedInUser.prototype.hasAcl = function() { +proto.teleport.lib.teleterm.v1.LoggedInUser.prototype.hasAcl = function() { return jspb.Message.getField(this, 4) != null; }; @@ -833,16 +833,16 @@ proto.teleport.terminal.v1.LoggedInUser.prototype.hasAcl = function() { * repeated string active_requests = 5; * @return {!Array} */ -proto.teleport.terminal.v1.LoggedInUser.prototype.getActiveRequestsList = function() { +proto.teleport.lib.teleterm.v1.LoggedInUser.prototype.getActiveRequestsList = function() { return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); }; /** * @param {!Array} value - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoggedInUser} returns this */ -proto.teleport.terminal.v1.LoggedInUser.prototype.setActiveRequestsList = function(value) { +proto.teleport.lib.teleterm.v1.LoggedInUser.prototype.setActiveRequestsList = function(value) { return jspb.Message.setField(this, 5, value || []); }; @@ -850,18 +850,18 @@ proto.teleport.terminal.v1.LoggedInUser.prototype.setActiveRequestsList = functi /** * @param {string} value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoggedInUser} returns this */ -proto.teleport.terminal.v1.LoggedInUser.prototype.addActiveRequests = function(value, opt_index) { +proto.teleport.lib.teleterm.v1.LoggedInUser.prototype.addActiveRequests = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 5, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoggedInUser} returns this */ -proto.teleport.terminal.v1.LoggedInUser.prototype.clearActiveRequestsList = function() { +proto.teleport.lib.teleterm.v1.LoggedInUser.prototype.clearActiveRequestsList = function() { return this.setActiveRequestsList([]); }; @@ -870,16 +870,16 @@ proto.teleport.terminal.v1.LoggedInUser.prototype.clearActiveRequestsList = func * repeated string suggested_reviewers = 6; * @return {!Array} */ -proto.teleport.terminal.v1.LoggedInUser.prototype.getSuggestedReviewersList = function() { +proto.teleport.lib.teleterm.v1.LoggedInUser.prototype.getSuggestedReviewersList = function() { return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 6)); }; /** * @param {!Array} value - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoggedInUser} returns this */ -proto.teleport.terminal.v1.LoggedInUser.prototype.setSuggestedReviewersList = function(value) { +proto.teleport.lib.teleterm.v1.LoggedInUser.prototype.setSuggestedReviewersList = function(value) { return jspb.Message.setField(this, 6, value || []); }; @@ -887,18 +887,18 @@ proto.teleport.terminal.v1.LoggedInUser.prototype.setSuggestedReviewersList = fu /** * @param {string} value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoggedInUser} returns this */ -proto.teleport.terminal.v1.LoggedInUser.prototype.addSuggestedReviewers = function(value, opt_index) { +proto.teleport.lib.teleterm.v1.LoggedInUser.prototype.addSuggestedReviewers = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 6, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoggedInUser} returns this */ -proto.teleport.terminal.v1.LoggedInUser.prototype.clearSuggestedReviewersList = function() { +proto.teleport.lib.teleterm.v1.LoggedInUser.prototype.clearSuggestedReviewersList = function() { return this.setSuggestedReviewersList([]); }; @@ -907,16 +907,16 @@ proto.teleport.terminal.v1.LoggedInUser.prototype.clearSuggestedReviewersList = * repeated string requestable_roles = 7; * @return {!Array} */ -proto.teleport.terminal.v1.LoggedInUser.prototype.getRequestableRolesList = function() { +proto.teleport.lib.teleterm.v1.LoggedInUser.prototype.getRequestableRolesList = function() { return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 7)); }; /** * @param {!Array} value - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoggedInUser} returns this */ -proto.teleport.terminal.v1.LoggedInUser.prototype.setRequestableRolesList = function(value) { +proto.teleport.lib.teleterm.v1.LoggedInUser.prototype.setRequestableRolesList = function(value) { return jspb.Message.setField(this, 7, value || []); }; @@ -924,18 +924,18 @@ proto.teleport.terminal.v1.LoggedInUser.prototype.setRequestableRolesList = func /** * @param {string} value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoggedInUser} returns this */ -proto.teleport.terminal.v1.LoggedInUser.prototype.addRequestableRoles = function(value, opt_index) { +proto.teleport.lib.teleterm.v1.LoggedInUser.prototype.addRequestableRoles = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 7, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoggedInUser} returns this */ -proto.teleport.terminal.v1.LoggedInUser.prototype.clearRequestableRolesList = function() { +proto.teleport.lib.teleterm.v1.LoggedInUser.prototype.clearRequestableRolesList = function() { return this.setRequestableRolesList([]); }; @@ -956,8 +956,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.ACL.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ACL.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.ACL.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.ACL.toObject(opt_includeInstance, this); }; @@ -966,24 +966,24 @@ proto.teleport.terminal.v1.ACL.prototype.toObject = function(opt_includeInstance * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ACL} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.ACL} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ACL.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.ACL.toObject = function(includeInstance, msg) { var f, obj = { - sessions: (f = msg.getSessions()) && proto.teleport.terminal.v1.ResourceAccess.toObject(includeInstance, f), - authConnectors: (f = msg.getAuthConnectors()) && proto.teleport.terminal.v1.ResourceAccess.toObject(includeInstance, f), - roles: (f = msg.getRoles()) && proto.teleport.terminal.v1.ResourceAccess.toObject(includeInstance, f), - users: (f = msg.getUsers()) && proto.teleport.terminal.v1.ResourceAccess.toObject(includeInstance, f), - trustedClusters: (f = msg.getTrustedClusters()) && proto.teleport.terminal.v1.ResourceAccess.toObject(includeInstance, f), - events: (f = msg.getEvents()) && proto.teleport.terminal.v1.ResourceAccess.toObject(includeInstance, f), - tokens: (f = msg.getTokens()) && proto.teleport.terminal.v1.ResourceAccess.toObject(includeInstance, f), - servers: (f = msg.getServers()) && proto.teleport.terminal.v1.ResourceAccess.toObject(includeInstance, f), - apps: (f = msg.getApps()) && proto.teleport.terminal.v1.ResourceAccess.toObject(includeInstance, f), - dbs: (f = msg.getDbs()) && proto.teleport.terminal.v1.ResourceAccess.toObject(includeInstance, f), - kubeservers: (f = msg.getKubeservers()) && proto.teleport.terminal.v1.ResourceAccess.toObject(includeInstance, f), - accessRequests: (f = msg.getAccessRequests()) && proto.teleport.terminal.v1.ResourceAccess.toObject(includeInstance, f) + sessions: (f = msg.getSessions()) && proto.teleport.lib.teleterm.v1.ResourceAccess.toObject(includeInstance, f), + authConnectors: (f = msg.getAuthConnectors()) && proto.teleport.lib.teleterm.v1.ResourceAccess.toObject(includeInstance, f), + roles: (f = msg.getRoles()) && proto.teleport.lib.teleterm.v1.ResourceAccess.toObject(includeInstance, f), + users: (f = msg.getUsers()) && proto.teleport.lib.teleterm.v1.ResourceAccess.toObject(includeInstance, f), + trustedClusters: (f = msg.getTrustedClusters()) && proto.teleport.lib.teleterm.v1.ResourceAccess.toObject(includeInstance, f), + events: (f = msg.getEvents()) && proto.teleport.lib.teleterm.v1.ResourceAccess.toObject(includeInstance, f), + tokens: (f = msg.getTokens()) && proto.teleport.lib.teleterm.v1.ResourceAccess.toObject(includeInstance, f), + servers: (f = msg.getServers()) && proto.teleport.lib.teleterm.v1.ResourceAccess.toObject(includeInstance, f), + apps: (f = msg.getApps()) && proto.teleport.lib.teleterm.v1.ResourceAccess.toObject(includeInstance, f), + dbs: (f = msg.getDbs()) && proto.teleport.lib.teleterm.v1.ResourceAccess.toObject(includeInstance, f), + kubeservers: (f = msg.getKubeservers()) && proto.teleport.lib.teleterm.v1.ResourceAccess.toObject(includeInstance, f), + accessRequests: (f = msg.getAccessRequests()) && proto.teleport.lib.teleterm.v1.ResourceAccess.toObject(includeInstance, f) }; if (includeInstance) { @@ -997,23 +997,23 @@ proto.teleport.terminal.v1.ACL.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ACL} + * @return {!proto.teleport.lib.teleterm.v1.ACL} */ -proto.teleport.terminal.v1.ACL.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.ACL.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ACL; - return proto.teleport.terminal.v1.ACL.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.ACL; + return proto.teleport.lib.teleterm.v1.ACL.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ACL} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.ACL} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ACL} + * @return {!proto.teleport.lib.teleterm.v1.ACL} */ -proto.teleport.terminal.v1.ACL.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.ACL.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1021,63 +1021,63 @@ proto.teleport.terminal.v1.ACL.deserializeBinaryFromReader = function(msg, reade var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.teleport.terminal.v1.ResourceAccess; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.ResourceAccess; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.ResourceAccess.deserializeBinaryFromReader); msg.setSessions(value); break; case 2: - var value = new proto.teleport.terminal.v1.ResourceAccess; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.ResourceAccess; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.ResourceAccess.deserializeBinaryFromReader); msg.setAuthConnectors(value); break; case 3: - var value = new proto.teleport.terminal.v1.ResourceAccess; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.ResourceAccess; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.ResourceAccess.deserializeBinaryFromReader); msg.setRoles(value); break; case 4: - var value = new proto.teleport.terminal.v1.ResourceAccess; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.ResourceAccess; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.ResourceAccess.deserializeBinaryFromReader); msg.setUsers(value); break; case 5: - var value = new proto.teleport.terminal.v1.ResourceAccess; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.ResourceAccess; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.ResourceAccess.deserializeBinaryFromReader); msg.setTrustedClusters(value); break; case 6: - var value = new proto.teleport.terminal.v1.ResourceAccess; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.ResourceAccess; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.ResourceAccess.deserializeBinaryFromReader); msg.setEvents(value); break; case 7: - var value = new proto.teleport.terminal.v1.ResourceAccess; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.ResourceAccess; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.ResourceAccess.deserializeBinaryFromReader); msg.setTokens(value); break; case 8: - var value = new proto.teleport.terminal.v1.ResourceAccess; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.ResourceAccess; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.ResourceAccess.deserializeBinaryFromReader); msg.setServers(value); break; case 9: - var value = new proto.teleport.terminal.v1.ResourceAccess; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.ResourceAccess; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.ResourceAccess.deserializeBinaryFromReader); msg.setApps(value); break; case 10: - var value = new proto.teleport.terminal.v1.ResourceAccess; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.ResourceAccess; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.ResourceAccess.deserializeBinaryFromReader); msg.setDbs(value); break; case 11: - var value = new proto.teleport.terminal.v1.ResourceAccess; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.ResourceAccess; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.ResourceAccess.deserializeBinaryFromReader); msg.setKubeservers(value); break; case 12: - var value = new proto.teleport.terminal.v1.ResourceAccess; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.ResourceAccess; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.ResourceAccess.deserializeBinaryFromReader); msg.setAccessRequests(value); break; default: @@ -1093,9 +1093,9 @@ proto.teleport.terminal.v1.ACL.deserializeBinaryFromReader = function(msg, reade * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.ACL.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.ACL.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ACL.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.ACL.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1103,18 +1103,18 @@ proto.teleport.terminal.v1.ACL.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ACL} message + * @param {!proto.teleport.lib.teleterm.v1.ACL} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ACL.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.ACL.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getSessions(); if (f != null) { writer.writeMessage( 1, f, - proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.ResourceAccess.serializeBinaryToWriter ); } f = message.getAuthConnectors(); @@ -1122,7 +1122,7 @@ proto.teleport.terminal.v1.ACL.serializeBinaryToWriter = function(message, write writer.writeMessage( 2, f, - proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.ResourceAccess.serializeBinaryToWriter ); } f = message.getRoles(); @@ -1130,7 +1130,7 @@ proto.teleport.terminal.v1.ACL.serializeBinaryToWriter = function(message, write writer.writeMessage( 3, f, - proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.ResourceAccess.serializeBinaryToWriter ); } f = message.getUsers(); @@ -1138,7 +1138,7 @@ proto.teleport.terminal.v1.ACL.serializeBinaryToWriter = function(message, write writer.writeMessage( 4, f, - proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.ResourceAccess.serializeBinaryToWriter ); } f = message.getTrustedClusters(); @@ -1146,7 +1146,7 @@ proto.teleport.terminal.v1.ACL.serializeBinaryToWriter = function(message, write writer.writeMessage( 5, f, - proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.ResourceAccess.serializeBinaryToWriter ); } f = message.getEvents(); @@ -1154,7 +1154,7 @@ proto.teleport.terminal.v1.ACL.serializeBinaryToWriter = function(message, write writer.writeMessage( 6, f, - proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.ResourceAccess.serializeBinaryToWriter ); } f = message.getTokens(); @@ -1162,7 +1162,7 @@ proto.teleport.terminal.v1.ACL.serializeBinaryToWriter = function(message, write writer.writeMessage( 7, f, - proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.ResourceAccess.serializeBinaryToWriter ); } f = message.getServers(); @@ -1170,7 +1170,7 @@ proto.teleport.terminal.v1.ACL.serializeBinaryToWriter = function(message, write writer.writeMessage( 8, f, - proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.ResourceAccess.serializeBinaryToWriter ); } f = message.getApps(); @@ -1178,7 +1178,7 @@ proto.teleport.terminal.v1.ACL.serializeBinaryToWriter = function(message, write writer.writeMessage( 9, f, - proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.ResourceAccess.serializeBinaryToWriter ); } f = message.getDbs(); @@ -1186,7 +1186,7 @@ proto.teleport.terminal.v1.ACL.serializeBinaryToWriter = function(message, write writer.writeMessage( 10, f, - proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.ResourceAccess.serializeBinaryToWriter ); } f = message.getKubeservers(); @@ -1194,7 +1194,7 @@ proto.teleport.terminal.v1.ACL.serializeBinaryToWriter = function(message, write writer.writeMessage( 11, f, - proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.ResourceAccess.serializeBinaryToWriter ); } f = message.getAccessRequests(); @@ -1202,7 +1202,7 @@ proto.teleport.terminal.v1.ACL.serializeBinaryToWriter = function(message, write writer.writeMessage( 12, f, - proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.ResourceAccess.serializeBinaryToWriter ); } }; @@ -1210,28 +1210,28 @@ proto.teleport.terminal.v1.ACL.serializeBinaryToWriter = function(message, write /** * optional ResourceAccess sessions = 1; - * @return {?proto.teleport.terminal.v1.ResourceAccess} + * @return {?proto.teleport.lib.teleterm.v1.ResourceAccess} */ -proto.teleport.terminal.v1.ACL.prototype.getSessions = function() { - return /** @type{?proto.teleport.terminal.v1.ResourceAccess} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ResourceAccess, 1)); +proto.teleport.lib.teleterm.v1.ACL.prototype.getSessions = function() { + return /** @type{?proto.teleport.lib.teleterm.v1.ResourceAccess} */ ( + jspb.Message.getWrapperField(this, proto.teleport.lib.teleterm.v1.ResourceAccess, 1)); }; /** - * @param {?proto.teleport.terminal.v1.ResourceAccess|undefined} value - * @return {!proto.teleport.terminal.v1.ACL} returns this + * @param {?proto.teleport.lib.teleterm.v1.ResourceAccess|undefined} value + * @return {!proto.teleport.lib.teleterm.v1.ACL} returns this */ -proto.teleport.terminal.v1.ACL.prototype.setSessions = function(value) { +proto.teleport.lib.teleterm.v1.ACL.prototype.setSessions = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ACL} returns this + * @return {!proto.teleport.lib.teleterm.v1.ACL} returns this */ -proto.teleport.terminal.v1.ACL.prototype.clearSessions = function() { +proto.teleport.lib.teleterm.v1.ACL.prototype.clearSessions = function() { return this.setSessions(undefined); }; @@ -1240,35 +1240,35 @@ proto.teleport.terminal.v1.ACL.prototype.clearSessions = function() { * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.ACL.prototype.hasSessions = function() { +proto.teleport.lib.teleterm.v1.ACL.prototype.hasSessions = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional ResourceAccess auth_connectors = 2; - * @return {?proto.teleport.terminal.v1.ResourceAccess} + * @return {?proto.teleport.lib.teleterm.v1.ResourceAccess} */ -proto.teleport.terminal.v1.ACL.prototype.getAuthConnectors = function() { - return /** @type{?proto.teleport.terminal.v1.ResourceAccess} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ResourceAccess, 2)); +proto.teleport.lib.teleterm.v1.ACL.prototype.getAuthConnectors = function() { + return /** @type{?proto.teleport.lib.teleterm.v1.ResourceAccess} */ ( + jspb.Message.getWrapperField(this, proto.teleport.lib.teleterm.v1.ResourceAccess, 2)); }; /** - * @param {?proto.teleport.terminal.v1.ResourceAccess|undefined} value - * @return {!proto.teleport.terminal.v1.ACL} returns this + * @param {?proto.teleport.lib.teleterm.v1.ResourceAccess|undefined} value + * @return {!proto.teleport.lib.teleterm.v1.ACL} returns this */ -proto.teleport.terminal.v1.ACL.prototype.setAuthConnectors = function(value) { +proto.teleport.lib.teleterm.v1.ACL.prototype.setAuthConnectors = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ACL} returns this + * @return {!proto.teleport.lib.teleterm.v1.ACL} returns this */ -proto.teleport.terminal.v1.ACL.prototype.clearAuthConnectors = function() { +proto.teleport.lib.teleterm.v1.ACL.prototype.clearAuthConnectors = function() { return this.setAuthConnectors(undefined); }; @@ -1277,35 +1277,35 @@ proto.teleport.terminal.v1.ACL.prototype.clearAuthConnectors = function() { * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.ACL.prototype.hasAuthConnectors = function() { +proto.teleport.lib.teleterm.v1.ACL.prototype.hasAuthConnectors = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional ResourceAccess roles = 3; - * @return {?proto.teleport.terminal.v1.ResourceAccess} + * @return {?proto.teleport.lib.teleterm.v1.ResourceAccess} */ -proto.teleport.terminal.v1.ACL.prototype.getRoles = function() { - return /** @type{?proto.teleport.terminal.v1.ResourceAccess} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ResourceAccess, 3)); +proto.teleport.lib.teleterm.v1.ACL.prototype.getRoles = function() { + return /** @type{?proto.teleport.lib.teleterm.v1.ResourceAccess} */ ( + jspb.Message.getWrapperField(this, proto.teleport.lib.teleterm.v1.ResourceAccess, 3)); }; /** - * @param {?proto.teleport.terminal.v1.ResourceAccess|undefined} value - * @return {!proto.teleport.terminal.v1.ACL} returns this + * @param {?proto.teleport.lib.teleterm.v1.ResourceAccess|undefined} value + * @return {!proto.teleport.lib.teleterm.v1.ACL} returns this */ -proto.teleport.terminal.v1.ACL.prototype.setRoles = function(value) { +proto.teleport.lib.teleterm.v1.ACL.prototype.setRoles = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ACL} returns this + * @return {!proto.teleport.lib.teleterm.v1.ACL} returns this */ -proto.teleport.terminal.v1.ACL.prototype.clearRoles = function() { +proto.teleport.lib.teleterm.v1.ACL.prototype.clearRoles = function() { return this.setRoles(undefined); }; @@ -1314,35 +1314,35 @@ proto.teleport.terminal.v1.ACL.prototype.clearRoles = function() { * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.ACL.prototype.hasRoles = function() { +proto.teleport.lib.teleterm.v1.ACL.prototype.hasRoles = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional ResourceAccess users = 4; - * @return {?proto.teleport.terminal.v1.ResourceAccess} + * @return {?proto.teleport.lib.teleterm.v1.ResourceAccess} */ -proto.teleport.terminal.v1.ACL.prototype.getUsers = function() { - return /** @type{?proto.teleport.terminal.v1.ResourceAccess} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ResourceAccess, 4)); +proto.teleport.lib.teleterm.v1.ACL.prototype.getUsers = function() { + return /** @type{?proto.teleport.lib.teleterm.v1.ResourceAccess} */ ( + jspb.Message.getWrapperField(this, proto.teleport.lib.teleterm.v1.ResourceAccess, 4)); }; /** - * @param {?proto.teleport.terminal.v1.ResourceAccess|undefined} value - * @return {!proto.teleport.terminal.v1.ACL} returns this + * @param {?proto.teleport.lib.teleterm.v1.ResourceAccess|undefined} value + * @return {!proto.teleport.lib.teleterm.v1.ACL} returns this */ -proto.teleport.terminal.v1.ACL.prototype.setUsers = function(value) { +proto.teleport.lib.teleterm.v1.ACL.prototype.setUsers = function(value) { return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ACL} returns this + * @return {!proto.teleport.lib.teleterm.v1.ACL} returns this */ -proto.teleport.terminal.v1.ACL.prototype.clearUsers = function() { +proto.teleport.lib.teleterm.v1.ACL.prototype.clearUsers = function() { return this.setUsers(undefined); }; @@ -1351,35 +1351,35 @@ proto.teleport.terminal.v1.ACL.prototype.clearUsers = function() { * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.ACL.prototype.hasUsers = function() { +proto.teleport.lib.teleterm.v1.ACL.prototype.hasUsers = function() { return jspb.Message.getField(this, 4) != null; }; /** * optional ResourceAccess trusted_clusters = 5; - * @return {?proto.teleport.terminal.v1.ResourceAccess} + * @return {?proto.teleport.lib.teleterm.v1.ResourceAccess} */ -proto.teleport.terminal.v1.ACL.prototype.getTrustedClusters = function() { - return /** @type{?proto.teleport.terminal.v1.ResourceAccess} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ResourceAccess, 5)); +proto.teleport.lib.teleterm.v1.ACL.prototype.getTrustedClusters = function() { + return /** @type{?proto.teleport.lib.teleterm.v1.ResourceAccess} */ ( + jspb.Message.getWrapperField(this, proto.teleport.lib.teleterm.v1.ResourceAccess, 5)); }; /** - * @param {?proto.teleport.terminal.v1.ResourceAccess|undefined} value - * @return {!proto.teleport.terminal.v1.ACL} returns this + * @param {?proto.teleport.lib.teleterm.v1.ResourceAccess|undefined} value + * @return {!proto.teleport.lib.teleterm.v1.ACL} returns this */ -proto.teleport.terminal.v1.ACL.prototype.setTrustedClusters = function(value) { +proto.teleport.lib.teleterm.v1.ACL.prototype.setTrustedClusters = function(value) { return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ACL} returns this + * @return {!proto.teleport.lib.teleterm.v1.ACL} returns this */ -proto.teleport.terminal.v1.ACL.prototype.clearTrustedClusters = function() { +proto.teleport.lib.teleterm.v1.ACL.prototype.clearTrustedClusters = function() { return this.setTrustedClusters(undefined); }; @@ -1388,35 +1388,35 @@ proto.teleport.terminal.v1.ACL.prototype.clearTrustedClusters = function() { * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.ACL.prototype.hasTrustedClusters = function() { +proto.teleport.lib.teleterm.v1.ACL.prototype.hasTrustedClusters = function() { return jspb.Message.getField(this, 5) != null; }; /** * optional ResourceAccess events = 6; - * @return {?proto.teleport.terminal.v1.ResourceAccess} + * @return {?proto.teleport.lib.teleterm.v1.ResourceAccess} */ -proto.teleport.terminal.v1.ACL.prototype.getEvents = function() { - return /** @type{?proto.teleport.terminal.v1.ResourceAccess} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ResourceAccess, 6)); +proto.teleport.lib.teleterm.v1.ACL.prototype.getEvents = function() { + return /** @type{?proto.teleport.lib.teleterm.v1.ResourceAccess} */ ( + jspb.Message.getWrapperField(this, proto.teleport.lib.teleterm.v1.ResourceAccess, 6)); }; /** - * @param {?proto.teleport.terminal.v1.ResourceAccess|undefined} value - * @return {!proto.teleport.terminal.v1.ACL} returns this + * @param {?proto.teleport.lib.teleterm.v1.ResourceAccess|undefined} value + * @return {!proto.teleport.lib.teleterm.v1.ACL} returns this */ -proto.teleport.terminal.v1.ACL.prototype.setEvents = function(value) { +proto.teleport.lib.teleterm.v1.ACL.prototype.setEvents = function(value) { return jspb.Message.setWrapperField(this, 6, value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ACL} returns this + * @return {!proto.teleport.lib.teleterm.v1.ACL} returns this */ -proto.teleport.terminal.v1.ACL.prototype.clearEvents = function() { +proto.teleport.lib.teleterm.v1.ACL.prototype.clearEvents = function() { return this.setEvents(undefined); }; @@ -1425,35 +1425,35 @@ proto.teleport.terminal.v1.ACL.prototype.clearEvents = function() { * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.ACL.prototype.hasEvents = function() { +proto.teleport.lib.teleterm.v1.ACL.prototype.hasEvents = function() { return jspb.Message.getField(this, 6) != null; }; /** * optional ResourceAccess tokens = 7; - * @return {?proto.teleport.terminal.v1.ResourceAccess} + * @return {?proto.teleport.lib.teleterm.v1.ResourceAccess} */ -proto.teleport.terminal.v1.ACL.prototype.getTokens = function() { - return /** @type{?proto.teleport.terminal.v1.ResourceAccess} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ResourceAccess, 7)); +proto.teleport.lib.teleterm.v1.ACL.prototype.getTokens = function() { + return /** @type{?proto.teleport.lib.teleterm.v1.ResourceAccess} */ ( + jspb.Message.getWrapperField(this, proto.teleport.lib.teleterm.v1.ResourceAccess, 7)); }; /** - * @param {?proto.teleport.terminal.v1.ResourceAccess|undefined} value - * @return {!proto.teleport.terminal.v1.ACL} returns this + * @param {?proto.teleport.lib.teleterm.v1.ResourceAccess|undefined} value + * @return {!proto.teleport.lib.teleterm.v1.ACL} returns this */ -proto.teleport.terminal.v1.ACL.prototype.setTokens = function(value) { +proto.teleport.lib.teleterm.v1.ACL.prototype.setTokens = function(value) { return jspb.Message.setWrapperField(this, 7, value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ACL} returns this + * @return {!proto.teleport.lib.teleterm.v1.ACL} returns this */ -proto.teleport.terminal.v1.ACL.prototype.clearTokens = function() { +proto.teleport.lib.teleterm.v1.ACL.prototype.clearTokens = function() { return this.setTokens(undefined); }; @@ -1462,35 +1462,35 @@ proto.teleport.terminal.v1.ACL.prototype.clearTokens = function() { * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.ACL.prototype.hasTokens = function() { +proto.teleport.lib.teleterm.v1.ACL.prototype.hasTokens = function() { return jspb.Message.getField(this, 7) != null; }; /** * optional ResourceAccess servers = 8; - * @return {?proto.teleport.terminal.v1.ResourceAccess} + * @return {?proto.teleport.lib.teleterm.v1.ResourceAccess} */ -proto.teleport.terminal.v1.ACL.prototype.getServers = function() { - return /** @type{?proto.teleport.terminal.v1.ResourceAccess} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ResourceAccess, 8)); +proto.teleport.lib.teleterm.v1.ACL.prototype.getServers = function() { + return /** @type{?proto.teleport.lib.teleterm.v1.ResourceAccess} */ ( + jspb.Message.getWrapperField(this, proto.teleport.lib.teleterm.v1.ResourceAccess, 8)); }; /** - * @param {?proto.teleport.terminal.v1.ResourceAccess|undefined} value - * @return {!proto.teleport.terminal.v1.ACL} returns this + * @param {?proto.teleport.lib.teleterm.v1.ResourceAccess|undefined} value + * @return {!proto.teleport.lib.teleterm.v1.ACL} returns this */ -proto.teleport.terminal.v1.ACL.prototype.setServers = function(value) { +proto.teleport.lib.teleterm.v1.ACL.prototype.setServers = function(value) { return jspb.Message.setWrapperField(this, 8, value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ACL} returns this + * @return {!proto.teleport.lib.teleterm.v1.ACL} returns this */ -proto.teleport.terminal.v1.ACL.prototype.clearServers = function() { +proto.teleport.lib.teleterm.v1.ACL.prototype.clearServers = function() { return this.setServers(undefined); }; @@ -1499,35 +1499,35 @@ proto.teleport.terminal.v1.ACL.prototype.clearServers = function() { * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.ACL.prototype.hasServers = function() { +proto.teleport.lib.teleterm.v1.ACL.prototype.hasServers = function() { return jspb.Message.getField(this, 8) != null; }; /** * optional ResourceAccess apps = 9; - * @return {?proto.teleport.terminal.v1.ResourceAccess} + * @return {?proto.teleport.lib.teleterm.v1.ResourceAccess} */ -proto.teleport.terminal.v1.ACL.prototype.getApps = function() { - return /** @type{?proto.teleport.terminal.v1.ResourceAccess} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ResourceAccess, 9)); +proto.teleport.lib.teleterm.v1.ACL.prototype.getApps = function() { + return /** @type{?proto.teleport.lib.teleterm.v1.ResourceAccess} */ ( + jspb.Message.getWrapperField(this, proto.teleport.lib.teleterm.v1.ResourceAccess, 9)); }; /** - * @param {?proto.teleport.terminal.v1.ResourceAccess|undefined} value - * @return {!proto.teleport.terminal.v1.ACL} returns this + * @param {?proto.teleport.lib.teleterm.v1.ResourceAccess|undefined} value + * @return {!proto.teleport.lib.teleterm.v1.ACL} returns this */ -proto.teleport.terminal.v1.ACL.prototype.setApps = function(value) { +proto.teleport.lib.teleterm.v1.ACL.prototype.setApps = function(value) { return jspb.Message.setWrapperField(this, 9, value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ACL} returns this + * @return {!proto.teleport.lib.teleterm.v1.ACL} returns this */ -proto.teleport.terminal.v1.ACL.prototype.clearApps = function() { +proto.teleport.lib.teleterm.v1.ACL.prototype.clearApps = function() { return this.setApps(undefined); }; @@ -1536,35 +1536,35 @@ proto.teleport.terminal.v1.ACL.prototype.clearApps = function() { * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.ACL.prototype.hasApps = function() { +proto.teleport.lib.teleterm.v1.ACL.prototype.hasApps = function() { return jspb.Message.getField(this, 9) != null; }; /** * optional ResourceAccess dbs = 10; - * @return {?proto.teleport.terminal.v1.ResourceAccess} + * @return {?proto.teleport.lib.teleterm.v1.ResourceAccess} */ -proto.teleport.terminal.v1.ACL.prototype.getDbs = function() { - return /** @type{?proto.teleport.terminal.v1.ResourceAccess} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ResourceAccess, 10)); +proto.teleport.lib.teleterm.v1.ACL.prototype.getDbs = function() { + return /** @type{?proto.teleport.lib.teleterm.v1.ResourceAccess} */ ( + jspb.Message.getWrapperField(this, proto.teleport.lib.teleterm.v1.ResourceAccess, 10)); }; /** - * @param {?proto.teleport.terminal.v1.ResourceAccess|undefined} value - * @return {!proto.teleport.terminal.v1.ACL} returns this + * @param {?proto.teleport.lib.teleterm.v1.ResourceAccess|undefined} value + * @return {!proto.teleport.lib.teleterm.v1.ACL} returns this */ -proto.teleport.terminal.v1.ACL.prototype.setDbs = function(value) { +proto.teleport.lib.teleterm.v1.ACL.prototype.setDbs = function(value) { return jspb.Message.setWrapperField(this, 10, value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ACL} returns this + * @return {!proto.teleport.lib.teleterm.v1.ACL} returns this */ -proto.teleport.terminal.v1.ACL.prototype.clearDbs = function() { +proto.teleport.lib.teleterm.v1.ACL.prototype.clearDbs = function() { return this.setDbs(undefined); }; @@ -1573,35 +1573,35 @@ proto.teleport.terminal.v1.ACL.prototype.clearDbs = function() { * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.ACL.prototype.hasDbs = function() { +proto.teleport.lib.teleterm.v1.ACL.prototype.hasDbs = function() { return jspb.Message.getField(this, 10) != null; }; /** * optional ResourceAccess kubeservers = 11; - * @return {?proto.teleport.terminal.v1.ResourceAccess} + * @return {?proto.teleport.lib.teleterm.v1.ResourceAccess} */ -proto.teleport.terminal.v1.ACL.prototype.getKubeservers = function() { - return /** @type{?proto.teleport.terminal.v1.ResourceAccess} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ResourceAccess, 11)); +proto.teleport.lib.teleterm.v1.ACL.prototype.getKubeservers = function() { + return /** @type{?proto.teleport.lib.teleterm.v1.ResourceAccess} */ ( + jspb.Message.getWrapperField(this, proto.teleport.lib.teleterm.v1.ResourceAccess, 11)); }; /** - * @param {?proto.teleport.terminal.v1.ResourceAccess|undefined} value - * @return {!proto.teleport.terminal.v1.ACL} returns this + * @param {?proto.teleport.lib.teleterm.v1.ResourceAccess|undefined} value + * @return {!proto.teleport.lib.teleterm.v1.ACL} returns this */ -proto.teleport.terminal.v1.ACL.prototype.setKubeservers = function(value) { +proto.teleport.lib.teleterm.v1.ACL.prototype.setKubeservers = function(value) { return jspb.Message.setWrapperField(this, 11, value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ACL} returns this + * @return {!proto.teleport.lib.teleterm.v1.ACL} returns this */ -proto.teleport.terminal.v1.ACL.prototype.clearKubeservers = function() { +proto.teleport.lib.teleterm.v1.ACL.prototype.clearKubeservers = function() { return this.setKubeservers(undefined); }; @@ -1610,35 +1610,35 @@ proto.teleport.terminal.v1.ACL.prototype.clearKubeservers = function() { * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.ACL.prototype.hasKubeservers = function() { +proto.teleport.lib.teleterm.v1.ACL.prototype.hasKubeservers = function() { return jspb.Message.getField(this, 11) != null; }; /** * optional ResourceAccess access_requests = 12; - * @return {?proto.teleport.terminal.v1.ResourceAccess} + * @return {?proto.teleport.lib.teleterm.v1.ResourceAccess} */ -proto.teleport.terminal.v1.ACL.prototype.getAccessRequests = function() { - return /** @type{?proto.teleport.terminal.v1.ResourceAccess} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ResourceAccess, 12)); +proto.teleport.lib.teleterm.v1.ACL.prototype.getAccessRequests = function() { + return /** @type{?proto.teleport.lib.teleterm.v1.ResourceAccess} */ ( + jspb.Message.getWrapperField(this, proto.teleport.lib.teleterm.v1.ResourceAccess, 12)); }; /** - * @param {?proto.teleport.terminal.v1.ResourceAccess|undefined} value - * @return {!proto.teleport.terminal.v1.ACL} returns this + * @param {?proto.teleport.lib.teleterm.v1.ResourceAccess|undefined} value + * @return {!proto.teleport.lib.teleterm.v1.ACL} returns this */ -proto.teleport.terminal.v1.ACL.prototype.setAccessRequests = function(value) { +proto.teleport.lib.teleterm.v1.ACL.prototype.setAccessRequests = function(value) { return jspb.Message.setWrapperField(this, 12, value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ACL} returns this + * @return {!proto.teleport.lib.teleterm.v1.ACL} returns this */ -proto.teleport.terminal.v1.ACL.prototype.clearAccessRequests = function() { +proto.teleport.lib.teleterm.v1.ACL.prototype.clearAccessRequests = function() { return this.setAccessRequests(undefined); }; @@ -1647,7 +1647,7 @@ proto.teleport.terminal.v1.ACL.prototype.clearAccessRequests = function() { * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.ACL.prototype.hasAccessRequests = function() { +proto.teleport.lib.teleterm.v1.ACL.prototype.hasAccessRequests = function() { return jspb.Message.getField(this, 12) != null; }; @@ -1668,8 +1668,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.ResourceAccess.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ResourceAccess.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.ResourceAccess.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.ResourceAccess.toObject(opt_includeInstance, this); }; @@ -1678,11 +1678,11 @@ proto.teleport.terminal.v1.ResourceAccess.prototype.toObject = function(opt_incl * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ResourceAccess} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.ResourceAccess} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ResourceAccess.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.ResourceAccess.toObject = function(includeInstance, msg) { var f, obj = { list: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), read: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), @@ -1702,23 +1702,23 @@ proto.teleport.terminal.v1.ResourceAccess.toObject = function(includeInstance, m /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ResourceAccess} + * @return {!proto.teleport.lib.teleterm.v1.ResourceAccess} */ -proto.teleport.terminal.v1.ResourceAccess.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.ResourceAccess.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ResourceAccess; - return proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.ResourceAccess; + return proto.teleport.lib.teleterm.v1.ResourceAccess.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ResourceAccess} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.ResourceAccess} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ResourceAccess} + * @return {!proto.teleport.lib.teleterm.v1.ResourceAccess} */ -proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.ResourceAccess.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1758,9 +1758,9 @@ proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader = function * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.ResourceAccess.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.ResourceAccess.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.ResourceAccess.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1768,11 +1768,11 @@ proto.teleport.terminal.v1.ResourceAccess.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ResourceAccess} message + * @param {!proto.teleport.lib.teleterm.v1.ResourceAccess} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.ResourceAccess.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getList(); if (f) { @@ -1816,16 +1816,16 @@ proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter = function(mes * optional bool list = 1; * @return {boolean} */ -proto.teleport.terminal.v1.ResourceAccess.prototype.getList = function() { +proto.teleport.lib.teleterm.v1.ResourceAccess.prototype.getList = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; /** * @param {boolean} value - * @return {!proto.teleport.terminal.v1.ResourceAccess} returns this + * @return {!proto.teleport.lib.teleterm.v1.ResourceAccess} returns this */ -proto.teleport.terminal.v1.ResourceAccess.prototype.setList = function(value) { +proto.teleport.lib.teleterm.v1.ResourceAccess.prototype.setList = function(value) { return jspb.Message.setProto3BooleanField(this, 1, value); }; @@ -1834,16 +1834,16 @@ proto.teleport.terminal.v1.ResourceAccess.prototype.setList = function(value) { * optional bool read = 2; * @return {boolean} */ -proto.teleport.terminal.v1.ResourceAccess.prototype.getRead = function() { +proto.teleport.lib.teleterm.v1.ResourceAccess.prototype.getRead = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** * @param {boolean} value - * @return {!proto.teleport.terminal.v1.ResourceAccess} returns this + * @return {!proto.teleport.lib.teleterm.v1.ResourceAccess} returns this */ -proto.teleport.terminal.v1.ResourceAccess.prototype.setRead = function(value) { +proto.teleport.lib.teleterm.v1.ResourceAccess.prototype.setRead = function(value) { return jspb.Message.setProto3BooleanField(this, 2, value); }; @@ -1852,16 +1852,16 @@ proto.teleport.terminal.v1.ResourceAccess.prototype.setRead = function(value) { * optional bool edit = 3; * @return {boolean} */ -proto.teleport.terminal.v1.ResourceAccess.prototype.getEdit = function() { +proto.teleport.lib.teleterm.v1.ResourceAccess.prototype.getEdit = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; /** * @param {boolean} value - * @return {!proto.teleport.terminal.v1.ResourceAccess} returns this + * @return {!proto.teleport.lib.teleterm.v1.ResourceAccess} returns this */ -proto.teleport.terminal.v1.ResourceAccess.prototype.setEdit = function(value) { +proto.teleport.lib.teleterm.v1.ResourceAccess.prototype.setEdit = function(value) { return jspb.Message.setProto3BooleanField(this, 3, value); }; @@ -1870,16 +1870,16 @@ proto.teleport.terminal.v1.ResourceAccess.prototype.setEdit = function(value) { * optional bool create = 4; * @return {boolean} */ -proto.teleport.terminal.v1.ResourceAccess.prototype.getCreate = function() { +proto.teleport.lib.teleterm.v1.ResourceAccess.prototype.getCreate = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); }; /** * @param {boolean} value - * @return {!proto.teleport.terminal.v1.ResourceAccess} returns this + * @return {!proto.teleport.lib.teleterm.v1.ResourceAccess} returns this */ -proto.teleport.terminal.v1.ResourceAccess.prototype.setCreate = function(value) { +proto.teleport.lib.teleterm.v1.ResourceAccess.prototype.setCreate = function(value) { return jspb.Message.setProto3BooleanField(this, 4, value); }; @@ -1888,16 +1888,16 @@ proto.teleport.terminal.v1.ResourceAccess.prototype.setCreate = function(value) * optional bool delete = 5; * @return {boolean} */ -proto.teleport.terminal.v1.ResourceAccess.prototype.getDelete = function() { +proto.teleport.lib.teleterm.v1.ResourceAccess.prototype.getDelete = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); }; /** * @param {boolean} value - * @return {!proto.teleport.terminal.v1.ResourceAccess} returns this + * @return {!proto.teleport.lib.teleterm.v1.ResourceAccess} returns this */ -proto.teleport.terminal.v1.ResourceAccess.prototype.setDelete = function(value) { +proto.teleport.lib.teleterm.v1.ResourceAccess.prototype.setDelete = function(value) { return jspb.Message.setProto3BooleanField(this, 5, value); }; @@ -1918,8 +1918,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.Features.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.Features.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.Features.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.Features.toObject(opt_includeInstance, this); }; @@ -1928,11 +1928,11 @@ proto.teleport.terminal.v1.Features.prototype.toObject = function(opt_includeIns * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.Features} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.Features} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.Features.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.Features.toObject = function(includeInstance, msg) { var f, obj = { advancedAccessWorkflows: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) }; @@ -1948,23 +1948,23 @@ proto.teleport.terminal.v1.Features.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.Features} + * @return {!proto.teleport.lib.teleterm.v1.Features} */ -proto.teleport.terminal.v1.Features.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.Features.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.Features; - return proto.teleport.terminal.v1.Features.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.Features; + return proto.teleport.lib.teleterm.v1.Features.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.Features} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.Features} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.Features} + * @return {!proto.teleport.lib.teleterm.v1.Features} */ -proto.teleport.terminal.v1.Features.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.Features.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1988,9 +1988,9 @@ proto.teleport.terminal.v1.Features.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.Features.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.Features.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.Features.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.Features.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1998,11 +1998,11 @@ proto.teleport.terminal.v1.Features.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.Features} message + * @param {!proto.teleport.lib.teleterm.v1.Features} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.Features.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.Features.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getAdvancedAccessWorkflows(); if (f) { @@ -2018,18 +2018,18 @@ proto.teleport.terminal.v1.Features.serializeBinaryToWriter = function(message, * optional bool advanced_access_workflows = 1; * @return {boolean} */ -proto.teleport.terminal.v1.Features.prototype.getAdvancedAccessWorkflows = function() { +proto.teleport.lib.teleterm.v1.Features.prototype.getAdvancedAccessWorkflows = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; /** * @param {boolean} value - * @return {!proto.teleport.terminal.v1.Features} returns this + * @return {!proto.teleport.lib.teleterm.v1.Features} returns this */ -proto.teleport.terminal.v1.Features.prototype.setAdvancedAccessWorkflows = function(value) { +proto.teleport.lib.teleterm.v1.Features.prototype.setAdvancedAccessWorkflows = function(value) { return jspb.Message.setProto3BooleanField(this, 1, value); }; -goog.object.extend(exports, proto.teleport.terminal.v1); +goog.object.extend(exports, proto.teleport.lib.teleterm.v1); diff --git a/lib/teleterm/api/protogen/js/v1/database_grpc_pb.js b/gen/proto/js/teleport/lib/teleterm/v1/database_grpc_pb.js similarity index 100% rename from lib/teleterm/api/protogen/js/v1/database_grpc_pb.js rename to gen/proto/js/teleport/lib/teleterm/v1/database_grpc_pb.js diff --git a/lib/teleterm/api/protogen/js/v1/database_pb.d.ts b/gen/proto/js/teleport/lib/teleterm/v1/database_pb.d.ts similarity index 72% rename from lib/teleterm/api/protogen/js/v1/database_pb.d.ts rename to gen/proto/js/teleport/lib/teleterm/v1/database_pb.d.ts index 63b5f81dfa365..1449f212367a0 100644 --- a/lib/teleterm/api/protogen/js/v1/database_pb.d.ts +++ b/gen/proto/js/teleport/lib/teleterm/v1/database_pb.d.ts @@ -1,11 +1,11 @@ -// package: teleport.terminal.v1 -// file: v1/database.proto +// package: teleport.lib.teleterm.v1 +// file: teleport/lib/teleterm/v1/database.proto /* tslint:disable */ /* eslint-disable */ import * as jspb from "google-protobuf"; -import * as v1_label_pb from "../v1/label_pb"; +import * as teleport_lib_teleterm_v1_label_pb from "../../../../teleport/lib/teleterm/v1/label_pb"; export class Database extends jspb.Message { getUri(): string; @@ -30,9 +30,9 @@ export class Database extends jspb.Message { setAddr(value: string): Database; clearLabelsList(): void; - getLabelsList(): Array; - setLabelsList(value: Array): Database; - addLabels(value?: v1_label_pb.Label, index?: number): v1_label_pb.Label; + getLabelsList(): Array; + setLabelsList(value: Array): Database; + addLabels(value?: teleport_lib_teleterm_v1_label_pb.Label, index?: number): teleport_lib_teleterm_v1_label_pb.Label; serializeBinary(): Uint8Array; @@ -54,6 +54,6 @@ export namespace Database { type: string, hostname: string, addr: string, - labelsList: Array, + labelsList: Array, } } diff --git a/web/packages/teleterm/src/services/tshd/v1/database_pb.js b/gen/proto/js/teleport/lib/teleterm/v1/database_pb.js similarity index 61% rename from web/packages/teleterm/src/services/tshd/v1/database_pb.js rename to gen/proto/js/teleport/lib/teleterm/v1/database_pb.js index 8848814cb7625..1e1d48e2cf705 100644 --- a/web/packages/teleterm/src/services/tshd/v1/database_pb.js +++ b/gen/proto/js/teleport/lib/teleterm/v1/database_pb.js @@ -1,4 +1,4 @@ -// source: v1/database.proto +// source: teleport/lib/teleterm/v1/database.proto /** * @fileoverview * @enhanceable @@ -15,9 +15,9 @@ var jspb = require('google-protobuf'); var goog = jspb; var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); -var v1_label_pb = require('../v1/label_pb.js'); -goog.object.extend(proto, v1_label_pb); -goog.exportSymbol('proto.teleport.terminal.v1.Database', null, global); +var teleport_lib_teleterm_v1_label_pb = require('../../../../teleport/lib/teleterm/v1/label_pb.js'); +goog.object.extend(proto, teleport_lib_teleterm_v1_label_pb); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.Database', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -28,16 +28,16 @@ goog.exportSymbol('proto.teleport.terminal.v1.Database', null, global); * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.Database = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.Database.repeatedFields_, null); +proto.teleport.lib.teleterm.v1.Database = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.lib.teleterm.v1.Database.repeatedFields_, null); }; -goog.inherits(proto.teleport.terminal.v1.Database, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.Database, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.Database.displayName = 'proto.teleport.terminal.v1.Database'; + proto.teleport.lib.teleterm.v1.Database.displayName = 'proto.teleport.lib.teleterm.v1.Database'; } /** @@ -45,7 +45,7 @@ if (goog.DEBUG && !COMPILED) { * @private {!Array} * @const */ -proto.teleport.terminal.v1.Database.repeatedFields_ = [8]; +proto.teleport.lib.teleterm.v1.Database.repeatedFields_ = [8]; @@ -62,8 +62,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.Database.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.Database.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.Database.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.Database.toObject(opt_includeInstance, this); }; @@ -72,11 +72,11 @@ proto.teleport.terminal.v1.Database.prototype.toObject = function(opt_includeIns * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.Database} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.Database} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.Database.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.Database.toObject = function(includeInstance, msg) { var f, obj = { uri: jspb.Message.getFieldWithDefault(msg, 1, ""), name: jspb.Message.getFieldWithDefault(msg, 2, ""), @@ -86,7 +86,7 @@ proto.teleport.terminal.v1.Database.toObject = function(includeInstance, msg) { hostname: jspb.Message.getFieldWithDefault(msg, 6, ""), addr: jspb.Message.getFieldWithDefault(msg, 7, ""), labelsList: jspb.Message.toObjectList(msg.getLabelsList(), - v1_label_pb.Label.toObject, includeInstance) + teleport_lib_teleterm_v1_label_pb.Label.toObject, includeInstance) }; if (includeInstance) { @@ -100,23 +100,23 @@ proto.teleport.terminal.v1.Database.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.Database} + * @return {!proto.teleport.lib.teleterm.v1.Database} */ -proto.teleport.terminal.v1.Database.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.Database.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.Database; - return proto.teleport.terminal.v1.Database.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.Database; + return proto.teleport.lib.teleterm.v1.Database.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.Database} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.Database} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.Database} + * @return {!proto.teleport.lib.teleterm.v1.Database} */ -proto.teleport.terminal.v1.Database.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.Database.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -152,8 +152,8 @@ proto.teleport.terminal.v1.Database.deserializeBinaryFromReader = function(msg, msg.setAddr(value); break; case 8: - var value = new v1_label_pb.Label; - reader.readMessage(value,v1_label_pb.Label.deserializeBinaryFromReader); + var value = new teleport_lib_teleterm_v1_label_pb.Label; + reader.readMessage(value,teleport_lib_teleterm_v1_label_pb.Label.deserializeBinaryFromReader); msg.addLabels(value); break; default: @@ -169,9 +169,9 @@ proto.teleport.terminal.v1.Database.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.Database.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.Database.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.Database.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.Database.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -179,11 +179,11 @@ proto.teleport.terminal.v1.Database.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.Database} message + * @param {!proto.teleport.lib.teleterm.v1.Database} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.Database.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.Database.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUri(); if (f.length > 0) { @@ -239,7 +239,7 @@ proto.teleport.terminal.v1.Database.serializeBinaryToWriter = function(message, writer.writeRepeatedMessage( 8, f, - v1_label_pb.Label.serializeBinaryToWriter + teleport_lib_teleterm_v1_label_pb.Label.serializeBinaryToWriter ); } }; @@ -249,16 +249,16 @@ proto.teleport.terminal.v1.Database.serializeBinaryToWriter = function(message, * optional string uri = 1; * @return {string} */ -proto.teleport.terminal.v1.Database.prototype.getUri = function() { +proto.teleport.lib.teleterm.v1.Database.prototype.getUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.Database} returns this + * @return {!proto.teleport.lib.teleterm.v1.Database} returns this */ -proto.teleport.terminal.v1.Database.prototype.setUri = function(value) { +proto.teleport.lib.teleterm.v1.Database.prototype.setUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -267,16 +267,16 @@ proto.teleport.terminal.v1.Database.prototype.setUri = function(value) { * optional string name = 2; * @return {string} */ -proto.teleport.terminal.v1.Database.prototype.getName = function() { +proto.teleport.lib.teleterm.v1.Database.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.Database} returns this + * @return {!proto.teleport.lib.teleterm.v1.Database} returns this */ -proto.teleport.terminal.v1.Database.prototype.setName = function(value) { +proto.teleport.lib.teleterm.v1.Database.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -285,16 +285,16 @@ proto.teleport.terminal.v1.Database.prototype.setName = function(value) { * optional string desc = 3; * @return {string} */ -proto.teleport.terminal.v1.Database.prototype.getDesc = function() { +proto.teleport.lib.teleterm.v1.Database.prototype.getDesc = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.Database} returns this + * @return {!proto.teleport.lib.teleterm.v1.Database} returns this */ -proto.teleport.terminal.v1.Database.prototype.setDesc = function(value) { +proto.teleport.lib.teleterm.v1.Database.prototype.setDesc = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; @@ -303,16 +303,16 @@ proto.teleport.terminal.v1.Database.prototype.setDesc = function(value) { * optional string protocol = 4; * @return {string} */ -proto.teleport.terminal.v1.Database.prototype.getProtocol = function() { +proto.teleport.lib.teleterm.v1.Database.prototype.getProtocol = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.Database} returns this + * @return {!proto.teleport.lib.teleterm.v1.Database} returns this */ -proto.teleport.terminal.v1.Database.prototype.setProtocol = function(value) { +proto.teleport.lib.teleterm.v1.Database.prototype.setProtocol = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; @@ -321,16 +321,16 @@ proto.teleport.terminal.v1.Database.prototype.setProtocol = function(value) { * optional string type = 5; * @return {string} */ -proto.teleport.terminal.v1.Database.prototype.getType = function() { +proto.teleport.lib.teleterm.v1.Database.prototype.getType = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.Database} returns this + * @return {!proto.teleport.lib.teleterm.v1.Database} returns this */ -proto.teleport.terminal.v1.Database.prototype.setType = function(value) { +proto.teleport.lib.teleterm.v1.Database.prototype.setType = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; @@ -339,16 +339,16 @@ proto.teleport.terminal.v1.Database.prototype.setType = function(value) { * optional string hostname = 6; * @return {string} */ -proto.teleport.terminal.v1.Database.prototype.getHostname = function() { +proto.teleport.lib.teleterm.v1.Database.prototype.getHostname = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.Database} returns this + * @return {!proto.teleport.lib.teleterm.v1.Database} returns this */ -proto.teleport.terminal.v1.Database.prototype.setHostname = function(value) { +proto.teleport.lib.teleterm.v1.Database.prototype.setHostname = function(value) { return jspb.Message.setProto3StringField(this, 6, value); }; @@ -357,56 +357,56 @@ proto.teleport.terminal.v1.Database.prototype.setHostname = function(value) { * optional string addr = 7; * @return {string} */ -proto.teleport.terminal.v1.Database.prototype.getAddr = function() { +proto.teleport.lib.teleterm.v1.Database.prototype.getAddr = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.Database} returns this + * @return {!proto.teleport.lib.teleterm.v1.Database} returns this */ -proto.teleport.terminal.v1.Database.prototype.setAddr = function(value) { +proto.teleport.lib.teleterm.v1.Database.prototype.setAddr = function(value) { return jspb.Message.setProto3StringField(this, 7, value); }; /** * repeated Label labels = 8; - * @return {!Array} + * @return {!Array} */ -proto.teleport.terminal.v1.Database.prototype.getLabelsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_label_pb.Label, 8)); +proto.teleport.lib.teleterm.v1.Database.prototype.getLabelsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, teleport_lib_teleterm_v1_label_pb.Label, 8)); }; /** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.Database} returns this + * @param {!Array} value + * @return {!proto.teleport.lib.teleterm.v1.Database} returns this */ -proto.teleport.terminal.v1.Database.prototype.setLabelsList = function(value) { +proto.teleport.lib.teleterm.v1.Database.prototype.setLabelsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 8, value); }; /** - * @param {!proto.teleport.terminal.v1.Label=} opt_value + * @param {!proto.teleport.lib.teleterm.v1.Label=} opt_value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.Label} + * @return {!proto.teleport.lib.teleterm.v1.Label} */ -proto.teleport.terminal.v1.Database.prototype.addLabels = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.teleport.terminal.v1.Label, opt_index); +proto.teleport.lib.teleterm.v1.Database.prototype.addLabels = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.teleport.lib.teleterm.v1.Label, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.Database} returns this + * @return {!proto.teleport.lib.teleterm.v1.Database} returns this */ -proto.teleport.terminal.v1.Database.prototype.clearLabelsList = function() { +proto.teleport.lib.teleterm.v1.Database.prototype.clearLabelsList = function() { return this.setLabelsList([]); }; -goog.object.extend(exports, proto.teleport.terminal.v1); +goog.object.extend(exports, proto.teleport.lib.teleterm.v1); diff --git a/lib/teleterm/api/protogen/js/v1/gateway_grpc_pb.js b/gen/proto/js/teleport/lib/teleterm/v1/gateway_grpc_pb.js similarity index 100% rename from lib/teleterm/api/protogen/js/v1/gateway_grpc_pb.js rename to gen/proto/js/teleport/lib/teleterm/v1/gateway_grpc_pb.js diff --git a/web/packages/teleterm/src/services/tshd/v1/gateway_pb.d.ts b/gen/proto/js/teleport/lib/teleterm/v1/gateway_pb.d.ts similarity index 95% rename from web/packages/teleterm/src/services/tshd/v1/gateway_pb.d.ts rename to gen/proto/js/teleport/lib/teleterm/v1/gateway_pb.d.ts index 0476575eb6d43..5f23a862b2c84 100644 --- a/web/packages/teleterm/src/services/tshd/v1/gateway_pb.d.ts +++ b/gen/proto/js/teleport/lib/teleterm/v1/gateway_pb.d.ts @@ -1,5 +1,5 @@ -// package: teleport.terminal.v1 -// file: v1/gateway.proto +// package: teleport.lib.teleterm.v1 +// file: teleport/lib/teleterm/v1/gateway.proto /* tslint:disable */ /* eslint-disable */ diff --git a/lib/teleterm/api/protogen/js/v1/gateway_pb.js b/gen/proto/js/teleport/lib/teleterm/v1/gateway_pb.js similarity index 68% rename from lib/teleterm/api/protogen/js/v1/gateway_pb.js rename to gen/proto/js/teleport/lib/teleterm/v1/gateway_pb.js index 2d1d042f37490..23b1276794850 100644 --- a/lib/teleterm/api/protogen/js/v1/gateway_pb.js +++ b/gen/proto/js/teleport/lib/teleterm/v1/gateway_pb.js @@ -1,4 +1,4 @@ -// source: v1/gateway.proto +// source: teleport/lib/teleterm/v1/gateway.proto /** * @fileoverview * @enhanceable @@ -15,7 +15,7 @@ var jspb = require('google-protobuf'); var goog = jspb; var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); -goog.exportSymbol('proto.teleport.terminal.v1.Gateway', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.Gateway', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -26,16 +26,16 @@ goog.exportSymbol('proto.teleport.terminal.v1.Gateway', null, global); * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.Gateway = function(opt_data) { +proto.teleport.lib.teleterm.v1.Gateway = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.Gateway, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.Gateway, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.Gateway.displayName = 'proto.teleport.terminal.v1.Gateway'; + proto.teleport.lib.teleterm.v1.Gateway.displayName = 'proto.teleport.lib.teleterm.v1.Gateway'; } @@ -53,8 +53,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.Gateway.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.Gateway.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.Gateway.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.Gateway.toObject(opt_includeInstance, this); }; @@ -63,11 +63,11 @@ proto.teleport.terminal.v1.Gateway.prototype.toObject = function(opt_includeInst * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.Gateway} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.Gateway} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.Gateway.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.Gateway.toObject = function(includeInstance, msg) { var f, obj = { uri: jspb.Message.getFieldWithDefault(msg, 1, ""), targetName: jspb.Message.getFieldWithDefault(msg, 2, ""), @@ -91,23 +91,23 @@ proto.teleport.terminal.v1.Gateway.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.Gateway} + * @return {!proto.teleport.lib.teleterm.v1.Gateway} */ -proto.teleport.terminal.v1.Gateway.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.Gateway.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.Gateway; - return proto.teleport.terminal.v1.Gateway.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.Gateway; + return proto.teleport.lib.teleterm.v1.Gateway.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.Gateway} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.Gateway} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.Gateway} + * @return {!proto.teleport.lib.teleterm.v1.Gateway} */ -proto.teleport.terminal.v1.Gateway.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.Gateway.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -163,9 +163,9 @@ proto.teleport.terminal.v1.Gateway.deserializeBinaryFromReader = function(msg, r * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.Gateway.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.Gateway.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.Gateway.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.Gateway.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -173,11 +173,11 @@ proto.teleport.terminal.v1.Gateway.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.Gateway} message + * @param {!proto.teleport.lib.teleterm.v1.Gateway} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.Gateway.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.Gateway.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUri(); if (f.length > 0) { @@ -249,16 +249,16 @@ proto.teleport.terminal.v1.Gateway.serializeBinaryToWriter = function(message, w * optional string uri = 1; * @return {string} */ -proto.teleport.terminal.v1.Gateway.prototype.getUri = function() { +proto.teleport.lib.teleterm.v1.Gateway.prototype.getUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.Gateway} returns this + * @return {!proto.teleport.lib.teleterm.v1.Gateway} returns this */ -proto.teleport.terminal.v1.Gateway.prototype.setUri = function(value) { +proto.teleport.lib.teleterm.v1.Gateway.prototype.setUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -267,16 +267,16 @@ proto.teleport.terminal.v1.Gateway.prototype.setUri = function(value) { * optional string target_name = 2; * @return {string} */ -proto.teleport.terminal.v1.Gateway.prototype.getTargetName = function() { +proto.teleport.lib.teleterm.v1.Gateway.prototype.getTargetName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.Gateway} returns this + * @return {!proto.teleport.lib.teleterm.v1.Gateway} returns this */ -proto.teleport.terminal.v1.Gateway.prototype.setTargetName = function(value) { +proto.teleport.lib.teleterm.v1.Gateway.prototype.setTargetName = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -285,16 +285,16 @@ proto.teleport.terminal.v1.Gateway.prototype.setTargetName = function(value) { * optional string target_uri = 3; * @return {string} */ -proto.teleport.terminal.v1.Gateway.prototype.getTargetUri = function() { +proto.teleport.lib.teleterm.v1.Gateway.prototype.getTargetUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.Gateway} returns this + * @return {!proto.teleport.lib.teleterm.v1.Gateway} returns this */ -proto.teleport.terminal.v1.Gateway.prototype.setTargetUri = function(value) { +proto.teleport.lib.teleterm.v1.Gateway.prototype.setTargetUri = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; @@ -303,16 +303,16 @@ proto.teleport.terminal.v1.Gateway.prototype.setTargetUri = function(value) { * optional string target_user = 4; * @return {string} */ -proto.teleport.terminal.v1.Gateway.prototype.getTargetUser = function() { +proto.teleport.lib.teleterm.v1.Gateway.prototype.getTargetUser = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.Gateway} returns this + * @return {!proto.teleport.lib.teleterm.v1.Gateway} returns this */ -proto.teleport.terminal.v1.Gateway.prototype.setTargetUser = function(value) { +proto.teleport.lib.teleterm.v1.Gateway.prototype.setTargetUser = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; @@ -321,16 +321,16 @@ proto.teleport.terminal.v1.Gateway.prototype.setTargetUser = function(value) { * optional string local_address = 5; * @return {string} */ -proto.teleport.terminal.v1.Gateway.prototype.getLocalAddress = function() { +proto.teleport.lib.teleterm.v1.Gateway.prototype.getLocalAddress = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.Gateway} returns this + * @return {!proto.teleport.lib.teleterm.v1.Gateway} returns this */ -proto.teleport.terminal.v1.Gateway.prototype.setLocalAddress = function(value) { +proto.teleport.lib.teleterm.v1.Gateway.prototype.setLocalAddress = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; @@ -339,16 +339,16 @@ proto.teleport.terminal.v1.Gateway.prototype.setLocalAddress = function(value) { * optional string local_port = 6; * @return {string} */ -proto.teleport.terminal.v1.Gateway.prototype.getLocalPort = function() { +proto.teleport.lib.teleterm.v1.Gateway.prototype.getLocalPort = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.Gateway} returns this + * @return {!proto.teleport.lib.teleterm.v1.Gateway} returns this */ -proto.teleport.terminal.v1.Gateway.prototype.setLocalPort = function(value) { +proto.teleport.lib.teleterm.v1.Gateway.prototype.setLocalPort = function(value) { return jspb.Message.setProto3StringField(this, 6, value); }; @@ -357,16 +357,16 @@ proto.teleport.terminal.v1.Gateway.prototype.setLocalPort = function(value) { * optional string protocol = 7; * @return {string} */ -proto.teleport.terminal.v1.Gateway.prototype.getProtocol = function() { +proto.teleport.lib.teleterm.v1.Gateway.prototype.getProtocol = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.Gateway} returns this + * @return {!proto.teleport.lib.teleterm.v1.Gateway} returns this */ -proto.teleport.terminal.v1.Gateway.prototype.setProtocol = function(value) { +proto.teleport.lib.teleterm.v1.Gateway.prototype.setProtocol = function(value) { return jspb.Message.setProto3StringField(this, 7, value); }; @@ -375,16 +375,16 @@ proto.teleport.terminal.v1.Gateway.prototype.setProtocol = function(value) { * optional string cli_command = 8; * @return {string} */ -proto.teleport.terminal.v1.Gateway.prototype.getCliCommand = function() { +proto.teleport.lib.teleterm.v1.Gateway.prototype.getCliCommand = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.Gateway} returns this + * @return {!proto.teleport.lib.teleterm.v1.Gateway} returns this */ -proto.teleport.terminal.v1.Gateway.prototype.setCliCommand = function(value) { +proto.teleport.lib.teleterm.v1.Gateway.prototype.setCliCommand = function(value) { return jspb.Message.setProto3StringField(this, 8, value); }; @@ -393,18 +393,18 @@ proto.teleport.terminal.v1.Gateway.prototype.setCliCommand = function(value) { * optional string target_subresource_name = 9; * @return {string} */ -proto.teleport.terminal.v1.Gateway.prototype.getTargetSubresourceName = function() { +proto.teleport.lib.teleterm.v1.Gateway.prototype.getTargetSubresourceName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.Gateway} returns this + * @return {!proto.teleport.lib.teleterm.v1.Gateway} returns this */ -proto.teleport.terminal.v1.Gateway.prototype.setTargetSubresourceName = function(value) { +proto.teleport.lib.teleterm.v1.Gateway.prototype.setTargetSubresourceName = function(value) { return jspb.Message.setProto3StringField(this, 9, value); }; -goog.object.extend(exports, proto.teleport.terminal.v1); +goog.object.extend(exports, proto.teleport.lib.teleterm.v1); diff --git a/lib/teleterm/api/protogen/js/v1/kube_grpc_pb.js b/gen/proto/js/teleport/lib/teleterm/v1/kube_grpc_pb.js similarity index 100% rename from lib/teleterm/api/protogen/js/v1/kube_grpc_pb.js rename to gen/proto/js/teleport/lib/teleterm/v1/kube_grpc_pb.js diff --git a/web/packages/teleterm/src/services/tshd/v1/kube_pb.d.ts b/gen/proto/js/teleport/lib/teleterm/v1/kube_pb.d.ts similarity index 64% rename from web/packages/teleterm/src/services/tshd/v1/kube_pb.d.ts rename to gen/proto/js/teleport/lib/teleterm/v1/kube_pb.d.ts index 10ceee51b3bb9..3e90272f97640 100644 --- a/web/packages/teleterm/src/services/tshd/v1/kube_pb.d.ts +++ b/gen/proto/js/teleport/lib/teleterm/v1/kube_pb.d.ts @@ -1,11 +1,11 @@ -// package: teleport.terminal.v1 -// file: v1/kube.proto +// package: teleport.lib.teleterm.v1 +// file: teleport/lib/teleterm/v1/kube.proto /* tslint:disable */ /* eslint-disable */ import * as jspb from "google-protobuf"; -import * as v1_label_pb from "../v1/label_pb"; +import * as teleport_lib_teleterm_v1_label_pb from "../../../../teleport/lib/teleterm/v1/label_pb"; export class Kube extends jspb.Message { getUri(): string; @@ -15,9 +15,9 @@ export class Kube extends jspb.Message { setName(value: string): Kube; clearLabelsList(): void; - getLabelsList(): Array; - setLabelsList(value: Array): Kube; - addLabels(value?: v1_label_pb.Label, index?: number): v1_label_pb.Label; + getLabelsList(): Array; + setLabelsList(value: Array): Kube; + addLabels(value?: teleport_lib_teleterm_v1_label_pb.Label, index?: number): teleport_lib_teleterm_v1_label_pb.Label; serializeBinary(): Uint8Array; @@ -34,6 +34,6 @@ export namespace Kube { export type AsObject = { uri: string, name: string, - labelsList: Array, + labelsList: Array, } } diff --git a/lib/teleterm/api/protogen/js/v1/kube_pb.js b/gen/proto/js/teleport/lib/teleterm/v1/kube_pb.js similarity index 59% rename from lib/teleterm/api/protogen/js/v1/kube_pb.js rename to gen/proto/js/teleport/lib/teleterm/v1/kube_pb.js index 79fb75e61f5d4..f66d0f64e8ce6 100644 --- a/lib/teleterm/api/protogen/js/v1/kube_pb.js +++ b/gen/proto/js/teleport/lib/teleterm/v1/kube_pb.js @@ -1,4 +1,4 @@ -// source: v1/kube.proto +// source: teleport/lib/teleterm/v1/kube.proto /** * @fileoverview * @enhanceable @@ -15,9 +15,9 @@ var jspb = require('google-protobuf'); var goog = jspb; var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); -var v1_label_pb = require('../v1/label_pb.js'); -goog.object.extend(proto, v1_label_pb); -goog.exportSymbol('proto.teleport.terminal.v1.Kube', null, global); +var teleport_lib_teleterm_v1_label_pb = require('../../../../teleport/lib/teleterm/v1/label_pb.js'); +goog.object.extend(proto, teleport_lib_teleterm_v1_label_pb); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.Kube', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -28,16 +28,16 @@ goog.exportSymbol('proto.teleport.terminal.v1.Kube', null, global); * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.Kube = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.Kube.repeatedFields_, null); +proto.teleport.lib.teleterm.v1.Kube = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.lib.teleterm.v1.Kube.repeatedFields_, null); }; -goog.inherits(proto.teleport.terminal.v1.Kube, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.Kube, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.Kube.displayName = 'proto.teleport.terminal.v1.Kube'; + proto.teleport.lib.teleterm.v1.Kube.displayName = 'proto.teleport.lib.teleterm.v1.Kube'; } /** @@ -45,7 +45,7 @@ if (goog.DEBUG && !COMPILED) { * @private {!Array} * @const */ -proto.teleport.terminal.v1.Kube.repeatedFields_ = [3]; +proto.teleport.lib.teleterm.v1.Kube.repeatedFields_ = [3]; @@ -62,8 +62,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.Kube.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.Kube.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.Kube.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.Kube.toObject(opt_includeInstance, this); }; @@ -72,16 +72,16 @@ proto.teleport.terminal.v1.Kube.prototype.toObject = function(opt_includeInstanc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.Kube} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.Kube} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.Kube.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.Kube.toObject = function(includeInstance, msg) { var f, obj = { uri: jspb.Message.getFieldWithDefault(msg, 1, ""), name: jspb.Message.getFieldWithDefault(msg, 2, ""), labelsList: jspb.Message.toObjectList(msg.getLabelsList(), - v1_label_pb.Label.toObject, includeInstance) + teleport_lib_teleterm_v1_label_pb.Label.toObject, includeInstance) }; if (includeInstance) { @@ -95,23 +95,23 @@ proto.teleport.terminal.v1.Kube.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.Kube} + * @return {!proto.teleport.lib.teleterm.v1.Kube} */ -proto.teleport.terminal.v1.Kube.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.Kube.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.Kube; - return proto.teleport.terminal.v1.Kube.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.Kube; + return proto.teleport.lib.teleterm.v1.Kube.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.Kube} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.Kube} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.Kube} + * @return {!proto.teleport.lib.teleterm.v1.Kube} */ -proto.teleport.terminal.v1.Kube.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.Kube.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -127,8 +127,8 @@ proto.teleport.terminal.v1.Kube.deserializeBinaryFromReader = function(msg, read msg.setName(value); break; case 3: - var value = new v1_label_pb.Label; - reader.readMessage(value,v1_label_pb.Label.deserializeBinaryFromReader); + var value = new teleport_lib_teleterm_v1_label_pb.Label; + reader.readMessage(value,teleport_lib_teleterm_v1_label_pb.Label.deserializeBinaryFromReader); msg.addLabels(value); break; default: @@ -144,9 +144,9 @@ proto.teleport.terminal.v1.Kube.deserializeBinaryFromReader = function(msg, read * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.Kube.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.Kube.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.Kube.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.Kube.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -154,11 +154,11 @@ proto.teleport.terminal.v1.Kube.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.Kube} message + * @param {!proto.teleport.lib.teleterm.v1.Kube} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.Kube.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.Kube.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUri(); if (f.length > 0) { @@ -179,7 +179,7 @@ proto.teleport.terminal.v1.Kube.serializeBinaryToWriter = function(message, writ writer.writeRepeatedMessage( 3, f, - v1_label_pb.Label.serializeBinaryToWriter + teleport_lib_teleterm_v1_label_pb.Label.serializeBinaryToWriter ); } }; @@ -189,16 +189,16 @@ proto.teleport.terminal.v1.Kube.serializeBinaryToWriter = function(message, writ * optional string uri = 1; * @return {string} */ -proto.teleport.terminal.v1.Kube.prototype.getUri = function() { +proto.teleport.lib.teleterm.v1.Kube.prototype.getUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.Kube} returns this + * @return {!proto.teleport.lib.teleterm.v1.Kube} returns this */ -proto.teleport.terminal.v1.Kube.prototype.setUri = function(value) { +proto.teleport.lib.teleterm.v1.Kube.prototype.setUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -207,56 +207,56 @@ proto.teleport.terminal.v1.Kube.prototype.setUri = function(value) { * optional string name = 2; * @return {string} */ -proto.teleport.terminal.v1.Kube.prototype.getName = function() { +proto.teleport.lib.teleterm.v1.Kube.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.Kube} returns this + * @return {!proto.teleport.lib.teleterm.v1.Kube} returns this */ -proto.teleport.terminal.v1.Kube.prototype.setName = function(value) { +proto.teleport.lib.teleterm.v1.Kube.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * repeated Label labels = 3; - * @return {!Array} + * @return {!Array} */ -proto.teleport.terminal.v1.Kube.prototype.getLabelsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_label_pb.Label, 3)); +proto.teleport.lib.teleterm.v1.Kube.prototype.getLabelsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, teleport_lib_teleterm_v1_label_pb.Label, 3)); }; /** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.Kube} returns this + * @param {!Array} value + * @return {!proto.teleport.lib.teleterm.v1.Kube} returns this */ -proto.teleport.terminal.v1.Kube.prototype.setLabelsList = function(value) { +proto.teleport.lib.teleterm.v1.Kube.prototype.setLabelsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * @param {!proto.teleport.terminal.v1.Label=} opt_value + * @param {!proto.teleport.lib.teleterm.v1.Label=} opt_value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.Label} + * @return {!proto.teleport.lib.teleterm.v1.Label} */ -proto.teleport.terminal.v1.Kube.prototype.addLabels = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.teleport.terminal.v1.Label, opt_index); +proto.teleport.lib.teleterm.v1.Kube.prototype.addLabels = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.teleport.lib.teleterm.v1.Label, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.Kube} returns this + * @return {!proto.teleport.lib.teleterm.v1.Kube} returns this */ -proto.teleport.terminal.v1.Kube.prototype.clearLabelsList = function() { +proto.teleport.lib.teleterm.v1.Kube.prototype.clearLabelsList = function() { return this.setLabelsList([]); }; -goog.object.extend(exports, proto.teleport.terminal.v1); +goog.object.extend(exports, proto.teleport.lib.teleterm.v1); diff --git a/lib/teleterm/api/protogen/js/v1/label_grpc_pb.js b/gen/proto/js/teleport/lib/teleterm/v1/label_grpc_pb.js similarity index 100% rename from lib/teleterm/api/protogen/js/v1/label_grpc_pb.js rename to gen/proto/js/teleport/lib/teleterm/v1/label_grpc_pb.js diff --git a/web/packages/teleterm/src/services/tshd/v1/label_pb.d.ts b/gen/proto/js/teleport/lib/teleterm/v1/label_pb.d.ts similarity index 91% rename from web/packages/teleterm/src/services/tshd/v1/label_pb.d.ts rename to gen/proto/js/teleport/lib/teleterm/v1/label_pb.d.ts index 9b976608f2542..5603cf98bca32 100644 --- a/web/packages/teleterm/src/services/tshd/v1/label_pb.d.ts +++ b/gen/proto/js/teleport/lib/teleterm/v1/label_pb.d.ts @@ -1,5 +1,5 @@ -// package: teleport.terminal.v1 -// file: v1/label.proto +// package: teleport.lib.teleterm.v1 +// file: teleport/lib/teleterm/v1/label.proto /* tslint:disable */ /* eslint-disable */ diff --git a/web/packages/teleterm/src/services/tshd/v1/label_pb.js b/gen/proto/js/teleport/lib/teleterm/v1/label_pb.js similarity index 67% rename from web/packages/teleterm/src/services/tshd/v1/label_pb.js rename to gen/proto/js/teleport/lib/teleterm/v1/label_pb.js index bc76168736a09..5969e3b1b914b 100644 --- a/web/packages/teleterm/src/services/tshd/v1/label_pb.js +++ b/gen/proto/js/teleport/lib/teleterm/v1/label_pb.js @@ -1,4 +1,4 @@ -// source: v1/label.proto +// source: teleport/lib/teleterm/v1/label.proto /** * @fileoverview * @enhanceable @@ -15,7 +15,7 @@ var jspb = require('google-protobuf'); var goog = jspb; var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); -goog.exportSymbol('proto.teleport.terminal.v1.Label', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.Label', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -26,16 +26,16 @@ goog.exportSymbol('proto.teleport.terminal.v1.Label', null, global); * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.Label = function(opt_data) { +proto.teleport.lib.teleterm.v1.Label = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.Label, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.Label, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.Label.displayName = 'proto.teleport.terminal.v1.Label'; + proto.teleport.lib.teleterm.v1.Label.displayName = 'proto.teleport.lib.teleterm.v1.Label'; } @@ -53,8 +53,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.Label.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.Label.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.Label.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.Label.toObject(opt_includeInstance, this); }; @@ -63,11 +63,11 @@ proto.teleport.terminal.v1.Label.prototype.toObject = function(opt_includeInstan * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.Label} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.Label} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.Label.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.Label.toObject = function(includeInstance, msg) { var f, obj = { name: jspb.Message.getFieldWithDefault(msg, 1, ""), value: jspb.Message.getFieldWithDefault(msg, 2, "") @@ -84,23 +84,23 @@ proto.teleport.terminal.v1.Label.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.Label} + * @return {!proto.teleport.lib.teleterm.v1.Label} */ -proto.teleport.terminal.v1.Label.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.Label.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.Label; - return proto.teleport.terminal.v1.Label.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.Label; + return proto.teleport.lib.teleterm.v1.Label.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.Label} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.Label} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.Label} + * @return {!proto.teleport.lib.teleterm.v1.Label} */ -proto.teleport.terminal.v1.Label.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.Label.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -128,9 +128,9 @@ proto.teleport.terminal.v1.Label.deserializeBinaryFromReader = function(msg, rea * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.Label.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.Label.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.Label.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.Label.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -138,11 +138,11 @@ proto.teleport.terminal.v1.Label.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.Label} message + * @param {!proto.teleport.lib.teleterm.v1.Label} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.Label.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.Label.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getName(); if (f.length > 0) { @@ -165,16 +165,16 @@ proto.teleport.terminal.v1.Label.serializeBinaryToWriter = function(message, wri * optional string name = 1; * @return {string} */ -proto.teleport.terminal.v1.Label.prototype.getName = function() { +proto.teleport.lib.teleterm.v1.Label.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.Label} returns this + * @return {!proto.teleport.lib.teleterm.v1.Label} returns this */ -proto.teleport.terminal.v1.Label.prototype.setName = function(value) { +proto.teleport.lib.teleterm.v1.Label.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -183,18 +183,18 @@ proto.teleport.terminal.v1.Label.prototype.setName = function(value) { * optional string value = 2; * @return {string} */ -proto.teleport.terminal.v1.Label.prototype.getValue = function() { +proto.teleport.lib.teleterm.v1.Label.prototype.getValue = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.Label} returns this + * @return {!proto.teleport.lib.teleterm.v1.Label} returns this */ -proto.teleport.terminal.v1.Label.prototype.setValue = function(value) { +proto.teleport.lib.teleterm.v1.Label.prototype.setValue = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; -goog.object.extend(exports, proto.teleport.terminal.v1); +goog.object.extend(exports, proto.teleport.lib.teleterm.v1); diff --git a/lib/teleterm/api/protogen/js/v1/server_grpc_pb.js b/gen/proto/js/teleport/lib/teleterm/v1/server_grpc_pb.js similarity index 100% rename from lib/teleterm/api/protogen/js/v1/server_grpc_pb.js rename to gen/proto/js/teleport/lib/teleterm/v1/server_grpc_pb.js diff --git a/lib/teleterm/api/protogen/js/v1/server_pb.d.ts b/gen/proto/js/teleport/lib/teleterm/v1/server_pb.d.ts similarity index 69% rename from lib/teleterm/api/protogen/js/v1/server_pb.d.ts rename to gen/proto/js/teleport/lib/teleterm/v1/server_pb.d.ts index d01e741b93e51..bb89455289b77 100644 --- a/lib/teleterm/api/protogen/js/v1/server_pb.d.ts +++ b/gen/proto/js/teleport/lib/teleterm/v1/server_pb.d.ts @@ -1,11 +1,11 @@ -// package: teleport.terminal.v1 -// file: v1/server.proto +// package: teleport.lib.teleterm.v1 +// file: teleport/lib/teleterm/v1/server.proto /* tslint:disable */ /* eslint-disable */ import * as jspb from "google-protobuf"; -import * as v1_label_pb from "../v1/label_pb"; +import * as teleport_lib_teleterm_v1_label_pb from "../../../../teleport/lib/teleterm/v1/label_pb"; export class Server extends jspb.Message { getUri(): string; @@ -24,9 +24,9 @@ export class Server extends jspb.Message { setAddr(value: string): Server; clearLabelsList(): void; - getLabelsList(): Array; - setLabelsList(value: Array): Server; - addLabels(value?: v1_label_pb.Label, index?: number): v1_label_pb.Label; + getLabelsList(): Array; + setLabelsList(value: Array): Server; + addLabels(value?: teleport_lib_teleterm_v1_label_pb.Label, index?: number): teleport_lib_teleterm_v1_label_pb.Label; serializeBinary(): Uint8Array; @@ -46,6 +46,6 @@ export namespace Server { name: string, hostname: string, addr: string, - labelsList: Array, + labelsList: Array, } } diff --git a/web/packages/teleterm/src/services/tshd/v1/server_pb.js b/gen/proto/js/teleport/lib/teleterm/v1/server_pb.js similarity index 61% rename from web/packages/teleterm/src/services/tshd/v1/server_pb.js rename to gen/proto/js/teleport/lib/teleterm/v1/server_pb.js index 42e0239661697..537eb694c07c7 100644 --- a/web/packages/teleterm/src/services/tshd/v1/server_pb.js +++ b/gen/proto/js/teleport/lib/teleterm/v1/server_pb.js @@ -1,4 +1,4 @@ -// source: v1/server.proto +// source: teleport/lib/teleterm/v1/server.proto /** * @fileoverview * @enhanceable @@ -15,9 +15,9 @@ var jspb = require('google-protobuf'); var goog = jspb; var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); -var v1_label_pb = require('../v1/label_pb.js'); -goog.object.extend(proto, v1_label_pb); -goog.exportSymbol('proto.teleport.terminal.v1.Server', null, global); +var teleport_lib_teleterm_v1_label_pb = require('../../../../teleport/lib/teleterm/v1/label_pb.js'); +goog.object.extend(proto, teleport_lib_teleterm_v1_label_pb); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.Server', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -28,16 +28,16 @@ goog.exportSymbol('proto.teleport.terminal.v1.Server', null, global); * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.Server = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.Server.repeatedFields_, null); +proto.teleport.lib.teleterm.v1.Server = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.lib.teleterm.v1.Server.repeatedFields_, null); }; -goog.inherits(proto.teleport.terminal.v1.Server, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.Server, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.Server.displayName = 'proto.teleport.terminal.v1.Server'; + proto.teleport.lib.teleterm.v1.Server.displayName = 'proto.teleport.lib.teleterm.v1.Server'; } /** @@ -45,7 +45,7 @@ if (goog.DEBUG && !COMPILED) { * @private {!Array} * @const */ -proto.teleport.terminal.v1.Server.repeatedFields_ = [6]; +proto.teleport.lib.teleterm.v1.Server.repeatedFields_ = [6]; @@ -62,8 +62,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.Server.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.Server.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.Server.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.Server.toObject(opt_includeInstance, this); }; @@ -72,11 +72,11 @@ proto.teleport.terminal.v1.Server.prototype.toObject = function(opt_includeInsta * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.Server} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.Server} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.Server.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.Server.toObject = function(includeInstance, msg) { var f, obj = { uri: jspb.Message.getFieldWithDefault(msg, 1, ""), tunnel: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), @@ -84,7 +84,7 @@ proto.teleport.terminal.v1.Server.toObject = function(includeInstance, msg) { hostname: jspb.Message.getFieldWithDefault(msg, 4, ""), addr: jspb.Message.getFieldWithDefault(msg, 5, ""), labelsList: jspb.Message.toObjectList(msg.getLabelsList(), - v1_label_pb.Label.toObject, includeInstance) + teleport_lib_teleterm_v1_label_pb.Label.toObject, includeInstance) }; if (includeInstance) { @@ -98,23 +98,23 @@ proto.teleport.terminal.v1.Server.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.Server} + * @return {!proto.teleport.lib.teleterm.v1.Server} */ -proto.teleport.terminal.v1.Server.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.Server.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.Server; - return proto.teleport.terminal.v1.Server.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.Server; + return proto.teleport.lib.teleterm.v1.Server.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.Server} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.Server} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.Server} + * @return {!proto.teleport.lib.teleterm.v1.Server} */ -proto.teleport.terminal.v1.Server.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.Server.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -142,8 +142,8 @@ proto.teleport.terminal.v1.Server.deserializeBinaryFromReader = function(msg, re msg.setAddr(value); break; case 6: - var value = new v1_label_pb.Label; - reader.readMessage(value,v1_label_pb.Label.deserializeBinaryFromReader); + var value = new teleport_lib_teleterm_v1_label_pb.Label; + reader.readMessage(value,teleport_lib_teleterm_v1_label_pb.Label.deserializeBinaryFromReader); msg.addLabels(value); break; default: @@ -159,9 +159,9 @@ proto.teleport.terminal.v1.Server.deserializeBinaryFromReader = function(msg, re * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.Server.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.Server.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.Server.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.Server.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -169,11 +169,11 @@ proto.teleport.terminal.v1.Server.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.Server} message + * @param {!proto.teleport.lib.teleterm.v1.Server} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.Server.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.Server.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUri(); if (f.length > 0) { @@ -215,7 +215,7 @@ proto.teleport.terminal.v1.Server.serializeBinaryToWriter = function(message, wr writer.writeRepeatedMessage( 6, f, - v1_label_pb.Label.serializeBinaryToWriter + teleport_lib_teleterm_v1_label_pb.Label.serializeBinaryToWriter ); } }; @@ -225,16 +225,16 @@ proto.teleport.terminal.v1.Server.serializeBinaryToWriter = function(message, wr * optional string uri = 1; * @return {string} */ -proto.teleport.terminal.v1.Server.prototype.getUri = function() { +proto.teleport.lib.teleterm.v1.Server.prototype.getUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.Server} returns this + * @return {!proto.teleport.lib.teleterm.v1.Server} returns this */ -proto.teleport.terminal.v1.Server.prototype.setUri = function(value) { +proto.teleport.lib.teleterm.v1.Server.prototype.setUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -243,16 +243,16 @@ proto.teleport.terminal.v1.Server.prototype.setUri = function(value) { * optional bool tunnel = 2; * @return {boolean} */ -proto.teleport.terminal.v1.Server.prototype.getTunnel = function() { +proto.teleport.lib.teleterm.v1.Server.prototype.getTunnel = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** * @param {boolean} value - * @return {!proto.teleport.terminal.v1.Server} returns this + * @return {!proto.teleport.lib.teleterm.v1.Server} returns this */ -proto.teleport.terminal.v1.Server.prototype.setTunnel = function(value) { +proto.teleport.lib.teleterm.v1.Server.prototype.setTunnel = function(value) { return jspb.Message.setProto3BooleanField(this, 2, value); }; @@ -261,16 +261,16 @@ proto.teleport.terminal.v1.Server.prototype.setTunnel = function(value) { * optional string name = 3; * @return {string} */ -proto.teleport.terminal.v1.Server.prototype.getName = function() { +proto.teleport.lib.teleterm.v1.Server.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.Server} returns this + * @return {!proto.teleport.lib.teleterm.v1.Server} returns this */ -proto.teleport.terminal.v1.Server.prototype.setName = function(value) { +proto.teleport.lib.teleterm.v1.Server.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; @@ -279,16 +279,16 @@ proto.teleport.terminal.v1.Server.prototype.setName = function(value) { * optional string hostname = 4; * @return {string} */ -proto.teleport.terminal.v1.Server.prototype.getHostname = function() { +proto.teleport.lib.teleterm.v1.Server.prototype.getHostname = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.Server} returns this + * @return {!proto.teleport.lib.teleterm.v1.Server} returns this */ -proto.teleport.terminal.v1.Server.prototype.setHostname = function(value) { +proto.teleport.lib.teleterm.v1.Server.prototype.setHostname = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; @@ -297,56 +297,56 @@ proto.teleport.terminal.v1.Server.prototype.setHostname = function(value) { * optional string addr = 5; * @return {string} */ -proto.teleport.terminal.v1.Server.prototype.getAddr = function() { +proto.teleport.lib.teleterm.v1.Server.prototype.getAddr = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.Server} returns this + * @return {!proto.teleport.lib.teleterm.v1.Server} returns this */ -proto.teleport.terminal.v1.Server.prototype.setAddr = function(value) { +proto.teleport.lib.teleterm.v1.Server.prototype.setAddr = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; /** * repeated Label labels = 6; - * @return {!Array} + * @return {!Array} */ -proto.teleport.terminal.v1.Server.prototype.getLabelsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_label_pb.Label, 6)); +proto.teleport.lib.teleterm.v1.Server.prototype.getLabelsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, teleport_lib_teleterm_v1_label_pb.Label, 6)); }; /** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.Server} returns this + * @param {!Array} value + * @return {!proto.teleport.lib.teleterm.v1.Server} returns this */ -proto.teleport.terminal.v1.Server.prototype.setLabelsList = function(value) { +proto.teleport.lib.teleterm.v1.Server.prototype.setLabelsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 6, value); }; /** - * @param {!proto.teleport.terminal.v1.Label=} opt_value + * @param {!proto.teleport.lib.teleterm.v1.Label=} opt_value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.Label} + * @return {!proto.teleport.lib.teleterm.v1.Label} */ -proto.teleport.terminal.v1.Server.prototype.addLabels = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.teleport.terminal.v1.Label, opt_index); +proto.teleport.lib.teleterm.v1.Server.prototype.addLabels = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.teleport.lib.teleterm.v1.Label, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.Server} returns this + * @return {!proto.teleport.lib.teleterm.v1.Server} returns this */ -proto.teleport.terminal.v1.Server.prototype.clearLabelsList = function() { +proto.teleport.lib.teleterm.v1.Server.prototype.clearLabelsList = function() { return this.setLabelsList([]); }; -goog.object.extend(exports, proto.teleport.terminal.v1); +goog.object.extend(exports, proto.teleport.lib.teleterm.v1); diff --git a/gen/proto/js/teleport/lib/teleterm/v1/service_grpc_pb.d.ts b/gen/proto/js/teleport/lib/teleterm/v1/service_grpc_pb.d.ts new file mode 100644 index 0000000000000..45d3030ea2699 --- /dev/null +++ b/gen/proto/js/teleport/lib/teleterm/v1/service_grpc_pb.d.ts @@ -0,0 +1,591 @@ +// package: teleport.lib.teleterm.v1 +// file: teleport/lib/teleterm/v1/service.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as grpc from "grpc"; +import * as teleport_lib_teleterm_v1_service_pb from "../../../../teleport/lib/teleterm/v1/service_pb"; +import * as teleport_lib_teleterm_v1_access_request_pb from "../../../../teleport/lib/teleterm/v1/access_request_pb"; +import * as teleport_lib_teleterm_v1_app_pb from "../../../../teleport/lib/teleterm/v1/app_pb"; +import * as teleport_lib_teleterm_v1_auth_settings_pb from "../../../../teleport/lib/teleterm/v1/auth_settings_pb"; +import * as teleport_lib_teleterm_v1_cluster_pb from "../../../../teleport/lib/teleterm/v1/cluster_pb"; +import * as teleport_lib_teleterm_v1_database_pb from "../../../../teleport/lib/teleterm/v1/database_pb"; +import * as teleport_lib_teleterm_v1_gateway_pb from "../../../../teleport/lib/teleterm/v1/gateway_pb"; +import * as teleport_lib_teleterm_v1_kube_pb from "../../../../teleport/lib/teleterm/v1/kube_pb"; +import * as teleport_lib_teleterm_v1_server_pb from "../../../../teleport/lib/teleterm/v1/server_pb"; +import * as teleport_lib_teleterm_v1_usage_events_pb from "../../../../teleport/lib/teleterm/v1/usage_events_pb"; + +interface ITerminalServiceService extends grpc.ServiceDefinition { + updateTshdEventsServerAddress: ITerminalServiceService_IUpdateTshdEventsServerAddress; + listRootClusters: ITerminalServiceService_IListRootClusters; + listLeafClusters: ITerminalServiceService_IListLeafClusters; + getAllDatabases: ITerminalServiceService_IGetAllDatabases; + getDatabases: ITerminalServiceService_IGetDatabases; + listDatabaseUsers: ITerminalServiceService_IListDatabaseUsers; + getAllServers: ITerminalServiceService_IGetAllServers; + getServers: ITerminalServiceService_IGetServers; + getAccessRequests: ITerminalServiceService_IGetAccessRequests; + getAccessRequest: ITerminalServiceService_IGetAccessRequest; + deleteAccessRequest: ITerminalServiceService_IDeleteAccessRequest; + createAccessRequest: ITerminalServiceService_ICreateAccessRequest; + reviewAccessRequest: ITerminalServiceService_IReviewAccessRequest; + getRequestableRoles: ITerminalServiceService_IGetRequestableRoles; + assumeRole: ITerminalServiceService_IAssumeRole; + getAllKubes: ITerminalServiceService_IGetAllKubes; + getKubes: ITerminalServiceService_IGetKubes; + listApps: ITerminalServiceService_IListApps; + addCluster: ITerminalServiceService_IAddCluster; + removeCluster: ITerminalServiceService_IRemoveCluster; + listGateways: ITerminalServiceService_IListGateways; + createGateway: ITerminalServiceService_ICreateGateway; + removeGateway: ITerminalServiceService_IRemoveGateway; + restartGateway: ITerminalServiceService_IRestartGateway; + setGatewayTargetSubresourceName: ITerminalServiceService_ISetGatewayTargetSubresourceName; + setGatewayLocalPort: ITerminalServiceService_ISetGatewayLocalPort; + getAuthSettings: ITerminalServiceService_IGetAuthSettings; + getCluster: ITerminalServiceService_IGetCluster; + login: ITerminalServiceService_ILogin; + loginPasswordless: ITerminalServiceService_ILoginPasswordless; + logout: ITerminalServiceService_ILogout; + transferFile: ITerminalServiceService_ITransferFile; + reportUsageEvent: ITerminalServiceService_IReportUsageEvent; +} + +interface ITerminalServiceService_IUpdateTshdEventsServerAddress extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/UpdateTshdEventsServerAddress"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_IListRootClusters extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/ListRootClusters"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_IListLeafClusters extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/ListLeafClusters"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_IGetAllDatabases extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/GetAllDatabases"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_IGetDatabases extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/GetDatabases"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_IListDatabaseUsers extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/ListDatabaseUsers"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_IGetAllServers extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/GetAllServers"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_IGetServers extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/GetServers"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_IGetAccessRequests extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/GetAccessRequests"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_IGetAccessRequest extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/GetAccessRequest"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_IDeleteAccessRequest extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/DeleteAccessRequest"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_ICreateAccessRequest extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/CreateAccessRequest"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_IReviewAccessRequest extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/ReviewAccessRequest"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_IGetRequestableRoles extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/GetRequestableRoles"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_IAssumeRole extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/AssumeRole"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_IGetAllKubes extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/GetAllKubes"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_IGetKubes extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/GetKubes"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_IListApps extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/ListApps"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_IAddCluster extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/AddCluster"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_IRemoveCluster extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/RemoveCluster"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_IListGateways extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/ListGateways"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_ICreateGateway extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/CreateGateway"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_IRemoveGateway extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/RemoveGateway"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_IRestartGateway extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/RestartGateway"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_ISetGatewayTargetSubresourceName extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/SetGatewayTargetSubresourceName"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_ISetGatewayLocalPort extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/SetGatewayLocalPort"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_IGetAuthSettings extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/GetAuthSettings"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_IGetCluster extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/GetCluster"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_ILogin extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/Login"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_ILoginPasswordless extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/LoginPasswordless"; + requestStream: true; + responseStream: true; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_ILogout extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/Logout"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_ITransferFile extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/TransferFile"; + requestStream: false; + responseStream: true; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITerminalServiceService_IReportUsageEvent extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TerminalService/ReportUsageEvent"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +export const TerminalServiceService: ITerminalServiceService; + +export interface ITerminalServiceServer { + updateTshdEventsServerAddress: grpc.handleUnaryCall; + listRootClusters: grpc.handleUnaryCall; + listLeafClusters: grpc.handleUnaryCall; + getAllDatabases: grpc.handleUnaryCall; + getDatabases: grpc.handleUnaryCall; + listDatabaseUsers: grpc.handleUnaryCall; + getAllServers: grpc.handleUnaryCall; + getServers: grpc.handleUnaryCall; + getAccessRequests: grpc.handleUnaryCall; + getAccessRequest: grpc.handleUnaryCall; + deleteAccessRequest: grpc.handleUnaryCall; + createAccessRequest: grpc.handleUnaryCall; + reviewAccessRequest: grpc.handleUnaryCall; + getRequestableRoles: grpc.handleUnaryCall; + assumeRole: grpc.handleUnaryCall; + getAllKubes: grpc.handleUnaryCall; + getKubes: grpc.handleUnaryCall; + listApps: grpc.handleUnaryCall; + addCluster: grpc.handleUnaryCall; + removeCluster: grpc.handleUnaryCall; + listGateways: grpc.handleUnaryCall; + createGateway: grpc.handleUnaryCall; + removeGateway: grpc.handleUnaryCall; + restartGateway: grpc.handleUnaryCall; + setGatewayTargetSubresourceName: grpc.handleUnaryCall; + setGatewayLocalPort: grpc.handleUnaryCall; + getAuthSettings: grpc.handleUnaryCall; + getCluster: grpc.handleUnaryCall; + login: grpc.handleUnaryCall; + loginPasswordless: grpc.handleBidiStreamingCall; + logout: grpc.handleUnaryCall; + transferFile: grpc.handleServerStreamingCall; + reportUsageEvent: grpc.handleUnaryCall; +} + +export interface ITerminalServiceClient { + updateTshdEventsServerAddress(request: teleport_lib_teleterm_v1_service_pb.UpdateTshdEventsServerAddressRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.UpdateTshdEventsServerAddressResponse) => void): grpc.ClientUnaryCall; + updateTshdEventsServerAddress(request: teleport_lib_teleterm_v1_service_pb.UpdateTshdEventsServerAddressRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.UpdateTshdEventsServerAddressResponse) => void): grpc.ClientUnaryCall; + updateTshdEventsServerAddress(request: teleport_lib_teleterm_v1_service_pb.UpdateTshdEventsServerAddressRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.UpdateTshdEventsServerAddressResponse) => void): grpc.ClientUnaryCall; + listRootClusters(request: teleport_lib_teleterm_v1_service_pb.ListClustersRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; + listRootClusters(request: teleport_lib_teleterm_v1_service_pb.ListClustersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; + listRootClusters(request: teleport_lib_teleterm_v1_service_pb.ListClustersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; + listLeafClusters(request: teleport_lib_teleterm_v1_service_pb.ListLeafClustersRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; + listLeafClusters(request: teleport_lib_teleterm_v1_service_pb.ListLeafClustersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; + listLeafClusters(request: teleport_lib_teleterm_v1_service_pb.ListLeafClustersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; + getAllDatabases(request: teleport_lib_teleterm_v1_service_pb.GetAllDatabasesRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAllDatabasesResponse) => void): grpc.ClientUnaryCall; + getAllDatabases(request: teleport_lib_teleterm_v1_service_pb.GetAllDatabasesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAllDatabasesResponse) => void): grpc.ClientUnaryCall; + getAllDatabases(request: teleport_lib_teleterm_v1_service_pb.GetAllDatabasesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAllDatabasesResponse) => void): grpc.ClientUnaryCall; + getDatabases(request: teleport_lib_teleterm_v1_service_pb.GetDatabasesRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetDatabasesResponse) => void): grpc.ClientUnaryCall; + getDatabases(request: teleport_lib_teleterm_v1_service_pb.GetDatabasesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetDatabasesResponse) => void): grpc.ClientUnaryCall; + getDatabases(request: teleport_lib_teleterm_v1_service_pb.GetDatabasesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetDatabasesResponse) => void): grpc.ClientUnaryCall; + listDatabaseUsers(request: teleport_lib_teleterm_v1_service_pb.ListDatabaseUsersRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListDatabaseUsersResponse) => void): grpc.ClientUnaryCall; + listDatabaseUsers(request: teleport_lib_teleterm_v1_service_pb.ListDatabaseUsersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListDatabaseUsersResponse) => void): grpc.ClientUnaryCall; + listDatabaseUsers(request: teleport_lib_teleterm_v1_service_pb.ListDatabaseUsersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListDatabaseUsersResponse) => void): grpc.ClientUnaryCall; + getAllServers(request: teleport_lib_teleterm_v1_service_pb.GetAllServersRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAllServersResponse) => void): grpc.ClientUnaryCall; + getAllServers(request: teleport_lib_teleterm_v1_service_pb.GetAllServersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAllServersResponse) => void): grpc.ClientUnaryCall; + getAllServers(request: teleport_lib_teleterm_v1_service_pb.GetAllServersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAllServersResponse) => void): grpc.ClientUnaryCall; + getServers(request: teleport_lib_teleterm_v1_service_pb.GetServersRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetServersResponse) => void): grpc.ClientUnaryCall; + getServers(request: teleport_lib_teleterm_v1_service_pb.GetServersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetServersResponse) => void): grpc.ClientUnaryCall; + getServers(request: teleport_lib_teleterm_v1_service_pb.GetServersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetServersResponse) => void): grpc.ClientUnaryCall; + getAccessRequests(request: teleport_lib_teleterm_v1_service_pb.GetAccessRequestsRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAccessRequestsResponse) => void): grpc.ClientUnaryCall; + getAccessRequests(request: teleport_lib_teleterm_v1_service_pb.GetAccessRequestsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAccessRequestsResponse) => void): grpc.ClientUnaryCall; + getAccessRequests(request: teleport_lib_teleterm_v1_service_pb.GetAccessRequestsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAccessRequestsResponse) => void): grpc.ClientUnaryCall; + getAccessRequest(request: teleport_lib_teleterm_v1_service_pb.GetAccessRequestRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAccessRequestResponse) => void): grpc.ClientUnaryCall; + getAccessRequest(request: teleport_lib_teleterm_v1_service_pb.GetAccessRequestRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAccessRequestResponse) => void): grpc.ClientUnaryCall; + getAccessRequest(request: teleport_lib_teleterm_v1_service_pb.GetAccessRequestRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAccessRequestResponse) => void): grpc.ClientUnaryCall; + deleteAccessRequest(request: teleport_lib_teleterm_v1_service_pb.DeleteAccessRequestRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + deleteAccessRequest(request: teleport_lib_teleterm_v1_service_pb.DeleteAccessRequestRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + deleteAccessRequest(request: teleport_lib_teleterm_v1_service_pb.DeleteAccessRequestRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + createAccessRequest(request: teleport_lib_teleterm_v1_service_pb.CreateAccessRequestRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.CreateAccessRequestResponse) => void): grpc.ClientUnaryCall; + createAccessRequest(request: teleport_lib_teleterm_v1_service_pb.CreateAccessRequestRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.CreateAccessRequestResponse) => void): grpc.ClientUnaryCall; + createAccessRequest(request: teleport_lib_teleterm_v1_service_pb.CreateAccessRequestRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.CreateAccessRequestResponse) => void): grpc.ClientUnaryCall; + reviewAccessRequest(request: teleport_lib_teleterm_v1_service_pb.ReviewAccessRequestRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ReviewAccessRequestResponse) => void): grpc.ClientUnaryCall; + reviewAccessRequest(request: teleport_lib_teleterm_v1_service_pb.ReviewAccessRequestRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ReviewAccessRequestResponse) => void): grpc.ClientUnaryCall; + reviewAccessRequest(request: teleport_lib_teleterm_v1_service_pb.ReviewAccessRequestRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ReviewAccessRequestResponse) => void): grpc.ClientUnaryCall; + getRequestableRoles(request: teleport_lib_teleterm_v1_service_pb.GetRequestableRolesRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetRequestableRolesResponse) => void): grpc.ClientUnaryCall; + getRequestableRoles(request: teleport_lib_teleterm_v1_service_pb.GetRequestableRolesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetRequestableRolesResponse) => void): grpc.ClientUnaryCall; + getRequestableRoles(request: teleport_lib_teleterm_v1_service_pb.GetRequestableRolesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetRequestableRolesResponse) => void): grpc.ClientUnaryCall; + assumeRole(request: teleport_lib_teleterm_v1_service_pb.AssumeRoleRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + assumeRole(request: teleport_lib_teleterm_v1_service_pb.AssumeRoleRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + assumeRole(request: teleport_lib_teleterm_v1_service_pb.AssumeRoleRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + getAllKubes(request: teleport_lib_teleterm_v1_service_pb.GetAllKubesRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAllKubesResponse) => void): grpc.ClientUnaryCall; + getAllKubes(request: teleport_lib_teleterm_v1_service_pb.GetAllKubesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAllKubesResponse) => void): grpc.ClientUnaryCall; + getAllKubes(request: teleport_lib_teleterm_v1_service_pb.GetAllKubesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAllKubesResponse) => void): grpc.ClientUnaryCall; + getKubes(request: teleport_lib_teleterm_v1_service_pb.GetKubesRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetKubesResponse) => void): grpc.ClientUnaryCall; + getKubes(request: teleport_lib_teleterm_v1_service_pb.GetKubesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetKubesResponse) => void): grpc.ClientUnaryCall; + getKubes(request: teleport_lib_teleterm_v1_service_pb.GetKubesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetKubesResponse) => void): grpc.ClientUnaryCall; + listApps(request: teleport_lib_teleterm_v1_service_pb.ListAppsRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListAppsResponse) => void): grpc.ClientUnaryCall; + listApps(request: teleport_lib_teleterm_v1_service_pb.ListAppsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListAppsResponse) => void): grpc.ClientUnaryCall; + listApps(request: teleport_lib_teleterm_v1_service_pb.ListAppsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListAppsResponse) => void): grpc.ClientUnaryCall; + addCluster(request: teleport_lib_teleterm_v1_service_pb.AddClusterRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; + addCluster(request: teleport_lib_teleterm_v1_service_pb.AddClusterRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; + addCluster(request: teleport_lib_teleterm_v1_service_pb.AddClusterRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; + removeCluster(request: teleport_lib_teleterm_v1_service_pb.RemoveClusterRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + removeCluster(request: teleport_lib_teleterm_v1_service_pb.RemoveClusterRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + removeCluster(request: teleport_lib_teleterm_v1_service_pb.RemoveClusterRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + listGateways(request: teleport_lib_teleterm_v1_service_pb.ListGatewaysRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListGatewaysResponse) => void): grpc.ClientUnaryCall; + listGateways(request: teleport_lib_teleterm_v1_service_pb.ListGatewaysRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListGatewaysResponse) => void): grpc.ClientUnaryCall; + listGateways(request: teleport_lib_teleterm_v1_service_pb.ListGatewaysRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListGatewaysResponse) => void): grpc.ClientUnaryCall; + createGateway(request: teleport_lib_teleterm_v1_service_pb.CreateGatewayRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; + createGateway(request: teleport_lib_teleterm_v1_service_pb.CreateGatewayRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; + createGateway(request: teleport_lib_teleterm_v1_service_pb.CreateGatewayRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; + removeGateway(request: teleport_lib_teleterm_v1_service_pb.RemoveGatewayRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + removeGateway(request: teleport_lib_teleterm_v1_service_pb.RemoveGatewayRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + removeGateway(request: teleport_lib_teleterm_v1_service_pb.RemoveGatewayRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + restartGateway(request: teleport_lib_teleterm_v1_service_pb.RestartGatewayRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + restartGateway(request: teleport_lib_teleterm_v1_service_pb.RestartGatewayRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + restartGateway(request: teleport_lib_teleterm_v1_service_pb.RestartGatewayRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + setGatewayTargetSubresourceName(request: teleport_lib_teleterm_v1_service_pb.SetGatewayTargetSubresourceNameRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; + setGatewayTargetSubresourceName(request: teleport_lib_teleterm_v1_service_pb.SetGatewayTargetSubresourceNameRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; + setGatewayTargetSubresourceName(request: teleport_lib_teleterm_v1_service_pb.SetGatewayTargetSubresourceNameRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; + setGatewayLocalPort(request: teleport_lib_teleterm_v1_service_pb.SetGatewayLocalPortRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; + setGatewayLocalPort(request: teleport_lib_teleterm_v1_service_pb.SetGatewayLocalPortRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; + setGatewayLocalPort(request: teleport_lib_teleterm_v1_service_pb.SetGatewayLocalPortRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; + getAuthSettings(request: teleport_lib_teleterm_v1_service_pb.GetAuthSettingsRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_auth_settings_pb.AuthSettings) => void): grpc.ClientUnaryCall; + getAuthSettings(request: teleport_lib_teleterm_v1_service_pb.GetAuthSettingsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_auth_settings_pb.AuthSettings) => void): grpc.ClientUnaryCall; + getAuthSettings(request: teleport_lib_teleterm_v1_service_pb.GetAuthSettingsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_auth_settings_pb.AuthSettings) => void): grpc.ClientUnaryCall; + getCluster(request: teleport_lib_teleterm_v1_service_pb.GetClusterRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; + getCluster(request: teleport_lib_teleterm_v1_service_pb.GetClusterRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; + getCluster(request: teleport_lib_teleterm_v1_service_pb.GetClusterRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; + login(request: teleport_lib_teleterm_v1_service_pb.LoginRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + login(request: teleport_lib_teleterm_v1_service_pb.LoginRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + login(request: teleport_lib_teleterm_v1_service_pb.LoginRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + loginPasswordless(): grpc.ClientDuplexStream; + loginPasswordless(options: Partial): grpc.ClientDuplexStream; + loginPasswordless(metadata: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; + logout(request: teleport_lib_teleterm_v1_service_pb.LogoutRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + logout(request: teleport_lib_teleterm_v1_service_pb.LogoutRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + logout(request: teleport_lib_teleterm_v1_service_pb.LogoutRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + transferFile(request: teleport_lib_teleterm_v1_service_pb.FileTransferRequest, options?: Partial): grpc.ClientReadableStream; + transferFile(request: teleport_lib_teleterm_v1_service_pb.FileTransferRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; + reportUsageEvent(request: teleport_lib_teleterm_v1_usage_events_pb.ReportUsageEventRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + reportUsageEvent(request: teleport_lib_teleterm_v1_usage_events_pb.ReportUsageEventRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + reportUsageEvent(request: teleport_lib_teleterm_v1_usage_events_pb.ReportUsageEventRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; +} + +export class TerminalServiceClient extends grpc.Client implements ITerminalServiceClient { + constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); + public updateTshdEventsServerAddress(request: teleport_lib_teleterm_v1_service_pb.UpdateTshdEventsServerAddressRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.UpdateTshdEventsServerAddressResponse) => void): grpc.ClientUnaryCall; + public updateTshdEventsServerAddress(request: teleport_lib_teleterm_v1_service_pb.UpdateTshdEventsServerAddressRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.UpdateTshdEventsServerAddressResponse) => void): grpc.ClientUnaryCall; + public updateTshdEventsServerAddress(request: teleport_lib_teleterm_v1_service_pb.UpdateTshdEventsServerAddressRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.UpdateTshdEventsServerAddressResponse) => void): grpc.ClientUnaryCall; + public listRootClusters(request: teleport_lib_teleterm_v1_service_pb.ListClustersRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; + public listRootClusters(request: teleport_lib_teleterm_v1_service_pb.ListClustersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; + public listRootClusters(request: teleport_lib_teleterm_v1_service_pb.ListClustersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; + public listLeafClusters(request: teleport_lib_teleterm_v1_service_pb.ListLeafClustersRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; + public listLeafClusters(request: teleport_lib_teleterm_v1_service_pb.ListLeafClustersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; + public listLeafClusters(request: teleport_lib_teleterm_v1_service_pb.ListLeafClustersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; + public getAllDatabases(request: teleport_lib_teleterm_v1_service_pb.GetAllDatabasesRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAllDatabasesResponse) => void): grpc.ClientUnaryCall; + public getAllDatabases(request: teleport_lib_teleterm_v1_service_pb.GetAllDatabasesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAllDatabasesResponse) => void): grpc.ClientUnaryCall; + public getAllDatabases(request: teleport_lib_teleterm_v1_service_pb.GetAllDatabasesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAllDatabasesResponse) => void): grpc.ClientUnaryCall; + public getDatabases(request: teleport_lib_teleterm_v1_service_pb.GetDatabasesRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetDatabasesResponse) => void): grpc.ClientUnaryCall; + public getDatabases(request: teleport_lib_teleterm_v1_service_pb.GetDatabasesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetDatabasesResponse) => void): grpc.ClientUnaryCall; + public getDatabases(request: teleport_lib_teleterm_v1_service_pb.GetDatabasesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetDatabasesResponse) => void): grpc.ClientUnaryCall; + public listDatabaseUsers(request: teleport_lib_teleterm_v1_service_pb.ListDatabaseUsersRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListDatabaseUsersResponse) => void): grpc.ClientUnaryCall; + public listDatabaseUsers(request: teleport_lib_teleterm_v1_service_pb.ListDatabaseUsersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListDatabaseUsersResponse) => void): grpc.ClientUnaryCall; + public listDatabaseUsers(request: teleport_lib_teleterm_v1_service_pb.ListDatabaseUsersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListDatabaseUsersResponse) => void): grpc.ClientUnaryCall; + public getAllServers(request: teleport_lib_teleterm_v1_service_pb.GetAllServersRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAllServersResponse) => void): grpc.ClientUnaryCall; + public getAllServers(request: teleport_lib_teleterm_v1_service_pb.GetAllServersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAllServersResponse) => void): grpc.ClientUnaryCall; + public getAllServers(request: teleport_lib_teleterm_v1_service_pb.GetAllServersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAllServersResponse) => void): grpc.ClientUnaryCall; + public getServers(request: teleport_lib_teleterm_v1_service_pb.GetServersRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetServersResponse) => void): grpc.ClientUnaryCall; + public getServers(request: teleport_lib_teleterm_v1_service_pb.GetServersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetServersResponse) => void): grpc.ClientUnaryCall; + public getServers(request: teleport_lib_teleterm_v1_service_pb.GetServersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetServersResponse) => void): grpc.ClientUnaryCall; + public getAccessRequests(request: teleport_lib_teleterm_v1_service_pb.GetAccessRequestsRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAccessRequestsResponse) => void): grpc.ClientUnaryCall; + public getAccessRequests(request: teleport_lib_teleterm_v1_service_pb.GetAccessRequestsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAccessRequestsResponse) => void): grpc.ClientUnaryCall; + public getAccessRequests(request: teleport_lib_teleterm_v1_service_pb.GetAccessRequestsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAccessRequestsResponse) => void): grpc.ClientUnaryCall; + public getAccessRequest(request: teleport_lib_teleterm_v1_service_pb.GetAccessRequestRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAccessRequestResponse) => void): grpc.ClientUnaryCall; + public getAccessRequest(request: teleport_lib_teleterm_v1_service_pb.GetAccessRequestRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAccessRequestResponse) => void): grpc.ClientUnaryCall; + public getAccessRequest(request: teleport_lib_teleterm_v1_service_pb.GetAccessRequestRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAccessRequestResponse) => void): grpc.ClientUnaryCall; + public deleteAccessRequest(request: teleport_lib_teleterm_v1_service_pb.DeleteAccessRequestRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + public deleteAccessRequest(request: teleport_lib_teleterm_v1_service_pb.DeleteAccessRequestRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + public deleteAccessRequest(request: teleport_lib_teleterm_v1_service_pb.DeleteAccessRequestRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + public createAccessRequest(request: teleport_lib_teleterm_v1_service_pb.CreateAccessRequestRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.CreateAccessRequestResponse) => void): grpc.ClientUnaryCall; + public createAccessRequest(request: teleport_lib_teleterm_v1_service_pb.CreateAccessRequestRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.CreateAccessRequestResponse) => void): grpc.ClientUnaryCall; + public createAccessRequest(request: teleport_lib_teleterm_v1_service_pb.CreateAccessRequestRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.CreateAccessRequestResponse) => void): grpc.ClientUnaryCall; + public reviewAccessRequest(request: teleport_lib_teleterm_v1_service_pb.ReviewAccessRequestRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ReviewAccessRequestResponse) => void): grpc.ClientUnaryCall; + public reviewAccessRequest(request: teleport_lib_teleterm_v1_service_pb.ReviewAccessRequestRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ReviewAccessRequestResponse) => void): grpc.ClientUnaryCall; + public reviewAccessRequest(request: teleport_lib_teleterm_v1_service_pb.ReviewAccessRequestRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ReviewAccessRequestResponse) => void): grpc.ClientUnaryCall; + public getRequestableRoles(request: teleport_lib_teleterm_v1_service_pb.GetRequestableRolesRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetRequestableRolesResponse) => void): grpc.ClientUnaryCall; + public getRequestableRoles(request: teleport_lib_teleterm_v1_service_pb.GetRequestableRolesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetRequestableRolesResponse) => void): grpc.ClientUnaryCall; + public getRequestableRoles(request: teleport_lib_teleterm_v1_service_pb.GetRequestableRolesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetRequestableRolesResponse) => void): grpc.ClientUnaryCall; + public assumeRole(request: teleport_lib_teleterm_v1_service_pb.AssumeRoleRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + public assumeRole(request: teleport_lib_teleterm_v1_service_pb.AssumeRoleRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + public assumeRole(request: teleport_lib_teleterm_v1_service_pb.AssumeRoleRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + public getAllKubes(request: teleport_lib_teleterm_v1_service_pb.GetAllKubesRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAllKubesResponse) => void): grpc.ClientUnaryCall; + public getAllKubes(request: teleport_lib_teleterm_v1_service_pb.GetAllKubesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAllKubesResponse) => void): grpc.ClientUnaryCall; + public getAllKubes(request: teleport_lib_teleterm_v1_service_pb.GetAllKubesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetAllKubesResponse) => void): grpc.ClientUnaryCall; + public getKubes(request: teleport_lib_teleterm_v1_service_pb.GetKubesRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetKubesResponse) => void): grpc.ClientUnaryCall; + public getKubes(request: teleport_lib_teleterm_v1_service_pb.GetKubesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetKubesResponse) => void): grpc.ClientUnaryCall; + public getKubes(request: teleport_lib_teleterm_v1_service_pb.GetKubesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.GetKubesResponse) => void): grpc.ClientUnaryCall; + public listApps(request: teleport_lib_teleterm_v1_service_pb.ListAppsRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListAppsResponse) => void): grpc.ClientUnaryCall; + public listApps(request: teleport_lib_teleterm_v1_service_pb.ListAppsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListAppsResponse) => void): grpc.ClientUnaryCall; + public listApps(request: teleport_lib_teleterm_v1_service_pb.ListAppsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListAppsResponse) => void): grpc.ClientUnaryCall; + public addCluster(request: teleport_lib_teleterm_v1_service_pb.AddClusterRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; + public addCluster(request: teleport_lib_teleterm_v1_service_pb.AddClusterRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; + public addCluster(request: teleport_lib_teleterm_v1_service_pb.AddClusterRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; + public removeCluster(request: teleport_lib_teleterm_v1_service_pb.RemoveClusterRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + public removeCluster(request: teleport_lib_teleterm_v1_service_pb.RemoveClusterRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + public removeCluster(request: teleport_lib_teleterm_v1_service_pb.RemoveClusterRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + public listGateways(request: teleport_lib_teleterm_v1_service_pb.ListGatewaysRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListGatewaysResponse) => void): grpc.ClientUnaryCall; + public listGateways(request: teleport_lib_teleterm_v1_service_pb.ListGatewaysRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListGatewaysResponse) => void): grpc.ClientUnaryCall; + public listGateways(request: teleport_lib_teleterm_v1_service_pb.ListGatewaysRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.ListGatewaysResponse) => void): grpc.ClientUnaryCall; + public createGateway(request: teleport_lib_teleterm_v1_service_pb.CreateGatewayRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; + public createGateway(request: teleport_lib_teleterm_v1_service_pb.CreateGatewayRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; + public createGateway(request: teleport_lib_teleterm_v1_service_pb.CreateGatewayRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; + public removeGateway(request: teleport_lib_teleterm_v1_service_pb.RemoveGatewayRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + public removeGateway(request: teleport_lib_teleterm_v1_service_pb.RemoveGatewayRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + public removeGateway(request: teleport_lib_teleterm_v1_service_pb.RemoveGatewayRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + public restartGateway(request: teleport_lib_teleterm_v1_service_pb.RestartGatewayRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + public restartGateway(request: teleport_lib_teleterm_v1_service_pb.RestartGatewayRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + public restartGateway(request: teleport_lib_teleterm_v1_service_pb.RestartGatewayRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + public setGatewayTargetSubresourceName(request: teleport_lib_teleterm_v1_service_pb.SetGatewayTargetSubresourceNameRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; + public setGatewayTargetSubresourceName(request: teleport_lib_teleterm_v1_service_pb.SetGatewayTargetSubresourceNameRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; + public setGatewayTargetSubresourceName(request: teleport_lib_teleterm_v1_service_pb.SetGatewayTargetSubresourceNameRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; + public setGatewayLocalPort(request: teleport_lib_teleterm_v1_service_pb.SetGatewayLocalPortRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; + public setGatewayLocalPort(request: teleport_lib_teleterm_v1_service_pb.SetGatewayLocalPortRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; + public setGatewayLocalPort(request: teleport_lib_teleterm_v1_service_pb.SetGatewayLocalPortRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; + public getAuthSettings(request: teleport_lib_teleterm_v1_service_pb.GetAuthSettingsRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_auth_settings_pb.AuthSettings) => void): grpc.ClientUnaryCall; + public getAuthSettings(request: teleport_lib_teleterm_v1_service_pb.GetAuthSettingsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_auth_settings_pb.AuthSettings) => void): grpc.ClientUnaryCall; + public getAuthSettings(request: teleport_lib_teleterm_v1_service_pb.GetAuthSettingsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_auth_settings_pb.AuthSettings) => void): grpc.ClientUnaryCall; + public getCluster(request: teleport_lib_teleterm_v1_service_pb.GetClusterRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; + public getCluster(request: teleport_lib_teleterm_v1_service_pb.GetClusterRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; + public getCluster(request: teleport_lib_teleterm_v1_service_pb.GetClusterRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; + public login(request: teleport_lib_teleterm_v1_service_pb.LoginRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + public login(request: teleport_lib_teleterm_v1_service_pb.LoginRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + public login(request: teleport_lib_teleterm_v1_service_pb.LoginRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + public loginPasswordless(options?: Partial): grpc.ClientDuplexStream; + public loginPasswordless(metadata?: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; + public logout(request: teleport_lib_teleterm_v1_service_pb.LogoutRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + public logout(request: teleport_lib_teleterm_v1_service_pb.LogoutRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + public logout(request: teleport_lib_teleterm_v1_service_pb.LogoutRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + public transferFile(request: teleport_lib_teleterm_v1_service_pb.FileTransferRequest, options?: Partial): grpc.ClientReadableStream; + public transferFile(request: teleport_lib_teleterm_v1_service_pb.FileTransferRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; + public reportUsageEvent(request: teleport_lib_teleterm_v1_usage_events_pb.ReportUsageEventRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + public reportUsageEvent(request: teleport_lib_teleterm_v1_usage_events_pb.ReportUsageEventRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; + public reportUsageEvent(request: teleport_lib_teleterm_v1_usage_events_pb.ReportUsageEventRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; +} diff --git a/gen/proto/js/teleport/lib/teleterm/v1/service_grpc_pb.js b/gen/proto/js/teleport/lib/teleterm/v1/service_grpc_pb.js new file mode 100644 index 0000000000000..faf3d08107fbd --- /dev/null +++ b/gen/proto/js/teleport/lib/teleterm/v1/service_grpc_pb.js @@ -0,0 +1,1065 @@ +// GENERATED CODE -- DO NOT EDIT! + +// Original file comments: +// Copyright 2021 Gravitational, Inc +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +'use strict'; +var grpc = require('@grpc/grpc-js'); +var teleport_lib_teleterm_v1_service_pb = require('../../../../teleport/lib/teleterm/v1/service_pb.js'); +var teleport_lib_teleterm_v1_access_request_pb = require('../../../../teleport/lib/teleterm/v1/access_request_pb.js'); +var teleport_lib_teleterm_v1_app_pb = require('../../../../teleport/lib/teleterm/v1/app_pb.js'); +var teleport_lib_teleterm_v1_auth_settings_pb = require('../../../../teleport/lib/teleterm/v1/auth_settings_pb.js'); +var teleport_lib_teleterm_v1_cluster_pb = require('../../../../teleport/lib/teleterm/v1/cluster_pb.js'); +var teleport_lib_teleterm_v1_database_pb = require('../../../../teleport/lib/teleterm/v1/database_pb.js'); +var teleport_lib_teleterm_v1_gateway_pb = require('../../../../teleport/lib/teleterm/v1/gateway_pb.js'); +var teleport_lib_teleterm_v1_kube_pb = require('../../../../teleport/lib/teleterm/v1/kube_pb.js'); +var teleport_lib_teleterm_v1_server_pb = require('../../../../teleport/lib/teleterm/v1/server_pb.js'); +var teleport_lib_teleterm_v1_usage_events_pb = require('../../../../teleport/lib/teleterm/v1/usage_events_pb.js'); + +function serialize_teleport_lib_teleterm_v1_AddClusterRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.AddClusterRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.AddClusterRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_AddClusterRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.AddClusterRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_AssumeRoleRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.AssumeRoleRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.AssumeRoleRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_AssumeRoleRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.AssumeRoleRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_AuthSettings(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_auth_settings_pb.AuthSettings)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.AuthSettings'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_AuthSettings(buffer_arg) { + return teleport_lib_teleterm_v1_auth_settings_pb.AuthSettings.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_Cluster(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_cluster_pb.Cluster)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.Cluster'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_Cluster(buffer_arg) { + return teleport_lib_teleterm_v1_cluster_pb.Cluster.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_CreateAccessRequestRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.CreateAccessRequestRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.CreateAccessRequestRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_CreateAccessRequestRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.CreateAccessRequestRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_CreateAccessRequestResponse(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.CreateAccessRequestResponse)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.CreateAccessRequestResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_CreateAccessRequestResponse(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.CreateAccessRequestResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_CreateGatewayRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.CreateGatewayRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.CreateGatewayRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_CreateGatewayRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.CreateGatewayRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_DeleteAccessRequestRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.DeleteAccessRequestRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.DeleteAccessRequestRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_DeleteAccessRequestRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.DeleteAccessRequestRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_EmptyResponse(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.EmptyResponse)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.EmptyResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_EmptyResponse(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.EmptyResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_FileTransferProgress(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.FileTransferProgress)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.FileTransferProgress'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_FileTransferProgress(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.FileTransferProgress.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_FileTransferRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.FileTransferRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.FileTransferRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_FileTransferRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.FileTransferRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_Gateway(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_gateway_pb.Gateway)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.Gateway'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_Gateway(buffer_arg) { + return teleport_lib_teleterm_v1_gateway_pb.Gateway.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_GetAccessRequestRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.GetAccessRequestRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.GetAccessRequestRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_GetAccessRequestRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.GetAccessRequestRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_GetAccessRequestResponse(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.GetAccessRequestResponse)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.GetAccessRequestResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_GetAccessRequestResponse(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.GetAccessRequestResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_GetAccessRequestsRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.GetAccessRequestsRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.GetAccessRequestsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_GetAccessRequestsRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.GetAccessRequestsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_GetAccessRequestsResponse(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.GetAccessRequestsResponse)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.GetAccessRequestsResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_GetAccessRequestsResponse(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.GetAccessRequestsResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_GetAllDatabasesRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.GetAllDatabasesRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.GetAllDatabasesRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_GetAllDatabasesRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.GetAllDatabasesRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_GetAllDatabasesResponse(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.GetAllDatabasesResponse)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.GetAllDatabasesResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_GetAllDatabasesResponse(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.GetAllDatabasesResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_GetAllKubesRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.GetAllKubesRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.GetAllKubesRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_GetAllKubesRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.GetAllKubesRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_GetAllKubesResponse(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.GetAllKubesResponse)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.GetAllKubesResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_GetAllKubesResponse(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.GetAllKubesResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_GetAllServersRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.GetAllServersRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.GetAllServersRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_GetAllServersRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.GetAllServersRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_GetAllServersResponse(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.GetAllServersResponse)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.GetAllServersResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_GetAllServersResponse(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.GetAllServersResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_GetAuthSettingsRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.GetAuthSettingsRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.GetAuthSettingsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_GetAuthSettingsRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.GetAuthSettingsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_GetClusterRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.GetClusterRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.GetClusterRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_GetClusterRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.GetClusterRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_GetDatabasesRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.GetDatabasesRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.GetDatabasesRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_GetDatabasesRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.GetDatabasesRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_GetDatabasesResponse(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.GetDatabasesResponse)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.GetDatabasesResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_GetDatabasesResponse(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.GetDatabasesResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_GetKubesRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.GetKubesRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.GetKubesRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_GetKubesRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.GetKubesRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_GetKubesResponse(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.GetKubesResponse)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.GetKubesResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_GetKubesResponse(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.GetKubesResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_GetRequestableRolesRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.GetRequestableRolesRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.GetRequestableRolesRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_GetRequestableRolesRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.GetRequestableRolesRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_GetRequestableRolesResponse(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.GetRequestableRolesResponse)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.GetRequestableRolesResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_GetRequestableRolesResponse(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.GetRequestableRolesResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_GetServersRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.GetServersRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.GetServersRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_GetServersRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.GetServersRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_GetServersResponse(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.GetServersResponse)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.GetServersResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_GetServersResponse(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.GetServersResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_ListAppsRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.ListAppsRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.ListAppsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_ListAppsRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.ListAppsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_ListAppsResponse(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.ListAppsResponse)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.ListAppsResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_ListAppsResponse(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.ListAppsResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_ListClustersRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.ListClustersRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.ListClustersRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_ListClustersRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.ListClustersRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_ListClustersResponse(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.ListClustersResponse)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.ListClustersResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_ListClustersResponse(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.ListClustersResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_ListDatabaseUsersRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.ListDatabaseUsersRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.ListDatabaseUsersRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_ListDatabaseUsersRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.ListDatabaseUsersRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_ListDatabaseUsersResponse(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.ListDatabaseUsersResponse)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.ListDatabaseUsersResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_ListDatabaseUsersResponse(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.ListDatabaseUsersResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_ListGatewaysRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.ListGatewaysRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.ListGatewaysRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_ListGatewaysRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.ListGatewaysRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_ListGatewaysResponse(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.ListGatewaysResponse)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.ListGatewaysResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_ListGatewaysResponse(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.ListGatewaysResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_ListLeafClustersRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.ListLeafClustersRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.ListLeafClustersRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_ListLeafClustersRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.ListLeafClustersRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_LoginPasswordlessRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.LoginPasswordlessRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.LoginPasswordlessRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_LoginPasswordlessRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.LoginPasswordlessRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_LoginPasswordlessResponse(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.LoginPasswordlessResponse)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.LoginPasswordlessResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_LoginPasswordlessResponse(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.LoginPasswordlessResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_LoginRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.LoginRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.LoginRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_LoginRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.LoginRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_LogoutRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.LogoutRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.LogoutRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_LogoutRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.LogoutRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_RemoveClusterRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.RemoveClusterRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.RemoveClusterRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_RemoveClusterRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.RemoveClusterRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_RemoveGatewayRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.RemoveGatewayRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.RemoveGatewayRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_RemoveGatewayRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.RemoveGatewayRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_ReportUsageEventRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_usage_events_pb.ReportUsageEventRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.ReportUsageEventRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_ReportUsageEventRequest(buffer_arg) { + return teleport_lib_teleterm_v1_usage_events_pb.ReportUsageEventRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_RestartGatewayRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.RestartGatewayRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.RestartGatewayRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_RestartGatewayRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.RestartGatewayRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_ReviewAccessRequestRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.ReviewAccessRequestRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.ReviewAccessRequestRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_ReviewAccessRequestRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.ReviewAccessRequestRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_ReviewAccessRequestResponse(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.ReviewAccessRequestResponse)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.ReviewAccessRequestResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_ReviewAccessRequestResponse(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.ReviewAccessRequestResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_SetGatewayLocalPortRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.SetGatewayLocalPortRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.SetGatewayLocalPortRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_SetGatewayLocalPortRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.SetGatewayLocalPortRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_SetGatewayTargetSubresourceNameRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.SetGatewayTargetSubresourceNameRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_SetGatewayTargetSubresourceNameRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.SetGatewayTargetSubresourceNameRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_UpdateTshdEventsServerAddressRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.UpdateTshdEventsServerAddressRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_UpdateTshdEventsServerAddressRequest(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.UpdateTshdEventsServerAddressRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_UpdateTshdEventsServerAddressResponse(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_service_pb.UpdateTshdEventsServerAddressResponse)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_UpdateTshdEventsServerAddressResponse(buffer_arg) { + return teleport_lib_teleterm_v1_service_pb.UpdateTshdEventsServerAddressResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + + +// TerminalService describes Teleterm service +var TerminalServiceService = exports.TerminalServiceService = { + // UpdateTshdEventsServerAddress lets the Electron app update the address the tsh daemon is +// supposed to use when connecting to the tshd events gRPC service. This RPC needs to be made +// before any other from this service. +// +// The service is supposed to return a response from this call only after the client is ready. +updateTshdEventsServerAddress: { + path: '/teleport.lib.teleterm.v1.TerminalService/UpdateTshdEventsServerAddress', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.UpdateTshdEventsServerAddressRequest, + responseType: teleport_lib_teleterm_v1_service_pb.UpdateTshdEventsServerAddressResponse, + requestSerialize: serialize_teleport_lib_teleterm_v1_UpdateTshdEventsServerAddressRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_UpdateTshdEventsServerAddressRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_UpdateTshdEventsServerAddressResponse, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_UpdateTshdEventsServerAddressResponse, + }, + // ListRootClusters lists root clusters +// Does not include detailed cluster information that would require a network request. +listRootClusters: { + path: '/teleport.lib.teleterm.v1.TerminalService/ListRootClusters', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.ListClustersRequest, + responseType: teleport_lib_teleterm_v1_service_pb.ListClustersResponse, + requestSerialize: serialize_teleport_lib_teleterm_v1_ListClustersRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_ListClustersRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_ListClustersResponse, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_ListClustersResponse, + }, + // ListLeafClusters lists leaf clusters +// Does not include detailed cluster information that would require a network request. +listLeafClusters: { + path: '/teleport.lib.teleterm.v1.TerminalService/ListLeafClusters', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.ListLeafClustersRequest, + responseType: teleport_lib_teleterm_v1_service_pb.ListClustersResponse, + requestSerialize: serialize_teleport_lib_teleterm_v1_ListLeafClustersRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_ListLeafClustersRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_ListClustersResponse, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_ListClustersResponse, + }, + // GetAllDatabases lists all databases without pagination +getAllDatabases: { + path: '/teleport.lib.teleterm.v1.TerminalService/GetAllDatabases', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.GetAllDatabasesRequest, + responseType: teleport_lib_teleterm_v1_service_pb.GetAllDatabasesResponse, + requestSerialize: serialize_teleport_lib_teleterm_v1_GetAllDatabasesRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_GetAllDatabasesRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_GetAllDatabasesResponse, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_GetAllDatabasesResponse, + }, + // GetDatabases returns a filtered and paginated list of databases +getDatabases: { + path: '/teleport.lib.teleterm.v1.TerminalService/GetDatabases', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.GetDatabasesRequest, + responseType: teleport_lib_teleterm_v1_service_pb.GetDatabasesResponse, + requestSerialize: serialize_teleport_lib_teleterm_v1_GetDatabasesRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_GetDatabasesRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_GetDatabasesResponse, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_GetDatabasesResponse, + }, + // ListDatabaseUsers lists allowed users for the given database based on the role set. +listDatabaseUsers: { + path: '/teleport.lib.teleterm.v1.TerminalService/ListDatabaseUsers', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.ListDatabaseUsersRequest, + responseType: teleport_lib_teleterm_v1_service_pb.ListDatabaseUsersResponse, + requestSerialize: serialize_teleport_lib_teleterm_v1_ListDatabaseUsersRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_ListDatabaseUsersRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_ListDatabaseUsersResponse, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_ListDatabaseUsersResponse, + }, + // GetAllServers returns all servers +getAllServers: { + path: '/teleport.lib.teleterm.v1.TerminalService/GetAllServers', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.GetAllServersRequest, + responseType: teleport_lib_teleterm_v1_service_pb.GetAllServersResponse, + requestSerialize: serialize_teleport_lib_teleterm_v1_GetAllServersRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_GetAllServersRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_GetAllServersResponse, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_GetAllServersResponse, + }, + // GetServers returns filtered, sorted, and paginated servers +getServers: { + path: '/teleport.lib.teleterm.v1.TerminalService/GetServers', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.GetServersRequest, + responseType: teleport_lib_teleterm_v1_service_pb.GetServersResponse, + requestSerialize: serialize_teleport_lib_teleterm_v1_GetServersRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_GetServersRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_GetServersResponse, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_GetServersResponse, + }, + // GetAccessRequests lists filtered AccessRequests +getAccessRequests: { + path: '/teleport.lib.teleterm.v1.TerminalService/GetAccessRequests', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.GetAccessRequestsRequest, + responseType: teleport_lib_teleterm_v1_service_pb.GetAccessRequestsResponse, + requestSerialize: serialize_teleport_lib_teleterm_v1_GetAccessRequestsRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_GetAccessRequestsRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_GetAccessRequestsResponse, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_GetAccessRequestsResponse, + }, + // GetAccessRequest retreives a single Access Request +getAccessRequest: { + path: '/teleport.lib.teleterm.v1.TerminalService/GetAccessRequest', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.GetAccessRequestRequest, + responseType: teleport_lib_teleterm_v1_service_pb.GetAccessRequestResponse, + requestSerialize: serialize_teleport_lib_teleterm_v1_GetAccessRequestRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_GetAccessRequestRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_GetAccessRequestResponse, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_GetAccessRequestResponse, + }, + // DeleteAccessRequest deletes the access request by id +deleteAccessRequest: { + path: '/teleport.lib.teleterm.v1.TerminalService/DeleteAccessRequest', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.DeleteAccessRequestRequest, + responseType: teleport_lib_teleterm_v1_service_pb.EmptyResponse, + requestSerialize: serialize_teleport_lib_teleterm_v1_DeleteAccessRequestRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_DeleteAccessRequestRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_EmptyResponse, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_EmptyResponse, + }, + // CreateAccessRequest creates an access request +createAccessRequest: { + path: '/teleport.lib.teleterm.v1.TerminalService/CreateAccessRequest', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.CreateAccessRequestRequest, + responseType: teleport_lib_teleterm_v1_service_pb.CreateAccessRequestResponse, + requestSerialize: serialize_teleport_lib_teleterm_v1_CreateAccessRequestRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_CreateAccessRequestRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_CreateAccessRequestResponse, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_CreateAccessRequestResponse, + }, + // ReviewAccessRequest submits a review for an Access Request +reviewAccessRequest: { + path: '/teleport.lib.teleterm.v1.TerminalService/ReviewAccessRequest', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.ReviewAccessRequestRequest, + responseType: teleport_lib_teleterm_v1_service_pb.ReviewAccessRequestResponse, + requestSerialize: serialize_teleport_lib_teleterm_v1_ReviewAccessRequestRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_ReviewAccessRequestRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_ReviewAccessRequestResponse, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_ReviewAccessRequestResponse, + }, + // GetRequestableRoles gets all requestable roles +getRequestableRoles: { + path: '/teleport.lib.teleterm.v1.TerminalService/GetRequestableRoles', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.GetRequestableRolesRequest, + responseType: teleport_lib_teleterm_v1_service_pb.GetRequestableRolesResponse, + requestSerialize: serialize_teleport_lib_teleterm_v1_GetRequestableRolesRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_GetRequestableRolesRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_GetRequestableRolesResponse, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_GetRequestableRolesResponse, + }, + // AssumeRole assumes the role of the given access request +assumeRole: { + path: '/teleport.lib.teleterm.v1.TerminalService/AssumeRole', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.AssumeRoleRequest, + responseType: teleport_lib_teleterm_v1_service_pb.EmptyResponse, + requestSerialize: serialize_teleport_lib_teleterm_v1_AssumeRoleRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_AssumeRoleRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_EmptyResponse, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_EmptyResponse, + }, + // GetAllKubes list all kubes +getAllKubes: { + path: '/teleport.lib.teleterm.v1.TerminalService/GetAllKubes', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.GetAllKubesRequest, + responseType: teleport_lib_teleterm_v1_service_pb.GetAllKubesResponse, + requestSerialize: serialize_teleport_lib_teleterm_v1_GetAllKubesRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_GetAllKubesRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_GetAllKubesResponse, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_GetAllKubesResponse, + }, + // GetKubes returns filtered, sorted, and paginated kubes +getKubes: { + path: '/teleport.lib.teleterm.v1.TerminalService/GetKubes', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.GetKubesRequest, + responseType: teleport_lib_teleterm_v1_service_pb.GetKubesResponse, + requestSerialize: serialize_teleport_lib_teleterm_v1_GetKubesRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_GetKubesRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_GetKubesResponse, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_GetKubesResponse, + }, + // ListApps list apps +listApps: { + path: '/teleport.lib.teleterm.v1.TerminalService/ListApps', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.ListAppsRequest, + responseType: teleport_lib_teleterm_v1_service_pb.ListAppsResponse, + requestSerialize: serialize_teleport_lib_teleterm_v1_ListAppsRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_ListAppsRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_ListAppsResponse, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_ListAppsResponse, + }, + // AddCluster adds a cluster to profile +addCluster: { + path: '/teleport.lib.teleterm.v1.TerminalService/AddCluster', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.AddClusterRequest, + responseType: teleport_lib_teleterm_v1_cluster_pb.Cluster, + requestSerialize: serialize_teleport_lib_teleterm_v1_AddClusterRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_AddClusterRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_Cluster, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_Cluster, + }, + // RemoveCluster removes a cluster from profile +removeCluster: { + path: '/teleport.lib.teleterm.v1.TerminalService/RemoveCluster', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.RemoveClusterRequest, + responseType: teleport_lib_teleterm_v1_service_pb.EmptyResponse, + requestSerialize: serialize_teleport_lib_teleterm_v1_RemoveClusterRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_RemoveClusterRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_EmptyResponse, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_EmptyResponse, + }, + // ListGateways lists gateways +listGateways: { + path: '/teleport.lib.teleterm.v1.TerminalService/ListGateways', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.ListGatewaysRequest, + responseType: teleport_lib_teleterm_v1_service_pb.ListGatewaysResponse, + requestSerialize: serialize_teleport_lib_teleterm_v1_ListGatewaysRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_ListGatewaysRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_ListGatewaysResponse, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_ListGatewaysResponse, + }, + // CreateGateway creates a gateway +createGateway: { + path: '/teleport.lib.teleterm.v1.TerminalService/CreateGateway', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.CreateGatewayRequest, + responseType: teleport_lib_teleterm_v1_gateway_pb.Gateway, + requestSerialize: serialize_teleport_lib_teleterm_v1_CreateGatewayRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_CreateGatewayRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_Gateway, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_Gateway, + }, + // RemoveGateway removes a gateway +removeGateway: { + path: '/teleport.lib.teleterm.v1.TerminalService/RemoveGateway', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.RemoveGatewayRequest, + responseType: teleport_lib_teleterm_v1_service_pb.EmptyResponse, + requestSerialize: serialize_teleport_lib_teleterm_v1_RemoveGatewayRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_RemoveGatewayRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_EmptyResponse, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_EmptyResponse, + }, + // RestartGateway stops a gateway and starts a new with identical parameters, keeping the +// original URI. A temporary workaround until it's possible to refresh certs in a running +// database proxy. +restartGateway: { + path: '/teleport.lib.teleterm.v1.TerminalService/RestartGateway', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.RestartGatewayRequest, + responseType: teleport_lib_teleterm_v1_service_pb.EmptyResponse, + requestSerialize: serialize_teleport_lib_teleterm_v1_RestartGatewayRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_RestartGatewayRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_EmptyResponse, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_EmptyResponse, + }, + // SetGatewayTargetSubresourceName changes the TargetSubresourceName field of gateway.Gateway +// and returns the updated version of gateway.Gateway. +// +// In Connect this is used to update the db name of a db connection along with the CLI command. +setGatewayTargetSubresourceName: { + path: '/teleport.lib.teleterm.v1.TerminalService/SetGatewayTargetSubresourceName', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.SetGatewayTargetSubresourceNameRequest, + responseType: teleport_lib_teleterm_v1_gateway_pb.Gateway, + requestSerialize: serialize_teleport_lib_teleterm_v1_SetGatewayTargetSubresourceNameRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_SetGatewayTargetSubresourceNameRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_Gateway, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_Gateway, + }, + // SetGatewayLocalPort starts a new gateway on the new port, stops the old gateway and then +// assigns the URI of the old gateway to the new one. It does so without fetching a new db cert. +setGatewayLocalPort: { + path: '/teleport.lib.teleterm.v1.TerminalService/SetGatewayLocalPort', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.SetGatewayLocalPortRequest, + responseType: teleport_lib_teleterm_v1_gateway_pb.Gateway, + requestSerialize: serialize_teleport_lib_teleterm_v1_SetGatewayLocalPortRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_SetGatewayLocalPortRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_Gateway, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_Gateway, + }, + // GetAuthSettings returns cluster auth settigns +getAuthSettings: { + path: '/teleport.lib.teleterm.v1.TerminalService/GetAuthSettings', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.GetAuthSettingsRequest, + responseType: teleport_lib_teleterm_v1_auth_settings_pb.AuthSettings, + requestSerialize: serialize_teleport_lib_teleterm_v1_GetAuthSettingsRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_GetAuthSettingsRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_AuthSettings, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_AuthSettings, + }, + // GetCluster returns cluster. Makes a network request and includes detailed +// information about enterprise features availabed on the connected auth server +getCluster: { + path: '/teleport.lib.teleterm.v1.TerminalService/GetCluster', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.GetClusterRequest, + responseType: teleport_lib_teleterm_v1_cluster_pb.Cluster, + requestSerialize: serialize_teleport_lib_teleterm_v1_GetClusterRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_GetClusterRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_Cluster, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_Cluster, + }, + // Login logs in a user to a cluster +login: { + path: '/teleport.lib.teleterm.v1.TerminalService/Login', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.LoginRequest, + responseType: teleport_lib_teleterm_v1_service_pb.EmptyResponse, + requestSerialize: serialize_teleport_lib_teleterm_v1_LoginRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_LoginRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_EmptyResponse, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_EmptyResponse, + }, + // LoginPasswordless logs in a user to a cluster passwordlessly. +// +// The RPC is streaming both ways and the message sequence example for hardware keys are: +// (-> means client-to-server, <- means server-to-client) +// +// Hardware keys: +// -> Init +// <- Send PasswordlessPrompt enum TAP to choose a device +// -> Receive TAP device response +// <- Send PasswordlessPrompt enum PIN +// -> Receive PIN response +// <- Send PasswordlessPrompt enum RETAP to confirm +// -> Receive RETAP device response +// <- Send list of credentials (e.g. usernames) associated with device +// -> Receive the index number associated with the selected credential in list +// <- End +loginPasswordless: { + path: '/teleport.lib.teleterm.v1.TerminalService/LoginPasswordless', + requestStream: true, + responseStream: true, + requestType: teleport_lib_teleterm_v1_service_pb.LoginPasswordlessRequest, + responseType: teleport_lib_teleterm_v1_service_pb.LoginPasswordlessResponse, + requestSerialize: serialize_teleport_lib_teleterm_v1_LoginPasswordlessRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_LoginPasswordlessRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_LoginPasswordlessResponse, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_LoginPasswordlessResponse, + }, + // ClusterLogin logs out a user from cluster +logout: { + path: '/teleport.lib.teleterm.v1.TerminalService/Logout', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_service_pb.LogoutRequest, + responseType: teleport_lib_teleterm_v1_service_pb.EmptyResponse, + requestSerialize: serialize_teleport_lib_teleterm_v1_LogoutRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_LogoutRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_EmptyResponse, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_EmptyResponse, + }, + // TransferFile sends a request to download/upload a file +transferFile: { + path: '/teleport.lib.teleterm.v1.TerminalService/TransferFile', + requestStream: false, + responseStream: true, + requestType: teleport_lib_teleterm_v1_service_pb.FileTransferRequest, + responseType: teleport_lib_teleterm_v1_service_pb.FileTransferProgress, + requestSerialize: serialize_teleport_lib_teleterm_v1_FileTransferRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_FileTransferRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_FileTransferProgress, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_FileTransferProgress, + }, + // ReportUsageEvent allows to send usage events that are then anonymized and forwarded to prehog +reportUsageEvent: { + path: '/teleport.lib.teleterm.v1.TerminalService/ReportUsageEvent', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_usage_events_pb.ReportUsageEventRequest, + responseType: teleport_lib_teleterm_v1_service_pb.EmptyResponse, + requestSerialize: serialize_teleport_lib_teleterm_v1_ReportUsageEventRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_ReportUsageEventRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_EmptyResponse, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_EmptyResponse, + }, +}; + +exports.TerminalServiceClient = grpc.makeGenericClientConstructor(TerminalServiceService); diff --git a/web/packages/teleterm/src/services/tshd/v1/service_pb.d.ts b/gen/proto/js/teleport/lib/teleterm/v1/service_pb.d.ts similarity index 90% rename from web/packages/teleterm/src/services/tshd/v1/service_pb.d.ts rename to gen/proto/js/teleport/lib/teleterm/v1/service_pb.d.ts index e44f119c5ded2..c8c0bc23e124f 100644 --- a/web/packages/teleterm/src/services/tshd/v1/service_pb.d.ts +++ b/gen/proto/js/teleport/lib/teleterm/v1/service_pb.d.ts @@ -1,19 +1,19 @@ -// package: teleport.terminal.v1 -// file: v1/service.proto +// package: teleport.lib.teleterm.v1 +// file: teleport/lib/teleterm/v1/service.proto /* tslint:disable */ /* eslint-disable */ import * as jspb from "google-protobuf"; -import * as v1_access_request_pb from "../v1/access_request_pb"; -import * as v1_app_pb from "../v1/app_pb"; -import * as v1_auth_settings_pb from "../v1/auth_settings_pb"; -import * as v1_cluster_pb from "../v1/cluster_pb"; -import * as v1_database_pb from "../v1/database_pb"; -import * as v1_gateway_pb from "../v1/gateway_pb"; -import * as v1_kube_pb from "../v1/kube_pb"; -import * as v1_server_pb from "../v1/server_pb"; -import * as v1_usage_events_pb from "../v1/usage_events_pb"; +import * as teleport_lib_teleterm_v1_access_request_pb from "../../../../teleport/lib/teleterm/v1/access_request_pb"; +import * as teleport_lib_teleterm_v1_app_pb from "../../../../teleport/lib/teleterm/v1/app_pb"; +import * as teleport_lib_teleterm_v1_auth_settings_pb from "../../../../teleport/lib/teleterm/v1/auth_settings_pb"; +import * as teleport_lib_teleterm_v1_cluster_pb from "../../../../teleport/lib/teleterm/v1/cluster_pb"; +import * as teleport_lib_teleterm_v1_database_pb from "../../../../teleport/lib/teleterm/v1/database_pb"; +import * as teleport_lib_teleterm_v1_gateway_pb from "../../../../teleport/lib/teleterm/v1/gateway_pb"; +import * as teleport_lib_teleterm_v1_kube_pb from "../../../../teleport/lib/teleterm/v1/kube_pb"; +import * as teleport_lib_teleterm_v1_server_pb from "../../../../teleport/lib/teleterm/v1/server_pb"; +import * as teleport_lib_teleterm_v1_usage_events_pb from "../../../../teleport/lib/teleterm/v1/usage_events_pb"; export class EmptyResponse extends jspb.Message { @@ -145,8 +145,8 @@ export class GetAccessRequestResponse extends jspb.Message { hasRequest(): boolean; clearRequest(): void; - getRequest(): v1_access_request_pb.AccessRequest | undefined; - setRequest(value?: v1_access_request_pb.AccessRequest): GetAccessRequestResponse; + getRequest(): teleport_lib_teleterm_v1_access_request_pb.AccessRequest | undefined; + setRequest(value?: teleport_lib_teleterm_v1_access_request_pb.AccessRequest): GetAccessRequestResponse; serializeBinary(): Uint8Array; @@ -161,15 +161,15 @@ export class GetAccessRequestResponse extends jspb.Message { export namespace GetAccessRequestResponse { export type AsObject = { - request?: v1_access_request_pb.AccessRequest.AsObject, + request?: teleport_lib_teleterm_v1_access_request_pb.AccessRequest.AsObject, } } export class GetAccessRequestsResponse extends jspb.Message { clearRequestsList(): void; - getRequestsList(): Array; - setRequestsList(value: Array): GetAccessRequestsResponse; - addRequests(value?: v1_access_request_pb.AccessRequest, index?: number): v1_access_request_pb.AccessRequest; + getRequestsList(): Array; + setRequestsList(value: Array): GetAccessRequestsResponse; + addRequests(value?: teleport_lib_teleterm_v1_access_request_pb.AccessRequest, index?: number): teleport_lib_teleterm_v1_access_request_pb.AccessRequest; serializeBinary(): Uint8Array; @@ -184,7 +184,7 @@ export class GetAccessRequestsResponse extends jspb.Message { export namespace GetAccessRequestsResponse { export type AsObject = { - requestsList: Array, + requestsList: Array, } } @@ -231,9 +231,9 @@ export class CreateAccessRequestRequest extends jspb.Message { addSuggestedReviewers(value: string, index?: number): string; clearResourceIdsList(): void; - getResourceIdsList(): Array; - setResourceIdsList(value: Array): CreateAccessRequestRequest; - addResourceIds(value?: v1_access_request_pb.ResourceID, index?: number): v1_access_request_pb.ResourceID; + getResourceIdsList(): Array; + setResourceIdsList(value: Array): CreateAccessRequestRequest; + addResourceIds(value?: teleport_lib_teleterm_v1_access_request_pb.ResourceID, index?: number): teleport_lib_teleterm_v1_access_request_pb.ResourceID; serializeBinary(): Uint8Array; @@ -252,7 +252,7 @@ export namespace CreateAccessRequestRequest { reason: string, rolesList: Array, suggestedReviewersList: Array, - resourceIdsList: Array, + resourceIdsList: Array, } } @@ -260,8 +260,8 @@ export class CreateAccessRequestResponse extends jspb.Message { hasRequest(): boolean; clearRequest(): void; - getRequest(): v1_access_request_pb.AccessRequest | undefined; - setRequest(value?: v1_access_request_pb.AccessRequest): CreateAccessRequestResponse; + getRequest(): teleport_lib_teleterm_v1_access_request_pb.AccessRequest | undefined; + setRequest(value?: teleport_lib_teleterm_v1_access_request_pb.AccessRequest): CreateAccessRequestResponse; serializeBinary(): Uint8Array; @@ -276,7 +276,7 @@ export class CreateAccessRequestResponse extends jspb.Message { export namespace CreateAccessRequestResponse { export type AsObject = { - request?: v1_access_request_pb.AccessRequest.AsObject, + request?: teleport_lib_teleterm_v1_access_request_pb.AccessRequest.AsObject, } } @@ -318,9 +318,9 @@ export class GetRequestableRolesRequest extends jspb.Message { setClusterUri(value: string): GetRequestableRolesRequest; clearResourceIdsList(): void; - getResourceIdsList(): Array; - setResourceIdsList(value: Array): GetRequestableRolesRequest; - addResourceIds(value?: v1_access_request_pb.ResourceID, index?: number): v1_access_request_pb.ResourceID; + getResourceIdsList(): Array; + setResourceIdsList(value: Array): GetRequestableRolesRequest; + addResourceIds(value?: teleport_lib_teleterm_v1_access_request_pb.ResourceID, index?: number): teleport_lib_teleterm_v1_access_request_pb.ResourceID; serializeBinary(): Uint8Array; @@ -336,7 +336,7 @@ export class GetRequestableRolesRequest extends jspb.Message { export namespace GetRequestableRolesRequest { export type AsObject = { clusterUri: string, - resourceIdsList: Array, + resourceIdsList: Array, } } @@ -412,8 +412,8 @@ export class ReviewAccessRequestResponse extends jspb.Message { hasRequest(): boolean; clearRequest(): void; - getRequest(): v1_access_request_pb.AccessRequest | undefined; - setRequest(value?: v1_access_request_pb.AccessRequest): ReviewAccessRequestResponse; + getRequest(): teleport_lib_teleterm_v1_access_request_pb.AccessRequest | undefined; + setRequest(value?: teleport_lib_teleterm_v1_access_request_pb.AccessRequest): ReviewAccessRequestResponse; serializeBinary(): Uint8Array; @@ -428,7 +428,7 @@ export class ReviewAccessRequestResponse extends jspb.Message { export namespace ReviewAccessRequestResponse { export type AsObject = { - request?: v1_access_request_pb.AccessRequest.AsObject, + request?: teleport_lib_teleterm_v1_access_request_pb.AccessRequest.AsObject, } } @@ -823,9 +823,9 @@ export namespace ListClustersRequest { export class ListClustersResponse extends jspb.Message { clearClustersList(): void; - getClustersList(): Array; - setClustersList(value: Array): ListClustersResponse; - addClusters(value?: v1_cluster_pb.Cluster, index?: number): v1_cluster_pb.Cluster; + getClustersList(): Array; + setClustersList(value: Array): ListClustersResponse; + addClusters(value?: teleport_lib_teleterm_v1_cluster_pb.Cluster, index?: number): teleport_lib_teleterm_v1_cluster_pb.Cluster; serializeBinary(): Uint8Array; @@ -840,7 +840,7 @@ export class ListClustersResponse extends jspb.Message { export namespace ListClustersResponse { export type AsObject = { - clustersList: Array, + clustersList: Array, } } @@ -933,9 +933,9 @@ export namespace ListLeafClustersRequest { export class GetAllDatabasesResponse extends jspb.Message { clearDatabasesList(): void; - getDatabasesList(): Array; - setDatabasesList(value: Array): GetAllDatabasesResponse; - addDatabases(value?: v1_database_pb.Database, index?: number): v1_database_pb.Database; + getDatabasesList(): Array; + setDatabasesList(value: Array): GetAllDatabasesResponse; + addDatabases(value?: teleport_lib_teleterm_v1_database_pb.Database, index?: number): teleport_lib_teleterm_v1_database_pb.Database; serializeBinary(): Uint8Array; @@ -950,7 +950,7 @@ export class GetAllDatabasesResponse extends jspb.Message { export namespace GetAllDatabasesResponse { export type AsObject = { - databasesList: Array, + databasesList: Array, } } @@ -1056,9 +1056,9 @@ export namespace ListGatewaysRequest { export class ListGatewaysResponse extends jspb.Message { clearGatewaysList(): void; - getGatewaysList(): Array; - setGatewaysList(value: Array): ListGatewaysResponse; - addGateways(value?: v1_gateway_pb.Gateway, index?: number): v1_gateway_pb.Gateway; + getGatewaysList(): Array; + setGatewaysList(value: Array): ListGatewaysResponse; + addGateways(value?: teleport_lib_teleterm_v1_gateway_pb.Gateway, index?: number): teleport_lib_teleterm_v1_gateway_pb.Gateway; serializeBinary(): Uint8Array; @@ -1073,7 +1073,7 @@ export class ListGatewaysResponse extends jspb.Message { export namespace ListGatewaysResponse { export type AsObject = { - gatewaysList: Array, + gatewaysList: Array, } } @@ -1192,9 +1192,9 @@ export namespace GetAllServersRequest { export class GetAllServersResponse extends jspb.Message { clearServersList(): void; - getServersList(): Array; - setServersList(value: Array): GetAllServersResponse; - addServers(value?: v1_server_pb.Server, index?: number): v1_server_pb.Server; + getServersList(): Array; + setServersList(value: Array): GetAllServersResponse; + addServers(value?: teleport_lib_teleterm_v1_server_pb.Server, index?: number): teleport_lib_teleterm_v1_server_pb.Server; serializeBinary(): Uint8Array; @@ -1209,7 +1209,7 @@ export class GetAllServersResponse extends jspb.Message { export namespace GetAllServersResponse { export type AsObject = { - serversList: Array, + serversList: Array, } } @@ -1260,9 +1260,9 @@ export namespace GetServersRequest { export class GetServersResponse extends jspb.Message { clearAgentsList(): void; - getAgentsList(): Array; - setAgentsList(value: Array): GetServersResponse; - addAgents(value?: v1_server_pb.Server, index?: number): v1_server_pb.Server; + getAgentsList(): Array; + setAgentsList(value: Array): GetServersResponse; + addAgents(value?: teleport_lib_teleterm_v1_server_pb.Server, index?: number): teleport_lib_teleterm_v1_server_pb.Server; getTotalCount(): number; setTotalCount(value: number): GetServersResponse; @@ -1283,7 +1283,7 @@ export class GetServersResponse extends jspb.Message { export namespace GetServersResponse { export type AsObject = { - agentsList: Array, + agentsList: Array, totalCount: number, startKey: string, } @@ -1291,9 +1291,9 @@ export namespace GetServersResponse { export class GetDatabasesResponse extends jspb.Message { clearAgentsList(): void; - getAgentsList(): Array; - setAgentsList(value: Array): GetDatabasesResponse; - addAgents(value?: v1_database_pb.Database, index?: number): v1_database_pb.Database; + getAgentsList(): Array; + setAgentsList(value: Array): GetDatabasesResponse; + addAgents(value?: teleport_lib_teleterm_v1_database_pb.Database, index?: number): teleport_lib_teleterm_v1_database_pb.Database; getTotalCount(): number; setTotalCount(value: number): GetDatabasesResponse; @@ -1314,7 +1314,7 @@ export class GetDatabasesResponse extends jspb.Message { export namespace GetDatabasesResponse { export type AsObject = { - agentsList: Array, + agentsList: Array, totalCount: number, startKey: string, } @@ -1343,9 +1343,9 @@ export namespace GetAllKubesRequest { export class GetAllKubesResponse extends jspb.Message { clearKubesList(): void; - getKubesList(): Array; - setKubesList(value: Array): GetAllKubesResponse; - addKubes(value?: v1_kube_pb.Kube, index?: number): v1_kube_pb.Kube; + getKubesList(): Array; + setKubesList(value: Array): GetAllKubesResponse; + addKubes(value?: teleport_lib_teleterm_v1_kube_pb.Kube, index?: number): teleport_lib_teleterm_v1_kube_pb.Kube; serializeBinary(): Uint8Array; @@ -1360,7 +1360,7 @@ export class GetAllKubesResponse extends jspb.Message { export namespace GetAllKubesResponse { export type AsObject = { - kubesList: Array, + kubesList: Array, } } @@ -1411,9 +1411,9 @@ export namespace GetKubesRequest { export class GetKubesResponse extends jspb.Message { clearAgentsList(): void; - getAgentsList(): Array; - setAgentsList(value: Array): GetKubesResponse; - addAgents(value?: v1_kube_pb.Kube, index?: number): v1_kube_pb.Kube; + getAgentsList(): Array; + setAgentsList(value: Array): GetKubesResponse; + addAgents(value?: teleport_lib_teleterm_v1_kube_pb.Kube, index?: number): teleport_lib_teleterm_v1_kube_pb.Kube; getTotalCount(): number; setTotalCount(value: number): GetKubesResponse; @@ -1434,7 +1434,7 @@ export class GetKubesResponse extends jspb.Message { export namespace GetKubesResponse { export type AsObject = { - agentsList: Array, + agentsList: Array, totalCount: number, startKey: string, } @@ -1442,9 +1442,9 @@ export namespace GetKubesResponse { export class ListAppsResponse extends jspb.Message { clearAppsList(): void; - getAppsList(): Array; - setAppsList(value: Array): ListAppsResponse; - addApps(value?: v1_app_pb.App, index?: number): v1_app_pb.App; + getAppsList(): Array; + setAppsList(value: Array): ListAppsResponse; + addApps(value?: teleport_lib_teleterm_v1_app_pb.App, index?: number): teleport_lib_teleterm_v1_app_pb.App; serializeBinary(): Uint8Array; @@ -1459,7 +1459,7 @@ export class ListAppsResponse extends jspb.Message { export namespace ListAppsResponse { export type AsObject = { - appsList: Array, + appsList: Array, } } diff --git a/lib/teleterm/api/protogen/js/v1/service_pb.js b/gen/proto/js/teleport/lib/teleterm/v1/service_pb.js similarity index 60% rename from lib/teleterm/api/protogen/js/v1/service_pb.js rename to gen/proto/js/teleport/lib/teleterm/v1/service_pb.js index a83d91680ef88..b39b3b1fd7d67 100644 --- a/lib/teleterm/api/protogen/js/v1/service_pb.js +++ b/gen/proto/js/teleport/lib/teleterm/v1/service_pb.js @@ -1,4 +1,4 @@ -// source: v1/service.proto +// source: teleport/lib/teleterm/v1/service.proto /** * @fileoverview * @enhanceable @@ -15,85 +15,85 @@ var jspb = require('google-protobuf'); var goog = jspb; var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); -var v1_access_request_pb = require('../v1/access_request_pb.js'); -goog.object.extend(proto, v1_access_request_pb); -var v1_app_pb = require('../v1/app_pb.js'); -goog.object.extend(proto, v1_app_pb); -var v1_auth_settings_pb = require('../v1/auth_settings_pb.js'); -goog.object.extend(proto, v1_auth_settings_pb); -var v1_cluster_pb = require('../v1/cluster_pb.js'); -goog.object.extend(proto, v1_cluster_pb); -var v1_database_pb = require('../v1/database_pb.js'); -goog.object.extend(proto, v1_database_pb); -var v1_gateway_pb = require('../v1/gateway_pb.js'); -goog.object.extend(proto, v1_gateway_pb); -var v1_kube_pb = require('../v1/kube_pb.js'); -goog.object.extend(proto, v1_kube_pb); -var v1_server_pb = require('../v1/server_pb.js'); -goog.object.extend(proto, v1_server_pb); -var v1_usage_events_pb = require('../v1/usage_events_pb.js'); -goog.object.extend(proto, v1_usage_events_pb); -goog.exportSymbol('proto.teleport.terminal.v1.AddClusterRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.AssumeRoleRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.CreateAccessRequestRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.CreateAccessRequestResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.CreateGatewayRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.CredentialInfo', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.DeleteAccessRequestRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.EmptyResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.FileTransferDirection', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.FileTransferProgress', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.FileTransferRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetAccessRequestRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetAccessRequestResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetAccessRequestsRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetAccessRequestsResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetAllDatabasesRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetAllDatabasesResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetAllKubesRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetAllKubesResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetAllServersRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetAllServersResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetAuthSettingsRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetClusterRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetDatabasesRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetDatabasesResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetKubesRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetKubesResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetRequestableRolesRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetRequestableRolesResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetServersRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetServersResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ListAppsRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ListAppsResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ListClustersRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ListClustersResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ListDatabaseUsersRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ListDatabaseUsersResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ListGatewaysRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ListGatewaysResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ListLeafClustersRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.LoginPasswordlessRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.LoginPasswordlessRequest.RequestCase', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.LoginPasswordlessResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.LoginRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.LoginRequest.LocalParams', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.LoginRequest.ParamsCase', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.LoginRequest.SsoParams', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.LogoutRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.PasswordlessPrompt', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.RemoveClusterRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.RemoveGatewayRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.RestartGatewayRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ReviewAccessRequestRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ReviewAccessRequestResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.SetGatewayLocalPortRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse', null, global); +var teleport_lib_teleterm_v1_access_request_pb = require('../../../../teleport/lib/teleterm/v1/access_request_pb.js'); +goog.object.extend(proto, teleport_lib_teleterm_v1_access_request_pb); +var teleport_lib_teleterm_v1_app_pb = require('../../../../teleport/lib/teleterm/v1/app_pb.js'); +goog.object.extend(proto, teleport_lib_teleterm_v1_app_pb); +var teleport_lib_teleterm_v1_auth_settings_pb = require('../../../../teleport/lib/teleterm/v1/auth_settings_pb.js'); +goog.object.extend(proto, teleport_lib_teleterm_v1_auth_settings_pb); +var teleport_lib_teleterm_v1_cluster_pb = require('../../../../teleport/lib/teleterm/v1/cluster_pb.js'); +goog.object.extend(proto, teleport_lib_teleterm_v1_cluster_pb); +var teleport_lib_teleterm_v1_database_pb = require('../../../../teleport/lib/teleterm/v1/database_pb.js'); +goog.object.extend(proto, teleport_lib_teleterm_v1_database_pb); +var teleport_lib_teleterm_v1_gateway_pb = require('../../../../teleport/lib/teleterm/v1/gateway_pb.js'); +goog.object.extend(proto, teleport_lib_teleterm_v1_gateway_pb); +var teleport_lib_teleterm_v1_kube_pb = require('../../../../teleport/lib/teleterm/v1/kube_pb.js'); +goog.object.extend(proto, teleport_lib_teleterm_v1_kube_pb); +var teleport_lib_teleterm_v1_server_pb = require('../../../../teleport/lib/teleterm/v1/server_pb.js'); +goog.object.extend(proto, teleport_lib_teleterm_v1_server_pb); +var teleport_lib_teleterm_v1_usage_events_pb = require('../../../../teleport/lib/teleterm/v1/usage_events_pb.js'); +goog.object.extend(proto, teleport_lib_teleterm_v1_usage_events_pb); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.AddClusterRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.AssumeRoleRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.CreateAccessRequestResponse', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.CreateGatewayRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.CredentialInfo', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.DeleteAccessRequestRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.EmptyResponse', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.FileTransferDirection', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.FileTransferProgress', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.FileTransferRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.GetAccessRequestRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.GetAccessRequestResponse', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.GetAccessRequestsRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.GetAccessRequestsResponse', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.GetAllDatabasesRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.GetAllDatabasesResponse', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.GetAllKubesRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.GetAllKubesResponse', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.GetAllServersRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.GetAllServersResponse', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.GetAuthSettingsRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.GetClusterRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.GetDatabasesRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.GetDatabasesResponse', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.GetKubesRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.GetKubesResponse', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.GetServersRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.GetServersResponse', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.ListAppsRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.ListAppsResponse', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.ListClustersRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.ListClustersResponse', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.ListDatabaseUsersRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.ListGatewaysRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.ListGatewaysResponse', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.ListLeafClustersRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.RequestCase', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.LoginRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.LoginRequest.ParamsCase', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.LogoutRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.PasswordlessPrompt', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.RemoveClusterRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.RemoveGatewayRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.RestartGatewayRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.ReviewAccessRequestResponse', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.SetGatewayLocalPortRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressResponse', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -104,16 +104,16 @@ goog.exportSymbol('proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRespo * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.EmptyResponse = function(opt_data) { +proto.teleport.lib.teleterm.v1.EmptyResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.EmptyResponse, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.EmptyResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.EmptyResponse.displayName = 'proto.teleport.terminal.v1.EmptyResponse'; + proto.teleport.lib.teleterm.v1.EmptyResponse.displayName = 'proto.teleport.lib.teleterm.v1.EmptyResponse'; } /** * Generated by JsPbCodeGenerator. @@ -125,16 +125,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.RemoveClusterRequest = function(opt_data) { +proto.teleport.lib.teleterm.v1.RemoveClusterRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.RemoveClusterRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.RemoveClusterRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.RemoveClusterRequest.displayName = 'proto.teleport.terminal.v1.RemoveClusterRequest'; + proto.teleport.lib.teleterm.v1.RemoveClusterRequest.displayName = 'proto.teleport.lib.teleterm.v1.RemoveClusterRequest'; } /** * Generated by JsPbCodeGenerator. @@ -146,16 +146,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.GetClusterRequest = function(opt_data) { +proto.teleport.lib.teleterm.v1.GetClusterRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.GetClusterRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.GetClusterRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.GetClusterRequest.displayName = 'proto.teleport.terminal.v1.GetClusterRequest'; + proto.teleport.lib.teleterm.v1.GetClusterRequest.displayName = 'proto.teleport.lib.teleterm.v1.GetClusterRequest'; } /** * Generated by JsPbCodeGenerator. @@ -167,16 +167,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.LogoutRequest = function(opt_data) { +proto.teleport.lib.teleterm.v1.LogoutRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.LogoutRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.LogoutRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.LogoutRequest.displayName = 'proto.teleport.terminal.v1.LogoutRequest'; + proto.teleport.lib.teleterm.v1.LogoutRequest.displayName = 'proto.teleport.lib.teleterm.v1.LogoutRequest'; } /** * Generated by JsPbCodeGenerator. @@ -188,16 +188,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.GetAccessRequestRequest = function(opt_data) { +proto.teleport.lib.teleterm.v1.GetAccessRequestRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.GetAccessRequestRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.GetAccessRequestRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.GetAccessRequestRequest.displayName = 'proto.teleport.terminal.v1.GetAccessRequestRequest'; + proto.teleport.lib.teleterm.v1.GetAccessRequestRequest.displayName = 'proto.teleport.lib.teleterm.v1.GetAccessRequestRequest'; } /** * Generated by JsPbCodeGenerator. @@ -209,16 +209,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.GetAccessRequestsRequest = function(opt_data) { +proto.teleport.lib.teleterm.v1.GetAccessRequestsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.GetAccessRequestsRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.GetAccessRequestsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.GetAccessRequestsRequest.displayName = 'proto.teleport.terminal.v1.GetAccessRequestsRequest'; + proto.teleport.lib.teleterm.v1.GetAccessRequestsRequest.displayName = 'proto.teleport.lib.teleterm.v1.GetAccessRequestsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -230,16 +230,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.GetAccessRequestResponse = function(opt_data) { +proto.teleport.lib.teleterm.v1.GetAccessRequestResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.GetAccessRequestResponse, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.GetAccessRequestResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.GetAccessRequestResponse.displayName = 'proto.teleport.terminal.v1.GetAccessRequestResponse'; + proto.teleport.lib.teleterm.v1.GetAccessRequestResponse.displayName = 'proto.teleport.lib.teleterm.v1.GetAccessRequestResponse'; } /** * Generated by JsPbCodeGenerator. @@ -251,16 +251,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.GetAccessRequestsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.GetAccessRequestsResponse.repeatedFields_, null); +proto.teleport.lib.teleterm.v1.GetAccessRequestsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.lib.teleterm.v1.GetAccessRequestsResponse.repeatedFields_, null); }; -goog.inherits(proto.teleport.terminal.v1.GetAccessRequestsResponse, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.GetAccessRequestsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.GetAccessRequestsResponse.displayName = 'proto.teleport.terminal.v1.GetAccessRequestsResponse'; + proto.teleport.lib.teleterm.v1.GetAccessRequestsResponse.displayName = 'proto.teleport.lib.teleterm.v1.GetAccessRequestsResponse'; } /** * Generated by JsPbCodeGenerator. @@ -272,16 +272,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.DeleteAccessRequestRequest = function(opt_data) { +proto.teleport.lib.teleterm.v1.DeleteAccessRequestRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.DeleteAccessRequestRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.DeleteAccessRequestRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.DeleteAccessRequestRequest.displayName = 'proto.teleport.terminal.v1.DeleteAccessRequestRequest'; + proto.teleport.lib.teleterm.v1.DeleteAccessRequestRequest.displayName = 'proto.teleport.lib.teleterm.v1.DeleteAccessRequestRequest'; } /** * Generated by JsPbCodeGenerator. @@ -293,16 +293,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.CreateAccessRequestRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.CreateAccessRequestRequest.repeatedFields_, null); +proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest.repeatedFields_, null); }; -goog.inherits(proto.teleport.terminal.v1.CreateAccessRequestRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.CreateAccessRequestRequest.displayName = 'proto.teleport.terminal.v1.CreateAccessRequestRequest'; + proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest.displayName = 'proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest'; } /** * Generated by JsPbCodeGenerator. @@ -314,16 +314,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.CreateAccessRequestResponse = function(opt_data) { +proto.teleport.lib.teleterm.v1.CreateAccessRequestResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.CreateAccessRequestResponse, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.CreateAccessRequestResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.CreateAccessRequestResponse.displayName = 'proto.teleport.terminal.v1.CreateAccessRequestResponse'; + proto.teleport.lib.teleterm.v1.CreateAccessRequestResponse.displayName = 'proto.teleport.lib.teleterm.v1.CreateAccessRequestResponse'; } /** * Generated by JsPbCodeGenerator. @@ -335,16 +335,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.AssumeRoleRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.AssumeRoleRequest.repeatedFields_, null); +proto.teleport.lib.teleterm.v1.AssumeRoleRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.lib.teleterm.v1.AssumeRoleRequest.repeatedFields_, null); }; -goog.inherits(proto.teleport.terminal.v1.AssumeRoleRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.AssumeRoleRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.AssumeRoleRequest.displayName = 'proto.teleport.terminal.v1.AssumeRoleRequest'; + proto.teleport.lib.teleterm.v1.AssumeRoleRequest.displayName = 'proto.teleport.lib.teleterm.v1.AssumeRoleRequest'; } /** * Generated by JsPbCodeGenerator. @@ -356,16 +356,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.GetRequestableRolesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.GetRequestableRolesRequest.repeatedFields_, null); +proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest.repeatedFields_, null); }; -goog.inherits(proto.teleport.terminal.v1.GetRequestableRolesRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.GetRequestableRolesRequest.displayName = 'proto.teleport.terminal.v1.GetRequestableRolesRequest'; + proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest.displayName = 'proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest'; } /** * Generated by JsPbCodeGenerator. @@ -377,16 +377,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.GetRequestableRolesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.GetRequestableRolesResponse.repeatedFields_, null); +proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse.repeatedFields_, null); }; -goog.inherits(proto.teleport.terminal.v1.GetRequestableRolesResponse, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.GetRequestableRolesResponse.displayName = 'proto.teleport.terminal.v1.GetRequestableRolesResponse'; + proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse.displayName = 'proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse'; } /** * Generated by JsPbCodeGenerator. @@ -398,16 +398,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.ReviewAccessRequestRequest.repeatedFields_, null); +proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest.repeatedFields_, null); }; -goog.inherits(proto.teleport.terminal.v1.ReviewAccessRequestRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.ReviewAccessRequestRequest.displayName = 'proto.teleport.terminal.v1.ReviewAccessRequestRequest'; + proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest.displayName = 'proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest'; } /** * Generated by JsPbCodeGenerator. @@ -419,16 +419,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.ReviewAccessRequestResponse = function(opt_data) { +proto.teleport.lib.teleterm.v1.ReviewAccessRequestResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.ReviewAccessRequestResponse, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.ReviewAccessRequestResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.ReviewAccessRequestResponse.displayName = 'proto.teleport.terminal.v1.ReviewAccessRequestResponse'; + proto.teleport.lib.teleterm.v1.ReviewAccessRequestResponse.displayName = 'proto.teleport.lib.teleterm.v1.ReviewAccessRequestResponse'; } /** * Generated by JsPbCodeGenerator. @@ -440,16 +440,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.CredentialInfo = function(opt_data) { +proto.teleport.lib.teleterm.v1.CredentialInfo = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.CredentialInfo, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.CredentialInfo, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.CredentialInfo.displayName = 'proto.teleport.terminal.v1.CredentialInfo'; + proto.teleport.lib.teleterm.v1.CredentialInfo.displayName = 'proto.teleport.lib.teleterm.v1.CredentialInfo'; } /** * Generated by JsPbCodeGenerator. @@ -461,16 +461,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.LoginPasswordlessResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.LoginPasswordlessResponse.repeatedFields_, null); +proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse.repeatedFields_, null); }; -goog.inherits(proto.teleport.terminal.v1.LoginPasswordlessResponse, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.LoginPasswordlessResponse.displayName = 'proto.teleport.terminal.v1.LoginPasswordlessResponse'; + proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse.displayName = 'proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse'; } /** * Generated by JsPbCodeGenerator. @@ -482,16 +482,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.LoginPasswordlessRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.teleport.terminal.v1.LoginPasswordlessRequest.oneofGroups_); +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.oneofGroups_); }; -goog.inherits(proto.teleport.terminal.v1.LoginPasswordlessRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.LoginPasswordlessRequest.displayName = 'proto.teleport.terminal.v1.LoginPasswordlessRequest'; + proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.displayName = 'proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest'; } /** * Generated by JsPbCodeGenerator. @@ -503,16 +503,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit = function(opt_data) { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.displayName = 'proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit'; + proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.displayName = 'proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit'; } /** * Generated by JsPbCodeGenerator. @@ -524,16 +524,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse = function(opt_data) { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.displayName = 'proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse'; + proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.displayName = 'proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse'; } /** * Generated by JsPbCodeGenerator. @@ -545,16 +545,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse = function(opt_data) { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.displayName = 'proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse'; + proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.displayName = 'proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse'; } /** * Generated by JsPbCodeGenerator. @@ -566,16 +566,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.FileTransferRequest = function(opt_data) { +proto.teleport.lib.teleterm.v1.FileTransferRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.FileTransferRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.FileTransferRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.FileTransferRequest.displayName = 'proto.teleport.terminal.v1.FileTransferRequest'; + proto.teleport.lib.teleterm.v1.FileTransferRequest.displayName = 'proto.teleport.lib.teleterm.v1.FileTransferRequest'; } /** * Generated by JsPbCodeGenerator. @@ -587,16 +587,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.FileTransferProgress = function(opt_data) { +proto.teleport.lib.teleterm.v1.FileTransferProgress = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.FileTransferProgress, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.FileTransferProgress, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.FileTransferProgress.displayName = 'proto.teleport.terminal.v1.FileTransferProgress'; + proto.teleport.lib.teleterm.v1.FileTransferProgress.displayName = 'proto.teleport.lib.teleterm.v1.FileTransferProgress'; } /** * Generated by JsPbCodeGenerator. @@ -608,16 +608,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.LoginRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.teleport.terminal.v1.LoginRequest.oneofGroups_); +proto.teleport.lib.teleterm.v1.LoginRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.teleport.lib.teleterm.v1.LoginRequest.oneofGroups_); }; -goog.inherits(proto.teleport.terminal.v1.LoginRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.LoginRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.LoginRequest.displayName = 'proto.teleport.terminal.v1.LoginRequest'; + proto.teleport.lib.teleterm.v1.LoginRequest.displayName = 'proto.teleport.lib.teleterm.v1.LoginRequest'; } /** * Generated by JsPbCodeGenerator. @@ -629,16 +629,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.LoginRequest.LocalParams = function(opt_data) { +proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.LoginRequest.LocalParams, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.LoginRequest.LocalParams.displayName = 'proto.teleport.terminal.v1.LoginRequest.LocalParams'; + proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams.displayName = 'proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams'; } /** * Generated by JsPbCodeGenerator. @@ -650,16 +650,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.LoginRequest.SsoParams = function(opt_data) { +proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.LoginRequest.SsoParams, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.LoginRequest.SsoParams.displayName = 'proto.teleport.terminal.v1.LoginRequest.SsoParams'; + proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams.displayName = 'proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams'; } /** * Generated by JsPbCodeGenerator. @@ -671,16 +671,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.AddClusterRequest = function(opt_data) { +proto.teleport.lib.teleterm.v1.AddClusterRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.AddClusterRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.AddClusterRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.AddClusterRequest.displayName = 'proto.teleport.terminal.v1.AddClusterRequest'; + proto.teleport.lib.teleterm.v1.AddClusterRequest.displayName = 'proto.teleport.lib.teleterm.v1.AddClusterRequest'; } /** * Generated by JsPbCodeGenerator. @@ -692,16 +692,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.ListAppsRequest = function(opt_data) { +proto.teleport.lib.teleterm.v1.ListAppsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.ListAppsRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.ListAppsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.ListAppsRequest.displayName = 'proto.teleport.terminal.v1.ListAppsRequest'; + proto.teleport.lib.teleterm.v1.ListAppsRequest.displayName = 'proto.teleport.lib.teleterm.v1.ListAppsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -713,16 +713,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.ListClustersRequest = function(opt_data) { +proto.teleport.lib.teleterm.v1.ListClustersRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.ListClustersRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.ListClustersRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.ListClustersRequest.displayName = 'proto.teleport.terminal.v1.ListClustersRequest'; + proto.teleport.lib.teleterm.v1.ListClustersRequest.displayName = 'proto.teleport.lib.teleterm.v1.ListClustersRequest'; } /** * Generated by JsPbCodeGenerator. @@ -734,16 +734,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.ListClustersResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.ListClustersResponse.repeatedFields_, null); +proto.teleport.lib.teleterm.v1.ListClustersResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.lib.teleterm.v1.ListClustersResponse.repeatedFields_, null); }; -goog.inherits(proto.teleport.terminal.v1.ListClustersResponse, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.ListClustersResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.ListClustersResponse.displayName = 'proto.teleport.terminal.v1.ListClustersResponse'; + proto.teleport.lib.teleterm.v1.ListClustersResponse.displayName = 'proto.teleport.lib.teleterm.v1.ListClustersResponse'; } /** * Generated by JsPbCodeGenerator. @@ -755,16 +755,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.GetAllDatabasesRequest = function(opt_data) { +proto.teleport.lib.teleterm.v1.GetAllDatabasesRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.GetAllDatabasesRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.GetAllDatabasesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.GetAllDatabasesRequest.displayName = 'proto.teleport.terminal.v1.GetAllDatabasesRequest'; + proto.teleport.lib.teleterm.v1.GetAllDatabasesRequest.displayName = 'proto.teleport.lib.teleterm.v1.GetAllDatabasesRequest'; } /** * Generated by JsPbCodeGenerator. @@ -776,16 +776,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.GetDatabasesRequest = function(opt_data) { +proto.teleport.lib.teleterm.v1.GetDatabasesRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.GetDatabasesRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.GetDatabasesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.GetDatabasesRequest.displayName = 'proto.teleport.terminal.v1.GetDatabasesRequest'; + proto.teleport.lib.teleterm.v1.GetDatabasesRequest.displayName = 'proto.teleport.lib.teleterm.v1.GetDatabasesRequest'; } /** * Generated by JsPbCodeGenerator. @@ -797,16 +797,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.ListLeafClustersRequest = function(opt_data) { +proto.teleport.lib.teleterm.v1.ListLeafClustersRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.ListLeafClustersRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.ListLeafClustersRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.ListLeafClustersRequest.displayName = 'proto.teleport.terminal.v1.ListLeafClustersRequest'; + proto.teleport.lib.teleterm.v1.ListLeafClustersRequest.displayName = 'proto.teleport.lib.teleterm.v1.ListLeafClustersRequest'; } /** * Generated by JsPbCodeGenerator. @@ -818,16 +818,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.GetAllDatabasesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.GetAllDatabasesResponse.repeatedFields_, null); +proto.teleport.lib.teleterm.v1.GetAllDatabasesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.lib.teleterm.v1.GetAllDatabasesResponse.repeatedFields_, null); }; -goog.inherits(proto.teleport.terminal.v1.GetAllDatabasesResponse, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.GetAllDatabasesResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.GetAllDatabasesResponse.displayName = 'proto.teleport.terminal.v1.GetAllDatabasesResponse'; + proto.teleport.lib.teleterm.v1.GetAllDatabasesResponse.displayName = 'proto.teleport.lib.teleterm.v1.GetAllDatabasesResponse'; } /** * Generated by JsPbCodeGenerator. @@ -839,16 +839,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.ListDatabaseUsersRequest = function(opt_data) { +proto.teleport.lib.teleterm.v1.ListDatabaseUsersRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.ListDatabaseUsersRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.ListDatabaseUsersRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.ListDatabaseUsersRequest.displayName = 'proto.teleport.terminal.v1.ListDatabaseUsersRequest'; + proto.teleport.lib.teleterm.v1.ListDatabaseUsersRequest.displayName = 'proto.teleport.lib.teleterm.v1.ListDatabaseUsersRequest'; } /** * Generated by JsPbCodeGenerator. @@ -860,16 +860,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.ListDatabaseUsersResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.ListDatabaseUsersResponse.repeatedFields_, null); +proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse.repeatedFields_, null); }; -goog.inherits(proto.teleport.terminal.v1.ListDatabaseUsersResponse, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.ListDatabaseUsersResponse.displayName = 'proto.teleport.terminal.v1.ListDatabaseUsersResponse'; + proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse.displayName = 'proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse'; } /** * Generated by JsPbCodeGenerator. @@ -881,16 +881,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.CreateGatewayRequest = function(opt_data) { +proto.teleport.lib.teleterm.v1.CreateGatewayRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.CreateGatewayRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.CreateGatewayRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.CreateGatewayRequest.displayName = 'proto.teleport.terminal.v1.CreateGatewayRequest'; + proto.teleport.lib.teleterm.v1.CreateGatewayRequest.displayName = 'proto.teleport.lib.teleterm.v1.CreateGatewayRequest'; } /** * Generated by JsPbCodeGenerator. @@ -902,16 +902,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.ListGatewaysRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.ListGatewaysRequest.repeatedFields_, null); +proto.teleport.lib.teleterm.v1.ListGatewaysRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.lib.teleterm.v1.ListGatewaysRequest.repeatedFields_, null); }; -goog.inherits(proto.teleport.terminal.v1.ListGatewaysRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.ListGatewaysRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.ListGatewaysRequest.displayName = 'proto.teleport.terminal.v1.ListGatewaysRequest'; + proto.teleport.lib.teleterm.v1.ListGatewaysRequest.displayName = 'proto.teleport.lib.teleterm.v1.ListGatewaysRequest'; } /** * Generated by JsPbCodeGenerator. @@ -923,16 +923,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.ListGatewaysResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.ListGatewaysResponse.repeatedFields_, null); +proto.teleport.lib.teleterm.v1.ListGatewaysResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.lib.teleterm.v1.ListGatewaysResponse.repeatedFields_, null); }; -goog.inherits(proto.teleport.terminal.v1.ListGatewaysResponse, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.ListGatewaysResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.ListGatewaysResponse.displayName = 'proto.teleport.terminal.v1.ListGatewaysResponse'; + proto.teleport.lib.teleterm.v1.ListGatewaysResponse.displayName = 'proto.teleport.lib.teleterm.v1.ListGatewaysResponse'; } /** * Generated by JsPbCodeGenerator. @@ -944,16 +944,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.RemoveGatewayRequest = function(opt_data) { +proto.teleport.lib.teleterm.v1.RemoveGatewayRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.RemoveGatewayRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.RemoveGatewayRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.RemoveGatewayRequest.displayName = 'proto.teleport.terminal.v1.RemoveGatewayRequest'; + proto.teleport.lib.teleterm.v1.RemoveGatewayRequest.displayName = 'proto.teleport.lib.teleterm.v1.RemoveGatewayRequest'; } /** * Generated by JsPbCodeGenerator. @@ -965,16 +965,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.RestartGatewayRequest = function(opt_data) { +proto.teleport.lib.teleterm.v1.RestartGatewayRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.RestartGatewayRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.RestartGatewayRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.RestartGatewayRequest.displayName = 'proto.teleport.terminal.v1.RestartGatewayRequest'; + proto.teleport.lib.teleterm.v1.RestartGatewayRequest.displayName = 'proto.teleport.lib.teleterm.v1.RestartGatewayRequest'; } /** * Generated by JsPbCodeGenerator. @@ -986,16 +986,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest = function(opt_data) { +proto.teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.displayName = 'proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest'; + proto.teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest.displayName = 'proto.teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest'; } /** * Generated by JsPbCodeGenerator. @@ -1007,16 +1007,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.SetGatewayLocalPortRequest = function(opt_data) { +proto.teleport.lib.teleterm.v1.SetGatewayLocalPortRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.SetGatewayLocalPortRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.SetGatewayLocalPortRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.SetGatewayLocalPortRequest.displayName = 'proto.teleport.terminal.v1.SetGatewayLocalPortRequest'; + proto.teleport.lib.teleterm.v1.SetGatewayLocalPortRequest.displayName = 'proto.teleport.lib.teleterm.v1.SetGatewayLocalPortRequest'; } /** * Generated by JsPbCodeGenerator. @@ -1028,16 +1028,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.GetAllServersRequest = function(opt_data) { +proto.teleport.lib.teleterm.v1.GetAllServersRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.GetAllServersRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.GetAllServersRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.GetAllServersRequest.displayName = 'proto.teleport.terminal.v1.GetAllServersRequest'; + proto.teleport.lib.teleterm.v1.GetAllServersRequest.displayName = 'proto.teleport.lib.teleterm.v1.GetAllServersRequest'; } /** * Generated by JsPbCodeGenerator. @@ -1049,16 +1049,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.GetAllServersResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.GetAllServersResponse.repeatedFields_, null); +proto.teleport.lib.teleterm.v1.GetAllServersResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.lib.teleterm.v1.GetAllServersResponse.repeatedFields_, null); }; -goog.inherits(proto.teleport.terminal.v1.GetAllServersResponse, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.GetAllServersResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.GetAllServersResponse.displayName = 'proto.teleport.terminal.v1.GetAllServersResponse'; + proto.teleport.lib.teleterm.v1.GetAllServersResponse.displayName = 'proto.teleport.lib.teleterm.v1.GetAllServersResponse'; } /** * Generated by JsPbCodeGenerator. @@ -1070,16 +1070,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.GetServersRequest = function(opt_data) { +proto.teleport.lib.teleterm.v1.GetServersRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.GetServersRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.GetServersRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.GetServersRequest.displayName = 'proto.teleport.terminal.v1.GetServersRequest'; + proto.teleport.lib.teleterm.v1.GetServersRequest.displayName = 'proto.teleport.lib.teleterm.v1.GetServersRequest'; } /** * Generated by JsPbCodeGenerator. @@ -1091,16 +1091,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.GetServersResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.GetServersResponse.repeatedFields_, null); +proto.teleport.lib.teleterm.v1.GetServersResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.lib.teleterm.v1.GetServersResponse.repeatedFields_, null); }; -goog.inherits(proto.teleport.terminal.v1.GetServersResponse, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.GetServersResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.GetServersResponse.displayName = 'proto.teleport.terminal.v1.GetServersResponse'; + proto.teleport.lib.teleterm.v1.GetServersResponse.displayName = 'proto.teleport.lib.teleterm.v1.GetServersResponse'; } /** * Generated by JsPbCodeGenerator. @@ -1112,16 +1112,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.GetDatabasesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.GetDatabasesResponse.repeatedFields_, null); +proto.teleport.lib.teleterm.v1.GetDatabasesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.lib.teleterm.v1.GetDatabasesResponse.repeatedFields_, null); }; -goog.inherits(proto.teleport.terminal.v1.GetDatabasesResponse, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.GetDatabasesResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.GetDatabasesResponse.displayName = 'proto.teleport.terminal.v1.GetDatabasesResponse'; + proto.teleport.lib.teleterm.v1.GetDatabasesResponse.displayName = 'proto.teleport.lib.teleterm.v1.GetDatabasesResponse'; } /** * Generated by JsPbCodeGenerator. @@ -1133,16 +1133,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.GetAllKubesRequest = function(opt_data) { +proto.teleport.lib.teleterm.v1.GetAllKubesRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.GetAllKubesRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.GetAllKubesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.GetAllKubesRequest.displayName = 'proto.teleport.terminal.v1.GetAllKubesRequest'; + proto.teleport.lib.teleterm.v1.GetAllKubesRequest.displayName = 'proto.teleport.lib.teleterm.v1.GetAllKubesRequest'; } /** * Generated by JsPbCodeGenerator. @@ -1154,16 +1154,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.GetAllKubesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.GetAllKubesResponse.repeatedFields_, null); +proto.teleport.lib.teleterm.v1.GetAllKubesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.lib.teleterm.v1.GetAllKubesResponse.repeatedFields_, null); }; -goog.inherits(proto.teleport.terminal.v1.GetAllKubesResponse, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.GetAllKubesResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.GetAllKubesResponse.displayName = 'proto.teleport.terminal.v1.GetAllKubesResponse'; + proto.teleport.lib.teleterm.v1.GetAllKubesResponse.displayName = 'proto.teleport.lib.teleterm.v1.GetAllKubesResponse'; } /** * Generated by JsPbCodeGenerator. @@ -1175,16 +1175,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.GetKubesRequest = function(opt_data) { +proto.teleport.lib.teleterm.v1.GetKubesRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.GetKubesRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.GetKubesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.GetKubesRequest.displayName = 'proto.teleport.terminal.v1.GetKubesRequest'; + proto.teleport.lib.teleterm.v1.GetKubesRequest.displayName = 'proto.teleport.lib.teleterm.v1.GetKubesRequest'; } /** * Generated by JsPbCodeGenerator. @@ -1196,16 +1196,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.GetKubesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.GetKubesResponse.repeatedFields_, null); +proto.teleport.lib.teleterm.v1.GetKubesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.lib.teleterm.v1.GetKubesResponse.repeatedFields_, null); }; -goog.inherits(proto.teleport.terminal.v1.GetKubesResponse, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.GetKubesResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.GetKubesResponse.displayName = 'proto.teleport.terminal.v1.GetKubesResponse'; + proto.teleport.lib.teleterm.v1.GetKubesResponse.displayName = 'proto.teleport.lib.teleterm.v1.GetKubesResponse'; } /** * Generated by JsPbCodeGenerator. @@ -1217,16 +1217,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.ListAppsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.ListAppsResponse.repeatedFields_, null); +proto.teleport.lib.teleterm.v1.ListAppsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.lib.teleterm.v1.ListAppsResponse.repeatedFields_, null); }; -goog.inherits(proto.teleport.terminal.v1.ListAppsResponse, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.ListAppsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.ListAppsResponse.displayName = 'proto.teleport.terminal.v1.ListAppsResponse'; + proto.teleport.lib.teleterm.v1.ListAppsResponse.displayName = 'proto.teleport.lib.teleterm.v1.ListAppsResponse'; } /** * Generated by JsPbCodeGenerator. @@ -1238,16 +1238,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.GetAuthSettingsRequest = function(opt_data) { +proto.teleport.lib.teleterm.v1.GetAuthSettingsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.GetAuthSettingsRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.GetAuthSettingsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.GetAuthSettingsRequest.displayName = 'proto.teleport.terminal.v1.GetAuthSettingsRequest'; + proto.teleport.lib.teleterm.v1.GetAuthSettingsRequest.displayName = 'proto.teleport.lib.teleterm.v1.GetAuthSettingsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -1259,16 +1259,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest = function(opt_data) { +proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.displayName = 'proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest'; + proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest.displayName = 'proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest'; } /** * Generated by JsPbCodeGenerator. @@ -1280,16 +1280,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse = function(opt_data) { +proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse.displayName = 'proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse'; + proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressResponse.displayName = 'proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressResponse'; } @@ -1307,8 +1307,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.EmptyResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.EmptyResponse.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.EmptyResponse.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.EmptyResponse.toObject(opt_includeInstance, this); }; @@ -1317,11 +1317,11 @@ proto.teleport.terminal.v1.EmptyResponse.prototype.toObject = function(opt_inclu * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.EmptyResponse} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.EmptyResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.EmptyResponse.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.EmptyResponse.toObject = function(includeInstance, msg) { var f, obj = { }; @@ -1337,23 +1337,23 @@ proto.teleport.terminal.v1.EmptyResponse.toObject = function(includeInstance, ms /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.EmptyResponse} + * @return {!proto.teleport.lib.teleterm.v1.EmptyResponse} */ -proto.teleport.terminal.v1.EmptyResponse.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.EmptyResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.EmptyResponse; - return proto.teleport.terminal.v1.EmptyResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.EmptyResponse; + return proto.teleport.lib.teleterm.v1.EmptyResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.EmptyResponse} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.EmptyResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.EmptyResponse} + * @return {!proto.teleport.lib.teleterm.v1.EmptyResponse} */ -proto.teleport.terminal.v1.EmptyResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.EmptyResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1373,9 +1373,9 @@ proto.teleport.terminal.v1.EmptyResponse.deserializeBinaryFromReader = function( * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.EmptyResponse.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.EmptyResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.EmptyResponse.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.EmptyResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1383,11 +1383,11 @@ proto.teleport.terminal.v1.EmptyResponse.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.EmptyResponse} message + * @param {!proto.teleport.lib.teleterm.v1.EmptyResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.EmptyResponse.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.EmptyResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; @@ -1408,8 +1408,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.RemoveClusterRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.RemoveClusterRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.RemoveClusterRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.RemoveClusterRequest.toObject(opt_includeInstance, this); }; @@ -1418,11 +1418,11 @@ proto.teleport.terminal.v1.RemoveClusterRequest.prototype.toObject = function(op * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.RemoveClusterRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.RemoveClusterRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.RemoveClusterRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.RemoveClusterRequest.toObject = function(includeInstance, msg) { var f, obj = { clusterUri: jspb.Message.getFieldWithDefault(msg, 1, "") }; @@ -1438,23 +1438,23 @@ proto.teleport.terminal.v1.RemoveClusterRequest.toObject = function(includeInsta /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.RemoveClusterRequest} + * @return {!proto.teleport.lib.teleterm.v1.RemoveClusterRequest} */ -proto.teleport.terminal.v1.RemoveClusterRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.RemoveClusterRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.RemoveClusterRequest; - return proto.teleport.terminal.v1.RemoveClusterRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.RemoveClusterRequest; + return proto.teleport.lib.teleterm.v1.RemoveClusterRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.RemoveClusterRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.RemoveClusterRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.RemoveClusterRequest} + * @return {!proto.teleport.lib.teleterm.v1.RemoveClusterRequest} */ -proto.teleport.terminal.v1.RemoveClusterRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.RemoveClusterRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1478,9 +1478,9 @@ proto.teleport.terminal.v1.RemoveClusterRequest.deserializeBinaryFromReader = fu * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.RemoveClusterRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.RemoveClusterRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.RemoveClusterRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.RemoveClusterRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1488,11 +1488,11 @@ proto.teleport.terminal.v1.RemoveClusterRequest.prototype.serializeBinary = func /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.RemoveClusterRequest} message + * @param {!proto.teleport.lib.teleterm.v1.RemoveClusterRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.RemoveClusterRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.RemoveClusterRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClusterUri(); if (f.length > 0) { @@ -1508,16 +1508,16 @@ proto.teleport.terminal.v1.RemoveClusterRequest.serializeBinaryToWriter = functi * optional string cluster_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.RemoveClusterRequest.prototype.getClusterUri = function() { +proto.teleport.lib.teleterm.v1.RemoveClusterRequest.prototype.getClusterUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.RemoveClusterRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.RemoveClusterRequest} returns this */ -proto.teleport.terminal.v1.RemoveClusterRequest.prototype.setClusterUri = function(value) { +proto.teleport.lib.teleterm.v1.RemoveClusterRequest.prototype.setClusterUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -1538,8 +1538,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.GetClusterRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetClusterRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.GetClusterRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.GetClusterRequest.toObject(opt_includeInstance, this); }; @@ -1548,11 +1548,11 @@ proto.teleport.terminal.v1.GetClusterRequest.prototype.toObject = function(opt_i * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetClusterRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.GetClusterRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetClusterRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.GetClusterRequest.toObject = function(includeInstance, msg) { var f, obj = { clusterUri: jspb.Message.getFieldWithDefault(msg, 1, "") }; @@ -1568,23 +1568,23 @@ proto.teleport.terminal.v1.GetClusterRequest.toObject = function(includeInstance /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetClusterRequest} + * @return {!proto.teleport.lib.teleterm.v1.GetClusterRequest} */ -proto.teleport.terminal.v1.GetClusterRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.GetClusterRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetClusterRequest; - return proto.teleport.terminal.v1.GetClusterRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.GetClusterRequest; + return proto.teleport.lib.teleterm.v1.GetClusterRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetClusterRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.GetClusterRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetClusterRequest} + * @return {!proto.teleport.lib.teleterm.v1.GetClusterRequest} */ -proto.teleport.terminal.v1.GetClusterRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.GetClusterRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1608,9 +1608,9 @@ proto.teleport.terminal.v1.GetClusterRequest.deserializeBinaryFromReader = funct * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.GetClusterRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.GetClusterRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetClusterRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.GetClusterRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1618,11 +1618,11 @@ proto.teleport.terminal.v1.GetClusterRequest.prototype.serializeBinary = functio /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetClusterRequest} message + * @param {!proto.teleport.lib.teleterm.v1.GetClusterRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetClusterRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.GetClusterRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClusterUri(); if (f.length > 0) { @@ -1638,16 +1638,16 @@ proto.teleport.terminal.v1.GetClusterRequest.serializeBinaryToWriter = function( * optional string cluster_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.GetClusterRequest.prototype.getClusterUri = function() { +proto.teleport.lib.teleterm.v1.GetClusterRequest.prototype.getClusterUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetClusterRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetClusterRequest} returns this */ -proto.teleport.terminal.v1.GetClusterRequest.prototype.setClusterUri = function(value) { +proto.teleport.lib.teleterm.v1.GetClusterRequest.prototype.setClusterUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -1668,8 +1668,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.LogoutRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.LogoutRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.LogoutRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.LogoutRequest.toObject(opt_includeInstance, this); }; @@ -1678,11 +1678,11 @@ proto.teleport.terminal.v1.LogoutRequest.prototype.toObject = function(opt_inclu * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.LogoutRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.LogoutRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.LogoutRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.LogoutRequest.toObject = function(includeInstance, msg) { var f, obj = { clusterUri: jspb.Message.getFieldWithDefault(msg, 1, "") }; @@ -1698,23 +1698,23 @@ proto.teleport.terminal.v1.LogoutRequest.toObject = function(includeInstance, ms /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.LogoutRequest} + * @return {!proto.teleport.lib.teleterm.v1.LogoutRequest} */ -proto.teleport.terminal.v1.LogoutRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.LogoutRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.LogoutRequest; - return proto.teleport.terminal.v1.LogoutRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.LogoutRequest; + return proto.teleport.lib.teleterm.v1.LogoutRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.LogoutRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.LogoutRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.LogoutRequest} + * @return {!proto.teleport.lib.teleterm.v1.LogoutRequest} */ -proto.teleport.terminal.v1.LogoutRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.LogoutRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1738,9 +1738,9 @@ proto.teleport.terminal.v1.LogoutRequest.deserializeBinaryFromReader = function( * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.LogoutRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.LogoutRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.LogoutRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.LogoutRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1748,11 +1748,11 @@ proto.teleport.terminal.v1.LogoutRequest.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.LogoutRequest} message + * @param {!proto.teleport.lib.teleterm.v1.LogoutRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.LogoutRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.LogoutRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClusterUri(); if (f.length > 0) { @@ -1768,16 +1768,16 @@ proto.teleport.terminal.v1.LogoutRequest.serializeBinaryToWriter = function(mess * optional string cluster_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.LogoutRequest.prototype.getClusterUri = function() { +proto.teleport.lib.teleterm.v1.LogoutRequest.prototype.getClusterUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.LogoutRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.LogoutRequest} returns this */ -proto.teleport.terminal.v1.LogoutRequest.prototype.setClusterUri = function(value) { +proto.teleport.lib.teleterm.v1.LogoutRequest.prototype.setClusterUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -1798,8 +1798,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.GetAccessRequestRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetAccessRequestRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.GetAccessRequestRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.GetAccessRequestRequest.toObject(opt_includeInstance, this); }; @@ -1808,11 +1808,11 @@ proto.teleport.terminal.v1.GetAccessRequestRequest.prototype.toObject = function * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetAccessRequestRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.GetAccessRequestRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetAccessRequestRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.GetAccessRequestRequest.toObject = function(includeInstance, msg) { var f, obj = { clusterUri: jspb.Message.getFieldWithDefault(msg, 1, ""), accessRequestId: jspb.Message.getFieldWithDefault(msg, 2, "") @@ -1829,23 +1829,23 @@ proto.teleport.terminal.v1.GetAccessRequestRequest.toObject = function(includeIn /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetAccessRequestRequest} + * @return {!proto.teleport.lib.teleterm.v1.GetAccessRequestRequest} */ -proto.teleport.terminal.v1.GetAccessRequestRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.GetAccessRequestRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetAccessRequestRequest; - return proto.teleport.terminal.v1.GetAccessRequestRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.GetAccessRequestRequest; + return proto.teleport.lib.teleterm.v1.GetAccessRequestRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetAccessRequestRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.GetAccessRequestRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetAccessRequestRequest} + * @return {!proto.teleport.lib.teleterm.v1.GetAccessRequestRequest} */ -proto.teleport.terminal.v1.GetAccessRequestRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.GetAccessRequestRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1873,9 +1873,9 @@ proto.teleport.terminal.v1.GetAccessRequestRequest.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.GetAccessRequestRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.GetAccessRequestRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetAccessRequestRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.GetAccessRequestRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1883,11 +1883,11 @@ proto.teleport.terminal.v1.GetAccessRequestRequest.prototype.serializeBinary = f /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetAccessRequestRequest} message + * @param {!proto.teleport.lib.teleterm.v1.GetAccessRequestRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetAccessRequestRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.GetAccessRequestRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClusterUri(); if (f.length > 0) { @@ -1910,16 +1910,16 @@ proto.teleport.terminal.v1.GetAccessRequestRequest.serializeBinaryToWriter = fun * optional string cluster_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.GetAccessRequestRequest.prototype.getClusterUri = function() { +proto.teleport.lib.teleterm.v1.GetAccessRequestRequest.prototype.getClusterUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetAccessRequestRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetAccessRequestRequest} returns this */ -proto.teleport.terminal.v1.GetAccessRequestRequest.prototype.setClusterUri = function(value) { +proto.teleport.lib.teleterm.v1.GetAccessRequestRequest.prototype.setClusterUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -1928,16 +1928,16 @@ proto.teleport.terminal.v1.GetAccessRequestRequest.prototype.setClusterUri = fun * optional string access_request_id = 2; * @return {string} */ -proto.teleport.terminal.v1.GetAccessRequestRequest.prototype.getAccessRequestId = function() { +proto.teleport.lib.teleterm.v1.GetAccessRequestRequest.prototype.getAccessRequestId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetAccessRequestRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetAccessRequestRequest} returns this */ -proto.teleport.terminal.v1.GetAccessRequestRequest.prototype.setAccessRequestId = function(value) { +proto.teleport.lib.teleterm.v1.GetAccessRequestRequest.prototype.setAccessRequestId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -1958,8 +1958,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.GetAccessRequestsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetAccessRequestsRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.GetAccessRequestsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.GetAccessRequestsRequest.toObject(opt_includeInstance, this); }; @@ -1968,11 +1968,11 @@ proto.teleport.terminal.v1.GetAccessRequestsRequest.prototype.toObject = functio * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetAccessRequestsRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.GetAccessRequestsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetAccessRequestsRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.GetAccessRequestsRequest.toObject = function(includeInstance, msg) { var f, obj = { clusterUri: jspb.Message.getFieldWithDefault(msg, 1, "") }; @@ -1988,23 +1988,23 @@ proto.teleport.terminal.v1.GetAccessRequestsRequest.toObject = function(includeI /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetAccessRequestsRequest} + * @return {!proto.teleport.lib.teleterm.v1.GetAccessRequestsRequest} */ -proto.teleport.terminal.v1.GetAccessRequestsRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.GetAccessRequestsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetAccessRequestsRequest; - return proto.teleport.terminal.v1.GetAccessRequestsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.GetAccessRequestsRequest; + return proto.teleport.lib.teleterm.v1.GetAccessRequestsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetAccessRequestsRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.GetAccessRequestsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetAccessRequestsRequest} + * @return {!proto.teleport.lib.teleterm.v1.GetAccessRequestsRequest} */ -proto.teleport.terminal.v1.GetAccessRequestsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.GetAccessRequestsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2028,9 +2028,9 @@ proto.teleport.terminal.v1.GetAccessRequestsRequest.deserializeBinaryFromReader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.GetAccessRequestsRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.GetAccessRequestsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetAccessRequestsRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.GetAccessRequestsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2038,11 +2038,11 @@ proto.teleport.terminal.v1.GetAccessRequestsRequest.prototype.serializeBinary = /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetAccessRequestsRequest} message + * @param {!proto.teleport.lib.teleterm.v1.GetAccessRequestsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetAccessRequestsRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.GetAccessRequestsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClusterUri(); if (f.length > 0) { @@ -2058,16 +2058,16 @@ proto.teleport.terminal.v1.GetAccessRequestsRequest.serializeBinaryToWriter = fu * optional string cluster_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.GetAccessRequestsRequest.prototype.getClusterUri = function() { +proto.teleport.lib.teleterm.v1.GetAccessRequestsRequest.prototype.getClusterUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetAccessRequestsRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetAccessRequestsRequest} returns this */ -proto.teleport.terminal.v1.GetAccessRequestsRequest.prototype.setClusterUri = function(value) { +proto.teleport.lib.teleterm.v1.GetAccessRequestsRequest.prototype.setClusterUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -2088,8 +2088,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.GetAccessRequestResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetAccessRequestResponse.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.GetAccessRequestResponse.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.GetAccessRequestResponse.toObject(opt_includeInstance, this); }; @@ -2098,13 +2098,13 @@ proto.teleport.terminal.v1.GetAccessRequestResponse.prototype.toObject = functio * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetAccessRequestResponse} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.GetAccessRequestResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetAccessRequestResponse.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.GetAccessRequestResponse.toObject = function(includeInstance, msg) { var f, obj = { - request: (f = msg.getRequest()) && v1_access_request_pb.AccessRequest.toObject(includeInstance, f) + request: (f = msg.getRequest()) && teleport_lib_teleterm_v1_access_request_pb.AccessRequest.toObject(includeInstance, f) }; if (includeInstance) { @@ -2118,23 +2118,23 @@ proto.teleport.terminal.v1.GetAccessRequestResponse.toObject = function(includeI /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetAccessRequestResponse} + * @return {!proto.teleport.lib.teleterm.v1.GetAccessRequestResponse} */ -proto.teleport.terminal.v1.GetAccessRequestResponse.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.GetAccessRequestResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetAccessRequestResponse; - return proto.teleport.terminal.v1.GetAccessRequestResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.GetAccessRequestResponse; + return proto.teleport.lib.teleterm.v1.GetAccessRequestResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetAccessRequestResponse} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.GetAccessRequestResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetAccessRequestResponse} + * @return {!proto.teleport.lib.teleterm.v1.GetAccessRequestResponse} */ -proto.teleport.terminal.v1.GetAccessRequestResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.GetAccessRequestResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2142,8 +2142,8 @@ proto.teleport.terminal.v1.GetAccessRequestResponse.deserializeBinaryFromReader var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new v1_access_request_pb.AccessRequest; - reader.readMessage(value,v1_access_request_pb.AccessRequest.deserializeBinaryFromReader); + var value = new teleport_lib_teleterm_v1_access_request_pb.AccessRequest; + reader.readMessage(value,teleport_lib_teleterm_v1_access_request_pb.AccessRequest.deserializeBinaryFromReader); msg.setRequest(value); break; default: @@ -2159,9 +2159,9 @@ proto.teleport.terminal.v1.GetAccessRequestResponse.deserializeBinaryFromReader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.GetAccessRequestResponse.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.GetAccessRequestResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetAccessRequestResponse.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.GetAccessRequestResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2169,18 +2169,18 @@ proto.teleport.terminal.v1.GetAccessRequestResponse.prototype.serializeBinary = /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetAccessRequestResponse} message + * @param {!proto.teleport.lib.teleterm.v1.GetAccessRequestResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetAccessRequestResponse.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.GetAccessRequestResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getRequest(); if (f != null) { writer.writeMessage( 1, f, - v1_access_request_pb.AccessRequest.serializeBinaryToWriter + teleport_lib_teleterm_v1_access_request_pb.AccessRequest.serializeBinaryToWriter ); } }; @@ -2188,28 +2188,28 @@ proto.teleport.terminal.v1.GetAccessRequestResponse.serializeBinaryToWriter = fu /** * optional AccessRequest request = 1; - * @return {?proto.teleport.terminal.v1.AccessRequest} + * @return {?proto.teleport.lib.teleterm.v1.AccessRequest} */ -proto.teleport.terminal.v1.GetAccessRequestResponse.prototype.getRequest = function() { - return /** @type{?proto.teleport.terminal.v1.AccessRequest} */ ( - jspb.Message.getWrapperField(this, v1_access_request_pb.AccessRequest, 1)); +proto.teleport.lib.teleterm.v1.GetAccessRequestResponse.prototype.getRequest = function() { + return /** @type{?proto.teleport.lib.teleterm.v1.AccessRequest} */ ( + jspb.Message.getWrapperField(this, teleport_lib_teleterm_v1_access_request_pb.AccessRequest, 1)); }; /** - * @param {?proto.teleport.terminal.v1.AccessRequest|undefined} value - * @return {!proto.teleport.terminal.v1.GetAccessRequestResponse} returns this + * @param {?proto.teleport.lib.teleterm.v1.AccessRequest|undefined} value + * @return {!proto.teleport.lib.teleterm.v1.GetAccessRequestResponse} returns this */ -proto.teleport.terminal.v1.GetAccessRequestResponse.prototype.setRequest = function(value) { +proto.teleport.lib.teleterm.v1.GetAccessRequestResponse.prototype.setRequest = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.GetAccessRequestResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetAccessRequestResponse} returns this */ -proto.teleport.terminal.v1.GetAccessRequestResponse.prototype.clearRequest = function() { +proto.teleport.lib.teleterm.v1.GetAccessRequestResponse.prototype.clearRequest = function() { return this.setRequest(undefined); }; @@ -2218,7 +2218,7 @@ proto.teleport.terminal.v1.GetAccessRequestResponse.prototype.clearRequest = fun * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.GetAccessRequestResponse.prototype.hasRequest = function() { +proto.teleport.lib.teleterm.v1.GetAccessRequestResponse.prototype.hasRequest = function() { return jspb.Message.getField(this, 1) != null; }; @@ -2229,7 +2229,7 @@ proto.teleport.terminal.v1.GetAccessRequestResponse.prototype.hasRequest = funct * @private {!Array} * @const */ -proto.teleport.terminal.v1.GetAccessRequestsResponse.repeatedFields_ = [1]; +proto.teleport.lib.teleterm.v1.GetAccessRequestsResponse.repeatedFields_ = [1]; @@ -2246,8 +2246,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.GetAccessRequestsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetAccessRequestsResponse.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.GetAccessRequestsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.GetAccessRequestsResponse.toObject(opt_includeInstance, this); }; @@ -2256,14 +2256,14 @@ proto.teleport.terminal.v1.GetAccessRequestsResponse.prototype.toObject = functi * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetAccessRequestsResponse} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.GetAccessRequestsResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetAccessRequestsResponse.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.GetAccessRequestsResponse.toObject = function(includeInstance, msg) { var f, obj = { requestsList: jspb.Message.toObjectList(msg.getRequestsList(), - v1_access_request_pb.AccessRequest.toObject, includeInstance) + teleport_lib_teleterm_v1_access_request_pb.AccessRequest.toObject, includeInstance) }; if (includeInstance) { @@ -2277,23 +2277,23 @@ proto.teleport.terminal.v1.GetAccessRequestsResponse.toObject = function(include /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetAccessRequestsResponse} + * @return {!proto.teleport.lib.teleterm.v1.GetAccessRequestsResponse} */ -proto.teleport.terminal.v1.GetAccessRequestsResponse.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.GetAccessRequestsResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetAccessRequestsResponse; - return proto.teleport.terminal.v1.GetAccessRequestsResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.GetAccessRequestsResponse; + return proto.teleport.lib.teleterm.v1.GetAccessRequestsResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetAccessRequestsResponse} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.GetAccessRequestsResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetAccessRequestsResponse} + * @return {!proto.teleport.lib.teleterm.v1.GetAccessRequestsResponse} */ -proto.teleport.terminal.v1.GetAccessRequestsResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.GetAccessRequestsResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2301,8 +2301,8 @@ proto.teleport.terminal.v1.GetAccessRequestsResponse.deserializeBinaryFromReader var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new v1_access_request_pb.AccessRequest; - reader.readMessage(value,v1_access_request_pb.AccessRequest.deserializeBinaryFromReader); + var value = new teleport_lib_teleterm_v1_access_request_pb.AccessRequest; + reader.readMessage(value,teleport_lib_teleterm_v1_access_request_pb.AccessRequest.deserializeBinaryFromReader); msg.addRequests(value); break; default: @@ -2318,9 +2318,9 @@ proto.teleport.terminal.v1.GetAccessRequestsResponse.deserializeBinaryFromReader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.GetAccessRequestsResponse.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.GetAccessRequestsResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetAccessRequestsResponse.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.GetAccessRequestsResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2328,18 +2328,18 @@ proto.teleport.terminal.v1.GetAccessRequestsResponse.prototype.serializeBinary = /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetAccessRequestsResponse} message + * @param {!proto.teleport.lib.teleterm.v1.GetAccessRequestsResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetAccessRequestsResponse.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.GetAccessRequestsResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getRequestsList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, - v1_access_request_pb.AccessRequest.serializeBinaryToWriter + teleport_lib_teleterm_v1_access_request_pb.AccessRequest.serializeBinaryToWriter ); } }; @@ -2347,38 +2347,38 @@ proto.teleport.terminal.v1.GetAccessRequestsResponse.serializeBinaryToWriter = f /** * repeated AccessRequest requests = 1; - * @return {!Array} + * @return {!Array} */ -proto.teleport.terminal.v1.GetAccessRequestsResponse.prototype.getRequestsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_access_request_pb.AccessRequest, 1)); +proto.teleport.lib.teleterm.v1.GetAccessRequestsResponse.prototype.getRequestsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, teleport_lib_teleterm_v1_access_request_pb.AccessRequest, 1)); }; /** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.GetAccessRequestsResponse} returns this + * @param {!Array} value + * @return {!proto.teleport.lib.teleterm.v1.GetAccessRequestsResponse} returns this */ -proto.teleport.terminal.v1.GetAccessRequestsResponse.prototype.setRequestsList = function(value) { +proto.teleport.lib.teleterm.v1.GetAccessRequestsResponse.prototype.setRequestsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * @param {!proto.teleport.terminal.v1.AccessRequest=} opt_value + * @param {!proto.teleport.lib.teleterm.v1.AccessRequest=} opt_value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.AccessRequest} + * @return {!proto.teleport.lib.teleterm.v1.AccessRequest} */ -proto.teleport.terminal.v1.GetAccessRequestsResponse.prototype.addRequests = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.terminal.v1.AccessRequest, opt_index); +proto.teleport.lib.teleterm.v1.GetAccessRequestsResponse.prototype.addRequests = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.lib.teleterm.v1.AccessRequest, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.GetAccessRequestsResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetAccessRequestsResponse} returns this */ -proto.teleport.terminal.v1.GetAccessRequestsResponse.prototype.clearRequestsList = function() { +proto.teleport.lib.teleterm.v1.GetAccessRequestsResponse.prototype.clearRequestsList = function() { return this.setRequestsList([]); }; @@ -2399,8 +2399,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.DeleteAccessRequestRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.DeleteAccessRequestRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.DeleteAccessRequestRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.DeleteAccessRequestRequest.toObject(opt_includeInstance, this); }; @@ -2409,11 +2409,11 @@ proto.teleport.terminal.v1.DeleteAccessRequestRequest.prototype.toObject = funct * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.DeleteAccessRequestRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.DeleteAccessRequestRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.DeleteAccessRequestRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.DeleteAccessRequestRequest.toObject = function(includeInstance, msg) { var f, obj = { rootClusterUri: jspb.Message.getFieldWithDefault(msg, 1, ""), accessRequestId: jspb.Message.getFieldWithDefault(msg, 2, "") @@ -2430,23 +2430,23 @@ proto.teleport.terminal.v1.DeleteAccessRequestRequest.toObject = function(includ /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.DeleteAccessRequestRequest} + * @return {!proto.teleport.lib.teleterm.v1.DeleteAccessRequestRequest} */ -proto.teleport.terminal.v1.DeleteAccessRequestRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.DeleteAccessRequestRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.DeleteAccessRequestRequest; - return proto.teleport.terminal.v1.DeleteAccessRequestRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.DeleteAccessRequestRequest; + return proto.teleport.lib.teleterm.v1.DeleteAccessRequestRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.DeleteAccessRequestRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.DeleteAccessRequestRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.DeleteAccessRequestRequest} + * @return {!proto.teleport.lib.teleterm.v1.DeleteAccessRequestRequest} */ -proto.teleport.terminal.v1.DeleteAccessRequestRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.DeleteAccessRequestRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2474,9 +2474,9 @@ proto.teleport.terminal.v1.DeleteAccessRequestRequest.deserializeBinaryFromReade * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.DeleteAccessRequestRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.DeleteAccessRequestRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.DeleteAccessRequestRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.DeleteAccessRequestRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2484,11 +2484,11 @@ proto.teleport.terminal.v1.DeleteAccessRequestRequest.prototype.serializeBinary /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.DeleteAccessRequestRequest} message + * @param {!proto.teleport.lib.teleterm.v1.DeleteAccessRequestRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.DeleteAccessRequestRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.DeleteAccessRequestRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getRootClusterUri(); if (f.length > 0) { @@ -2511,16 +2511,16 @@ proto.teleport.terminal.v1.DeleteAccessRequestRequest.serializeBinaryToWriter = * optional string root_cluster_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.DeleteAccessRequestRequest.prototype.getRootClusterUri = function() { +proto.teleport.lib.teleterm.v1.DeleteAccessRequestRequest.prototype.getRootClusterUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.DeleteAccessRequestRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.DeleteAccessRequestRequest} returns this */ -proto.teleport.terminal.v1.DeleteAccessRequestRequest.prototype.setRootClusterUri = function(value) { +proto.teleport.lib.teleterm.v1.DeleteAccessRequestRequest.prototype.setRootClusterUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -2529,16 +2529,16 @@ proto.teleport.terminal.v1.DeleteAccessRequestRequest.prototype.setRootClusterUr * optional string access_request_id = 2; * @return {string} */ -proto.teleport.terminal.v1.DeleteAccessRequestRequest.prototype.getAccessRequestId = function() { +proto.teleport.lib.teleterm.v1.DeleteAccessRequestRequest.prototype.getAccessRequestId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.DeleteAccessRequestRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.DeleteAccessRequestRequest} returns this */ -proto.teleport.terminal.v1.DeleteAccessRequestRequest.prototype.setAccessRequestId = function(value) { +proto.teleport.lib.teleterm.v1.DeleteAccessRequestRequest.prototype.setAccessRequestId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -2549,7 +2549,7 @@ proto.teleport.terminal.v1.DeleteAccessRequestRequest.prototype.setAccessRequest * @private {!Array} * @const */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.repeatedFields_ = [3,4,5]; +proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest.repeatedFields_ = [3,4,5]; @@ -2566,8 +2566,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.CreateAccessRequestRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest.toObject(opt_includeInstance, this); }; @@ -2576,18 +2576,18 @@ proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.toObject = funct * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.CreateAccessRequestRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest.toObject = function(includeInstance, msg) { var f, obj = { rootClusterUri: jspb.Message.getFieldWithDefault(msg, 1, ""), reason: jspb.Message.getFieldWithDefault(msg, 2, ""), rolesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, suggestedReviewersList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, resourceIdsList: jspb.Message.toObjectList(msg.getResourceIdsList(), - v1_access_request_pb.ResourceID.toObject, includeInstance) + teleport_lib_teleterm_v1_access_request_pb.ResourceID.toObject, includeInstance) }; if (includeInstance) { @@ -2601,23 +2601,23 @@ proto.teleport.terminal.v1.CreateAccessRequestRequest.toObject = function(includ /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.CreateAccessRequestRequest} + * @return {!proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest} */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.CreateAccessRequestRequest; - return proto.teleport.terminal.v1.CreateAccessRequestRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest; + return proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.CreateAccessRequestRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.CreateAccessRequestRequest} + * @return {!proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest} */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2641,8 +2641,8 @@ proto.teleport.terminal.v1.CreateAccessRequestRequest.deserializeBinaryFromReade msg.addSuggestedReviewers(value); break; case 5: - var value = new v1_access_request_pb.ResourceID; - reader.readMessage(value,v1_access_request_pb.ResourceID.deserializeBinaryFromReader); + var value = new teleport_lib_teleterm_v1_access_request_pb.ResourceID; + reader.readMessage(value,teleport_lib_teleterm_v1_access_request_pb.ResourceID.deserializeBinaryFromReader); msg.addResourceIds(value); break; default: @@ -2658,9 +2658,9 @@ proto.teleport.terminal.v1.CreateAccessRequestRequest.deserializeBinaryFromReade * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.CreateAccessRequestRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2668,11 +2668,11 @@ proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.serializeBinary /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.CreateAccessRequestRequest} message + * @param {!proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getRootClusterUri(); if (f.length > 0) { @@ -2707,7 +2707,7 @@ proto.teleport.terminal.v1.CreateAccessRequestRequest.serializeBinaryToWriter = writer.writeRepeatedMessage( 5, f, - v1_access_request_pb.ResourceID.serializeBinaryToWriter + teleport_lib_teleterm_v1_access_request_pb.ResourceID.serializeBinaryToWriter ); } }; @@ -2717,16 +2717,16 @@ proto.teleport.terminal.v1.CreateAccessRequestRequest.serializeBinaryToWriter = * optional string root_cluster_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.getRootClusterUri = function() { +proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest.prototype.getRootClusterUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.CreateAccessRequestRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest} returns this */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.setRootClusterUri = function(value) { +proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest.prototype.setRootClusterUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -2735,16 +2735,16 @@ proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.setRootClusterUr * optional string reason = 2; * @return {string} */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.getReason = function() { +proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest.prototype.getReason = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.CreateAccessRequestRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest} returns this */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.setReason = function(value) { +proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest.prototype.setReason = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -2753,16 +2753,16 @@ proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.setReason = func * repeated string roles = 3; * @return {!Array} */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.getRolesList = function() { +proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest.prototype.getRolesList = function() { return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); }; /** * @param {!Array} value - * @return {!proto.teleport.terminal.v1.CreateAccessRequestRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest} returns this */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.setRolesList = function(value) { +proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest.prototype.setRolesList = function(value) { return jspb.Message.setField(this, 3, value || []); }; @@ -2770,18 +2770,18 @@ proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.setRolesList = f /** * @param {string} value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.CreateAccessRequestRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest} returns this */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.addRoles = function(value, opt_index) { +proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest.prototype.addRoles = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 3, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.CreateAccessRequestRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest} returns this */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.clearRolesList = function() { +proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest.prototype.clearRolesList = function() { return this.setRolesList([]); }; @@ -2790,16 +2790,16 @@ proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.clearRolesList = * repeated string suggested_reviewers = 4; * @return {!Array} */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.getSuggestedReviewersList = function() { +proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest.prototype.getSuggestedReviewersList = function() { return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); }; /** * @param {!Array} value - * @return {!proto.teleport.terminal.v1.CreateAccessRequestRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest} returns this */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.setSuggestedReviewersList = function(value) { +proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest.prototype.setSuggestedReviewersList = function(value) { return jspb.Message.setField(this, 4, value || []); }; @@ -2807,56 +2807,56 @@ proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.setSuggestedRevi /** * @param {string} value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.CreateAccessRequestRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest} returns this */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.addSuggestedReviewers = function(value, opt_index) { +proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest.prototype.addSuggestedReviewers = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 4, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.CreateAccessRequestRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest} returns this */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.clearSuggestedReviewersList = function() { +proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest.prototype.clearSuggestedReviewersList = function() { return this.setSuggestedReviewersList([]); }; /** * repeated ResourceID resource_ids = 5; - * @return {!Array} + * @return {!Array} */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.getResourceIdsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_access_request_pb.ResourceID, 5)); +proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest.prototype.getResourceIdsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, teleport_lib_teleterm_v1_access_request_pb.ResourceID, 5)); }; /** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.CreateAccessRequestRequest} returns this + * @param {!Array} value + * @return {!proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest} returns this */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.setResourceIdsList = function(value) { +proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest.prototype.setResourceIdsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 5, value); }; /** - * @param {!proto.teleport.terminal.v1.ResourceID=} opt_value + * @param {!proto.teleport.lib.teleterm.v1.ResourceID=} opt_value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.ResourceID} + * @return {!proto.teleport.lib.teleterm.v1.ResourceID} */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.addResourceIds = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.teleport.terminal.v1.ResourceID, opt_index); +proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest.prototype.addResourceIds = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.teleport.lib.teleterm.v1.ResourceID, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.CreateAccessRequestRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest} returns this */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.clearResourceIdsList = function() { +proto.teleport.lib.teleterm.v1.CreateAccessRequestRequest.prototype.clearResourceIdsList = function() { return this.setResourceIdsList([]); }; @@ -2877,8 +2877,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.CreateAccessRequestResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.CreateAccessRequestResponse.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.CreateAccessRequestResponse.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.CreateAccessRequestResponse.toObject(opt_includeInstance, this); }; @@ -2887,13 +2887,13 @@ proto.teleport.terminal.v1.CreateAccessRequestResponse.prototype.toObject = func * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.CreateAccessRequestResponse} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.CreateAccessRequestResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.CreateAccessRequestResponse.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.CreateAccessRequestResponse.toObject = function(includeInstance, msg) { var f, obj = { - request: (f = msg.getRequest()) && v1_access_request_pb.AccessRequest.toObject(includeInstance, f) + request: (f = msg.getRequest()) && teleport_lib_teleterm_v1_access_request_pb.AccessRequest.toObject(includeInstance, f) }; if (includeInstance) { @@ -2907,23 +2907,23 @@ proto.teleport.terminal.v1.CreateAccessRequestResponse.toObject = function(inclu /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.CreateAccessRequestResponse} + * @return {!proto.teleport.lib.teleterm.v1.CreateAccessRequestResponse} */ -proto.teleport.terminal.v1.CreateAccessRequestResponse.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.CreateAccessRequestResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.CreateAccessRequestResponse; - return proto.teleport.terminal.v1.CreateAccessRequestResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.CreateAccessRequestResponse; + return proto.teleport.lib.teleterm.v1.CreateAccessRequestResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.CreateAccessRequestResponse} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.CreateAccessRequestResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.CreateAccessRequestResponse} + * @return {!proto.teleport.lib.teleterm.v1.CreateAccessRequestResponse} */ -proto.teleport.terminal.v1.CreateAccessRequestResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.CreateAccessRequestResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2931,8 +2931,8 @@ proto.teleport.terminal.v1.CreateAccessRequestResponse.deserializeBinaryFromRead var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new v1_access_request_pb.AccessRequest; - reader.readMessage(value,v1_access_request_pb.AccessRequest.deserializeBinaryFromReader); + var value = new teleport_lib_teleterm_v1_access_request_pb.AccessRequest; + reader.readMessage(value,teleport_lib_teleterm_v1_access_request_pb.AccessRequest.deserializeBinaryFromReader); msg.setRequest(value); break; default: @@ -2948,9 +2948,9 @@ proto.teleport.terminal.v1.CreateAccessRequestResponse.deserializeBinaryFromRead * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.CreateAccessRequestResponse.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.CreateAccessRequestResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.CreateAccessRequestResponse.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.CreateAccessRequestResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2958,18 +2958,18 @@ proto.teleport.terminal.v1.CreateAccessRequestResponse.prototype.serializeBinary /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.CreateAccessRequestResponse} message + * @param {!proto.teleport.lib.teleterm.v1.CreateAccessRequestResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.CreateAccessRequestResponse.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.CreateAccessRequestResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getRequest(); if (f != null) { writer.writeMessage( 1, f, - v1_access_request_pb.AccessRequest.serializeBinaryToWriter + teleport_lib_teleterm_v1_access_request_pb.AccessRequest.serializeBinaryToWriter ); } }; @@ -2977,28 +2977,28 @@ proto.teleport.terminal.v1.CreateAccessRequestResponse.serializeBinaryToWriter = /** * optional AccessRequest request = 1; - * @return {?proto.teleport.terminal.v1.AccessRequest} + * @return {?proto.teleport.lib.teleterm.v1.AccessRequest} */ -proto.teleport.terminal.v1.CreateAccessRequestResponse.prototype.getRequest = function() { - return /** @type{?proto.teleport.terminal.v1.AccessRequest} */ ( - jspb.Message.getWrapperField(this, v1_access_request_pb.AccessRequest, 1)); +proto.teleport.lib.teleterm.v1.CreateAccessRequestResponse.prototype.getRequest = function() { + return /** @type{?proto.teleport.lib.teleterm.v1.AccessRequest} */ ( + jspb.Message.getWrapperField(this, teleport_lib_teleterm_v1_access_request_pb.AccessRequest, 1)); }; /** - * @param {?proto.teleport.terminal.v1.AccessRequest|undefined} value - * @return {!proto.teleport.terminal.v1.CreateAccessRequestResponse} returns this + * @param {?proto.teleport.lib.teleterm.v1.AccessRequest|undefined} value + * @return {!proto.teleport.lib.teleterm.v1.CreateAccessRequestResponse} returns this */ -proto.teleport.terminal.v1.CreateAccessRequestResponse.prototype.setRequest = function(value) { +proto.teleport.lib.teleterm.v1.CreateAccessRequestResponse.prototype.setRequest = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.CreateAccessRequestResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.CreateAccessRequestResponse} returns this */ -proto.teleport.terminal.v1.CreateAccessRequestResponse.prototype.clearRequest = function() { +proto.teleport.lib.teleterm.v1.CreateAccessRequestResponse.prototype.clearRequest = function() { return this.setRequest(undefined); }; @@ -3007,7 +3007,7 @@ proto.teleport.terminal.v1.CreateAccessRequestResponse.prototype.clearRequest = * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.CreateAccessRequestResponse.prototype.hasRequest = function() { +proto.teleport.lib.teleterm.v1.CreateAccessRequestResponse.prototype.hasRequest = function() { return jspb.Message.getField(this, 1) != null; }; @@ -3018,7 +3018,7 @@ proto.teleport.terminal.v1.CreateAccessRequestResponse.prototype.hasRequest = fu * @private {!Array} * @const */ -proto.teleport.terminal.v1.AssumeRoleRequest.repeatedFields_ = [2,3]; +proto.teleport.lib.teleterm.v1.AssumeRoleRequest.repeatedFields_ = [2,3]; @@ -3035,8 +3035,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.AssumeRoleRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.AssumeRoleRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.AssumeRoleRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.AssumeRoleRequest.toObject(opt_includeInstance, this); }; @@ -3045,11 +3045,11 @@ proto.teleport.terminal.v1.AssumeRoleRequest.prototype.toObject = function(opt_i * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.AssumeRoleRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.AssumeRoleRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.AssumeRoleRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.AssumeRoleRequest.toObject = function(includeInstance, msg) { var f, obj = { rootClusterUri: jspb.Message.getFieldWithDefault(msg, 1, ""), accessRequestIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, @@ -3067,23 +3067,23 @@ proto.teleport.terminal.v1.AssumeRoleRequest.toObject = function(includeInstance /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.AssumeRoleRequest} + * @return {!proto.teleport.lib.teleterm.v1.AssumeRoleRequest} */ -proto.teleport.terminal.v1.AssumeRoleRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.AssumeRoleRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.AssumeRoleRequest; - return proto.teleport.terminal.v1.AssumeRoleRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.AssumeRoleRequest; + return proto.teleport.lib.teleterm.v1.AssumeRoleRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.AssumeRoleRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.AssumeRoleRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.AssumeRoleRequest} + * @return {!proto.teleport.lib.teleterm.v1.AssumeRoleRequest} */ -proto.teleport.terminal.v1.AssumeRoleRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.AssumeRoleRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -3115,9 +3115,9 @@ proto.teleport.terminal.v1.AssumeRoleRequest.deserializeBinaryFromReader = funct * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.AssumeRoleRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.AssumeRoleRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.AssumeRoleRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.AssumeRoleRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -3125,11 +3125,11 @@ proto.teleport.terminal.v1.AssumeRoleRequest.prototype.serializeBinary = functio /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.AssumeRoleRequest} message + * @param {!proto.teleport.lib.teleterm.v1.AssumeRoleRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.AssumeRoleRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.AssumeRoleRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getRootClusterUri(); if (f.length > 0) { @@ -3159,16 +3159,16 @@ proto.teleport.terminal.v1.AssumeRoleRequest.serializeBinaryToWriter = function( * optional string root_cluster_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.AssumeRoleRequest.prototype.getRootClusterUri = function() { +proto.teleport.lib.teleterm.v1.AssumeRoleRequest.prototype.getRootClusterUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.AssumeRoleRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AssumeRoleRequest} returns this */ -proto.teleport.terminal.v1.AssumeRoleRequest.prototype.setRootClusterUri = function(value) { +proto.teleport.lib.teleterm.v1.AssumeRoleRequest.prototype.setRootClusterUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -3177,16 +3177,16 @@ proto.teleport.terminal.v1.AssumeRoleRequest.prototype.setRootClusterUri = funct * repeated string access_request_ids = 2; * @return {!Array} */ -proto.teleport.terminal.v1.AssumeRoleRequest.prototype.getAccessRequestIdsList = function() { +proto.teleport.lib.teleterm.v1.AssumeRoleRequest.prototype.getAccessRequestIdsList = function() { return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** * @param {!Array} value - * @return {!proto.teleport.terminal.v1.AssumeRoleRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AssumeRoleRequest} returns this */ -proto.teleport.terminal.v1.AssumeRoleRequest.prototype.setAccessRequestIdsList = function(value) { +proto.teleport.lib.teleterm.v1.AssumeRoleRequest.prototype.setAccessRequestIdsList = function(value) { return jspb.Message.setField(this, 2, value || []); }; @@ -3194,18 +3194,18 @@ proto.teleport.terminal.v1.AssumeRoleRequest.prototype.setAccessRequestIdsList = /** * @param {string} value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.AssumeRoleRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AssumeRoleRequest} returns this */ -proto.teleport.terminal.v1.AssumeRoleRequest.prototype.addAccessRequestIds = function(value, opt_index) { +proto.teleport.lib.teleterm.v1.AssumeRoleRequest.prototype.addAccessRequestIds = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.AssumeRoleRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AssumeRoleRequest} returns this */ -proto.teleport.terminal.v1.AssumeRoleRequest.prototype.clearAccessRequestIdsList = function() { +proto.teleport.lib.teleterm.v1.AssumeRoleRequest.prototype.clearAccessRequestIdsList = function() { return this.setAccessRequestIdsList([]); }; @@ -3214,16 +3214,16 @@ proto.teleport.terminal.v1.AssumeRoleRequest.prototype.clearAccessRequestIdsList * repeated string drop_request_ids = 3; * @return {!Array} */ -proto.teleport.terminal.v1.AssumeRoleRequest.prototype.getDropRequestIdsList = function() { +proto.teleport.lib.teleterm.v1.AssumeRoleRequest.prototype.getDropRequestIdsList = function() { return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); }; /** * @param {!Array} value - * @return {!proto.teleport.terminal.v1.AssumeRoleRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AssumeRoleRequest} returns this */ -proto.teleport.terminal.v1.AssumeRoleRequest.prototype.setDropRequestIdsList = function(value) { +proto.teleport.lib.teleterm.v1.AssumeRoleRequest.prototype.setDropRequestIdsList = function(value) { return jspb.Message.setField(this, 3, value || []); }; @@ -3231,18 +3231,18 @@ proto.teleport.terminal.v1.AssumeRoleRequest.prototype.setDropRequestIdsList = f /** * @param {string} value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.AssumeRoleRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AssumeRoleRequest} returns this */ -proto.teleport.terminal.v1.AssumeRoleRequest.prototype.addDropRequestIds = function(value, opt_index) { +proto.teleport.lib.teleterm.v1.AssumeRoleRequest.prototype.addDropRequestIds = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 3, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.AssumeRoleRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AssumeRoleRequest} returns this */ -proto.teleport.terminal.v1.AssumeRoleRequest.prototype.clearDropRequestIdsList = function() { +proto.teleport.lib.teleterm.v1.AssumeRoleRequest.prototype.clearDropRequestIdsList = function() { return this.setDropRequestIdsList([]); }; @@ -3253,7 +3253,7 @@ proto.teleport.terminal.v1.AssumeRoleRequest.prototype.clearDropRequestIdsList = * @private {!Array} * @const */ -proto.teleport.terminal.v1.GetRequestableRolesRequest.repeatedFields_ = [2]; +proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest.repeatedFields_ = [2]; @@ -3270,8 +3270,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.GetRequestableRolesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetRequestableRolesRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest.toObject(opt_includeInstance, this); }; @@ -3280,15 +3280,15 @@ proto.teleport.terminal.v1.GetRequestableRolesRequest.prototype.toObject = funct * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetRequestableRolesRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetRequestableRolesRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest.toObject = function(includeInstance, msg) { var f, obj = { clusterUri: jspb.Message.getFieldWithDefault(msg, 1, ""), resourceIdsList: jspb.Message.toObjectList(msg.getResourceIdsList(), - v1_access_request_pb.ResourceID.toObject, includeInstance) + teleport_lib_teleterm_v1_access_request_pb.ResourceID.toObject, includeInstance) }; if (includeInstance) { @@ -3302,23 +3302,23 @@ proto.teleport.terminal.v1.GetRequestableRolesRequest.toObject = function(includ /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetRequestableRolesRequest} + * @return {!proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest} */ -proto.teleport.terminal.v1.GetRequestableRolesRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetRequestableRolesRequest; - return proto.teleport.terminal.v1.GetRequestableRolesRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest; + return proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetRequestableRolesRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetRequestableRolesRequest} + * @return {!proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest} */ -proto.teleport.terminal.v1.GetRequestableRolesRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -3330,8 +3330,8 @@ proto.teleport.terminal.v1.GetRequestableRolesRequest.deserializeBinaryFromReade msg.setClusterUri(value); break; case 2: - var value = new v1_access_request_pb.ResourceID; - reader.readMessage(value,v1_access_request_pb.ResourceID.deserializeBinaryFromReader); + var value = new teleport_lib_teleterm_v1_access_request_pb.ResourceID; + reader.readMessage(value,teleport_lib_teleterm_v1_access_request_pb.ResourceID.deserializeBinaryFromReader); msg.addResourceIds(value); break; default: @@ -3347,9 +3347,9 @@ proto.teleport.terminal.v1.GetRequestableRolesRequest.deserializeBinaryFromReade * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.GetRequestableRolesRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetRequestableRolesRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -3357,11 +3357,11 @@ proto.teleport.terminal.v1.GetRequestableRolesRequest.prototype.serializeBinary /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetRequestableRolesRequest} message + * @param {!proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetRequestableRolesRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClusterUri(); if (f.length > 0) { @@ -3375,7 +3375,7 @@ proto.teleport.terminal.v1.GetRequestableRolesRequest.serializeBinaryToWriter = writer.writeRepeatedMessage( 2, f, - v1_access_request_pb.ResourceID.serializeBinaryToWriter + teleport_lib_teleterm_v1_access_request_pb.ResourceID.serializeBinaryToWriter ); } }; @@ -3385,54 +3385,54 @@ proto.teleport.terminal.v1.GetRequestableRolesRequest.serializeBinaryToWriter = * optional string cluster_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.GetRequestableRolesRequest.prototype.getClusterUri = function() { +proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest.prototype.getClusterUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetRequestableRolesRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest} returns this */ -proto.teleport.terminal.v1.GetRequestableRolesRequest.prototype.setClusterUri = function(value) { +proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest.prototype.setClusterUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * repeated ResourceID resource_ids = 2; - * @return {!Array} + * @return {!Array} */ -proto.teleport.terminal.v1.GetRequestableRolesRequest.prototype.getResourceIdsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_access_request_pb.ResourceID, 2)); +proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest.prototype.getResourceIdsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, teleport_lib_teleterm_v1_access_request_pb.ResourceID, 2)); }; /** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.GetRequestableRolesRequest} returns this + * @param {!Array} value + * @return {!proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest} returns this */ -proto.teleport.terminal.v1.GetRequestableRolesRequest.prototype.setResourceIdsList = function(value) { +proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest.prototype.setResourceIdsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.teleport.terminal.v1.ResourceID=} opt_value + * @param {!proto.teleport.lib.teleterm.v1.ResourceID=} opt_value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.ResourceID} + * @return {!proto.teleport.lib.teleterm.v1.ResourceID} */ -proto.teleport.terminal.v1.GetRequestableRolesRequest.prototype.addResourceIds = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.teleport.terminal.v1.ResourceID, opt_index); +proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest.prototype.addResourceIds = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.teleport.lib.teleterm.v1.ResourceID, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.GetRequestableRolesRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest} returns this */ -proto.teleport.terminal.v1.GetRequestableRolesRequest.prototype.clearResourceIdsList = function() { +proto.teleport.lib.teleterm.v1.GetRequestableRolesRequest.prototype.clearResourceIdsList = function() { return this.setResourceIdsList([]); }; @@ -3443,7 +3443,7 @@ proto.teleport.terminal.v1.GetRequestableRolesRequest.prototype.clearResourceIds * @private {!Array} * @const */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.repeatedFields_ = [1,2]; +proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse.repeatedFields_ = [1,2]; @@ -3460,8 +3460,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetRequestableRolesResponse.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse.toObject(opt_includeInstance, this); }; @@ -3470,11 +3470,11 @@ proto.teleport.terminal.v1.GetRequestableRolesResponse.prototype.toObject = func * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetRequestableRolesResponse} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse.toObject = function(includeInstance, msg) { var f, obj = { rolesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, applicableRolesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f @@ -3491,23 +3491,23 @@ proto.teleport.terminal.v1.GetRequestableRolesResponse.toObject = function(inclu /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetRequestableRolesResponse} + * @return {!proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse} */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetRequestableRolesResponse; - return proto.teleport.terminal.v1.GetRequestableRolesResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse; + return proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetRequestableRolesResponse} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetRequestableRolesResponse} + * @return {!proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse} */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -3535,9 +3535,9 @@ proto.teleport.terminal.v1.GetRequestableRolesResponse.deserializeBinaryFromRead * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetRequestableRolesResponse.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -3545,11 +3545,11 @@ proto.teleport.terminal.v1.GetRequestableRolesResponse.prototype.serializeBinary /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetRequestableRolesResponse} message + * @param {!proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getRolesList(); if (f.length > 0) { @@ -3572,16 +3572,16 @@ proto.teleport.terminal.v1.GetRequestableRolesResponse.serializeBinaryToWriter = * repeated string roles = 1; * @return {!Array} */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.prototype.getRolesList = function() { +proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse.prototype.getRolesList = function() { return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); }; /** * @param {!Array} value - * @return {!proto.teleport.terminal.v1.GetRequestableRolesResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse} returns this */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.prototype.setRolesList = function(value) { +proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse.prototype.setRolesList = function(value) { return jspb.Message.setField(this, 1, value || []); }; @@ -3589,18 +3589,18 @@ proto.teleport.terminal.v1.GetRequestableRolesResponse.prototype.setRolesList = /** * @param {string} value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.GetRequestableRolesResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse} returns this */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.prototype.addRoles = function(value, opt_index) { +proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse.prototype.addRoles = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 1, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.GetRequestableRolesResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse} returns this */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.prototype.clearRolesList = function() { +proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse.prototype.clearRolesList = function() { return this.setRolesList([]); }; @@ -3609,16 +3609,16 @@ proto.teleport.terminal.v1.GetRequestableRolesResponse.prototype.clearRolesList * repeated string applicable_roles = 2; * @return {!Array} */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.prototype.getApplicableRolesList = function() { +proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse.prototype.getApplicableRolesList = function() { return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** * @param {!Array} value - * @return {!proto.teleport.terminal.v1.GetRequestableRolesResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse} returns this */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.prototype.setApplicableRolesList = function(value) { +proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse.prototype.setApplicableRolesList = function(value) { return jspb.Message.setField(this, 2, value || []); }; @@ -3626,18 +3626,18 @@ proto.teleport.terminal.v1.GetRequestableRolesResponse.prototype.setApplicableRo /** * @param {string} value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.GetRequestableRolesResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse} returns this */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.prototype.addApplicableRoles = function(value, opt_index) { +proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse.prototype.addApplicableRoles = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.GetRequestableRolesResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse} returns this */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.prototype.clearApplicableRolesList = function() { +proto.teleport.lib.teleterm.v1.GetRequestableRolesResponse.prototype.clearApplicableRolesList = function() { return this.setApplicableRolesList([]); }; @@ -3648,7 +3648,7 @@ proto.teleport.terminal.v1.GetRequestableRolesResponse.prototype.clearApplicable * @private {!Array} * @const */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.repeatedFields_ = [4]; +proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest.repeatedFields_ = [4]; @@ -3665,8 +3665,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ReviewAccessRequestRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest.toObject(opt_includeInstance, this); }; @@ -3675,11 +3675,11 @@ proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.toObject = funct * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ReviewAccessRequestRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest.toObject = function(includeInstance, msg) { var f, obj = { rootClusterUri: jspb.Message.getFieldWithDefault(msg, 1, ""), state: jspb.Message.getFieldWithDefault(msg, 2, ""), @@ -3699,23 +3699,23 @@ proto.teleport.terminal.v1.ReviewAccessRequestRequest.toObject = function(includ /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ReviewAccessRequestRequest} + * @return {!proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest} */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ReviewAccessRequestRequest; - return proto.teleport.terminal.v1.ReviewAccessRequestRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest; + return proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ReviewAccessRequestRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ReviewAccessRequestRequest} + * @return {!proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest} */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -3755,9 +3755,9 @@ proto.teleport.terminal.v1.ReviewAccessRequestRequest.deserializeBinaryFromReade * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ReviewAccessRequestRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -3765,11 +3765,11 @@ proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.serializeBinary /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ReviewAccessRequestRequest} message + * @param {!proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getRootClusterUri(); if (f.length > 0) { @@ -3813,16 +3813,16 @@ proto.teleport.terminal.v1.ReviewAccessRequestRequest.serializeBinaryToWriter = * optional string root_cluster_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.getRootClusterUri = function() { +proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest.prototype.getRootClusterUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.ReviewAccessRequestRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest} returns this */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.setRootClusterUri = function(value) { +proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest.prototype.setRootClusterUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -3831,16 +3831,16 @@ proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.setRootClusterUr * optional string state = 2; * @return {string} */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.getState = function() { +proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest.prototype.getState = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.ReviewAccessRequestRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest} returns this */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.setState = function(value) { +proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest.prototype.setState = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -3849,16 +3849,16 @@ proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.setState = funct * optional string reason = 3; * @return {string} */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.getReason = function() { +proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest.prototype.getReason = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.ReviewAccessRequestRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest} returns this */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.setReason = function(value) { +proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest.prototype.setReason = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; @@ -3867,16 +3867,16 @@ proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.setReason = func * repeated string roles = 4; * @return {!Array} */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.getRolesList = function() { +proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest.prototype.getRolesList = function() { return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); }; /** * @param {!Array} value - * @return {!proto.teleport.terminal.v1.ReviewAccessRequestRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest} returns this */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.setRolesList = function(value) { +proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest.prototype.setRolesList = function(value) { return jspb.Message.setField(this, 4, value || []); }; @@ -3884,18 +3884,18 @@ proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.setRolesList = f /** * @param {string} value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.ReviewAccessRequestRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest} returns this */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.addRoles = function(value, opt_index) { +proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest.prototype.addRoles = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 4, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.ReviewAccessRequestRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest} returns this */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.clearRolesList = function() { +proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest.prototype.clearRolesList = function() { return this.setRolesList([]); }; @@ -3904,16 +3904,16 @@ proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.clearRolesList = * optional string access_request_id = 5; * @return {string} */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.getAccessRequestId = function() { +proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest.prototype.getAccessRequestId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.ReviewAccessRequestRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest} returns this */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.setAccessRequestId = function(value) { +proto.teleport.lib.teleterm.v1.ReviewAccessRequestRequest.prototype.setAccessRequestId = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; @@ -3934,8 +3934,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.ReviewAccessRequestResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ReviewAccessRequestResponse.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.ReviewAccessRequestResponse.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.ReviewAccessRequestResponse.toObject(opt_includeInstance, this); }; @@ -3944,13 +3944,13 @@ proto.teleport.terminal.v1.ReviewAccessRequestResponse.prototype.toObject = func * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ReviewAccessRequestResponse} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.ReviewAccessRequestResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ReviewAccessRequestResponse.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.ReviewAccessRequestResponse.toObject = function(includeInstance, msg) { var f, obj = { - request: (f = msg.getRequest()) && v1_access_request_pb.AccessRequest.toObject(includeInstance, f) + request: (f = msg.getRequest()) && teleport_lib_teleterm_v1_access_request_pb.AccessRequest.toObject(includeInstance, f) }; if (includeInstance) { @@ -3964,23 +3964,23 @@ proto.teleport.terminal.v1.ReviewAccessRequestResponse.toObject = function(inclu /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ReviewAccessRequestResponse} + * @return {!proto.teleport.lib.teleterm.v1.ReviewAccessRequestResponse} */ -proto.teleport.terminal.v1.ReviewAccessRequestResponse.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.ReviewAccessRequestResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ReviewAccessRequestResponse; - return proto.teleport.terminal.v1.ReviewAccessRequestResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.ReviewAccessRequestResponse; + return proto.teleport.lib.teleterm.v1.ReviewAccessRequestResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ReviewAccessRequestResponse} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.ReviewAccessRequestResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ReviewAccessRequestResponse} + * @return {!proto.teleport.lib.teleterm.v1.ReviewAccessRequestResponse} */ -proto.teleport.terminal.v1.ReviewAccessRequestResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.ReviewAccessRequestResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -3988,8 +3988,8 @@ proto.teleport.terminal.v1.ReviewAccessRequestResponse.deserializeBinaryFromRead var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new v1_access_request_pb.AccessRequest; - reader.readMessage(value,v1_access_request_pb.AccessRequest.deserializeBinaryFromReader); + var value = new teleport_lib_teleterm_v1_access_request_pb.AccessRequest; + reader.readMessage(value,teleport_lib_teleterm_v1_access_request_pb.AccessRequest.deserializeBinaryFromReader); msg.setRequest(value); break; default: @@ -4005,9 +4005,9 @@ proto.teleport.terminal.v1.ReviewAccessRequestResponse.deserializeBinaryFromRead * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.ReviewAccessRequestResponse.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.ReviewAccessRequestResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ReviewAccessRequestResponse.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.ReviewAccessRequestResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -4015,18 +4015,18 @@ proto.teleport.terminal.v1.ReviewAccessRequestResponse.prototype.serializeBinary /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ReviewAccessRequestResponse} message + * @param {!proto.teleport.lib.teleterm.v1.ReviewAccessRequestResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ReviewAccessRequestResponse.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.ReviewAccessRequestResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getRequest(); if (f != null) { writer.writeMessage( 1, f, - v1_access_request_pb.AccessRequest.serializeBinaryToWriter + teleport_lib_teleterm_v1_access_request_pb.AccessRequest.serializeBinaryToWriter ); } }; @@ -4034,28 +4034,28 @@ proto.teleport.terminal.v1.ReviewAccessRequestResponse.serializeBinaryToWriter = /** * optional AccessRequest request = 1; - * @return {?proto.teleport.terminal.v1.AccessRequest} + * @return {?proto.teleport.lib.teleterm.v1.AccessRequest} */ -proto.teleport.terminal.v1.ReviewAccessRequestResponse.prototype.getRequest = function() { - return /** @type{?proto.teleport.terminal.v1.AccessRequest} */ ( - jspb.Message.getWrapperField(this, v1_access_request_pb.AccessRequest, 1)); +proto.teleport.lib.teleterm.v1.ReviewAccessRequestResponse.prototype.getRequest = function() { + return /** @type{?proto.teleport.lib.teleterm.v1.AccessRequest} */ ( + jspb.Message.getWrapperField(this, teleport_lib_teleterm_v1_access_request_pb.AccessRequest, 1)); }; /** - * @param {?proto.teleport.terminal.v1.AccessRequest|undefined} value - * @return {!proto.teleport.terminal.v1.ReviewAccessRequestResponse} returns this + * @param {?proto.teleport.lib.teleterm.v1.AccessRequest|undefined} value + * @return {!proto.teleport.lib.teleterm.v1.ReviewAccessRequestResponse} returns this */ -proto.teleport.terminal.v1.ReviewAccessRequestResponse.prototype.setRequest = function(value) { +proto.teleport.lib.teleterm.v1.ReviewAccessRequestResponse.prototype.setRequest = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ReviewAccessRequestResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.ReviewAccessRequestResponse} returns this */ -proto.teleport.terminal.v1.ReviewAccessRequestResponse.prototype.clearRequest = function() { +proto.teleport.lib.teleterm.v1.ReviewAccessRequestResponse.prototype.clearRequest = function() { return this.setRequest(undefined); }; @@ -4064,7 +4064,7 @@ proto.teleport.terminal.v1.ReviewAccessRequestResponse.prototype.clearRequest = * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.ReviewAccessRequestResponse.prototype.hasRequest = function() { +proto.teleport.lib.teleterm.v1.ReviewAccessRequestResponse.prototype.hasRequest = function() { return jspb.Message.getField(this, 1) != null; }; @@ -4085,8 +4085,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.CredentialInfo.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.CredentialInfo.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.CredentialInfo.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.CredentialInfo.toObject(opt_includeInstance, this); }; @@ -4095,11 +4095,11 @@ proto.teleport.terminal.v1.CredentialInfo.prototype.toObject = function(opt_incl * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.CredentialInfo} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.CredentialInfo} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.CredentialInfo.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.CredentialInfo.toObject = function(includeInstance, msg) { var f, obj = { username: jspb.Message.getFieldWithDefault(msg, 1, "") }; @@ -4115,23 +4115,23 @@ proto.teleport.terminal.v1.CredentialInfo.toObject = function(includeInstance, m /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.CredentialInfo} + * @return {!proto.teleport.lib.teleterm.v1.CredentialInfo} */ -proto.teleport.terminal.v1.CredentialInfo.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.CredentialInfo.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.CredentialInfo; - return proto.teleport.terminal.v1.CredentialInfo.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.CredentialInfo; + return proto.teleport.lib.teleterm.v1.CredentialInfo.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.CredentialInfo} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.CredentialInfo} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.CredentialInfo} + * @return {!proto.teleport.lib.teleterm.v1.CredentialInfo} */ -proto.teleport.terminal.v1.CredentialInfo.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.CredentialInfo.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -4155,9 +4155,9 @@ proto.teleport.terminal.v1.CredentialInfo.deserializeBinaryFromReader = function * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.CredentialInfo.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.CredentialInfo.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.CredentialInfo.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.CredentialInfo.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -4165,11 +4165,11 @@ proto.teleport.terminal.v1.CredentialInfo.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.CredentialInfo} message + * @param {!proto.teleport.lib.teleterm.v1.CredentialInfo} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.CredentialInfo.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.CredentialInfo.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUsername(); if (f.length > 0) { @@ -4185,16 +4185,16 @@ proto.teleport.terminal.v1.CredentialInfo.serializeBinaryToWriter = function(mes * optional string username = 1; * @return {string} */ -proto.teleport.terminal.v1.CredentialInfo.prototype.getUsername = function() { +proto.teleport.lib.teleterm.v1.CredentialInfo.prototype.getUsername = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.CredentialInfo} returns this + * @return {!proto.teleport.lib.teleterm.v1.CredentialInfo} returns this */ -proto.teleport.terminal.v1.CredentialInfo.prototype.setUsername = function(value) { +proto.teleport.lib.teleterm.v1.CredentialInfo.prototype.setUsername = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -4205,7 +4205,7 @@ proto.teleport.terminal.v1.CredentialInfo.prototype.setUsername = function(value * @private {!Array} * @const */ -proto.teleport.terminal.v1.LoginPasswordlessResponse.repeatedFields_ = [2]; +proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse.repeatedFields_ = [2]; @@ -4222,8 +4222,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.LoginPasswordlessResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.LoginPasswordlessResponse.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse.toObject(opt_includeInstance, this); }; @@ -4232,15 +4232,15 @@ proto.teleport.terminal.v1.LoginPasswordlessResponse.prototype.toObject = functi * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.LoginPasswordlessResponse} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.LoginPasswordlessResponse.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse.toObject = function(includeInstance, msg) { var f, obj = { prompt: jspb.Message.getFieldWithDefault(msg, 1, 0), credentialsList: jspb.Message.toObjectList(msg.getCredentialsList(), - proto.teleport.terminal.v1.CredentialInfo.toObject, includeInstance) + proto.teleport.lib.teleterm.v1.CredentialInfo.toObject, includeInstance) }; if (includeInstance) { @@ -4254,23 +4254,23 @@ proto.teleport.terminal.v1.LoginPasswordlessResponse.toObject = function(include /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.LoginPasswordlessResponse} + * @return {!proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse} */ -proto.teleport.terminal.v1.LoginPasswordlessResponse.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.LoginPasswordlessResponse; - return proto.teleport.terminal.v1.LoginPasswordlessResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse; + return proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.LoginPasswordlessResponse} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.LoginPasswordlessResponse} + * @return {!proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse} */ -proto.teleport.terminal.v1.LoginPasswordlessResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -4278,12 +4278,12 @@ proto.teleport.terminal.v1.LoginPasswordlessResponse.deserializeBinaryFromReader var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {!proto.teleport.terminal.v1.PasswordlessPrompt} */ (reader.readEnum()); + var value = /** @type {!proto.teleport.lib.teleterm.v1.PasswordlessPrompt} */ (reader.readEnum()); msg.setPrompt(value); break; case 2: - var value = new proto.teleport.terminal.v1.CredentialInfo; - reader.readMessage(value,proto.teleport.terminal.v1.CredentialInfo.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.CredentialInfo; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.CredentialInfo.deserializeBinaryFromReader); msg.addCredentials(value); break; default: @@ -4299,9 +4299,9 @@ proto.teleport.terminal.v1.LoginPasswordlessResponse.deserializeBinaryFromReader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.LoginPasswordlessResponse.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.LoginPasswordlessResponse.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -4309,11 +4309,11 @@ proto.teleport.terminal.v1.LoginPasswordlessResponse.prototype.serializeBinary = /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.LoginPasswordlessResponse} message + * @param {!proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.LoginPasswordlessResponse.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getPrompt(); if (f !== 0.0) { @@ -4327,7 +4327,7 @@ proto.teleport.terminal.v1.LoginPasswordlessResponse.serializeBinaryToWriter = f writer.writeRepeatedMessage( 2, f, - proto.teleport.terminal.v1.CredentialInfo.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.CredentialInfo.serializeBinaryToWriter ); } }; @@ -4335,56 +4335,56 @@ proto.teleport.terminal.v1.LoginPasswordlessResponse.serializeBinaryToWriter = f /** * optional PasswordlessPrompt prompt = 1; - * @return {!proto.teleport.terminal.v1.PasswordlessPrompt} + * @return {!proto.teleport.lib.teleterm.v1.PasswordlessPrompt} */ -proto.teleport.terminal.v1.LoginPasswordlessResponse.prototype.getPrompt = function() { - return /** @type {!proto.teleport.terminal.v1.PasswordlessPrompt} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse.prototype.getPrompt = function() { + return /** @type {!proto.teleport.lib.teleterm.v1.PasswordlessPrompt} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {!proto.teleport.terminal.v1.PasswordlessPrompt} value - * @return {!proto.teleport.terminal.v1.LoginPasswordlessResponse} returns this + * @param {!proto.teleport.lib.teleterm.v1.PasswordlessPrompt} value + * @return {!proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse} returns this */ -proto.teleport.terminal.v1.LoginPasswordlessResponse.prototype.setPrompt = function(value) { +proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse.prototype.setPrompt = function(value) { return jspb.Message.setProto3EnumField(this, 1, value); }; /** * repeated CredentialInfo credentials = 2; - * @return {!Array} + * @return {!Array} */ -proto.teleport.terminal.v1.LoginPasswordlessResponse.prototype.getCredentialsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.teleport.terminal.v1.CredentialInfo, 2)); +proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse.prototype.getCredentialsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.teleport.lib.teleterm.v1.CredentialInfo, 2)); }; /** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.LoginPasswordlessResponse} returns this + * @param {!Array} value + * @return {!proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse} returns this */ -proto.teleport.terminal.v1.LoginPasswordlessResponse.prototype.setCredentialsList = function(value) { +proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse.prototype.setCredentialsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.teleport.terminal.v1.CredentialInfo=} opt_value + * @param {!proto.teleport.lib.teleterm.v1.CredentialInfo=} opt_value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.CredentialInfo} + * @return {!proto.teleport.lib.teleterm.v1.CredentialInfo} */ -proto.teleport.terminal.v1.LoginPasswordlessResponse.prototype.addCredentials = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.teleport.terminal.v1.CredentialInfo, opt_index); +proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse.prototype.addCredentials = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.teleport.lib.teleterm.v1.CredentialInfo, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.LoginPasswordlessResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse} returns this */ -proto.teleport.terminal.v1.LoginPasswordlessResponse.prototype.clearCredentialsList = function() { +proto.teleport.lib.teleterm.v1.LoginPasswordlessResponse.prototype.clearCredentialsList = function() { return this.setCredentialsList([]); }; @@ -4398,12 +4398,12 @@ proto.teleport.terminal.v1.LoginPasswordlessResponse.prototype.clearCredentialsL * @private {!Array>} * @const */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.oneofGroups_ = [[1,2,3]]; +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.oneofGroups_ = [[1,2,3]]; /** * @enum {number} */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.RequestCase = { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.RequestCase = { REQUEST_NOT_SET: 0, INIT: 1, PIN: 2, @@ -4411,10 +4411,10 @@ proto.teleport.terminal.v1.LoginPasswordlessRequest.RequestCase = { }; /** - * @return {proto.teleport.terminal.v1.LoginPasswordlessRequest.RequestCase} + * @return {proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.RequestCase} */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.getRequestCase = function() { - return /** @type {proto.teleport.terminal.v1.LoginPasswordlessRequest.RequestCase} */(jspb.Message.computeOneofCase(this, proto.teleport.terminal.v1.LoginPasswordlessRequest.oneofGroups_[0])); +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.prototype.getRequestCase = function() { + return /** @type {proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.RequestCase} */(jspb.Message.computeOneofCase(this, proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.oneofGroups_[0])); }; @@ -4432,8 +4432,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.LoginPasswordlessRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.toObject(opt_includeInstance, this); }; @@ -4442,15 +4442,15 @@ proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.toObject = functio * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.LoginPasswordlessRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.toObject = function(includeInstance, msg) { var f, obj = { - init: (f = msg.getInit()) && proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.toObject(includeInstance, f), - pin: (f = msg.getPin()) && proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.toObject(includeInstance, f), - credential: (f = msg.getCredential()) && proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.toObject(includeInstance, f) + init: (f = msg.getInit()) && proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.toObject(includeInstance, f), + pin: (f = msg.getPin()) && proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.toObject(includeInstance, f), + credential: (f = msg.getCredential()) && proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.toObject(includeInstance, f) }; if (includeInstance) { @@ -4464,23 +4464,23 @@ proto.teleport.terminal.v1.LoginPasswordlessRequest.toObject = function(includeI /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest} + * @return {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest} */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.LoginPasswordlessRequest; - return proto.teleport.terminal.v1.LoginPasswordlessRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest; + return proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.LoginPasswordlessRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest} + * @return {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest} */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -4488,18 +4488,18 @@ proto.teleport.terminal.v1.LoginPasswordlessRequest.deserializeBinaryFromReader var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit; - reader.readMessage(value,proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.deserializeBinaryFromReader); msg.setInit(value); break; case 2: - var value = new proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse; - reader.readMessage(value,proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.deserializeBinaryFromReader); msg.setPin(value); break; case 3: - var value = new proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse; - reader.readMessage(value,proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.deserializeBinaryFromReader); msg.setCredential(value); break; default: @@ -4515,9 +4515,9 @@ proto.teleport.terminal.v1.LoginPasswordlessRequest.deserializeBinaryFromReader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.LoginPasswordlessRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -4525,18 +4525,18 @@ proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.serializeBinary = /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.LoginPasswordlessRequest} message + * @param {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getInit(); if (f != null) { writer.writeMessage( 1, f, - proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.serializeBinaryToWriter ); } f = message.getPin(); @@ -4544,7 +4544,7 @@ proto.teleport.terminal.v1.LoginPasswordlessRequest.serializeBinaryToWriter = fu writer.writeMessage( 2, f, - proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.serializeBinaryToWriter ); } f = message.getCredential(); @@ -4552,7 +4552,7 @@ proto.teleport.terminal.v1.LoginPasswordlessRequest.serializeBinaryToWriter = fu writer.writeMessage( 3, f, - proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.serializeBinaryToWriter ); } }; @@ -4574,8 +4574,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.toObject(opt_includeInstance, this); }; @@ -4584,11 +4584,11 @@ proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.toObject = function(includeInstance, msg) { var f, obj = { clusterUri: jspb.Message.getFieldWithDefault(msg, 1, "") }; @@ -4604,23 +4604,23 @@ proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit} + * @return {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit} */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit; - return proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit; + return proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit} + * @return {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit} */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -4644,9 +4644,9 @@ proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -4654,11 +4654,11 @@ proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit} message + * @param {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClusterUri(); if (f.length > 0) { @@ -4674,16 +4674,16 @@ proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit * optional string cluster_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.prototype.getClusterUri = function() { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.prototype.getClusterUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit} returns this */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.prototype.setClusterUri = function(value) { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.prototype.setClusterUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -4704,8 +4704,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.toObject(opt_includeInstance, this); }; @@ -4714,11 +4714,11 @@ proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.toObject = function(includeInstance, msg) { var f, obj = { pin: jspb.Message.getFieldWithDefault(msg, 1, "") }; @@ -4734,23 +4734,23 @@ proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse} + * @return {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse} */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse; - return proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse; + return proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse} + * @return {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse} */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -4774,9 +4774,9 @@ proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -4784,11 +4784,11 @@ proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse} message + * @param {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getPin(); if (f.length > 0) { @@ -4804,16 +4804,16 @@ proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse * optional string pin = 1; * @return {string} */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.prototype.getPin = function() { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.prototype.getPin = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse} returns this */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.prototype.setPin = function(value) { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.prototype.setPin = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -4834,8 +4834,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.toObject(opt_includeInstance, this); }; @@ -4844,11 +4844,11 @@ proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialR * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.toObject = function(includeInstance, msg) { var f, obj = { index: jspb.Message.getFieldWithDefault(msg, 1, 0) }; @@ -4864,23 +4864,23 @@ proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialR /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse} + * @return {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse} */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse; - return proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse; + return proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse} + * @return {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse} */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -4904,9 +4904,9 @@ proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialR * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -4914,11 +4914,11 @@ proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialR /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse} message + * @param {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getIndex(); if (f !== 0) { @@ -4934,44 +4934,44 @@ proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialR * optional int64 index = 1; * @return {number} */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.prototype.getIndex = function() { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.prototype.getIndex = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse} returns this */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.prototype.setIndex = function(value) { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.prototype.setIndex = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional LoginPasswordlessRequestInit init = 1; - * @return {?proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit} + * @return {?proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit} */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.getInit = function() { - return /** @type{?proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit, 1)); +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.prototype.getInit = function() { + return /** @type{?proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit} */ ( + jspb.Message.getWrapperField(this, proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit, 1)); }; /** - * @param {?proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit|undefined} value - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest} returns this + * @param {?proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit|undefined} value + * @return {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest} returns this */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.setInit = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.teleport.terminal.v1.LoginPasswordlessRequest.oneofGroups_[0], value); +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.prototype.setInit = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest} returns this */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.clearInit = function() { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.prototype.clearInit = function() { return this.setInit(undefined); }; @@ -4980,35 +4980,35 @@ proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.clearInit = functi * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.hasInit = function() { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.prototype.hasInit = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional LoginPasswordlessPINResponse pin = 2; - * @return {?proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse} + * @return {?proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse} */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.getPin = function() { - return /** @type{?proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse, 2)); +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.prototype.getPin = function() { + return /** @type{?proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse} */ ( + jspb.Message.getWrapperField(this, proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse, 2)); }; /** - * @param {?proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse|undefined} value - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest} returns this + * @param {?proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse|undefined} value + * @return {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest} returns this */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.setPin = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.teleport.terminal.v1.LoginPasswordlessRequest.oneofGroups_[0], value); +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.prototype.setPin = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest} returns this */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.clearPin = function() { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.prototype.clearPin = function() { return this.setPin(undefined); }; @@ -5017,35 +5017,35 @@ proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.clearPin = functio * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.hasPin = function() { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.prototype.hasPin = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional LoginPasswordlessCredentialResponse credential = 3; - * @return {?proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse} + * @return {?proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse} */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.getCredential = function() { - return /** @type{?proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse, 3)); +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.prototype.getCredential = function() { + return /** @type{?proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse} */ ( + jspb.Message.getWrapperField(this, proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse, 3)); }; /** - * @param {?proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse|undefined} value - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest} returns this + * @param {?proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse|undefined} value + * @return {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest} returns this */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.setCredential = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.teleport.terminal.v1.LoginPasswordlessRequest.oneofGroups_[0], value); +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.prototype.setCredential = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest} returns this */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.clearCredential = function() { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.prototype.clearCredential = function() { return this.setCredential(undefined); }; @@ -5054,7 +5054,7 @@ proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.clearCredential = * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.hasCredential = function() { +proto.teleport.lib.teleterm.v1.LoginPasswordlessRequest.prototype.hasCredential = function() { return jspb.Message.getField(this, 3) != null; }; @@ -5075,8 +5075,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.FileTransferRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.FileTransferRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.FileTransferRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.FileTransferRequest.toObject(opt_includeInstance, this); }; @@ -5085,11 +5085,11 @@ proto.teleport.terminal.v1.FileTransferRequest.prototype.toObject = function(opt * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.FileTransferRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.FileTransferRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.FileTransferRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.FileTransferRequest.toObject = function(includeInstance, msg) { var f, obj = { clusterUri: jspb.Message.getFieldWithDefault(msg, 1, ""), login: jspb.Message.getFieldWithDefault(msg, 2, ""), @@ -5110,23 +5110,23 @@ proto.teleport.terminal.v1.FileTransferRequest.toObject = function(includeInstan /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.FileTransferRequest} + * @return {!proto.teleport.lib.teleterm.v1.FileTransferRequest} */ -proto.teleport.terminal.v1.FileTransferRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.FileTransferRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.FileTransferRequest; - return proto.teleport.terminal.v1.FileTransferRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.FileTransferRequest; + return proto.teleport.lib.teleterm.v1.FileTransferRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.FileTransferRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.FileTransferRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.FileTransferRequest} + * @return {!proto.teleport.lib.teleterm.v1.FileTransferRequest} */ -proto.teleport.terminal.v1.FileTransferRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.FileTransferRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -5154,7 +5154,7 @@ proto.teleport.terminal.v1.FileTransferRequest.deserializeBinaryFromReader = fun msg.setDestination(value); break; case 6: - var value = /** @type {!proto.teleport.terminal.v1.FileTransferDirection} */ (reader.readEnum()); + var value = /** @type {!proto.teleport.lib.teleterm.v1.FileTransferDirection} */ (reader.readEnum()); msg.setDirection(value); break; default: @@ -5170,9 +5170,9 @@ proto.teleport.terminal.v1.FileTransferRequest.deserializeBinaryFromReader = fun * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.FileTransferRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.FileTransferRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.FileTransferRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.FileTransferRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -5180,11 +5180,11 @@ proto.teleport.terminal.v1.FileTransferRequest.prototype.serializeBinary = funct /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.FileTransferRequest} message + * @param {!proto.teleport.lib.teleterm.v1.FileTransferRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.FileTransferRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.FileTransferRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClusterUri(); if (f.length > 0) { @@ -5235,16 +5235,16 @@ proto.teleport.terminal.v1.FileTransferRequest.serializeBinaryToWriter = functio * optional string cluster_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.FileTransferRequest.prototype.getClusterUri = function() { +proto.teleport.lib.teleterm.v1.FileTransferRequest.prototype.getClusterUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.FileTransferRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.FileTransferRequest} returns this */ -proto.teleport.terminal.v1.FileTransferRequest.prototype.setClusterUri = function(value) { +proto.teleport.lib.teleterm.v1.FileTransferRequest.prototype.setClusterUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -5253,16 +5253,16 @@ proto.teleport.terminal.v1.FileTransferRequest.prototype.setClusterUri = functio * optional string login = 2; * @return {string} */ -proto.teleport.terminal.v1.FileTransferRequest.prototype.getLogin = function() { +proto.teleport.lib.teleterm.v1.FileTransferRequest.prototype.getLogin = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.FileTransferRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.FileTransferRequest} returns this */ -proto.teleport.terminal.v1.FileTransferRequest.prototype.setLogin = function(value) { +proto.teleport.lib.teleterm.v1.FileTransferRequest.prototype.setLogin = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -5271,16 +5271,16 @@ proto.teleport.terminal.v1.FileTransferRequest.prototype.setLogin = function(val * optional string hostname = 3; * @return {string} */ -proto.teleport.terminal.v1.FileTransferRequest.prototype.getHostname = function() { +proto.teleport.lib.teleterm.v1.FileTransferRequest.prototype.getHostname = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.FileTransferRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.FileTransferRequest} returns this */ -proto.teleport.terminal.v1.FileTransferRequest.prototype.setHostname = function(value) { +proto.teleport.lib.teleterm.v1.FileTransferRequest.prototype.setHostname = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; @@ -5289,16 +5289,16 @@ proto.teleport.terminal.v1.FileTransferRequest.prototype.setHostname = function( * optional string source = 4; * @return {string} */ -proto.teleport.terminal.v1.FileTransferRequest.prototype.getSource = function() { +proto.teleport.lib.teleterm.v1.FileTransferRequest.prototype.getSource = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.FileTransferRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.FileTransferRequest} returns this */ -proto.teleport.terminal.v1.FileTransferRequest.prototype.setSource = function(value) { +proto.teleport.lib.teleterm.v1.FileTransferRequest.prototype.setSource = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; @@ -5307,34 +5307,34 @@ proto.teleport.terminal.v1.FileTransferRequest.prototype.setSource = function(va * optional string destination = 5; * @return {string} */ -proto.teleport.terminal.v1.FileTransferRequest.prototype.getDestination = function() { +proto.teleport.lib.teleterm.v1.FileTransferRequest.prototype.getDestination = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.FileTransferRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.FileTransferRequest} returns this */ -proto.teleport.terminal.v1.FileTransferRequest.prototype.setDestination = function(value) { +proto.teleport.lib.teleterm.v1.FileTransferRequest.prototype.setDestination = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; /** * optional FileTransferDirection direction = 6; - * @return {!proto.teleport.terminal.v1.FileTransferDirection} + * @return {!proto.teleport.lib.teleterm.v1.FileTransferDirection} */ -proto.teleport.terminal.v1.FileTransferRequest.prototype.getDirection = function() { - return /** @type {!proto.teleport.terminal.v1.FileTransferDirection} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +proto.teleport.lib.teleterm.v1.FileTransferRequest.prototype.getDirection = function() { + return /** @type {!proto.teleport.lib.teleterm.v1.FileTransferDirection} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); }; /** - * @param {!proto.teleport.terminal.v1.FileTransferDirection} value - * @return {!proto.teleport.terminal.v1.FileTransferRequest} returns this + * @param {!proto.teleport.lib.teleterm.v1.FileTransferDirection} value + * @return {!proto.teleport.lib.teleterm.v1.FileTransferRequest} returns this */ -proto.teleport.terminal.v1.FileTransferRequest.prototype.setDirection = function(value) { +proto.teleport.lib.teleterm.v1.FileTransferRequest.prototype.setDirection = function(value) { return jspb.Message.setProto3EnumField(this, 6, value); }; @@ -5355,8 +5355,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.FileTransferProgress.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.FileTransferProgress.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.FileTransferProgress.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.FileTransferProgress.toObject(opt_includeInstance, this); }; @@ -5365,11 +5365,11 @@ proto.teleport.terminal.v1.FileTransferProgress.prototype.toObject = function(op * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.FileTransferProgress} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.FileTransferProgress} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.FileTransferProgress.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.FileTransferProgress.toObject = function(includeInstance, msg) { var f, obj = { percentage: jspb.Message.getFieldWithDefault(msg, 1, 0) }; @@ -5385,23 +5385,23 @@ proto.teleport.terminal.v1.FileTransferProgress.toObject = function(includeInsta /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.FileTransferProgress} + * @return {!proto.teleport.lib.teleterm.v1.FileTransferProgress} */ -proto.teleport.terminal.v1.FileTransferProgress.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.FileTransferProgress.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.FileTransferProgress; - return proto.teleport.terminal.v1.FileTransferProgress.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.FileTransferProgress; + return proto.teleport.lib.teleterm.v1.FileTransferProgress.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.FileTransferProgress} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.FileTransferProgress} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.FileTransferProgress} + * @return {!proto.teleport.lib.teleterm.v1.FileTransferProgress} */ -proto.teleport.terminal.v1.FileTransferProgress.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.FileTransferProgress.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -5425,9 +5425,9 @@ proto.teleport.terminal.v1.FileTransferProgress.deserializeBinaryFromReader = fu * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.FileTransferProgress.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.FileTransferProgress.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.FileTransferProgress.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.FileTransferProgress.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -5435,11 +5435,11 @@ proto.teleport.terminal.v1.FileTransferProgress.prototype.serializeBinary = func /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.FileTransferProgress} message + * @param {!proto.teleport.lib.teleterm.v1.FileTransferProgress} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.FileTransferProgress.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.FileTransferProgress.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getPercentage(); if (f !== 0) { @@ -5455,16 +5455,16 @@ proto.teleport.terminal.v1.FileTransferProgress.serializeBinaryToWriter = functi * optional uint32 percentage = 1; * @return {number} */ -proto.teleport.terminal.v1.FileTransferProgress.prototype.getPercentage = function() { +proto.teleport.lib.teleterm.v1.FileTransferProgress.prototype.getPercentage = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.teleport.terminal.v1.FileTransferProgress} returns this + * @return {!proto.teleport.lib.teleterm.v1.FileTransferProgress} returns this */ -proto.teleport.terminal.v1.FileTransferProgress.prototype.setPercentage = function(value) { +proto.teleport.lib.teleterm.v1.FileTransferProgress.prototype.setPercentage = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; @@ -5478,22 +5478,22 @@ proto.teleport.terminal.v1.FileTransferProgress.prototype.setPercentage = functi * @private {!Array>} * @const */ -proto.teleport.terminal.v1.LoginRequest.oneofGroups_ = [[2,3]]; +proto.teleport.lib.teleterm.v1.LoginRequest.oneofGroups_ = [[2,3]]; /** * @enum {number} */ -proto.teleport.terminal.v1.LoginRequest.ParamsCase = { +proto.teleport.lib.teleterm.v1.LoginRequest.ParamsCase = { PARAMS_NOT_SET: 0, LOCAL: 2, SSO: 3 }; /** - * @return {proto.teleport.terminal.v1.LoginRequest.ParamsCase} + * @return {proto.teleport.lib.teleterm.v1.LoginRequest.ParamsCase} */ -proto.teleport.terminal.v1.LoginRequest.prototype.getParamsCase = function() { - return /** @type {proto.teleport.terminal.v1.LoginRequest.ParamsCase} */(jspb.Message.computeOneofCase(this, proto.teleport.terminal.v1.LoginRequest.oneofGroups_[0])); +proto.teleport.lib.teleterm.v1.LoginRequest.prototype.getParamsCase = function() { + return /** @type {proto.teleport.lib.teleterm.v1.LoginRequest.ParamsCase} */(jspb.Message.computeOneofCase(this, proto.teleport.lib.teleterm.v1.LoginRequest.oneofGroups_[0])); }; @@ -5511,8 +5511,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.LoginRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.LoginRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.LoginRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.LoginRequest.toObject(opt_includeInstance, this); }; @@ -5521,15 +5521,15 @@ proto.teleport.terminal.v1.LoginRequest.prototype.toObject = function(opt_includ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.LoginRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.LoginRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.LoginRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.LoginRequest.toObject = function(includeInstance, msg) { var f, obj = { clusterUri: jspb.Message.getFieldWithDefault(msg, 1, ""), - local: (f = msg.getLocal()) && proto.teleport.terminal.v1.LoginRequest.LocalParams.toObject(includeInstance, f), - sso: (f = msg.getSso()) && proto.teleport.terminal.v1.LoginRequest.SsoParams.toObject(includeInstance, f) + local: (f = msg.getLocal()) && proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams.toObject(includeInstance, f), + sso: (f = msg.getSso()) && proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams.toObject(includeInstance, f) }; if (includeInstance) { @@ -5543,23 +5543,23 @@ proto.teleport.terminal.v1.LoginRequest.toObject = function(includeInstance, msg /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.LoginRequest} + * @return {!proto.teleport.lib.teleterm.v1.LoginRequest} */ -proto.teleport.terminal.v1.LoginRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.LoginRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.LoginRequest; - return proto.teleport.terminal.v1.LoginRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.LoginRequest; + return proto.teleport.lib.teleterm.v1.LoginRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.LoginRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.LoginRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.LoginRequest} + * @return {!proto.teleport.lib.teleterm.v1.LoginRequest} */ -proto.teleport.terminal.v1.LoginRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.LoginRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -5571,13 +5571,13 @@ proto.teleport.terminal.v1.LoginRequest.deserializeBinaryFromReader = function(m msg.setClusterUri(value); break; case 2: - var value = new proto.teleport.terminal.v1.LoginRequest.LocalParams; - reader.readMessage(value,proto.teleport.terminal.v1.LoginRequest.LocalParams.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams.deserializeBinaryFromReader); msg.setLocal(value); break; case 3: - var value = new proto.teleport.terminal.v1.LoginRequest.SsoParams; - reader.readMessage(value,proto.teleport.terminal.v1.LoginRequest.SsoParams.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams.deserializeBinaryFromReader); msg.setSso(value); break; default: @@ -5593,9 +5593,9 @@ proto.teleport.terminal.v1.LoginRequest.deserializeBinaryFromReader = function(m * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.LoginRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.LoginRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.LoginRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.LoginRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -5603,11 +5603,11 @@ proto.teleport.terminal.v1.LoginRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.LoginRequest} message + * @param {!proto.teleport.lib.teleterm.v1.LoginRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.LoginRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.LoginRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClusterUri(); if (f.length > 0) { @@ -5621,7 +5621,7 @@ proto.teleport.terminal.v1.LoginRequest.serializeBinaryToWriter = function(messa writer.writeMessage( 2, f, - proto.teleport.terminal.v1.LoginRequest.LocalParams.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams.serializeBinaryToWriter ); } f = message.getSso(); @@ -5629,7 +5629,7 @@ proto.teleport.terminal.v1.LoginRequest.serializeBinaryToWriter = function(messa writer.writeMessage( 3, f, - proto.teleport.terminal.v1.LoginRequest.SsoParams.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams.serializeBinaryToWriter ); } }; @@ -5651,8 +5651,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.LoginRequest.LocalParams.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.LoginRequest.LocalParams.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams.toObject(opt_includeInstance, this); }; @@ -5661,11 +5661,11 @@ proto.teleport.terminal.v1.LoginRequest.LocalParams.prototype.toObject = functio * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.LoginRequest.LocalParams} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.LoginRequest.LocalParams.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams.toObject = function(includeInstance, msg) { var f, obj = { user: jspb.Message.getFieldWithDefault(msg, 1, ""), password: jspb.Message.getFieldWithDefault(msg, 2, ""), @@ -5683,23 +5683,23 @@ proto.teleport.terminal.v1.LoginRequest.LocalParams.toObject = function(includeI /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.LoginRequest.LocalParams} + * @return {!proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams} */ -proto.teleport.terminal.v1.LoginRequest.LocalParams.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.LoginRequest.LocalParams; - return proto.teleport.terminal.v1.LoginRequest.LocalParams.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams; + return proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.LoginRequest.LocalParams} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.LoginRequest.LocalParams} + * @return {!proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams} */ -proto.teleport.terminal.v1.LoginRequest.LocalParams.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -5731,9 +5731,9 @@ proto.teleport.terminal.v1.LoginRequest.LocalParams.deserializeBinaryFromReader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.LoginRequest.LocalParams.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.LoginRequest.LocalParams.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -5741,11 +5741,11 @@ proto.teleport.terminal.v1.LoginRequest.LocalParams.prototype.serializeBinary = /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.LoginRequest.LocalParams} message + * @param {!proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.LoginRequest.LocalParams.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUser(); if (f.length > 0) { @@ -5775,16 +5775,16 @@ proto.teleport.terminal.v1.LoginRequest.LocalParams.serializeBinaryToWriter = fu * optional string user = 1; * @return {string} */ -proto.teleport.terminal.v1.LoginRequest.LocalParams.prototype.getUser = function() { +proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams.prototype.getUser = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.LoginRequest.LocalParams} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams} returns this */ -proto.teleport.terminal.v1.LoginRequest.LocalParams.prototype.setUser = function(value) { +proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams.prototype.setUser = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -5793,16 +5793,16 @@ proto.teleport.terminal.v1.LoginRequest.LocalParams.prototype.setUser = function * optional string password = 2; * @return {string} */ -proto.teleport.terminal.v1.LoginRequest.LocalParams.prototype.getPassword = function() { +proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams.prototype.getPassword = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.LoginRequest.LocalParams} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams} returns this */ -proto.teleport.terminal.v1.LoginRequest.LocalParams.prototype.setPassword = function(value) { +proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams.prototype.setPassword = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -5811,16 +5811,16 @@ proto.teleport.terminal.v1.LoginRequest.LocalParams.prototype.setPassword = func * optional string token = 3; * @return {string} */ -proto.teleport.terminal.v1.LoginRequest.LocalParams.prototype.getToken = function() { +proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams.prototype.getToken = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.LoginRequest.LocalParams} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams} returns this */ -proto.teleport.terminal.v1.LoginRequest.LocalParams.prototype.setToken = function(value) { +proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams.prototype.setToken = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; @@ -5841,8 +5841,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.LoginRequest.SsoParams.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.LoginRequest.SsoParams.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams.toObject(opt_includeInstance, this); }; @@ -5851,11 +5851,11 @@ proto.teleport.terminal.v1.LoginRequest.SsoParams.prototype.toObject = function( * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.LoginRequest.SsoParams} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.LoginRequest.SsoParams.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams.toObject = function(includeInstance, msg) { var f, obj = { providerType: jspb.Message.getFieldWithDefault(msg, 1, ""), providerName: jspb.Message.getFieldWithDefault(msg, 2, "") @@ -5872,23 +5872,23 @@ proto.teleport.terminal.v1.LoginRequest.SsoParams.toObject = function(includeIns /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.LoginRequest.SsoParams} + * @return {!proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams} */ -proto.teleport.terminal.v1.LoginRequest.SsoParams.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.LoginRequest.SsoParams; - return proto.teleport.terminal.v1.LoginRequest.SsoParams.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams; + return proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.LoginRequest.SsoParams} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.LoginRequest.SsoParams} + * @return {!proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams} */ -proto.teleport.terminal.v1.LoginRequest.SsoParams.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -5916,9 +5916,9 @@ proto.teleport.terminal.v1.LoginRequest.SsoParams.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.LoginRequest.SsoParams.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.LoginRequest.SsoParams.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -5926,11 +5926,11 @@ proto.teleport.terminal.v1.LoginRequest.SsoParams.prototype.serializeBinary = fu /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.LoginRequest.SsoParams} message + * @param {!proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.LoginRequest.SsoParams.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getProviderType(); if (f.length > 0) { @@ -5953,16 +5953,16 @@ proto.teleport.terminal.v1.LoginRequest.SsoParams.serializeBinaryToWriter = func * optional string provider_type = 1; * @return {string} */ -proto.teleport.terminal.v1.LoginRequest.SsoParams.prototype.getProviderType = function() { +proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams.prototype.getProviderType = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.LoginRequest.SsoParams} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams} returns this */ -proto.teleport.terminal.v1.LoginRequest.SsoParams.prototype.setProviderType = function(value) { +proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams.prototype.setProviderType = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -5971,16 +5971,16 @@ proto.teleport.terminal.v1.LoginRequest.SsoParams.prototype.setProviderType = fu * optional string provider_name = 2; * @return {string} */ -proto.teleport.terminal.v1.LoginRequest.SsoParams.prototype.getProviderName = function() { +proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams.prototype.getProviderName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.LoginRequest.SsoParams} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams} returns this */ -proto.teleport.terminal.v1.LoginRequest.SsoParams.prototype.setProviderName = function(value) { +proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams.prototype.setProviderName = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -5989,44 +5989,44 @@ proto.teleport.terminal.v1.LoginRequest.SsoParams.prototype.setProviderName = fu * optional string cluster_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.LoginRequest.prototype.getClusterUri = function() { +proto.teleport.lib.teleterm.v1.LoginRequest.prototype.getClusterUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.LoginRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoginRequest} returns this */ -proto.teleport.terminal.v1.LoginRequest.prototype.setClusterUri = function(value) { +proto.teleport.lib.teleterm.v1.LoginRequest.prototype.setClusterUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional LocalParams local = 2; - * @return {?proto.teleport.terminal.v1.LoginRequest.LocalParams} + * @return {?proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams} */ -proto.teleport.terminal.v1.LoginRequest.prototype.getLocal = function() { - return /** @type{?proto.teleport.terminal.v1.LoginRequest.LocalParams} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.LoginRequest.LocalParams, 2)); +proto.teleport.lib.teleterm.v1.LoginRequest.prototype.getLocal = function() { + return /** @type{?proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams} */ ( + jspb.Message.getWrapperField(this, proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams, 2)); }; /** - * @param {?proto.teleport.terminal.v1.LoginRequest.LocalParams|undefined} value - * @return {!proto.teleport.terminal.v1.LoginRequest} returns this + * @param {?proto.teleport.lib.teleterm.v1.LoginRequest.LocalParams|undefined} value + * @return {!proto.teleport.lib.teleterm.v1.LoginRequest} returns this */ -proto.teleport.terminal.v1.LoginRequest.prototype.setLocal = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.teleport.terminal.v1.LoginRequest.oneofGroups_[0], value); +proto.teleport.lib.teleterm.v1.LoginRequest.prototype.setLocal = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.teleport.lib.teleterm.v1.LoginRequest.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.LoginRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoginRequest} returns this */ -proto.teleport.terminal.v1.LoginRequest.prototype.clearLocal = function() { +proto.teleport.lib.teleterm.v1.LoginRequest.prototype.clearLocal = function() { return this.setLocal(undefined); }; @@ -6035,35 +6035,35 @@ proto.teleport.terminal.v1.LoginRequest.prototype.clearLocal = function() { * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.LoginRequest.prototype.hasLocal = function() { +proto.teleport.lib.teleterm.v1.LoginRequest.prototype.hasLocal = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional SsoParams sso = 3; - * @return {?proto.teleport.terminal.v1.LoginRequest.SsoParams} + * @return {?proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams} */ -proto.teleport.terminal.v1.LoginRequest.prototype.getSso = function() { - return /** @type{?proto.teleport.terminal.v1.LoginRequest.SsoParams} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.LoginRequest.SsoParams, 3)); +proto.teleport.lib.teleterm.v1.LoginRequest.prototype.getSso = function() { + return /** @type{?proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams} */ ( + jspb.Message.getWrapperField(this, proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams, 3)); }; /** - * @param {?proto.teleport.terminal.v1.LoginRequest.SsoParams|undefined} value - * @return {!proto.teleport.terminal.v1.LoginRequest} returns this + * @param {?proto.teleport.lib.teleterm.v1.LoginRequest.SsoParams|undefined} value + * @return {!proto.teleport.lib.teleterm.v1.LoginRequest} returns this */ -proto.teleport.terminal.v1.LoginRequest.prototype.setSso = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.teleport.terminal.v1.LoginRequest.oneofGroups_[0], value); +proto.teleport.lib.teleterm.v1.LoginRequest.prototype.setSso = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.teleport.lib.teleterm.v1.LoginRequest.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.LoginRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.LoginRequest} returns this */ -proto.teleport.terminal.v1.LoginRequest.prototype.clearSso = function() { +proto.teleport.lib.teleterm.v1.LoginRequest.prototype.clearSso = function() { return this.setSso(undefined); }; @@ -6072,7 +6072,7 @@ proto.teleport.terminal.v1.LoginRequest.prototype.clearSso = function() { * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.LoginRequest.prototype.hasSso = function() { +proto.teleport.lib.teleterm.v1.LoginRequest.prototype.hasSso = function() { return jspb.Message.getField(this, 3) != null; }; @@ -6093,8 +6093,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.AddClusterRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.AddClusterRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.AddClusterRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.AddClusterRequest.toObject(opt_includeInstance, this); }; @@ -6103,11 +6103,11 @@ proto.teleport.terminal.v1.AddClusterRequest.prototype.toObject = function(opt_i * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.AddClusterRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.AddClusterRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.AddClusterRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.AddClusterRequest.toObject = function(includeInstance, msg) { var f, obj = { name: jspb.Message.getFieldWithDefault(msg, 1, "") }; @@ -6123,23 +6123,23 @@ proto.teleport.terminal.v1.AddClusterRequest.toObject = function(includeInstance /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.AddClusterRequest} + * @return {!proto.teleport.lib.teleterm.v1.AddClusterRequest} */ -proto.teleport.terminal.v1.AddClusterRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.AddClusterRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.AddClusterRequest; - return proto.teleport.terminal.v1.AddClusterRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.AddClusterRequest; + return proto.teleport.lib.teleterm.v1.AddClusterRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.AddClusterRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.AddClusterRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.AddClusterRequest} + * @return {!proto.teleport.lib.teleterm.v1.AddClusterRequest} */ -proto.teleport.terminal.v1.AddClusterRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.AddClusterRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6163,9 +6163,9 @@ proto.teleport.terminal.v1.AddClusterRequest.deserializeBinaryFromReader = funct * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.AddClusterRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.AddClusterRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.AddClusterRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.AddClusterRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6173,11 +6173,11 @@ proto.teleport.terminal.v1.AddClusterRequest.prototype.serializeBinary = functio /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.AddClusterRequest} message + * @param {!proto.teleport.lib.teleterm.v1.AddClusterRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.AddClusterRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.AddClusterRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getName(); if (f.length > 0) { @@ -6193,16 +6193,16 @@ proto.teleport.terminal.v1.AddClusterRequest.serializeBinaryToWriter = function( * optional string name = 1; * @return {string} */ -proto.teleport.terminal.v1.AddClusterRequest.prototype.getName = function() { +proto.teleport.lib.teleterm.v1.AddClusterRequest.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.AddClusterRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.AddClusterRequest} returns this */ -proto.teleport.terminal.v1.AddClusterRequest.prototype.setName = function(value) { +proto.teleport.lib.teleterm.v1.AddClusterRequest.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -6223,8 +6223,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.ListAppsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ListAppsRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.ListAppsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.ListAppsRequest.toObject(opt_includeInstance, this); }; @@ -6233,11 +6233,11 @@ proto.teleport.terminal.v1.ListAppsRequest.prototype.toObject = function(opt_inc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ListAppsRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.ListAppsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ListAppsRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.ListAppsRequest.toObject = function(includeInstance, msg) { var f, obj = { clusterUri: jspb.Message.getFieldWithDefault(msg, 1, "") }; @@ -6253,23 +6253,23 @@ proto.teleport.terminal.v1.ListAppsRequest.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ListAppsRequest} + * @return {!proto.teleport.lib.teleterm.v1.ListAppsRequest} */ -proto.teleport.terminal.v1.ListAppsRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.ListAppsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ListAppsRequest; - return proto.teleport.terminal.v1.ListAppsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.ListAppsRequest; + return proto.teleport.lib.teleterm.v1.ListAppsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ListAppsRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.ListAppsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ListAppsRequest} + * @return {!proto.teleport.lib.teleterm.v1.ListAppsRequest} */ -proto.teleport.terminal.v1.ListAppsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.ListAppsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6293,9 +6293,9 @@ proto.teleport.terminal.v1.ListAppsRequest.deserializeBinaryFromReader = functio * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.ListAppsRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.ListAppsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ListAppsRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.ListAppsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6303,11 +6303,11 @@ proto.teleport.terminal.v1.ListAppsRequest.prototype.serializeBinary = function( /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ListAppsRequest} message + * @param {!proto.teleport.lib.teleterm.v1.ListAppsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ListAppsRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.ListAppsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClusterUri(); if (f.length > 0) { @@ -6323,16 +6323,16 @@ proto.teleport.terminal.v1.ListAppsRequest.serializeBinaryToWriter = function(me * optional string cluster_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.ListAppsRequest.prototype.getClusterUri = function() { +proto.teleport.lib.teleterm.v1.ListAppsRequest.prototype.getClusterUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.ListAppsRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.ListAppsRequest} returns this */ -proto.teleport.terminal.v1.ListAppsRequest.prototype.setClusterUri = function(value) { +proto.teleport.lib.teleterm.v1.ListAppsRequest.prototype.setClusterUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -6353,8 +6353,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.ListClustersRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ListClustersRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.ListClustersRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.ListClustersRequest.toObject(opt_includeInstance, this); }; @@ -6363,11 +6363,11 @@ proto.teleport.terminal.v1.ListClustersRequest.prototype.toObject = function(opt * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ListClustersRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.ListClustersRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ListClustersRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.ListClustersRequest.toObject = function(includeInstance, msg) { var f, obj = { }; @@ -6383,23 +6383,23 @@ proto.teleport.terminal.v1.ListClustersRequest.toObject = function(includeInstan /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ListClustersRequest} + * @return {!proto.teleport.lib.teleterm.v1.ListClustersRequest} */ -proto.teleport.terminal.v1.ListClustersRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.ListClustersRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ListClustersRequest; - return proto.teleport.terminal.v1.ListClustersRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.ListClustersRequest; + return proto.teleport.lib.teleterm.v1.ListClustersRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ListClustersRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.ListClustersRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ListClustersRequest} + * @return {!proto.teleport.lib.teleterm.v1.ListClustersRequest} */ -proto.teleport.terminal.v1.ListClustersRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.ListClustersRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6419,9 +6419,9 @@ proto.teleport.terminal.v1.ListClustersRequest.deserializeBinaryFromReader = fun * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.ListClustersRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.ListClustersRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ListClustersRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.ListClustersRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6429,11 +6429,11 @@ proto.teleport.terminal.v1.ListClustersRequest.prototype.serializeBinary = funct /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ListClustersRequest} message + * @param {!proto.teleport.lib.teleterm.v1.ListClustersRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ListClustersRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.ListClustersRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; @@ -6444,7 +6444,7 @@ proto.teleport.terminal.v1.ListClustersRequest.serializeBinaryToWriter = functio * @private {!Array} * @const */ -proto.teleport.terminal.v1.ListClustersResponse.repeatedFields_ = [1]; +proto.teleport.lib.teleterm.v1.ListClustersResponse.repeatedFields_ = [1]; @@ -6461,8 +6461,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.ListClustersResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ListClustersResponse.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.ListClustersResponse.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.ListClustersResponse.toObject(opt_includeInstance, this); }; @@ -6471,14 +6471,14 @@ proto.teleport.terminal.v1.ListClustersResponse.prototype.toObject = function(op * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ListClustersResponse} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.ListClustersResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ListClustersResponse.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.ListClustersResponse.toObject = function(includeInstance, msg) { var f, obj = { clustersList: jspb.Message.toObjectList(msg.getClustersList(), - v1_cluster_pb.Cluster.toObject, includeInstance) + teleport_lib_teleterm_v1_cluster_pb.Cluster.toObject, includeInstance) }; if (includeInstance) { @@ -6492,23 +6492,23 @@ proto.teleport.terminal.v1.ListClustersResponse.toObject = function(includeInsta /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ListClustersResponse} + * @return {!proto.teleport.lib.teleterm.v1.ListClustersResponse} */ -proto.teleport.terminal.v1.ListClustersResponse.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.ListClustersResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ListClustersResponse; - return proto.teleport.terminal.v1.ListClustersResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.ListClustersResponse; + return proto.teleport.lib.teleterm.v1.ListClustersResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ListClustersResponse} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.ListClustersResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ListClustersResponse} + * @return {!proto.teleport.lib.teleterm.v1.ListClustersResponse} */ -proto.teleport.terminal.v1.ListClustersResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.ListClustersResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6516,8 +6516,8 @@ proto.teleport.terminal.v1.ListClustersResponse.deserializeBinaryFromReader = fu var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new v1_cluster_pb.Cluster; - reader.readMessage(value,v1_cluster_pb.Cluster.deserializeBinaryFromReader); + var value = new teleport_lib_teleterm_v1_cluster_pb.Cluster; + reader.readMessage(value,teleport_lib_teleterm_v1_cluster_pb.Cluster.deserializeBinaryFromReader); msg.addClusters(value); break; default: @@ -6533,9 +6533,9 @@ proto.teleport.terminal.v1.ListClustersResponse.deserializeBinaryFromReader = fu * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.ListClustersResponse.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.ListClustersResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ListClustersResponse.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.ListClustersResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6543,18 +6543,18 @@ proto.teleport.terminal.v1.ListClustersResponse.prototype.serializeBinary = func /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ListClustersResponse} message + * @param {!proto.teleport.lib.teleterm.v1.ListClustersResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ListClustersResponse.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.ListClustersResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClustersList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, - v1_cluster_pb.Cluster.serializeBinaryToWriter + teleport_lib_teleterm_v1_cluster_pb.Cluster.serializeBinaryToWriter ); } }; @@ -6562,38 +6562,38 @@ proto.teleport.terminal.v1.ListClustersResponse.serializeBinaryToWriter = functi /** * repeated Cluster clusters = 1; - * @return {!Array} + * @return {!Array} */ -proto.teleport.terminal.v1.ListClustersResponse.prototype.getClustersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_cluster_pb.Cluster, 1)); +proto.teleport.lib.teleterm.v1.ListClustersResponse.prototype.getClustersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, teleport_lib_teleterm_v1_cluster_pb.Cluster, 1)); }; /** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.ListClustersResponse} returns this + * @param {!Array} value + * @return {!proto.teleport.lib.teleterm.v1.ListClustersResponse} returns this */ -proto.teleport.terminal.v1.ListClustersResponse.prototype.setClustersList = function(value) { +proto.teleport.lib.teleterm.v1.ListClustersResponse.prototype.setClustersList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * @param {!proto.teleport.terminal.v1.Cluster=} opt_value + * @param {!proto.teleport.lib.teleterm.v1.Cluster=} opt_value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.Cluster} + * @return {!proto.teleport.lib.teleterm.v1.Cluster} */ -proto.teleport.terminal.v1.ListClustersResponse.prototype.addClusters = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.terminal.v1.Cluster, opt_index); +proto.teleport.lib.teleterm.v1.ListClustersResponse.prototype.addClusters = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.lib.teleterm.v1.Cluster, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.ListClustersResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.ListClustersResponse} returns this */ -proto.teleport.terminal.v1.ListClustersResponse.prototype.clearClustersList = function() { +proto.teleport.lib.teleterm.v1.ListClustersResponse.prototype.clearClustersList = function() { return this.setClustersList([]); }; @@ -6614,8 +6614,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.GetAllDatabasesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetAllDatabasesRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.GetAllDatabasesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.GetAllDatabasesRequest.toObject(opt_includeInstance, this); }; @@ -6624,11 +6624,11 @@ proto.teleport.terminal.v1.GetAllDatabasesRequest.prototype.toObject = function( * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetAllDatabasesRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.GetAllDatabasesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetAllDatabasesRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.GetAllDatabasesRequest.toObject = function(includeInstance, msg) { var f, obj = { clusterUri: jspb.Message.getFieldWithDefault(msg, 1, "") }; @@ -6644,23 +6644,23 @@ proto.teleport.terminal.v1.GetAllDatabasesRequest.toObject = function(includeIns /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetAllDatabasesRequest} + * @return {!proto.teleport.lib.teleterm.v1.GetAllDatabasesRequest} */ -proto.teleport.terminal.v1.GetAllDatabasesRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.GetAllDatabasesRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetAllDatabasesRequest; - return proto.teleport.terminal.v1.GetAllDatabasesRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.GetAllDatabasesRequest; + return proto.teleport.lib.teleterm.v1.GetAllDatabasesRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetAllDatabasesRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.GetAllDatabasesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetAllDatabasesRequest} + * @return {!proto.teleport.lib.teleterm.v1.GetAllDatabasesRequest} */ -proto.teleport.terminal.v1.GetAllDatabasesRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.GetAllDatabasesRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6684,9 +6684,9 @@ proto.teleport.terminal.v1.GetAllDatabasesRequest.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.GetAllDatabasesRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.GetAllDatabasesRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetAllDatabasesRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.GetAllDatabasesRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6694,11 +6694,11 @@ proto.teleport.terminal.v1.GetAllDatabasesRequest.prototype.serializeBinary = fu /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetAllDatabasesRequest} message + * @param {!proto.teleport.lib.teleterm.v1.GetAllDatabasesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetAllDatabasesRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.GetAllDatabasesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClusterUri(); if (f.length > 0) { @@ -6714,16 +6714,16 @@ proto.teleport.terminal.v1.GetAllDatabasesRequest.serializeBinaryToWriter = func * optional string cluster_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.GetAllDatabasesRequest.prototype.getClusterUri = function() { +proto.teleport.lib.teleterm.v1.GetAllDatabasesRequest.prototype.getClusterUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetAllDatabasesRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetAllDatabasesRequest} returns this */ -proto.teleport.terminal.v1.GetAllDatabasesRequest.prototype.setClusterUri = function(value) { +proto.teleport.lib.teleterm.v1.GetAllDatabasesRequest.prototype.setClusterUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -6744,8 +6744,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetDatabasesRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.GetDatabasesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.GetDatabasesRequest.toObject(opt_includeInstance, this); }; @@ -6754,11 +6754,11 @@ proto.teleport.terminal.v1.GetDatabasesRequest.prototype.toObject = function(opt * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetDatabasesRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.GetDatabasesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetDatabasesRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.GetDatabasesRequest.toObject = function(includeInstance, msg) { var f, obj = { clusterUri: jspb.Message.getFieldWithDefault(msg, 1, ""), limit: jspb.Message.getFieldWithDefault(msg, 2, 0), @@ -6780,23 +6780,23 @@ proto.teleport.terminal.v1.GetDatabasesRequest.toObject = function(includeInstan /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetDatabasesRequest} + * @return {!proto.teleport.lib.teleterm.v1.GetDatabasesRequest} */ -proto.teleport.terminal.v1.GetDatabasesRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.GetDatabasesRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetDatabasesRequest; - return proto.teleport.terminal.v1.GetDatabasesRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.GetDatabasesRequest; + return proto.teleport.lib.teleterm.v1.GetDatabasesRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetDatabasesRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.GetDatabasesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetDatabasesRequest} + * @return {!proto.teleport.lib.teleterm.v1.GetDatabasesRequest} */ -proto.teleport.terminal.v1.GetDatabasesRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.GetDatabasesRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6844,9 +6844,9 @@ proto.teleport.terminal.v1.GetDatabasesRequest.deserializeBinaryFromReader = fun * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.GetDatabasesRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetDatabasesRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.GetDatabasesRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6854,11 +6854,11 @@ proto.teleport.terminal.v1.GetDatabasesRequest.prototype.serializeBinary = funct /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetDatabasesRequest} message + * @param {!proto.teleport.lib.teleterm.v1.GetDatabasesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetDatabasesRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.GetDatabasesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClusterUri(); if (f.length > 0) { @@ -6916,16 +6916,16 @@ proto.teleport.terminal.v1.GetDatabasesRequest.serializeBinaryToWriter = functio * optional string cluster_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.getClusterUri = function() { +proto.teleport.lib.teleterm.v1.GetDatabasesRequest.prototype.getClusterUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetDatabasesRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetDatabasesRequest} returns this */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.setClusterUri = function(value) { +proto.teleport.lib.teleterm.v1.GetDatabasesRequest.prototype.setClusterUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -6934,16 +6934,16 @@ proto.teleport.terminal.v1.GetDatabasesRequest.prototype.setClusterUri = functio * optional int32 limit = 2; * @return {number} */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.getLimit = function() { +proto.teleport.lib.teleterm.v1.GetDatabasesRequest.prototype.getLimit = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value - * @return {!proto.teleport.terminal.v1.GetDatabasesRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetDatabasesRequest} returns this */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.setLimit = function(value) { +proto.teleport.lib.teleterm.v1.GetDatabasesRequest.prototype.setLimit = function(value) { return jspb.Message.setProto3IntField(this, 2, value); }; @@ -6952,16 +6952,16 @@ proto.teleport.terminal.v1.GetDatabasesRequest.prototype.setLimit = function(val * optional string start_key = 3; * @return {string} */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.getStartKey = function() { +proto.teleport.lib.teleterm.v1.GetDatabasesRequest.prototype.getStartKey = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetDatabasesRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetDatabasesRequest} returns this */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.setStartKey = function(value) { +proto.teleport.lib.teleterm.v1.GetDatabasesRequest.prototype.setStartKey = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; @@ -6970,16 +6970,16 @@ proto.teleport.terminal.v1.GetDatabasesRequest.prototype.setStartKey = function( * optional string search = 4; * @return {string} */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.getSearch = function() { +proto.teleport.lib.teleterm.v1.GetDatabasesRequest.prototype.getSearch = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetDatabasesRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetDatabasesRequest} returns this */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.setSearch = function(value) { +proto.teleport.lib.teleterm.v1.GetDatabasesRequest.prototype.setSearch = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; @@ -6988,16 +6988,16 @@ proto.teleport.terminal.v1.GetDatabasesRequest.prototype.setSearch = function(va * optional string query = 5; * @return {string} */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.getQuery = function() { +proto.teleport.lib.teleterm.v1.GetDatabasesRequest.prototype.getQuery = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetDatabasesRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetDatabasesRequest} returns this */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.setQuery = function(value) { +proto.teleport.lib.teleterm.v1.GetDatabasesRequest.prototype.setQuery = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; @@ -7006,16 +7006,16 @@ proto.teleport.terminal.v1.GetDatabasesRequest.prototype.setQuery = function(val * optional string sort_by = 6; * @return {string} */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.getSortBy = function() { +proto.teleport.lib.teleterm.v1.GetDatabasesRequest.prototype.getSortBy = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetDatabasesRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetDatabasesRequest} returns this */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.setSortBy = function(value) { +proto.teleport.lib.teleterm.v1.GetDatabasesRequest.prototype.setSortBy = function(value) { return jspb.Message.setProto3StringField(this, 6, value); }; @@ -7024,16 +7024,16 @@ proto.teleport.terminal.v1.GetDatabasesRequest.prototype.setSortBy = function(va * optional string search_as_roles = 7; * @return {string} */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.getSearchAsRoles = function() { +proto.teleport.lib.teleterm.v1.GetDatabasesRequest.prototype.getSearchAsRoles = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetDatabasesRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetDatabasesRequest} returns this */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.setSearchAsRoles = function(value) { +proto.teleport.lib.teleterm.v1.GetDatabasesRequest.prototype.setSearchAsRoles = function(value) { return jspb.Message.setProto3StringField(this, 7, value); }; @@ -7054,8 +7054,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.ListLeafClustersRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ListLeafClustersRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.ListLeafClustersRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.ListLeafClustersRequest.toObject(opt_includeInstance, this); }; @@ -7064,11 +7064,11 @@ proto.teleport.terminal.v1.ListLeafClustersRequest.prototype.toObject = function * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ListLeafClustersRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.ListLeafClustersRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ListLeafClustersRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.ListLeafClustersRequest.toObject = function(includeInstance, msg) { var f, obj = { clusterUri: jspb.Message.getFieldWithDefault(msg, 1, "") }; @@ -7084,23 +7084,23 @@ proto.teleport.terminal.v1.ListLeafClustersRequest.toObject = function(includeIn /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ListLeafClustersRequest} + * @return {!proto.teleport.lib.teleterm.v1.ListLeafClustersRequest} */ -proto.teleport.terminal.v1.ListLeafClustersRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.ListLeafClustersRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ListLeafClustersRequest; - return proto.teleport.terminal.v1.ListLeafClustersRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.ListLeafClustersRequest; + return proto.teleport.lib.teleterm.v1.ListLeafClustersRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ListLeafClustersRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.ListLeafClustersRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ListLeafClustersRequest} + * @return {!proto.teleport.lib.teleterm.v1.ListLeafClustersRequest} */ -proto.teleport.terminal.v1.ListLeafClustersRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.ListLeafClustersRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -7124,9 +7124,9 @@ proto.teleport.terminal.v1.ListLeafClustersRequest.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.ListLeafClustersRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.ListLeafClustersRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ListLeafClustersRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.ListLeafClustersRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7134,11 +7134,11 @@ proto.teleport.terminal.v1.ListLeafClustersRequest.prototype.serializeBinary = f /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ListLeafClustersRequest} message + * @param {!proto.teleport.lib.teleterm.v1.ListLeafClustersRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ListLeafClustersRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.ListLeafClustersRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClusterUri(); if (f.length > 0) { @@ -7154,16 +7154,16 @@ proto.teleport.terminal.v1.ListLeafClustersRequest.serializeBinaryToWriter = fun * optional string cluster_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.ListLeafClustersRequest.prototype.getClusterUri = function() { +proto.teleport.lib.teleterm.v1.ListLeafClustersRequest.prototype.getClusterUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.ListLeafClustersRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.ListLeafClustersRequest} returns this */ -proto.teleport.terminal.v1.ListLeafClustersRequest.prototype.setClusterUri = function(value) { +proto.teleport.lib.teleterm.v1.ListLeafClustersRequest.prototype.setClusterUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -7174,7 +7174,7 @@ proto.teleport.terminal.v1.ListLeafClustersRequest.prototype.setClusterUri = fun * @private {!Array} * @const */ -proto.teleport.terminal.v1.GetAllDatabasesResponse.repeatedFields_ = [1]; +proto.teleport.lib.teleterm.v1.GetAllDatabasesResponse.repeatedFields_ = [1]; @@ -7191,8 +7191,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.GetAllDatabasesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetAllDatabasesResponse.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.GetAllDatabasesResponse.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.GetAllDatabasesResponse.toObject(opt_includeInstance, this); }; @@ -7201,14 +7201,14 @@ proto.teleport.terminal.v1.GetAllDatabasesResponse.prototype.toObject = function * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetAllDatabasesResponse} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.GetAllDatabasesResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetAllDatabasesResponse.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.GetAllDatabasesResponse.toObject = function(includeInstance, msg) { var f, obj = { databasesList: jspb.Message.toObjectList(msg.getDatabasesList(), - v1_database_pb.Database.toObject, includeInstance) + teleport_lib_teleterm_v1_database_pb.Database.toObject, includeInstance) }; if (includeInstance) { @@ -7222,23 +7222,23 @@ proto.teleport.terminal.v1.GetAllDatabasesResponse.toObject = function(includeIn /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetAllDatabasesResponse} + * @return {!proto.teleport.lib.teleterm.v1.GetAllDatabasesResponse} */ -proto.teleport.terminal.v1.GetAllDatabasesResponse.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.GetAllDatabasesResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetAllDatabasesResponse; - return proto.teleport.terminal.v1.GetAllDatabasesResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.GetAllDatabasesResponse; + return proto.teleport.lib.teleterm.v1.GetAllDatabasesResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetAllDatabasesResponse} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.GetAllDatabasesResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetAllDatabasesResponse} + * @return {!proto.teleport.lib.teleterm.v1.GetAllDatabasesResponse} */ -proto.teleport.terminal.v1.GetAllDatabasesResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.GetAllDatabasesResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -7246,8 +7246,8 @@ proto.teleport.terminal.v1.GetAllDatabasesResponse.deserializeBinaryFromReader = var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new v1_database_pb.Database; - reader.readMessage(value,v1_database_pb.Database.deserializeBinaryFromReader); + var value = new teleport_lib_teleterm_v1_database_pb.Database; + reader.readMessage(value,teleport_lib_teleterm_v1_database_pb.Database.deserializeBinaryFromReader); msg.addDatabases(value); break; default: @@ -7263,9 +7263,9 @@ proto.teleport.terminal.v1.GetAllDatabasesResponse.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.GetAllDatabasesResponse.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.GetAllDatabasesResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetAllDatabasesResponse.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.GetAllDatabasesResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7273,18 +7273,18 @@ proto.teleport.terminal.v1.GetAllDatabasesResponse.prototype.serializeBinary = f /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetAllDatabasesResponse} message + * @param {!proto.teleport.lib.teleterm.v1.GetAllDatabasesResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetAllDatabasesResponse.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.GetAllDatabasesResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getDatabasesList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, - v1_database_pb.Database.serializeBinaryToWriter + teleport_lib_teleterm_v1_database_pb.Database.serializeBinaryToWriter ); } }; @@ -7292,38 +7292,38 @@ proto.teleport.terminal.v1.GetAllDatabasesResponse.serializeBinaryToWriter = fun /** * repeated Database databases = 1; - * @return {!Array} + * @return {!Array} */ -proto.teleport.terminal.v1.GetAllDatabasesResponse.prototype.getDatabasesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_database_pb.Database, 1)); +proto.teleport.lib.teleterm.v1.GetAllDatabasesResponse.prototype.getDatabasesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, teleport_lib_teleterm_v1_database_pb.Database, 1)); }; /** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.GetAllDatabasesResponse} returns this + * @param {!Array} value + * @return {!proto.teleport.lib.teleterm.v1.GetAllDatabasesResponse} returns this */ -proto.teleport.terminal.v1.GetAllDatabasesResponse.prototype.setDatabasesList = function(value) { +proto.teleport.lib.teleterm.v1.GetAllDatabasesResponse.prototype.setDatabasesList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * @param {!proto.teleport.terminal.v1.Database=} opt_value + * @param {!proto.teleport.lib.teleterm.v1.Database=} opt_value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.Database} + * @return {!proto.teleport.lib.teleterm.v1.Database} */ -proto.teleport.terminal.v1.GetAllDatabasesResponse.prototype.addDatabases = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.terminal.v1.Database, opt_index); +proto.teleport.lib.teleterm.v1.GetAllDatabasesResponse.prototype.addDatabases = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.lib.teleterm.v1.Database, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.GetAllDatabasesResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetAllDatabasesResponse} returns this */ -proto.teleport.terminal.v1.GetAllDatabasesResponse.prototype.clearDatabasesList = function() { +proto.teleport.lib.teleterm.v1.GetAllDatabasesResponse.prototype.clearDatabasesList = function() { return this.setDatabasesList([]); }; @@ -7344,8 +7344,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.ListDatabaseUsersRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ListDatabaseUsersRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.ListDatabaseUsersRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.ListDatabaseUsersRequest.toObject(opt_includeInstance, this); }; @@ -7354,11 +7354,11 @@ proto.teleport.terminal.v1.ListDatabaseUsersRequest.prototype.toObject = functio * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ListDatabaseUsersRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.ListDatabaseUsersRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ListDatabaseUsersRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.ListDatabaseUsersRequest.toObject = function(includeInstance, msg) { var f, obj = { dbUri: jspb.Message.getFieldWithDefault(msg, 1, "") }; @@ -7374,23 +7374,23 @@ proto.teleport.terminal.v1.ListDatabaseUsersRequest.toObject = function(includeI /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ListDatabaseUsersRequest} + * @return {!proto.teleport.lib.teleterm.v1.ListDatabaseUsersRequest} */ -proto.teleport.terminal.v1.ListDatabaseUsersRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.ListDatabaseUsersRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ListDatabaseUsersRequest; - return proto.teleport.terminal.v1.ListDatabaseUsersRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.ListDatabaseUsersRequest; + return proto.teleport.lib.teleterm.v1.ListDatabaseUsersRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ListDatabaseUsersRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.ListDatabaseUsersRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ListDatabaseUsersRequest} + * @return {!proto.teleport.lib.teleterm.v1.ListDatabaseUsersRequest} */ -proto.teleport.terminal.v1.ListDatabaseUsersRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.ListDatabaseUsersRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -7414,9 +7414,9 @@ proto.teleport.terminal.v1.ListDatabaseUsersRequest.deserializeBinaryFromReader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.ListDatabaseUsersRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.ListDatabaseUsersRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ListDatabaseUsersRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.ListDatabaseUsersRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7424,11 +7424,11 @@ proto.teleport.terminal.v1.ListDatabaseUsersRequest.prototype.serializeBinary = /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ListDatabaseUsersRequest} message + * @param {!proto.teleport.lib.teleterm.v1.ListDatabaseUsersRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ListDatabaseUsersRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.ListDatabaseUsersRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getDbUri(); if (f.length > 0) { @@ -7444,16 +7444,16 @@ proto.teleport.terminal.v1.ListDatabaseUsersRequest.serializeBinaryToWriter = fu * optional string db_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.ListDatabaseUsersRequest.prototype.getDbUri = function() { +proto.teleport.lib.teleterm.v1.ListDatabaseUsersRequest.prototype.getDbUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.ListDatabaseUsersRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.ListDatabaseUsersRequest} returns this */ -proto.teleport.terminal.v1.ListDatabaseUsersRequest.prototype.setDbUri = function(value) { +proto.teleport.lib.teleterm.v1.ListDatabaseUsersRequest.prototype.setDbUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -7464,7 +7464,7 @@ proto.teleport.terminal.v1.ListDatabaseUsersRequest.prototype.setDbUri = functio * @private {!Array} * @const */ -proto.teleport.terminal.v1.ListDatabaseUsersResponse.repeatedFields_ = [1]; +proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse.repeatedFields_ = [1]; @@ -7481,8 +7481,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.ListDatabaseUsersResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ListDatabaseUsersResponse.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse.toObject(opt_includeInstance, this); }; @@ -7491,11 +7491,11 @@ proto.teleport.terminal.v1.ListDatabaseUsersResponse.prototype.toObject = functi * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ListDatabaseUsersResponse} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ListDatabaseUsersResponse.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse.toObject = function(includeInstance, msg) { var f, obj = { usersList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f }; @@ -7511,23 +7511,23 @@ proto.teleport.terminal.v1.ListDatabaseUsersResponse.toObject = function(include /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ListDatabaseUsersResponse} + * @return {!proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse} */ -proto.teleport.terminal.v1.ListDatabaseUsersResponse.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ListDatabaseUsersResponse; - return proto.teleport.terminal.v1.ListDatabaseUsersResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse; + return proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ListDatabaseUsersResponse} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ListDatabaseUsersResponse} + * @return {!proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse} */ -proto.teleport.terminal.v1.ListDatabaseUsersResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -7551,9 +7551,9 @@ proto.teleport.terminal.v1.ListDatabaseUsersResponse.deserializeBinaryFromReader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.ListDatabaseUsersResponse.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ListDatabaseUsersResponse.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7561,11 +7561,11 @@ proto.teleport.terminal.v1.ListDatabaseUsersResponse.prototype.serializeBinary = /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ListDatabaseUsersResponse} message + * @param {!proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ListDatabaseUsersResponse.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUsersList(); if (f.length > 0) { @@ -7581,16 +7581,16 @@ proto.teleport.terminal.v1.ListDatabaseUsersResponse.serializeBinaryToWriter = f * repeated string users = 1; * @return {!Array} */ -proto.teleport.terminal.v1.ListDatabaseUsersResponse.prototype.getUsersList = function() { +proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse.prototype.getUsersList = function() { return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); }; /** * @param {!Array} value - * @return {!proto.teleport.terminal.v1.ListDatabaseUsersResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse} returns this */ -proto.teleport.terminal.v1.ListDatabaseUsersResponse.prototype.setUsersList = function(value) { +proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse.prototype.setUsersList = function(value) { return jspb.Message.setField(this, 1, value || []); }; @@ -7598,18 +7598,18 @@ proto.teleport.terminal.v1.ListDatabaseUsersResponse.prototype.setUsersList = fu /** * @param {string} value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.ListDatabaseUsersResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse} returns this */ -proto.teleport.terminal.v1.ListDatabaseUsersResponse.prototype.addUsers = function(value, opt_index) { +proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse.prototype.addUsers = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 1, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.ListDatabaseUsersResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse} returns this */ -proto.teleport.terminal.v1.ListDatabaseUsersResponse.prototype.clearUsersList = function() { +proto.teleport.lib.teleterm.v1.ListDatabaseUsersResponse.prototype.clearUsersList = function() { return this.setUsersList([]); }; @@ -7630,8 +7630,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.CreateGatewayRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.CreateGatewayRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.CreateGatewayRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.CreateGatewayRequest.toObject(opt_includeInstance, this); }; @@ -7640,11 +7640,11 @@ proto.teleport.terminal.v1.CreateGatewayRequest.prototype.toObject = function(op * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.CreateGatewayRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.CreateGatewayRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.CreateGatewayRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.CreateGatewayRequest.toObject = function(includeInstance, msg) { var f, obj = { targetUri: jspb.Message.getFieldWithDefault(msg, 1, ""), targetUser: jspb.Message.getFieldWithDefault(msg, 2, ""), @@ -7663,23 +7663,23 @@ proto.teleport.terminal.v1.CreateGatewayRequest.toObject = function(includeInsta /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.CreateGatewayRequest} + * @return {!proto.teleport.lib.teleterm.v1.CreateGatewayRequest} */ -proto.teleport.terminal.v1.CreateGatewayRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.CreateGatewayRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.CreateGatewayRequest; - return proto.teleport.terminal.v1.CreateGatewayRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.CreateGatewayRequest; + return proto.teleport.lib.teleterm.v1.CreateGatewayRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.CreateGatewayRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.CreateGatewayRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.CreateGatewayRequest} + * @return {!proto.teleport.lib.teleterm.v1.CreateGatewayRequest} */ -proto.teleport.terminal.v1.CreateGatewayRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.CreateGatewayRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -7715,9 +7715,9 @@ proto.teleport.terminal.v1.CreateGatewayRequest.deserializeBinaryFromReader = fu * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.CreateGatewayRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.CreateGatewayRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.CreateGatewayRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.CreateGatewayRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7725,11 +7725,11 @@ proto.teleport.terminal.v1.CreateGatewayRequest.prototype.serializeBinary = func /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.CreateGatewayRequest} message + * @param {!proto.teleport.lib.teleterm.v1.CreateGatewayRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.CreateGatewayRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.CreateGatewayRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getTargetUri(); if (f.length > 0) { @@ -7766,16 +7766,16 @@ proto.teleport.terminal.v1.CreateGatewayRequest.serializeBinaryToWriter = functi * optional string target_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.CreateGatewayRequest.prototype.getTargetUri = function() { +proto.teleport.lib.teleterm.v1.CreateGatewayRequest.prototype.getTargetUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.CreateGatewayRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.CreateGatewayRequest} returns this */ -proto.teleport.terminal.v1.CreateGatewayRequest.prototype.setTargetUri = function(value) { +proto.teleport.lib.teleterm.v1.CreateGatewayRequest.prototype.setTargetUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -7784,16 +7784,16 @@ proto.teleport.terminal.v1.CreateGatewayRequest.prototype.setTargetUri = functio * optional string target_user = 2; * @return {string} */ -proto.teleport.terminal.v1.CreateGatewayRequest.prototype.getTargetUser = function() { +proto.teleport.lib.teleterm.v1.CreateGatewayRequest.prototype.getTargetUser = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.CreateGatewayRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.CreateGatewayRequest} returns this */ -proto.teleport.terminal.v1.CreateGatewayRequest.prototype.setTargetUser = function(value) { +proto.teleport.lib.teleterm.v1.CreateGatewayRequest.prototype.setTargetUser = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -7802,16 +7802,16 @@ proto.teleport.terminal.v1.CreateGatewayRequest.prototype.setTargetUser = functi * optional string local_port = 3; * @return {string} */ -proto.teleport.terminal.v1.CreateGatewayRequest.prototype.getLocalPort = function() { +proto.teleport.lib.teleterm.v1.CreateGatewayRequest.prototype.getLocalPort = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.CreateGatewayRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.CreateGatewayRequest} returns this */ -proto.teleport.terminal.v1.CreateGatewayRequest.prototype.setLocalPort = function(value) { +proto.teleport.lib.teleterm.v1.CreateGatewayRequest.prototype.setLocalPort = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; @@ -7820,16 +7820,16 @@ proto.teleport.terminal.v1.CreateGatewayRequest.prototype.setLocalPort = functio * optional string target_subresource_name = 4; * @return {string} */ -proto.teleport.terminal.v1.CreateGatewayRequest.prototype.getTargetSubresourceName = function() { +proto.teleport.lib.teleterm.v1.CreateGatewayRequest.prototype.getTargetSubresourceName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.CreateGatewayRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.CreateGatewayRequest} returns this */ -proto.teleport.terminal.v1.CreateGatewayRequest.prototype.setTargetSubresourceName = function(value) { +proto.teleport.lib.teleterm.v1.CreateGatewayRequest.prototype.setTargetSubresourceName = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; @@ -7840,7 +7840,7 @@ proto.teleport.terminal.v1.CreateGatewayRequest.prototype.setTargetSubresourceNa * @private {!Array} * @const */ -proto.teleport.terminal.v1.ListGatewaysRequest.repeatedFields_ = [1]; +proto.teleport.lib.teleterm.v1.ListGatewaysRequest.repeatedFields_ = [1]; @@ -7857,8 +7857,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.ListGatewaysRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ListGatewaysRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.ListGatewaysRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.ListGatewaysRequest.toObject(opt_includeInstance, this); }; @@ -7867,11 +7867,11 @@ proto.teleport.terminal.v1.ListGatewaysRequest.prototype.toObject = function(opt * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ListGatewaysRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.ListGatewaysRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ListGatewaysRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.ListGatewaysRequest.toObject = function(includeInstance, msg) { var f, obj = { clusterIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f }; @@ -7887,23 +7887,23 @@ proto.teleport.terminal.v1.ListGatewaysRequest.toObject = function(includeInstan /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ListGatewaysRequest} + * @return {!proto.teleport.lib.teleterm.v1.ListGatewaysRequest} */ -proto.teleport.terminal.v1.ListGatewaysRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.ListGatewaysRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ListGatewaysRequest; - return proto.teleport.terminal.v1.ListGatewaysRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.ListGatewaysRequest; + return proto.teleport.lib.teleterm.v1.ListGatewaysRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ListGatewaysRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.ListGatewaysRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ListGatewaysRequest} + * @return {!proto.teleport.lib.teleterm.v1.ListGatewaysRequest} */ -proto.teleport.terminal.v1.ListGatewaysRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.ListGatewaysRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -7927,9 +7927,9 @@ proto.teleport.terminal.v1.ListGatewaysRequest.deserializeBinaryFromReader = fun * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.ListGatewaysRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.ListGatewaysRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ListGatewaysRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.ListGatewaysRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7937,11 +7937,11 @@ proto.teleport.terminal.v1.ListGatewaysRequest.prototype.serializeBinary = funct /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ListGatewaysRequest} message + * @param {!proto.teleport.lib.teleterm.v1.ListGatewaysRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ListGatewaysRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.ListGatewaysRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClusterIdsList(); if (f.length > 0) { @@ -7957,16 +7957,16 @@ proto.teleport.terminal.v1.ListGatewaysRequest.serializeBinaryToWriter = functio * repeated string cluster_ids = 1; * @return {!Array} */ -proto.teleport.terminal.v1.ListGatewaysRequest.prototype.getClusterIdsList = function() { +proto.teleport.lib.teleterm.v1.ListGatewaysRequest.prototype.getClusterIdsList = function() { return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); }; /** * @param {!Array} value - * @return {!proto.teleport.terminal.v1.ListGatewaysRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.ListGatewaysRequest} returns this */ -proto.teleport.terminal.v1.ListGatewaysRequest.prototype.setClusterIdsList = function(value) { +proto.teleport.lib.teleterm.v1.ListGatewaysRequest.prototype.setClusterIdsList = function(value) { return jspb.Message.setField(this, 1, value || []); }; @@ -7974,18 +7974,18 @@ proto.teleport.terminal.v1.ListGatewaysRequest.prototype.setClusterIdsList = fun /** * @param {string} value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.ListGatewaysRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.ListGatewaysRequest} returns this */ -proto.teleport.terminal.v1.ListGatewaysRequest.prototype.addClusterIds = function(value, opt_index) { +proto.teleport.lib.teleterm.v1.ListGatewaysRequest.prototype.addClusterIds = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 1, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.ListGatewaysRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.ListGatewaysRequest} returns this */ -proto.teleport.terminal.v1.ListGatewaysRequest.prototype.clearClusterIdsList = function() { +proto.teleport.lib.teleterm.v1.ListGatewaysRequest.prototype.clearClusterIdsList = function() { return this.setClusterIdsList([]); }; @@ -7996,7 +7996,7 @@ proto.teleport.terminal.v1.ListGatewaysRequest.prototype.clearClusterIdsList = f * @private {!Array} * @const */ -proto.teleport.terminal.v1.ListGatewaysResponse.repeatedFields_ = [1]; +proto.teleport.lib.teleterm.v1.ListGatewaysResponse.repeatedFields_ = [1]; @@ -8013,8 +8013,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.ListGatewaysResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ListGatewaysResponse.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.ListGatewaysResponse.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.ListGatewaysResponse.toObject(opt_includeInstance, this); }; @@ -8023,14 +8023,14 @@ proto.teleport.terminal.v1.ListGatewaysResponse.prototype.toObject = function(op * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ListGatewaysResponse} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.ListGatewaysResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ListGatewaysResponse.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.ListGatewaysResponse.toObject = function(includeInstance, msg) { var f, obj = { gatewaysList: jspb.Message.toObjectList(msg.getGatewaysList(), - v1_gateway_pb.Gateway.toObject, includeInstance) + teleport_lib_teleterm_v1_gateway_pb.Gateway.toObject, includeInstance) }; if (includeInstance) { @@ -8044,23 +8044,23 @@ proto.teleport.terminal.v1.ListGatewaysResponse.toObject = function(includeInsta /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ListGatewaysResponse} + * @return {!proto.teleport.lib.teleterm.v1.ListGatewaysResponse} */ -proto.teleport.terminal.v1.ListGatewaysResponse.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.ListGatewaysResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ListGatewaysResponse; - return proto.teleport.terminal.v1.ListGatewaysResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.ListGatewaysResponse; + return proto.teleport.lib.teleterm.v1.ListGatewaysResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ListGatewaysResponse} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.ListGatewaysResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ListGatewaysResponse} + * @return {!proto.teleport.lib.teleterm.v1.ListGatewaysResponse} */ -proto.teleport.terminal.v1.ListGatewaysResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.ListGatewaysResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8068,8 +8068,8 @@ proto.teleport.terminal.v1.ListGatewaysResponse.deserializeBinaryFromReader = fu var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new v1_gateway_pb.Gateway; - reader.readMessage(value,v1_gateway_pb.Gateway.deserializeBinaryFromReader); + var value = new teleport_lib_teleterm_v1_gateway_pb.Gateway; + reader.readMessage(value,teleport_lib_teleterm_v1_gateway_pb.Gateway.deserializeBinaryFromReader); msg.addGateways(value); break; default: @@ -8085,9 +8085,9 @@ proto.teleport.terminal.v1.ListGatewaysResponse.deserializeBinaryFromReader = fu * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.ListGatewaysResponse.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.ListGatewaysResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ListGatewaysResponse.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.ListGatewaysResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8095,18 +8095,18 @@ proto.teleport.terminal.v1.ListGatewaysResponse.prototype.serializeBinary = func /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ListGatewaysResponse} message + * @param {!proto.teleport.lib.teleterm.v1.ListGatewaysResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ListGatewaysResponse.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.ListGatewaysResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getGatewaysList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, - v1_gateway_pb.Gateway.serializeBinaryToWriter + teleport_lib_teleterm_v1_gateway_pb.Gateway.serializeBinaryToWriter ); } }; @@ -8114,38 +8114,38 @@ proto.teleport.terminal.v1.ListGatewaysResponse.serializeBinaryToWriter = functi /** * repeated Gateway gateways = 1; - * @return {!Array} + * @return {!Array} */ -proto.teleport.terminal.v1.ListGatewaysResponse.prototype.getGatewaysList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_gateway_pb.Gateway, 1)); +proto.teleport.lib.teleterm.v1.ListGatewaysResponse.prototype.getGatewaysList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, teleport_lib_teleterm_v1_gateway_pb.Gateway, 1)); }; /** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.ListGatewaysResponse} returns this + * @param {!Array} value + * @return {!proto.teleport.lib.teleterm.v1.ListGatewaysResponse} returns this */ -proto.teleport.terminal.v1.ListGatewaysResponse.prototype.setGatewaysList = function(value) { +proto.teleport.lib.teleterm.v1.ListGatewaysResponse.prototype.setGatewaysList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * @param {!proto.teleport.terminal.v1.Gateway=} opt_value + * @param {!proto.teleport.lib.teleterm.v1.Gateway=} opt_value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.Gateway} + * @return {!proto.teleport.lib.teleterm.v1.Gateway} */ -proto.teleport.terminal.v1.ListGatewaysResponse.prototype.addGateways = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.terminal.v1.Gateway, opt_index); +proto.teleport.lib.teleterm.v1.ListGatewaysResponse.prototype.addGateways = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.lib.teleterm.v1.Gateway, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.ListGatewaysResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.ListGatewaysResponse} returns this */ -proto.teleport.terminal.v1.ListGatewaysResponse.prototype.clearGatewaysList = function() { +proto.teleport.lib.teleterm.v1.ListGatewaysResponse.prototype.clearGatewaysList = function() { return this.setGatewaysList([]); }; @@ -8166,8 +8166,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.RemoveGatewayRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.RemoveGatewayRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.RemoveGatewayRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.RemoveGatewayRequest.toObject(opt_includeInstance, this); }; @@ -8176,11 +8176,11 @@ proto.teleport.terminal.v1.RemoveGatewayRequest.prototype.toObject = function(op * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.RemoveGatewayRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.RemoveGatewayRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.RemoveGatewayRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.RemoveGatewayRequest.toObject = function(includeInstance, msg) { var f, obj = { gatewayUri: jspb.Message.getFieldWithDefault(msg, 1, "") }; @@ -8196,23 +8196,23 @@ proto.teleport.terminal.v1.RemoveGatewayRequest.toObject = function(includeInsta /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.RemoveGatewayRequest} + * @return {!proto.teleport.lib.teleterm.v1.RemoveGatewayRequest} */ -proto.teleport.terminal.v1.RemoveGatewayRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.RemoveGatewayRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.RemoveGatewayRequest; - return proto.teleport.terminal.v1.RemoveGatewayRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.RemoveGatewayRequest; + return proto.teleport.lib.teleterm.v1.RemoveGatewayRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.RemoveGatewayRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.RemoveGatewayRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.RemoveGatewayRequest} + * @return {!proto.teleport.lib.teleterm.v1.RemoveGatewayRequest} */ -proto.teleport.terminal.v1.RemoveGatewayRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.RemoveGatewayRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8236,9 +8236,9 @@ proto.teleport.terminal.v1.RemoveGatewayRequest.deserializeBinaryFromReader = fu * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.RemoveGatewayRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.RemoveGatewayRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.RemoveGatewayRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.RemoveGatewayRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8246,11 +8246,11 @@ proto.teleport.terminal.v1.RemoveGatewayRequest.prototype.serializeBinary = func /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.RemoveGatewayRequest} message + * @param {!proto.teleport.lib.teleterm.v1.RemoveGatewayRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.RemoveGatewayRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.RemoveGatewayRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getGatewayUri(); if (f.length > 0) { @@ -8266,16 +8266,16 @@ proto.teleport.terminal.v1.RemoveGatewayRequest.serializeBinaryToWriter = functi * optional string gateway_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.RemoveGatewayRequest.prototype.getGatewayUri = function() { +proto.teleport.lib.teleterm.v1.RemoveGatewayRequest.prototype.getGatewayUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.RemoveGatewayRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.RemoveGatewayRequest} returns this */ -proto.teleport.terminal.v1.RemoveGatewayRequest.prototype.setGatewayUri = function(value) { +proto.teleport.lib.teleterm.v1.RemoveGatewayRequest.prototype.setGatewayUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -8296,8 +8296,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.RestartGatewayRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.RestartGatewayRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.RestartGatewayRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.RestartGatewayRequest.toObject(opt_includeInstance, this); }; @@ -8306,11 +8306,11 @@ proto.teleport.terminal.v1.RestartGatewayRequest.prototype.toObject = function(o * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.RestartGatewayRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.RestartGatewayRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.RestartGatewayRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.RestartGatewayRequest.toObject = function(includeInstance, msg) { var f, obj = { gatewayUri: jspb.Message.getFieldWithDefault(msg, 1, "") }; @@ -8326,23 +8326,23 @@ proto.teleport.terminal.v1.RestartGatewayRequest.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.RestartGatewayRequest} + * @return {!proto.teleport.lib.teleterm.v1.RestartGatewayRequest} */ -proto.teleport.terminal.v1.RestartGatewayRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.RestartGatewayRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.RestartGatewayRequest; - return proto.teleport.terminal.v1.RestartGatewayRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.RestartGatewayRequest; + return proto.teleport.lib.teleterm.v1.RestartGatewayRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.RestartGatewayRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.RestartGatewayRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.RestartGatewayRequest} + * @return {!proto.teleport.lib.teleterm.v1.RestartGatewayRequest} */ -proto.teleport.terminal.v1.RestartGatewayRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.RestartGatewayRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8366,9 +8366,9 @@ proto.teleport.terminal.v1.RestartGatewayRequest.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.RestartGatewayRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.RestartGatewayRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.RestartGatewayRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.RestartGatewayRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8376,11 +8376,11 @@ proto.teleport.terminal.v1.RestartGatewayRequest.prototype.serializeBinary = fun /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.RestartGatewayRequest} message + * @param {!proto.teleport.lib.teleterm.v1.RestartGatewayRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.RestartGatewayRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.RestartGatewayRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getGatewayUri(); if (f.length > 0) { @@ -8396,16 +8396,16 @@ proto.teleport.terminal.v1.RestartGatewayRequest.serializeBinaryToWriter = funct * optional string gateway_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.RestartGatewayRequest.prototype.getGatewayUri = function() { +proto.teleport.lib.teleterm.v1.RestartGatewayRequest.prototype.getGatewayUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.RestartGatewayRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.RestartGatewayRequest} returns this */ -proto.teleport.terminal.v1.RestartGatewayRequest.prototype.setGatewayUri = function(value) { +proto.teleport.lib.teleterm.v1.RestartGatewayRequest.prototype.setGatewayUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -8426,8 +8426,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest.toObject(opt_includeInstance, this); }; @@ -8436,11 +8436,11 @@ proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.prototype.toOb * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest.toObject = function(includeInstance, msg) { var f, obj = { gatewayUri: jspb.Message.getFieldWithDefault(msg, 1, ""), targetSubresourceName: jspb.Message.getFieldWithDefault(msg, 2, "") @@ -8457,23 +8457,23 @@ proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.toObject = fun /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest} + * @return {!proto.teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest} */ -proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest; - return proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest; + return proto.teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest} + * @return {!proto.teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest} */ -proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8501,9 +8501,9 @@ proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.deserializeBin * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8511,11 +8511,11 @@ proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.prototype.seri /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest} message + * @param {!proto.teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getGatewayUri(); if (f.length > 0) { @@ -8538,16 +8538,16 @@ proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.serializeBinar * optional string gateway_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.prototype.getGatewayUri = function() { +proto.teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest.prototype.getGatewayUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest} returns this */ -proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.prototype.setGatewayUri = function(value) { +proto.teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest.prototype.setGatewayUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -8556,16 +8556,16 @@ proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.prototype.setG * optional string target_subresource_name = 2; * @return {string} */ -proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.prototype.getTargetSubresourceName = function() { +proto.teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest.prototype.getTargetSubresourceName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest} returns this */ -proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.prototype.setTargetSubresourceName = function(value) { +proto.teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest.prototype.setTargetSubresourceName = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -8586,8 +8586,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.SetGatewayLocalPortRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.SetGatewayLocalPortRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.SetGatewayLocalPortRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.SetGatewayLocalPortRequest.toObject(opt_includeInstance, this); }; @@ -8596,11 +8596,11 @@ proto.teleport.terminal.v1.SetGatewayLocalPortRequest.prototype.toObject = funct * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.SetGatewayLocalPortRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.SetGatewayLocalPortRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.SetGatewayLocalPortRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.SetGatewayLocalPortRequest.toObject = function(includeInstance, msg) { var f, obj = { gatewayUri: jspb.Message.getFieldWithDefault(msg, 1, ""), localPort: jspb.Message.getFieldWithDefault(msg, 2, "") @@ -8617,23 +8617,23 @@ proto.teleport.terminal.v1.SetGatewayLocalPortRequest.toObject = function(includ /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.SetGatewayLocalPortRequest} + * @return {!proto.teleport.lib.teleterm.v1.SetGatewayLocalPortRequest} */ -proto.teleport.terminal.v1.SetGatewayLocalPortRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.SetGatewayLocalPortRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.SetGatewayLocalPortRequest; - return proto.teleport.terminal.v1.SetGatewayLocalPortRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.SetGatewayLocalPortRequest; + return proto.teleport.lib.teleterm.v1.SetGatewayLocalPortRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.SetGatewayLocalPortRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.SetGatewayLocalPortRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.SetGatewayLocalPortRequest} + * @return {!proto.teleport.lib.teleterm.v1.SetGatewayLocalPortRequest} */ -proto.teleport.terminal.v1.SetGatewayLocalPortRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.SetGatewayLocalPortRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8661,9 +8661,9 @@ proto.teleport.terminal.v1.SetGatewayLocalPortRequest.deserializeBinaryFromReade * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.SetGatewayLocalPortRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.SetGatewayLocalPortRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.SetGatewayLocalPortRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.SetGatewayLocalPortRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8671,11 +8671,11 @@ proto.teleport.terminal.v1.SetGatewayLocalPortRequest.prototype.serializeBinary /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.SetGatewayLocalPortRequest} message + * @param {!proto.teleport.lib.teleterm.v1.SetGatewayLocalPortRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.SetGatewayLocalPortRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.SetGatewayLocalPortRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getGatewayUri(); if (f.length > 0) { @@ -8698,16 +8698,16 @@ proto.teleport.terminal.v1.SetGatewayLocalPortRequest.serializeBinaryToWriter = * optional string gateway_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.SetGatewayLocalPortRequest.prototype.getGatewayUri = function() { +proto.teleport.lib.teleterm.v1.SetGatewayLocalPortRequest.prototype.getGatewayUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.SetGatewayLocalPortRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.SetGatewayLocalPortRequest} returns this */ -proto.teleport.terminal.v1.SetGatewayLocalPortRequest.prototype.setGatewayUri = function(value) { +proto.teleport.lib.teleterm.v1.SetGatewayLocalPortRequest.prototype.setGatewayUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -8716,16 +8716,16 @@ proto.teleport.terminal.v1.SetGatewayLocalPortRequest.prototype.setGatewayUri = * optional string local_port = 2; * @return {string} */ -proto.teleport.terminal.v1.SetGatewayLocalPortRequest.prototype.getLocalPort = function() { +proto.teleport.lib.teleterm.v1.SetGatewayLocalPortRequest.prototype.getLocalPort = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.SetGatewayLocalPortRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.SetGatewayLocalPortRequest} returns this */ -proto.teleport.terminal.v1.SetGatewayLocalPortRequest.prototype.setLocalPort = function(value) { +proto.teleport.lib.teleterm.v1.SetGatewayLocalPortRequest.prototype.setLocalPort = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -8746,8 +8746,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.GetAllServersRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetAllServersRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.GetAllServersRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.GetAllServersRequest.toObject(opt_includeInstance, this); }; @@ -8756,11 +8756,11 @@ proto.teleport.terminal.v1.GetAllServersRequest.prototype.toObject = function(op * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetAllServersRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.GetAllServersRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetAllServersRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.GetAllServersRequest.toObject = function(includeInstance, msg) { var f, obj = { clusterUri: jspb.Message.getFieldWithDefault(msg, 1, "") }; @@ -8776,23 +8776,23 @@ proto.teleport.terminal.v1.GetAllServersRequest.toObject = function(includeInsta /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetAllServersRequest} + * @return {!proto.teleport.lib.teleterm.v1.GetAllServersRequest} */ -proto.teleport.terminal.v1.GetAllServersRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.GetAllServersRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetAllServersRequest; - return proto.teleport.terminal.v1.GetAllServersRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.GetAllServersRequest; + return proto.teleport.lib.teleterm.v1.GetAllServersRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetAllServersRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.GetAllServersRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetAllServersRequest} + * @return {!proto.teleport.lib.teleterm.v1.GetAllServersRequest} */ -proto.teleport.terminal.v1.GetAllServersRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.GetAllServersRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8816,9 +8816,9 @@ proto.teleport.terminal.v1.GetAllServersRequest.deserializeBinaryFromReader = fu * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.GetAllServersRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.GetAllServersRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetAllServersRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.GetAllServersRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8826,11 +8826,11 @@ proto.teleport.terminal.v1.GetAllServersRequest.prototype.serializeBinary = func /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetAllServersRequest} message + * @param {!proto.teleport.lib.teleterm.v1.GetAllServersRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetAllServersRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.GetAllServersRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClusterUri(); if (f.length > 0) { @@ -8846,16 +8846,16 @@ proto.teleport.terminal.v1.GetAllServersRequest.serializeBinaryToWriter = functi * optional string cluster_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.GetAllServersRequest.prototype.getClusterUri = function() { +proto.teleport.lib.teleterm.v1.GetAllServersRequest.prototype.getClusterUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetAllServersRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetAllServersRequest} returns this */ -proto.teleport.terminal.v1.GetAllServersRequest.prototype.setClusterUri = function(value) { +proto.teleport.lib.teleterm.v1.GetAllServersRequest.prototype.setClusterUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -8866,7 +8866,7 @@ proto.teleport.terminal.v1.GetAllServersRequest.prototype.setClusterUri = functi * @private {!Array} * @const */ -proto.teleport.terminal.v1.GetAllServersResponse.repeatedFields_ = [1]; +proto.teleport.lib.teleterm.v1.GetAllServersResponse.repeatedFields_ = [1]; @@ -8883,8 +8883,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.GetAllServersResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetAllServersResponse.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.GetAllServersResponse.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.GetAllServersResponse.toObject(opt_includeInstance, this); }; @@ -8893,14 +8893,14 @@ proto.teleport.terminal.v1.GetAllServersResponse.prototype.toObject = function(o * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetAllServersResponse} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.GetAllServersResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetAllServersResponse.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.GetAllServersResponse.toObject = function(includeInstance, msg) { var f, obj = { serversList: jspb.Message.toObjectList(msg.getServersList(), - v1_server_pb.Server.toObject, includeInstance) + teleport_lib_teleterm_v1_server_pb.Server.toObject, includeInstance) }; if (includeInstance) { @@ -8914,23 +8914,23 @@ proto.teleport.terminal.v1.GetAllServersResponse.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetAllServersResponse} + * @return {!proto.teleport.lib.teleterm.v1.GetAllServersResponse} */ -proto.teleport.terminal.v1.GetAllServersResponse.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.GetAllServersResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetAllServersResponse; - return proto.teleport.terminal.v1.GetAllServersResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.GetAllServersResponse; + return proto.teleport.lib.teleterm.v1.GetAllServersResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetAllServersResponse} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.GetAllServersResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetAllServersResponse} + * @return {!proto.teleport.lib.teleterm.v1.GetAllServersResponse} */ -proto.teleport.terminal.v1.GetAllServersResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.GetAllServersResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8938,8 +8938,8 @@ proto.teleport.terminal.v1.GetAllServersResponse.deserializeBinaryFromReader = f var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new v1_server_pb.Server; - reader.readMessage(value,v1_server_pb.Server.deserializeBinaryFromReader); + var value = new teleport_lib_teleterm_v1_server_pb.Server; + reader.readMessage(value,teleport_lib_teleterm_v1_server_pb.Server.deserializeBinaryFromReader); msg.addServers(value); break; default: @@ -8955,9 +8955,9 @@ proto.teleport.terminal.v1.GetAllServersResponse.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.GetAllServersResponse.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.GetAllServersResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetAllServersResponse.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.GetAllServersResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8965,18 +8965,18 @@ proto.teleport.terminal.v1.GetAllServersResponse.prototype.serializeBinary = fun /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetAllServersResponse} message + * @param {!proto.teleport.lib.teleterm.v1.GetAllServersResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetAllServersResponse.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.GetAllServersResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getServersList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, - v1_server_pb.Server.serializeBinaryToWriter + teleport_lib_teleterm_v1_server_pb.Server.serializeBinaryToWriter ); } }; @@ -8984,38 +8984,38 @@ proto.teleport.terminal.v1.GetAllServersResponse.serializeBinaryToWriter = funct /** * repeated Server servers = 1; - * @return {!Array} + * @return {!Array} */ -proto.teleport.terminal.v1.GetAllServersResponse.prototype.getServersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_server_pb.Server, 1)); +proto.teleport.lib.teleterm.v1.GetAllServersResponse.prototype.getServersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, teleport_lib_teleterm_v1_server_pb.Server, 1)); }; /** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.GetAllServersResponse} returns this + * @param {!Array} value + * @return {!proto.teleport.lib.teleterm.v1.GetAllServersResponse} returns this */ -proto.teleport.terminal.v1.GetAllServersResponse.prototype.setServersList = function(value) { +proto.teleport.lib.teleterm.v1.GetAllServersResponse.prototype.setServersList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * @param {!proto.teleport.terminal.v1.Server=} opt_value + * @param {!proto.teleport.lib.teleterm.v1.Server=} opt_value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.Server} + * @return {!proto.teleport.lib.teleterm.v1.Server} */ -proto.teleport.terminal.v1.GetAllServersResponse.prototype.addServers = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.terminal.v1.Server, opt_index); +proto.teleport.lib.teleterm.v1.GetAllServersResponse.prototype.addServers = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.lib.teleterm.v1.Server, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.GetAllServersResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetAllServersResponse} returns this */ -proto.teleport.terminal.v1.GetAllServersResponse.prototype.clearServersList = function() { +proto.teleport.lib.teleterm.v1.GetAllServersResponse.prototype.clearServersList = function() { return this.setServersList([]); }; @@ -9036,8 +9036,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.GetServersRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetServersRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.GetServersRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.GetServersRequest.toObject(opt_includeInstance, this); }; @@ -9046,11 +9046,11 @@ proto.teleport.terminal.v1.GetServersRequest.prototype.toObject = function(opt_i * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetServersRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.GetServersRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetServersRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.GetServersRequest.toObject = function(includeInstance, msg) { var f, obj = { clusterUri: jspb.Message.getFieldWithDefault(msg, 1, ""), limit: jspb.Message.getFieldWithDefault(msg, 2, 0), @@ -9072,23 +9072,23 @@ proto.teleport.terminal.v1.GetServersRequest.toObject = function(includeInstance /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetServersRequest} + * @return {!proto.teleport.lib.teleterm.v1.GetServersRequest} */ -proto.teleport.terminal.v1.GetServersRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.GetServersRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetServersRequest; - return proto.teleport.terminal.v1.GetServersRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.GetServersRequest; + return proto.teleport.lib.teleterm.v1.GetServersRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetServersRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.GetServersRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetServersRequest} + * @return {!proto.teleport.lib.teleterm.v1.GetServersRequest} */ -proto.teleport.terminal.v1.GetServersRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.GetServersRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9136,9 +9136,9 @@ proto.teleport.terminal.v1.GetServersRequest.deserializeBinaryFromReader = funct * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.GetServersRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.GetServersRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetServersRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.GetServersRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9146,11 +9146,11 @@ proto.teleport.terminal.v1.GetServersRequest.prototype.serializeBinary = functio /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetServersRequest} message + * @param {!proto.teleport.lib.teleterm.v1.GetServersRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetServersRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.GetServersRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClusterUri(); if (f.length > 0) { @@ -9208,16 +9208,16 @@ proto.teleport.terminal.v1.GetServersRequest.serializeBinaryToWriter = function( * optional string cluster_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.GetServersRequest.prototype.getClusterUri = function() { +proto.teleport.lib.teleterm.v1.GetServersRequest.prototype.getClusterUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetServersRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetServersRequest} returns this */ -proto.teleport.terminal.v1.GetServersRequest.prototype.setClusterUri = function(value) { +proto.teleport.lib.teleterm.v1.GetServersRequest.prototype.setClusterUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -9226,16 +9226,16 @@ proto.teleport.terminal.v1.GetServersRequest.prototype.setClusterUri = function( * optional int32 limit = 2; * @return {number} */ -proto.teleport.terminal.v1.GetServersRequest.prototype.getLimit = function() { +proto.teleport.lib.teleterm.v1.GetServersRequest.prototype.getLimit = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value - * @return {!proto.teleport.terminal.v1.GetServersRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetServersRequest} returns this */ -proto.teleport.terminal.v1.GetServersRequest.prototype.setLimit = function(value) { +proto.teleport.lib.teleterm.v1.GetServersRequest.prototype.setLimit = function(value) { return jspb.Message.setProto3IntField(this, 2, value); }; @@ -9244,16 +9244,16 @@ proto.teleport.terminal.v1.GetServersRequest.prototype.setLimit = function(value * optional string start_key = 3; * @return {string} */ -proto.teleport.terminal.v1.GetServersRequest.prototype.getStartKey = function() { +proto.teleport.lib.teleterm.v1.GetServersRequest.prototype.getStartKey = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetServersRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetServersRequest} returns this */ -proto.teleport.terminal.v1.GetServersRequest.prototype.setStartKey = function(value) { +proto.teleport.lib.teleterm.v1.GetServersRequest.prototype.setStartKey = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; @@ -9262,16 +9262,16 @@ proto.teleport.terminal.v1.GetServersRequest.prototype.setStartKey = function(va * optional string search = 4; * @return {string} */ -proto.teleport.terminal.v1.GetServersRequest.prototype.getSearch = function() { +proto.teleport.lib.teleterm.v1.GetServersRequest.prototype.getSearch = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetServersRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetServersRequest} returns this */ -proto.teleport.terminal.v1.GetServersRequest.prototype.setSearch = function(value) { +proto.teleport.lib.teleterm.v1.GetServersRequest.prototype.setSearch = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; @@ -9280,16 +9280,16 @@ proto.teleport.terminal.v1.GetServersRequest.prototype.setSearch = function(valu * optional string query = 5; * @return {string} */ -proto.teleport.terminal.v1.GetServersRequest.prototype.getQuery = function() { +proto.teleport.lib.teleterm.v1.GetServersRequest.prototype.getQuery = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetServersRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetServersRequest} returns this */ -proto.teleport.terminal.v1.GetServersRequest.prototype.setQuery = function(value) { +proto.teleport.lib.teleterm.v1.GetServersRequest.prototype.setQuery = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; @@ -9298,16 +9298,16 @@ proto.teleport.terminal.v1.GetServersRequest.prototype.setQuery = function(value * optional string sort_by = 6; * @return {string} */ -proto.teleport.terminal.v1.GetServersRequest.prototype.getSortBy = function() { +proto.teleport.lib.teleterm.v1.GetServersRequest.prototype.getSortBy = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetServersRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetServersRequest} returns this */ -proto.teleport.terminal.v1.GetServersRequest.prototype.setSortBy = function(value) { +proto.teleport.lib.teleterm.v1.GetServersRequest.prototype.setSortBy = function(value) { return jspb.Message.setProto3StringField(this, 6, value); }; @@ -9316,16 +9316,16 @@ proto.teleport.terminal.v1.GetServersRequest.prototype.setSortBy = function(valu * optional string search_as_roles = 7; * @return {string} */ -proto.teleport.terminal.v1.GetServersRequest.prototype.getSearchAsRoles = function() { +proto.teleport.lib.teleterm.v1.GetServersRequest.prototype.getSearchAsRoles = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetServersRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetServersRequest} returns this */ -proto.teleport.terminal.v1.GetServersRequest.prototype.setSearchAsRoles = function(value) { +proto.teleport.lib.teleterm.v1.GetServersRequest.prototype.setSearchAsRoles = function(value) { return jspb.Message.setProto3StringField(this, 7, value); }; @@ -9336,7 +9336,7 @@ proto.teleport.terminal.v1.GetServersRequest.prototype.setSearchAsRoles = functi * @private {!Array} * @const */ -proto.teleport.terminal.v1.GetServersResponse.repeatedFields_ = [1]; +proto.teleport.lib.teleterm.v1.GetServersResponse.repeatedFields_ = [1]; @@ -9353,8 +9353,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.GetServersResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetServersResponse.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.GetServersResponse.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.GetServersResponse.toObject(opt_includeInstance, this); }; @@ -9363,14 +9363,14 @@ proto.teleport.terminal.v1.GetServersResponse.prototype.toObject = function(opt_ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetServersResponse} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.GetServersResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetServersResponse.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.GetServersResponse.toObject = function(includeInstance, msg) { var f, obj = { agentsList: jspb.Message.toObjectList(msg.getAgentsList(), - v1_server_pb.Server.toObject, includeInstance), + teleport_lib_teleterm_v1_server_pb.Server.toObject, includeInstance), totalCount: jspb.Message.getFieldWithDefault(msg, 2, 0), startKey: jspb.Message.getFieldWithDefault(msg, 3, "") }; @@ -9386,23 +9386,23 @@ proto.teleport.terminal.v1.GetServersResponse.toObject = function(includeInstanc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetServersResponse} + * @return {!proto.teleport.lib.teleterm.v1.GetServersResponse} */ -proto.teleport.terminal.v1.GetServersResponse.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.GetServersResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetServersResponse; - return proto.teleport.terminal.v1.GetServersResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.GetServersResponse; + return proto.teleport.lib.teleterm.v1.GetServersResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetServersResponse} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.GetServersResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetServersResponse} + * @return {!proto.teleport.lib.teleterm.v1.GetServersResponse} */ -proto.teleport.terminal.v1.GetServersResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.GetServersResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9410,8 +9410,8 @@ proto.teleport.terminal.v1.GetServersResponse.deserializeBinaryFromReader = func var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new v1_server_pb.Server; - reader.readMessage(value,v1_server_pb.Server.deserializeBinaryFromReader); + var value = new teleport_lib_teleterm_v1_server_pb.Server; + reader.readMessage(value,teleport_lib_teleterm_v1_server_pb.Server.deserializeBinaryFromReader); msg.addAgents(value); break; case 2: @@ -9435,9 +9435,9 @@ proto.teleport.terminal.v1.GetServersResponse.deserializeBinaryFromReader = func * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.GetServersResponse.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.GetServersResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetServersResponse.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.GetServersResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9445,18 +9445,18 @@ proto.teleport.terminal.v1.GetServersResponse.prototype.serializeBinary = functi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetServersResponse} message + * @param {!proto.teleport.lib.teleterm.v1.GetServersResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetServersResponse.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.GetServersResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getAgentsList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, - v1_server_pb.Server.serializeBinaryToWriter + teleport_lib_teleterm_v1_server_pb.Server.serializeBinaryToWriter ); } f = message.getTotalCount(); @@ -9478,38 +9478,38 @@ proto.teleport.terminal.v1.GetServersResponse.serializeBinaryToWriter = function /** * repeated Server agents = 1; - * @return {!Array} + * @return {!Array} */ -proto.teleport.terminal.v1.GetServersResponse.prototype.getAgentsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_server_pb.Server, 1)); +proto.teleport.lib.teleterm.v1.GetServersResponse.prototype.getAgentsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, teleport_lib_teleterm_v1_server_pb.Server, 1)); }; /** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.GetServersResponse} returns this + * @param {!Array} value + * @return {!proto.teleport.lib.teleterm.v1.GetServersResponse} returns this */ -proto.teleport.terminal.v1.GetServersResponse.prototype.setAgentsList = function(value) { +proto.teleport.lib.teleterm.v1.GetServersResponse.prototype.setAgentsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * @param {!proto.teleport.terminal.v1.Server=} opt_value + * @param {!proto.teleport.lib.teleterm.v1.Server=} opt_value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.Server} + * @return {!proto.teleport.lib.teleterm.v1.Server} */ -proto.teleport.terminal.v1.GetServersResponse.prototype.addAgents = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.terminal.v1.Server, opt_index); +proto.teleport.lib.teleterm.v1.GetServersResponse.prototype.addAgents = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.lib.teleterm.v1.Server, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.GetServersResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetServersResponse} returns this */ -proto.teleport.terminal.v1.GetServersResponse.prototype.clearAgentsList = function() { +proto.teleport.lib.teleterm.v1.GetServersResponse.prototype.clearAgentsList = function() { return this.setAgentsList([]); }; @@ -9518,16 +9518,16 @@ proto.teleport.terminal.v1.GetServersResponse.prototype.clearAgentsList = functi * optional int32 total_count = 2; * @return {number} */ -proto.teleport.terminal.v1.GetServersResponse.prototype.getTotalCount = function() { +proto.teleport.lib.teleterm.v1.GetServersResponse.prototype.getTotalCount = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value - * @return {!proto.teleport.terminal.v1.GetServersResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetServersResponse} returns this */ -proto.teleport.terminal.v1.GetServersResponse.prototype.setTotalCount = function(value) { +proto.teleport.lib.teleterm.v1.GetServersResponse.prototype.setTotalCount = function(value) { return jspb.Message.setProto3IntField(this, 2, value); }; @@ -9536,16 +9536,16 @@ proto.teleport.terminal.v1.GetServersResponse.prototype.setTotalCount = function * optional string start_key = 3; * @return {string} */ -proto.teleport.terminal.v1.GetServersResponse.prototype.getStartKey = function() { +proto.teleport.lib.teleterm.v1.GetServersResponse.prototype.getStartKey = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetServersResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetServersResponse} returns this */ -proto.teleport.terminal.v1.GetServersResponse.prototype.setStartKey = function(value) { +proto.teleport.lib.teleterm.v1.GetServersResponse.prototype.setStartKey = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; @@ -9556,7 +9556,7 @@ proto.teleport.terminal.v1.GetServersResponse.prototype.setStartKey = function(v * @private {!Array} * @const */ -proto.teleport.terminal.v1.GetDatabasesResponse.repeatedFields_ = [1]; +proto.teleport.lib.teleterm.v1.GetDatabasesResponse.repeatedFields_ = [1]; @@ -9573,8 +9573,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.GetDatabasesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetDatabasesResponse.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.GetDatabasesResponse.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.GetDatabasesResponse.toObject(opt_includeInstance, this); }; @@ -9583,14 +9583,14 @@ proto.teleport.terminal.v1.GetDatabasesResponse.prototype.toObject = function(op * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetDatabasesResponse} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.GetDatabasesResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetDatabasesResponse.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.GetDatabasesResponse.toObject = function(includeInstance, msg) { var f, obj = { agentsList: jspb.Message.toObjectList(msg.getAgentsList(), - v1_database_pb.Database.toObject, includeInstance), + teleport_lib_teleterm_v1_database_pb.Database.toObject, includeInstance), totalCount: jspb.Message.getFieldWithDefault(msg, 2, 0), startKey: jspb.Message.getFieldWithDefault(msg, 3, "") }; @@ -9606,23 +9606,23 @@ proto.teleport.terminal.v1.GetDatabasesResponse.toObject = function(includeInsta /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetDatabasesResponse} + * @return {!proto.teleport.lib.teleterm.v1.GetDatabasesResponse} */ -proto.teleport.terminal.v1.GetDatabasesResponse.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.GetDatabasesResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetDatabasesResponse; - return proto.teleport.terminal.v1.GetDatabasesResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.GetDatabasesResponse; + return proto.teleport.lib.teleterm.v1.GetDatabasesResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetDatabasesResponse} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.GetDatabasesResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetDatabasesResponse} + * @return {!proto.teleport.lib.teleterm.v1.GetDatabasesResponse} */ -proto.teleport.terminal.v1.GetDatabasesResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.GetDatabasesResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9630,8 +9630,8 @@ proto.teleport.terminal.v1.GetDatabasesResponse.deserializeBinaryFromReader = fu var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new v1_database_pb.Database; - reader.readMessage(value,v1_database_pb.Database.deserializeBinaryFromReader); + var value = new teleport_lib_teleterm_v1_database_pb.Database; + reader.readMessage(value,teleport_lib_teleterm_v1_database_pb.Database.deserializeBinaryFromReader); msg.addAgents(value); break; case 2: @@ -9655,9 +9655,9 @@ proto.teleport.terminal.v1.GetDatabasesResponse.deserializeBinaryFromReader = fu * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.GetDatabasesResponse.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.GetDatabasesResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetDatabasesResponse.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.GetDatabasesResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9665,18 +9665,18 @@ proto.teleport.terminal.v1.GetDatabasesResponse.prototype.serializeBinary = func /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetDatabasesResponse} message + * @param {!proto.teleport.lib.teleterm.v1.GetDatabasesResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetDatabasesResponse.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.GetDatabasesResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getAgentsList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, - v1_database_pb.Database.serializeBinaryToWriter + teleport_lib_teleterm_v1_database_pb.Database.serializeBinaryToWriter ); } f = message.getTotalCount(); @@ -9698,38 +9698,38 @@ proto.teleport.terminal.v1.GetDatabasesResponse.serializeBinaryToWriter = functi /** * repeated Database agents = 1; - * @return {!Array} + * @return {!Array} */ -proto.teleport.terminal.v1.GetDatabasesResponse.prototype.getAgentsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_database_pb.Database, 1)); +proto.teleport.lib.teleterm.v1.GetDatabasesResponse.prototype.getAgentsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, teleport_lib_teleterm_v1_database_pb.Database, 1)); }; /** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.GetDatabasesResponse} returns this + * @param {!Array} value + * @return {!proto.teleport.lib.teleterm.v1.GetDatabasesResponse} returns this */ -proto.teleport.terminal.v1.GetDatabasesResponse.prototype.setAgentsList = function(value) { +proto.teleport.lib.teleterm.v1.GetDatabasesResponse.prototype.setAgentsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * @param {!proto.teleport.terminal.v1.Database=} opt_value + * @param {!proto.teleport.lib.teleterm.v1.Database=} opt_value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.Database} + * @return {!proto.teleport.lib.teleterm.v1.Database} */ -proto.teleport.terminal.v1.GetDatabasesResponse.prototype.addAgents = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.terminal.v1.Database, opt_index); +proto.teleport.lib.teleterm.v1.GetDatabasesResponse.prototype.addAgents = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.lib.teleterm.v1.Database, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.GetDatabasesResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetDatabasesResponse} returns this */ -proto.teleport.terminal.v1.GetDatabasesResponse.prototype.clearAgentsList = function() { +proto.teleport.lib.teleterm.v1.GetDatabasesResponse.prototype.clearAgentsList = function() { return this.setAgentsList([]); }; @@ -9738,16 +9738,16 @@ proto.teleport.terminal.v1.GetDatabasesResponse.prototype.clearAgentsList = func * optional int32 total_count = 2; * @return {number} */ -proto.teleport.terminal.v1.GetDatabasesResponse.prototype.getTotalCount = function() { +proto.teleport.lib.teleterm.v1.GetDatabasesResponse.prototype.getTotalCount = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value - * @return {!proto.teleport.terminal.v1.GetDatabasesResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetDatabasesResponse} returns this */ -proto.teleport.terminal.v1.GetDatabasesResponse.prototype.setTotalCount = function(value) { +proto.teleport.lib.teleterm.v1.GetDatabasesResponse.prototype.setTotalCount = function(value) { return jspb.Message.setProto3IntField(this, 2, value); }; @@ -9756,16 +9756,16 @@ proto.teleport.terminal.v1.GetDatabasesResponse.prototype.setTotalCount = functi * optional string start_key = 3; * @return {string} */ -proto.teleport.terminal.v1.GetDatabasesResponse.prototype.getStartKey = function() { +proto.teleport.lib.teleterm.v1.GetDatabasesResponse.prototype.getStartKey = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetDatabasesResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetDatabasesResponse} returns this */ -proto.teleport.terminal.v1.GetDatabasesResponse.prototype.setStartKey = function(value) { +proto.teleport.lib.teleterm.v1.GetDatabasesResponse.prototype.setStartKey = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; @@ -9786,8 +9786,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.GetAllKubesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetAllKubesRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.GetAllKubesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.GetAllKubesRequest.toObject(opt_includeInstance, this); }; @@ -9796,11 +9796,11 @@ proto.teleport.terminal.v1.GetAllKubesRequest.prototype.toObject = function(opt_ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetAllKubesRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.GetAllKubesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetAllKubesRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.GetAllKubesRequest.toObject = function(includeInstance, msg) { var f, obj = { clusterUri: jspb.Message.getFieldWithDefault(msg, 1, "") }; @@ -9816,23 +9816,23 @@ proto.teleport.terminal.v1.GetAllKubesRequest.toObject = function(includeInstanc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetAllKubesRequest} + * @return {!proto.teleport.lib.teleterm.v1.GetAllKubesRequest} */ -proto.teleport.terminal.v1.GetAllKubesRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.GetAllKubesRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetAllKubesRequest; - return proto.teleport.terminal.v1.GetAllKubesRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.GetAllKubesRequest; + return proto.teleport.lib.teleterm.v1.GetAllKubesRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetAllKubesRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.GetAllKubesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetAllKubesRequest} + * @return {!proto.teleport.lib.teleterm.v1.GetAllKubesRequest} */ -proto.teleport.terminal.v1.GetAllKubesRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.GetAllKubesRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9856,9 +9856,9 @@ proto.teleport.terminal.v1.GetAllKubesRequest.deserializeBinaryFromReader = func * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.GetAllKubesRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.GetAllKubesRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetAllKubesRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.GetAllKubesRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9866,11 +9866,11 @@ proto.teleport.terminal.v1.GetAllKubesRequest.prototype.serializeBinary = functi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetAllKubesRequest} message + * @param {!proto.teleport.lib.teleterm.v1.GetAllKubesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetAllKubesRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.GetAllKubesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClusterUri(); if (f.length > 0) { @@ -9886,16 +9886,16 @@ proto.teleport.terminal.v1.GetAllKubesRequest.serializeBinaryToWriter = function * optional string cluster_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.GetAllKubesRequest.prototype.getClusterUri = function() { +proto.teleport.lib.teleterm.v1.GetAllKubesRequest.prototype.getClusterUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetAllKubesRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetAllKubesRequest} returns this */ -proto.teleport.terminal.v1.GetAllKubesRequest.prototype.setClusterUri = function(value) { +proto.teleport.lib.teleterm.v1.GetAllKubesRequest.prototype.setClusterUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -9906,7 +9906,7 @@ proto.teleport.terminal.v1.GetAllKubesRequest.prototype.setClusterUri = function * @private {!Array} * @const */ -proto.teleport.terminal.v1.GetAllKubesResponse.repeatedFields_ = [1]; +proto.teleport.lib.teleterm.v1.GetAllKubesResponse.repeatedFields_ = [1]; @@ -9923,8 +9923,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.GetAllKubesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetAllKubesResponse.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.GetAllKubesResponse.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.GetAllKubesResponse.toObject(opt_includeInstance, this); }; @@ -9933,14 +9933,14 @@ proto.teleport.terminal.v1.GetAllKubesResponse.prototype.toObject = function(opt * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetAllKubesResponse} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.GetAllKubesResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetAllKubesResponse.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.GetAllKubesResponse.toObject = function(includeInstance, msg) { var f, obj = { kubesList: jspb.Message.toObjectList(msg.getKubesList(), - v1_kube_pb.Kube.toObject, includeInstance) + teleport_lib_teleterm_v1_kube_pb.Kube.toObject, includeInstance) }; if (includeInstance) { @@ -9954,23 +9954,23 @@ proto.teleport.terminal.v1.GetAllKubesResponse.toObject = function(includeInstan /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetAllKubesResponse} + * @return {!proto.teleport.lib.teleterm.v1.GetAllKubesResponse} */ -proto.teleport.terminal.v1.GetAllKubesResponse.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.GetAllKubesResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetAllKubesResponse; - return proto.teleport.terminal.v1.GetAllKubesResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.GetAllKubesResponse; + return proto.teleport.lib.teleterm.v1.GetAllKubesResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetAllKubesResponse} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.GetAllKubesResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetAllKubesResponse} + * @return {!proto.teleport.lib.teleterm.v1.GetAllKubesResponse} */ -proto.teleport.terminal.v1.GetAllKubesResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.GetAllKubesResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9978,8 +9978,8 @@ proto.teleport.terminal.v1.GetAllKubesResponse.deserializeBinaryFromReader = fun var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new v1_kube_pb.Kube; - reader.readMessage(value,v1_kube_pb.Kube.deserializeBinaryFromReader); + var value = new teleport_lib_teleterm_v1_kube_pb.Kube; + reader.readMessage(value,teleport_lib_teleterm_v1_kube_pb.Kube.deserializeBinaryFromReader); msg.addKubes(value); break; default: @@ -9995,9 +9995,9 @@ proto.teleport.terminal.v1.GetAllKubesResponse.deserializeBinaryFromReader = fun * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.GetAllKubesResponse.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.GetAllKubesResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetAllKubesResponse.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.GetAllKubesResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -10005,18 +10005,18 @@ proto.teleport.terminal.v1.GetAllKubesResponse.prototype.serializeBinary = funct /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetAllKubesResponse} message + * @param {!proto.teleport.lib.teleterm.v1.GetAllKubesResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetAllKubesResponse.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.GetAllKubesResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getKubesList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, - v1_kube_pb.Kube.serializeBinaryToWriter + teleport_lib_teleterm_v1_kube_pb.Kube.serializeBinaryToWriter ); } }; @@ -10024,38 +10024,38 @@ proto.teleport.terminal.v1.GetAllKubesResponse.serializeBinaryToWriter = functio /** * repeated Kube kubes = 1; - * @return {!Array} + * @return {!Array} */ -proto.teleport.terminal.v1.GetAllKubesResponse.prototype.getKubesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_kube_pb.Kube, 1)); +proto.teleport.lib.teleterm.v1.GetAllKubesResponse.prototype.getKubesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, teleport_lib_teleterm_v1_kube_pb.Kube, 1)); }; /** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.GetAllKubesResponse} returns this + * @param {!Array} value + * @return {!proto.teleport.lib.teleterm.v1.GetAllKubesResponse} returns this */ -proto.teleport.terminal.v1.GetAllKubesResponse.prototype.setKubesList = function(value) { +proto.teleport.lib.teleterm.v1.GetAllKubesResponse.prototype.setKubesList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * @param {!proto.teleport.terminal.v1.Kube=} opt_value + * @param {!proto.teleport.lib.teleterm.v1.Kube=} opt_value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.Kube} + * @return {!proto.teleport.lib.teleterm.v1.Kube} */ -proto.teleport.terminal.v1.GetAllKubesResponse.prototype.addKubes = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.terminal.v1.Kube, opt_index); +proto.teleport.lib.teleterm.v1.GetAllKubesResponse.prototype.addKubes = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.lib.teleterm.v1.Kube, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.GetAllKubesResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetAllKubesResponse} returns this */ -proto.teleport.terminal.v1.GetAllKubesResponse.prototype.clearKubesList = function() { +proto.teleport.lib.teleterm.v1.GetAllKubesResponse.prototype.clearKubesList = function() { return this.setKubesList([]); }; @@ -10076,8 +10076,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetKubesRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.GetKubesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.GetKubesRequest.toObject(opt_includeInstance, this); }; @@ -10086,11 +10086,11 @@ proto.teleport.terminal.v1.GetKubesRequest.prototype.toObject = function(opt_inc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetKubesRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.GetKubesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetKubesRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.GetKubesRequest.toObject = function(includeInstance, msg) { var f, obj = { clusterUri: jspb.Message.getFieldWithDefault(msg, 1, ""), limit: jspb.Message.getFieldWithDefault(msg, 2, 0), @@ -10112,23 +10112,23 @@ proto.teleport.terminal.v1.GetKubesRequest.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetKubesRequest} + * @return {!proto.teleport.lib.teleterm.v1.GetKubesRequest} */ -proto.teleport.terminal.v1.GetKubesRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.GetKubesRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetKubesRequest; - return proto.teleport.terminal.v1.GetKubesRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.GetKubesRequest; + return proto.teleport.lib.teleterm.v1.GetKubesRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetKubesRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.GetKubesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetKubesRequest} + * @return {!proto.teleport.lib.teleterm.v1.GetKubesRequest} */ -proto.teleport.terminal.v1.GetKubesRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.GetKubesRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -10176,9 +10176,9 @@ proto.teleport.terminal.v1.GetKubesRequest.deserializeBinaryFromReader = functio * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.GetKubesRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetKubesRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.GetKubesRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -10186,11 +10186,11 @@ proto.teleport.terminal.v1.GetKubesRequest.prototype.serializeBinary = function( /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetKubesRequest} message + * @param {!proto.teleport.lib.teleterm.v1.GetKubesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetKubesRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.GetKubesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClusterUri(); if (f.length > 0) { @@ -10248,16 +10248,16 @@ proto.teleport.terminal.v1.GetKubesRequest.serializeBinaryToWriter = function(me * optional string cluster_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.getClusterUri = function() { +proto.teleport.lib.teleterm.v1.GetKubesRequest.prototype.getClusterUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetKubesRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetKubesRequest} returns this */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.setClusterUri = function(value) { +proto.teleport.lib.teleterm.v1.GetKubesRequest.prototype.setClusterUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -10266,16 +10266,16 @@ proto.teleport.terminal.v1.GetKubesRequest.prototype.setClusterUri = function(va * optional int32 limit = 2; * @return {number} */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.getLimit = function() { +proto.teleport.lib.teleterm.v1.GetKubesRequest.prototype.getLimit = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value - * @return {!proto.teleport.terminal.v1.GetKubesRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetKubesRequest} returns this */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.setLimit = function(value) { +proto.teleport.lib.teleterm.v1.GetKubesRequest.prototype.setLimit = function(value) { return jspb.Message.setProto3IntField(this, 2, value); }; @@ -10284,16 +10284,16 @@ proto.teleport.terminal.v1.GetKubesRequest.prototype.setLimit = function(value) * optional string start_key = 3; * @return {string} */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.getStartKey = function() { +proto.teleport.lib.teleterm.v1.GetKubesRequest.prototype.getStartKey = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetKubesRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetKubesRequest} returns this */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.setStartKey = function(value) { +proto.teleport.lib.teleterm.v1.GetKubesRequest.prototype.setStartKey = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; @@ -10302,16 +10302,16 @@ proto.teleport.terminal.v1.GetKubesRequest.prototype.setStartKey = function(valu * optional string search = 4; * @return {string} */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.getSearch = function() { +proto.teleport.lib.teleterm.v1.GetKubesRequest.prototype.getSearch = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetKubesRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetKubesRequest} returns this */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.setSearch = function(value) { +proto.teleport.lib.teleterm.v1.GetKubesRequest.prototype.setSearch = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; @@ -10320,16 +10320,16 @@ proto.teleport.terminal.v1.GetKubesRequest.prototype.setSearch = function(value) * optional string query = 5; * @return {string} */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.getQuery = function() { +proto.teleport.lib.teleterm.v1.GetKubesRequest.prototype.getQuery = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetKubesRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetKubesRequest} returns this */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.setQuery = function(value) { +proto.teleport.lib.teleterm.v1.GetKubesRequest.prototype.setQuery = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; @@ -10338,16 +10338,16 @@ proto.teleport.terminal.v1.GetKubesRequest.prototype.setQuery = function(value) * optional string sort_by = 6; * @return {string} */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.getSortBy = function() { +proto.teleport.lib.teleterm.v1.GetKubesRequest.prototype.getSortBy = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetKubesRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetKubesRequest} returns this */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.setSortBy = function(value) { +proto.teleport.lib.teleterm.v1.GetKubesRequest.prototype.setSortBy = function(value) { return jspb.Message.setProto3StringField(this, 6, value); }; @@ -10356,16 +10356,16 @@ proto.teleport.terminal.v1.GetKubesRequest.prototype.setSortBy = function(value) * optional string search_as_roles = 7; * @return {string} */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.getSearchAsRoles = function() { +proto.teleport.lib.teleterm.v1.GetKubesRequest.prototype.getSearchAsRoles = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetKubesRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetKubesRequest} returns this */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.setSearchAsRoles = function(value) { +proto.teleport.lib.teleterm.v1.GetKubesRequest.prototype.setSearchAsRoles = function(value) { return jspb.Message.setProto3StringField(this, 7, value); }; @@ -10376,7 +10376,7 @@ proto.teleport.terminal.v1.GetKubesRequest.prototype.setSearchAsRoles = function * @private {!Array} * @const */ -proto.teleport.terminal.v1.GetKubesResponse.repeatedFields_ = [1]; +proto.teleport.lib.teleterm.v1.GetKubesResponse.repeatedFields_ = [1]; @@ -10393,8 +10393,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.GetKubesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetKubesResponse.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.GetKubesResponse.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.GetKubesResponse.toObject(opt_includeInstance, this); }; @@ -10403,14 +10403,14 @@ proto.teleport.terminal.v1.GetKubesResponse.prototype.toObject = function(opt_in * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetKubesResponse} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.GetKubesResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetKubesResponse.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.GetKubesResponse.toObject = function(includeInstance, msg) { var f, obj = { agentsList: jspb.Message.toObjectList(msg.getAgentsList(), - v1_kube_pb.Kube.toObject, includeInstance), + teleport_lib_teleterm_v1_kube_pb.Kube.toObject, includeInstance), totalCount: jspb.Message.getFieldWithDefault(msg, 2, 0), startKey: jspb.Message.getFieldWithDefault(msg, 3, "") }; @@ -10426,23 +10426,23 @@ proto.teleport.terminal.v1.GetKubesResponse.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetKubesResponse} + * @return {!proto.teleport.lib.teleterm.v1.GetKubesResponse} */ -proto.teleport.terminal.v1.GetKubesResponse.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.GetKubesResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetKubesResponse; - return proto.teleport.terminal.v1.GetKubesResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.GetKubesResponse; + return proto.teleport.lib.teleterm.v1.GetKubesResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetKubesResponse} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.GetKubesResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetKubesResponse} + * @return {!proto.teleport.lib.teleterm.v1.GetKubesResponse} */ -proto.teleport.terminal.v1.GetKubesResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.GetKubesResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -10450,8 +10450,8 @@ proto.teleport.terminal.v1.GetKubesResponse.deserializeBinaryFromReader = functi var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new v1_kube_pb.Kube; - reader.readMessage(value,v1_kube_pb.Kube.deserializeBinaryFromReader); + var value = new teleport_lib_teleterm_v1_kube_pb.Kube; + reader.readMessage(value,teleport_lib_teleterm_v1_kube_pb.Kube.deserializeBinaryFromReader); msg.addAgents(value); break; case 2: @@ -10475,9 +10475,9 @@ proto.teleport.terminal.v1.GetKubesResponse.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.GetKubesResponse.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.GetKubesResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetKubesResponse.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.GetKubesResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -10485,18 +10485,18 @@ proto.teleport.terminal.v1.GetKubesResponse.prototype.serializeBinary = function /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetKubesResponse} message + * @param {!proto.teleport.lib.teleterm.v1.GetKubesResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetKubesResponse.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.GetKubesResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getAgentsList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, - v1_kube_pb.Kube.serializeBinaryToWriter + teleport_lib_teleterm_v1_kube_pb.Kube.serializeBinaryToWriter ); } f = message.getTotalCount(); @@ -10518,38 +10518,38 @@ proto.teleport.terminal.v1.GetKubesResponse.serializeBinaryToWriter = function(m /** * repeated Kube agents = 1; - * @return {!Array} + * @return {!Array} */ -proto.teleport.terminal.v1.GetKubesResponse.prototype.getAgentsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_kube_pb.Kube, 1)); +proto.teleport.lib.teleterm.v1.GetKubesResponse.prototype.getAgentsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, teleport_lib_teleterm_v1_kube_pb.Kube, 1)); }; /** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.GetKubesResponse} returns this + * @param {!Array} value + * @return {!proto.teleport.lib.teleterm.v1.GetKubesResponse} returns this */ -proto.teleport.terminal.v1.GetKubesResponse.prototype.setAgentsList = function(value) { +proto.teleport.lib.teleterm.v1.GetKubesResponse.prototype.setAgentsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * @param {!proto.teleport.terminal.v1.Kube=} opt_value + * @param {!proto.teleport.lib.teleterm.v1.Kube=} opt_value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.Kube} + * @return {!proto.teleport.lib.teleterm.v1.Kube} */ -proto.teleport.terminal.v1.GetKubesResponse.prototype.addAgents = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.terminal.v1.Kube, opt_index); +proto.teleport.lib.teleterm.v1.GetKubesResponse.prototype.addAgents = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.lib.teleterm.v1.Kube, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.GetKubesResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetKubesResponse} returns this */ -proto.teleport.terminal.v1.GetKubesResponse.prototype.clearAgentsList = function() { +proto.teleport.lib.teleterm.v1.GetKubesResponse.prototype.clearAgentsList = function() { return this.setAgentsList([]); }; @@ -10558,16 +10558,16 @@ proto.teleport.terminal.v1.GetKubesResponse.prototype.clearAgentsList = function * optional int32 total_count = 2; * @return {number} */ -proto.teleport.terminal.v1.GetKubesResponse.prototype.getTotalCount = function() { +proto.teleport.lib.teleterm.v1.GetKubesResponse.prototype.getTotalCount = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value - * @return {!proto.teleport.terminal.v1.GetKubesResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetKubesResponse} returns this */ -proto.teleport.terminal.v1.GetKubesResponse.prototype.setTotalCount = function(value) { +proto.teleport.lib.teleterm.v1.GetKubesResponse.prototype.setTotalCount = function(value) { return jspb.Message.setProto3IntField(this, 2, value); }; @@ -10576,16 +10576,16 @@ proto.teleport.terminal.v1.GetKubesResponse.prototype.setTotalCount = function(v * optional string start_key = 3; * @return {string} */ -proto.teleport.terminal.v1.GetKubesResponse.prototype.getStartKey = function() { +proto.teleport.lib.teleterm.v1.GetKubesResponse.prototype.getStartKey = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetKubesResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetKubesResponse} returns this */ -proto.teleport.terminal.v1.GetKubesResponse.prototype.setStartKey = function(value) { +proto.teleport.lib.teleterm.v1.GetKubesResponse.prototype.setStartKey = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; @@ -10596,7 +10596,7 @@ proto.teleport.terminal.v1.GetKubesResponse.prototype.setStartKey = function(val * @private {!Array} * @const */ -proto.teleport.terminal.v1.ListAppsResponse.repeatedFields_ = [1]; +proto.teleport.lib.teleterm.v1.ListAppsResponse.repeatedFields_ = [1]; @@ -10613,8 +10613,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.ListAppsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ListAppsResponse.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.ListAppsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.ListAppsResponse.toObject(opt_includeInstance, this); }; @@ -10623,14 +10623,14 @@ proto.teleport.terminal.v1.ListAppsResponse.prototype.toObject = function(opt_in * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ListAppsResponse} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.ListAppsResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ListAppsResponse.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.ListAppsResponse.toObject = function(includeInstance, msg) { var f, obj = { appsList: jspb.Message.toObjectList(msg.getAppsList(), - v1_app_pb.App.toObject, includeInstance) + teleport_lib_teleterm_v1_app_pb.App.toObject, includeInstance) }; if (includeInstance) { @@ -10644,23 +10644,23 @@ proto.teleport.terminal.v1.ListAppsResponse.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ListAppsResponse} + * @return {!proto.teleport.lib.teleterm.v1.ListAppsResponse} */ -proto.teleport.terminal.v1.ListAppsResponse.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.ListAppsResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ListAppsResponse; - return proto.teleport.terminal.v1.ListAppsResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.ListAppsResponse; + return proto.teleport.lib.teleterm.v1.ListAppsResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ListAppsResponse} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.ListAppsResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ListAppsResponse} + * @return {!proto.teleport.lib.teleterm.v1.ListAppsResponse} */ -proto.teleport.terminal.v1.ListAppsResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.ListAppsResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -10668,8 +10668,8 @@ proto.teleport.terminal.v1.ListAppsResponse.deserializeBinaryFromReader = functi var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new v1_app_pb.App; - reader.readMessage(value,v1_app_pb.App.deserializeBinaryFromReader); + var value = new teleport_lib_teleterm_v1_app_pb.App; + reader.readMessage(value,teleport_lib_teleterm_v1_app_pb.App.deserializeBinaryFromReader); msg.addApps(value); break; default: @@ -10685,9 +10685,9 @@ proto.teleport.terminal.v1.ListAppsResponse.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.ListAppsResponse.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.ListAppsResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ListAppsResponse.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.ListAppsResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -10695,18 +10695,18 @@ proto.teleport.terminal.v1.ListAppsResponse.prototype.serializeBinary = function /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ListAppsResponse} message + * @param {!proto.teleport.lib.teleterm.v1.ListAppsResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ListAppsResponse.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.ListAppsResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getAppsList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, - v1_app_pb.App.serializeBinaryToWriter + teleport_lib_teleterm_v1_app_pb.App.serializeBinaryToWriter ); } }; @@ -10714,38 +10714,38 @@ proto.teleport.terminal.v1.ListAppsResponse.serializeBinaryToWriter = function(m /** * repeated App apps = 1; - * @return {!Array} + * @return {!Array} */ -proto.teleport.terminal.v1.ListAppsResponse.prototype.getAppsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_app_pb.App, 1)); +proto.teleport.lib.teleterm.v1.ListAppsResponse.prototype.getAppsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, teleport_lib_teleterm_v1_app_pb.App, 1)); }; /** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.ListAppsResponse} returns this + * @param {!Array} value + * @return {!proto.teleport.lib.teleterm.v1.ListAppsResponse} returns this */ -proto.teleport.terminal.v1.ListAppsResponse.prototype.setAppsList = function(value) { +proto.teleport.lib.teleterm.v1.ListAppsResponse.prototype.setAppsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * @param {!proto.teleport.terminal.v1.App=} opt_value + * @param {!proto.teleport.lib.teleterm.v1.App=} opt_value * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.App} + * @return {!proto.teleport.lib.teleterm.v1.App} */ -proto.teleport.terminal.v1.ListAppsResponse.prototype.addApps = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.terminal.v1.App, opt_index); +proto.teleport.lib.teleterm.v1.ListAppsResponse.prototype.addApps = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.lib.teleterm.v1.App, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.ListAppsResponse} returns this + * @return {!proto.teleport.lib.teleterm.v1.ListAppsResponse} returns this */ -proto.teleport.terminal.v1.ListAppsResponse.prototype.clearAppsList = function() { +proto.teleport.lib.teleterm.v1.ListAppsResponse.prototype.clearAppsList = function() { return this.setAppsList([]); }; @@ -10766,8 +10766,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.GetAuthSettingsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetAuthSettingsRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.GetAuthSettingsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.GetAuthSettingsRequest.toObject(opt_includeInstance, this); }; @@ -10776,11 +10776,11 @@ proto.teleport.terminal.v1.GetAuthSettingsRequest.prototype.toObject = function( * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetAuthSettingsRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.GetAuthSettingsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetAuthSettingsRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.GetAuthSettingsRequest.toObject = function(includeInstance, msg) { var f, obj = { clusterUri: jspb.Message.getFieldWithDefault(msg, 1, "") }; @@ -10796,23 +10796,23 @@ proto.teleport.terminal.v1.GetAuthSettingsRequest.toObject = function(includeIns /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetAuthSettingsRequest} + * @return {!proto.teleport.lib.teleterm.v1.GetAuthSettingsRequest} */ -proto.teleport.terminal.v1.GetAuthSettingsRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.GetAuthSettingsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetAuthSettingsRequest; - return proto.teleport.terminal.v1.GetAuthSettingsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.GetAuthSettingsRequest; + return proto.teleport.lib.teleterm.v1.GetAuthSettingsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetAuthSettingsRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.GetAuthSettingsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetAuthSettingsRequest} + * @return {!proto.teleport.lib.teleterm.v1.GetAuthSettingsRequest} */ -proto.teleport.terminal.v1.GetAuthSettingsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.GetAuthSettingsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -10836,9 +10836,9 @@ proto.teleport.terminal.v1.GetAuthSettingsRequest.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.GetAuthSettingsRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.GetAuthSettingsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetAuthSettingsRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.GetAuthSettingsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -10846,11 +10846,11 @@ proto.teleport.terminal.v1.GetAuthSettingsRequest.prototype.serializeBinary = fu /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetAuthSettingsRequest} message + * @param {!proto.teleport.lib.teleterm.v1.GetAuthSettingsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GetAuthSettingsRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.GetAuthSettingsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClusterUri(); if (f.length > 0) { @@ -10866,16 +10866,16 @@ proto.teleport.terminal.v1.GetAuthSettingsRequest.serializeBinaryToWriter = func * optional string cluster_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.GetAuthSettingsRequest.prototype.getClusterUri = function() { +proto.teleport.lib.teleterm.v1.GetAuthSettingsRequest.prototype.getClusterUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GetAuthSettingsRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.GetAuthSettingsRequest} returns this */ -proto.teleport.terminal.v1.GetAuthSettingsRequest.prototype.setClusterUri = function(value) { +proto.teleport.lib.teleterm.v1.GetAuthSettingsRequest.prototype.setClusterUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -10896,8 +10896,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest.toObject(opt_includeInstance, this); }; @@ -10906,11 +10906,11 @@ proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.prototype.toObje * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest.toObject = function(includeInstance, msg) { var f, obj = { address: jspb.Message.getFieldWithDefault(msg, 1, "") }; @@ -10926,23 +10926,23 @@ proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.toObject = funct /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest} + * @return {!proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest} */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest; - return proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest; + return proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest} + * @return {!proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest} */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -10966,9 +10966,9 @@ proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.deserializeBinar * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -10976,11 +10976,11 @@ proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.prototype.serial /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest} message + * @param {!proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getAddress(); if (f.length > 0) { @@ -10996,16 +10996,16 @@ proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.serializeBinaryT * optional string address = 1; * @return {string} */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.prototype.getAddress = function() { +proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest.prototype.getAddress = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest} returns this */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.prototype.setAddress = function(value) { +proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest.prototype.setAddress = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -11026,8 +11026,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressResponse.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressResponse.toObject(opt_includeInstance, this); }; @@ -11036,11 +11036,11 @@ proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse.prototype.toObj * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressResponse.toObject = function(includeInstance, msg) { var f, obj = { }; @@ -11056,23 +11056,23 @@ proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse.toObject = func /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse} + * @return {!proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressResponse} */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse; - return proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressResponse; + return proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse} + * @return {!proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressResponse} */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -11092,9 +11092,9 @@ proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse.deserializeBina * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -11102,11 +11102,11 @@ proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse.prototype.seria /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse} message + * @param {!proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; @@ -11114,7 +11114,7 @@ proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse.serializeBinary /** * @enum {number} */ -proto.teleport.terminal.v1.PasswordlessPrompt = { +proto.teleport.lib.teleterm.v1.PasswordlessPrompt = { PASSWORDLESS_PROMPT_UNSPECIFIED: 0, PASSWORDLESS_PROMPT_PIN: 1, PASSWORDLESS_PROMPT_TAP: 2, @@ -11124,10 +11124,10 @@ proto.teleport.terminal.v1.PasswordlessPrompt = { /** * @enum {number} */ -proto.teleport.terminal.v1.FileTransferDirection = { +proto.teleport.lib.teleterm.v1.FileTransferDirection = { FILE_TRANSFER_DIRECTION_UNSPECIFIED: 0, FILE_TRANSFER_DIRECTION_DOWNLOAD: 1, FILE_TRANSFER_DIRECTION_UPLOAD: 2 }; -goog.object.extend(exports, proto.teleport.terminal.v1); +goog.object.extend(exports, proto.teleport.lib.teleterm.v1); diff --git a/gen/proto/js/teleport/lib/teleterm/v1/tshd_events_service_grpc_pb.d.ts b/gen/proto/js/teleport/lib/teleterm/v1/tshd_events_service_grpc_pb.d.ts new file mode 100644 index 0000000000000..897faf207a9c1 --- /dev/null +++ b/gen/proto/js/teleport/lib/teleterm/v1/tshd_events_service_grpc_pb.d.ts @@ -0,0 +1,58 @@ +// package: teleport.lib.teleterm.v1 +// file: teleport/lib/teleterm/v1/tshd_events_service.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as grpc from "grpc"; +import * as teleport_lib_teleterm_v1_tshd_events_service_pb from "../../../../teleport/lib/teleterm/v1/tshd_events_service_pb"; + +interface ITshdEventsServiceService extends grpc.ServiceDefinition { + relogin: ITshdEventsServiceService_IRelogin; + sendNotification: ITshdEventsServiceService_ISendNotification; +} + +interface ITshdEventsServiceService_IRelogin extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TshdEventsService/Relogin"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITshdEventsServiceService_ISendNotification extends grpc.MethodDefinition { + path: "/teleport.lib.teleterm.v1.TshdEventsService/SendNotification"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +export const TshdEventsServiceService: ITshdEventsServiceService; + +export interface ITshdEventsServiceServer { + relogin: grpc.handleUnaryCall; + sendNotification: grpc.handleUnaryCall; +} + +export interface ITshdEventsServiceClient { + relogin(request: teleport_lib_teleterm_v1_tshd_events_service_pb.ReloginRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_tshd_events_service_pb.ReloginResponse) => void): grpc.ClientUnaryCall; + relogin(request: teleport_lib_teleterm_v1_tshd_events_service_pb.ReloginRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_tshd_events_service_pb.ReloginResponse) => void): grpc.ClientUnaryCall; + relogin(request: teleport_lib_teleterm_v1_tshd_events_service_pb.ReloginRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_tshd_events_service_pb.ReloginResponse) => void): grpc.ClientUnaryCall; + sendNotification(request: teleport_lib_teleterm_v1_tshd_events_service_pb.SendNotificationRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_tshd_events_service_pb.SendNotificationResponse) => void): grpc.ClientUnaryCall; + sendNotification(request: teleport_lib_teleterm_v1_tshd_events_service_pb.SendNotificationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_tshd_events_service_pb.SendNotificationResponse) => void): grpc.ClientUnaryCall; + sendNotification(request: teleport_lib_teleterm_v1_tshd_events_service_pb.SendNotificationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_tshd_events_service_pb.SendNotificationResponse) => void): grpc.ClientUnaryCall; +} + +export class TshdEventsServiceClient extends grpc.Client implements ITshdEventsServiceClient { + constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); + public relogin(request: teleport_lib_teleterm_v1_tshd_events_service_pb.ReloginRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_tshd_events_service_pb.ReloginResponse) => void): grpc.ClientUnaryCall; + public relogin(request: teleport_lib_teleterm_v1_tshd_events_service_pb.ReloginRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_tshd_events_service_pb.ReloginResponse) => void): grpc.ClientUnaryCall; + public relogin(request: teleport_lib_teleterm_v1_tshd_events_service_pb.ReloginRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_tshd_events_service_pb.ReloginResponse) => void): grpc.ClientUnaryCall; + public sendNotification(request: teleport_lib_teleterm_v1_tshd_events_service_pb.SendNotificationRequest, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_tshd_events_service_pb.SendNotificationResponse) => void): grpc.ClientUnaryCall; + public sendNotification(request: teleport_lib_teleterm_v1_tshd_events_service_pb.SendNotificationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_tshd_events_service_pb.SendNotificationResponse) => void): grpc.ClientUnaryCall; + public sendNotification(request: teleport_lib_teleterm_v1_tshd_events_service_pb.SendNotificationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: teleport_lib_teleterm_v1_tshd_events_service_pb.SendNotificationResponse) => void): grpc.ClientUnaryCall; +} diff --git a/gen/proto/js/teleport/lib/teleterm/v1/tshd_events_service_grpc_pb.js b/gen/proto/js/teleport/lib/teleterm/v1/tshd_events_service_grpc_pb.js new file mode 100644 index 0000000000000..31992a064c34c --- /dev/null +++ b/gen/proto/js/teleport/lib/teleterm/v1/tshd_events_service_grpc_pb.js @@ -0,0 +1,99 @@ +// GENERATED CODE -- DO NOT EDIT! + +// Original file comments: +// Copyright 2022 Gravitational, Inc +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +'use strict'; +var grpc = require('@grpc/grpc-js'); +var teleport_lib_teleterm_v1_tshd_events_service_pb = require('../../../../teleport/lib/teleterm/v1/tshd_events_service_pb.js'); + +function serialize_teleport_lib_teleterm_v1_ReloginRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_tshd_events_service_pb.ReloginRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.ReloginRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_ReloginRequest(buffer_arg) { + return teleport_lib_teleterm_v1_tshd_events_service_pb.ReloginRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_ReloginResponse(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_tshd_events_service_pb.ReloginResponse)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.ReloginResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_ReloginResponse(buffer_arg) { + return teleport_lib_teleterm_v1_tshd_events_service_pb.ReloginResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_SendNotificationRequest(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_tshd_events_service_pb.SendNotificationRequest)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.SendNotificationRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_SendNotificationRequest(buffer_arg) { + return teleport_lib_teleterm_v1_tshd_events_service_pb.SendNotificationRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_teleport_lib_teleterm_v1_SendNotificationResponse(arg) { + if (!(arg instanceof teleport_lib_teleterm_v1_tshd_events_service_pb.SendNotificationResponse)) { + throw new Error('Expected argument of type teleport.lib.teleterm.v1.SendNotificationResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_teleport_lib_teleterm_v1_SendNotificationResponse(buffer_arg) { + return teleport_lib_teleterm_v1_tshd_events_service_pb.SendNotificationResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + + +// TshdEventsService is served by the Electron app. The tsh daemon calls this service to notify the +// app about actions that happen outside of the app itself. +var TshdEventsServiceService = exports.TshdEventsServiceService = { + // Relogin makes the Electron app display a login modal for the specific root cluster. The request +// returns a response after the relogin procedure has been successfully finished. +relogin: { + path: '/teleport.lib.teleterm.v1.TshdEventsService/Relogin', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_tshd_events_service_pb.ReloginRequest, + responseType: teleport_lib_teleterm_v1_tshd_events_service_pb.ReloginResponse, + requestSerialize: serialize_teleport_lib_teleterm_v1_ReloginRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_ReloginRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_ReloginResponse, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_ReloginResponse, + }, + // SendNotification causes the Electron app to display a notification in the UI. The request +// accepts a specific message rather than a generic string so that the Electron is in control as +// to what message is displayed and how exactly it looks. +sendNotification: { + path: '/teleport.lib.teleterm.v1.TshdEventsService/SendNotification', + requestStream: false, + responseStream: false, + requestType: teleport_lib_teleterm_v1_tshd_events_service_pb.SendNotificationRequest, + responseType: teleport_lib_teleterm_v1_tshd_events_service_pb.SendNotificationResponse, + requestSerialize: serialize_teleport_lib_teleterm_v1_SendNotificationRequest, + requestDeserialize: deserialize_teleport_lib_teleterm_v1_SendNotificationRequest, + responseSerialize: serialize_teleport_lib_teleterm_v1_SendNotificationResponse, + responseDeserialize: deserialize_teleport_lib_teleterm_v1_SendNotificationResponse, + }, +}; + +exports.TshdEventsServiceClient = grpc.makeGenericClientConstructor(TshdEventsServiceService); diff --git a/lib/teleterm/api/protogen/js/v1/tshd_events_service_pb.d.ts b/gen/proto/js/teleport/lib/teleterm/v1/tshd_events_service_pb.d.ts similarity index 98% rename from lib/teleterm/api/protogen/js/v1/tshd_events_service_pb.d.ts rename to gen/proto/js/teleport/lib/teleterm/v1/tshd_events_service_pb.d.ts index 1c1f59330ddf6..ce975ebf84cd6 100644 --- a/lib/teleterm/api/protogen/js/v1/tshd_events_service_pb.d.ts +++ b/gen/proto/js/teleport/lib/teleterm/v1/tshd_events_service_pb.d.ts @@ -1,5 +1,5 @@ -// package: teleport.terminal.v1 -// file: v1/tshd_events_service.proto +// package: teleport.lib.teleterm.v1 +// file: teleport/lib/teleterm/v1/tshd_events_service.proto /* tslint:disable */ /* eslint-disable */ diff --git a/lib/teleterm/api/protogen/js/v1/tshd_events_service_pb.js b/gen/proto/js/teleport/lib/teleterm/v1/tshd_events_service_pb.js similarity index 59% rename from lib/teleterm/api/protogen/js/v1/tshd_events_service_pb.js rename to gen/proto/js/teleport/lib/teleterm/v1/tshd_events_service_pb.js index 972ae81ea18e7..fa4d8b3b8c66e 100644 --- a/lib/teleterm/api/protogen/js/v1/tshd_events_service_pb.js +++ b/gen/proto/js/teleport/lib/teleterm/v1/tshd_events_service_pb.js @@ -1,4 +1,4 @@ -// source: v1/tshd_events_service.proto +// source: teleport/lib/teleterm/v1/tshd_events_service.proto /** * @fileoverview * @enhanceable @@ -15,14 +15,14 @@ var jspb = require('google-protobuf'); var goog = jspb; var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); -goog.exportSymbol('proto.teleport.terminal.v1.CannotProxyGatewayConnection', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GatewayCertExpired', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ReloginRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ReloginRequest.ReasonCase', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ReloginResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.SendNotificationRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.SendNotificationRequest.SubjectCase', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.SendNotificationResponse', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.GatewayCertExpired', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.ReloginRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.ReloginRequest.ReasonCase', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.ReloginResponse', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.SendNotificationRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.SendNotificationRequest.SubjectCase', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.SendNotificationResponse', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -33,16 +33,16 @@ goog.exportSymbol('proto.teleport.terminal.v1.SendNotificationResponse', null, g * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.ReloginRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.teleport.terminal.v1.ReloginRequest.oneofGroups_); +proto.teleport.lib.teleterm.v1.ReloginRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.teleport.lib.teleterm.v1.ReloginRequest.oneofGroups_); }; -goog.inherits(proto.teleport.terminal.v1.ReloginRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.ReloginRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.ReloginRequest.displayName = 'proto.teleport.terminal.v1.ReloginRequest'; + proto.teleport.lib.teleterm.v1.ReloginRequest.displayName = 'proto.teleport.lib.teleterm.v1.ReloginRequest'; } /** * Generated by JsPbCodeGenerator. @@ -54,16 +54,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.GatewayCertExpired = function(opt_data) { +proto.teleport.lib.teleterm.v1.GatewayCertExpired = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.GatewayCertExpired, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.GatewayCertExpired, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.GatewayCertExpired.displayName = 'proto.teleport.terminal.v1.GatewayCertExpired'; + proto.teleport.lib.teleterm.v1.GatewayCertExpired.displayName = 'proto.teleport.lib.teleterm.v1.GatewayCertExpired'; } /** * Generated by JsPbCodeGenerator. @@ -75,16 +75,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.ReloginResponse = function(opt_data) { +proto.teleport.lib.teleterm.v1.ReloginResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.ReloginResponse, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.ReloginResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.ReloginResponse.displayName = 'proto.teleport.terminal.v1.ReloginResponse'; + proto.teleport.lib.teleterm.v1.ReloginResponse.displayName = 'proto.teleport.lib.teleterm.v1.ReloginResponse'; } /** * Generated by JsPbCodeGenerator. @@ -96,16 +96,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.SendNotificationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.teleport.terminal.v1.SendNotificationRequest.oneofGroups_); +proto.teleport.lib.teleterm.v1.SendNotificationRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.teleport.lib.teleterm.v1.SendNotificationRequest.oneofGroups_); }; -goog.inherits(proto.teleport.terminal.v1.SendNotificationRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.SendNotificationRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.SendNotificationRequest.displayName = 'proto.teleport.terminal.v1.SendNotificationRequest'; + proto.teleport.lib.teleterm.v1.SendNotificationRequest.displayName = 'proto.teleport.lib.teleterm.v1.SendNotificationRequest'; } /** * Generated by JsPbCodeGenerator. @@ -117,16 +117,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.CannotProxyGatewayConnection = function(opt_data) { +proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.CannotProxyGatewayConnection, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.CannotProxyGatewayConnection.displayName = 'proto.teleport.terminal.v1.CannotProxyGatewayConnection'; + proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection.displayName = 'proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection'; } /** * Generated by JsPbCodeGenerator. @@ -138,16 +138,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.SendNotificationResponse = function(opt_data) { +proto.teleport.lib.teleterm.v1.SendNotificationResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.SendNotificationResponse, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.SendNotificationResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.SendNotificationResponse.displayName = 'proto.teleport.terminal.v1.SendNotificationResponse'; + proto.teleport.lib.teleterm.v1.SendNotificationResponse.displayName = 'proto.teleport.lib.teleterm.v1.SendNotificationResponse'; } /** @@ -158,21 +158,21 @@ if (goog.DEBUG && !COMPILED) { * @private {!Array>} * @const */ -proto.teleport.terminal.v1.ReloginRequest.oneofGroups_ = [[2]]; +proto.teleport.lib.teleterm.v1.ReloginRequest.oneofGroups_ = [[2]]; /** * @enum {number} */ -proto.teleport.terminal.v1.ReloginRequest.ReasonCase = { +proto.teleport.lib.teleterm.v1.ReloginRequest.ReasonCase = { REASON_NOT_SET: 0, GATEWAY_CERT_EXPIRED: 2 }; /** - * @return {proto.teleport.terminal.v1.ReloginRequest.ReasonCase} + * @return {proto.teleport.lib.teleterm.v1.ReloginRequest.ReasonCase} */ -proto.teleport.terminal.v1.ReloginRequest.prototype.getReasonCase = function() { - return /** @type {proto.teleport.terminal.v1.ReloginRequest.ReasonCase} */(jspb.Message.computeOneofCase(this, proto.teleport.terminal.v1.ReloginRequest.oneofGroups_[0])); +proto.teleport.lib.teleterm.v1.ReloginRequest.prototype.getReasonCase = function() { + return /** @type {proto.teleport.lib.teleterm.v1.ReloginRequest.ReasonCase} */(jspb.Message.computeOneofCase(this, proto.teleport.lib.teleterm.v1.ReloginRequest.oneofGroups_[0])); }; @@ -190,8 +190,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.ReloginRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ReloginRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.ReloginRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.ReloginRequest.toObject(opt_includeInstance, this); }; @@ -200,14 +200,14 @@ proto.teleport.terminal.v1.ReloginRequest.prototype.toObject = function(opt_incl * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ReloginRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.ReloginRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ReloginRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.ReloginRequest.toObject = function(includeInstance, msg) { var f, obj = { rootClusterUri: jspb.Message.getFieldWithDefault(msg, 1, ""), - gatewayCertExpired: (f = msg.getGatewayCertExpired()) && proto.teleport.terminal.v1.GatewayCertExpired.toObject(includeInstance, f) + gatewayCertExpired: (f = msg.getGatewayCertExpired()) && proto.teleport.lib.teleterm.v1.GatewayCertExpired.toObject(includeInstance, f) }; if (includeInstance) { @@ -221,23 +221,23 @@ proto.teleport.terminal.v1.ReloginRequest.toObject = function(includeInstance, m /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ReloginRequest} + * @return {!proto.teleport.lib.teleterm.v1.ReloginRequest} */ -proto.teleport.terminal.v1.ReloginRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.ReloginRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ReloginRequest; - return proto.teleport.terminal.v1.ReloginRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.ReloginRequest; + return proto.teleport.lib.teleterm.v1.ReloginRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ReloginRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.ReloginRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ReloginRequest} + * @return {!proto.teleport.lib.teleterm.v1.ReloginRequest} */ -proto.teleport.terminal.v1.ReloginRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.ReloginRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -249,8 +249,8 @@ proto.teleport.terminal.v1.ReloginRequest.deserializeBinaryFromReader = function msg.setRootClusterUri(value); break; case 2: - var value = new proto.teleport.terminal.v1.GatewayCertExpired; - reader.readMessage(value,proto.teleport.terminal.v1.GatewayCertExpired.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.GatewayCertExpired; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.GatewayCertExpired.deserializeBinaryFromReader); msg.setGatewayCertExpired(value); break; default: @@ -266,9 +266,9 @@ proto.teleport.terminal.v1.ReloginRequest.deserializeBinaryFromReader = function * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.ReloginRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.ReloginRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ReloginRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.ReloginRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -276,11 +276,11 @@ proto.teleport.terminal.v1.ReloginRequest.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ReloginRequest} message + * @param {!proto.teleport.lib.teleterm.v1.ReloginRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ReloginRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.ReloginRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getRootClusterUri(); if (f.length > 0) { @@ -294,7 +294,7 @@ proto.teleport.terminal.v1.ReloginRequest.serializeBinaryToWriter = function(mes writer.writeMessage( 2, f, - proto.teleport.terminal.v1.GatewayCertExpired.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.GatewayCertExpired.serializeBinaryToWriter ); } }; @@ -304,44 +304,44 @@ proto.teleport.terminal.v1.ReloginRequest.serializeBinaryToWriter = function(mes * optional string root_cluster_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.ReloginRequest.prototype.getRootClusterUri = function() { +proto.teleport.lib.teleterm.v1.ReloginRequest.prototype.getRootClusterUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.ReloginRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.ReloginRequest} returns this */ -proto.teleport.terminal.v1.ReloginRequest.prototype.setRootClusterUri = function(value) { +proto.teleport.lib.teleterm.v1.ReloginRequest.prototype.setRootClusterUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional GatewayCertExpired gateway_cert_expired = 2; - * @return {?proto.teleport.terminal.v1.GatewayCertExpired} + * @return {?proto.teleport.lib.teleterm.v1.GatewayCertExpired} */ -proto.teleport.terminal.v1.ReloginRequest.prototype.getGatewayCertExpired = function() { - return /** @type{?proto.teleport.terminal.v1.GatewayCertExpired} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.GatewayCertExpired, 2)); +proto.teleport.lib.teleterm.v1.ReloginRequest.prototype.getGatewayCertExpired = function() { + return /** @type{?proto.teleport.lib.teleterm.v1.GatewayCertExpired} */ ( + jspb.Message.getWrapperField(this, proto.teleport.lib.teleterm.v1.GatewayCertExpired, 2)); }; /** - * @param {?proto.teleport.terminal.v1.GatewayCertExpired|undefined} value - * @return {!proto.teleport.terminal.v1.ReloginRequest} returns this + * @param {?proto.teleport.lib.teleterm.v1.GatewayCertExpired|undefined} value + * @return {!proto.teleport.lib.teleterm.v1.ReloginRequest} returns this */ -proto.teleport.terminal.v1.ReloginRequest.prototype.setGatewayCertExpired = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.teleport.terminal.v1.ReloginRequest.oneofGroups_[0], value); +proto.teleport.lib.teleterm.v1.ReloginRequest.prototype.setGatewayCertExpired = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.teleport.lib.teleterm.v1.ReloginRequest.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ReloginRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.ReloginRequest} returns this */ -proto.teleport.terminal.v1.ReloginRequest.prototype.clearGatewayCertExpired = function() { +proto.teleport.lib.teleterm.v1.ReloginRequest.prototype.clearGatewayCertExpired = function() { return this.setGatewayCertExpired(undefined); }; @@ -350,7 +350,7 @@ proto.teleport.terminal.v1.ReloginRequest.prototype.clearGatewayCertExpired = fu * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.ReloginRequest.prototype.hasGatewayCertExpired = function() { +proto.teleport.lib.teleterm.v1.ReloginRequest.prototype.hasGatewayCertExpired = function() { return jspb.Message.getField(this, 2) != null; }; @@ -371,8 +371,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.GatewayCertExpired.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GatewayCertExpired.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.GatewayCertExpired.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.GatewayCertExpired.toObject(opt_includeInstance, this); }; @@ -381,11 +381,11 @@ proto.teleport.terminal.v1.GatewayCertExpired.prototype.toObject = function(opt_ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GatewayCertExpired} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.GatewayCertExpired} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GatewayCertExpired.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.GatewayCertExpired.toObject = function(includeInstance, msg) { var f, obj = { gatewayUri: jspb.Message.getFieldWithDefault(msg, 1, ""), targetUri: jspb.Message.getFieldWithDefault(msg, 2, "") @@ -402,23 +402,23 @@ proto.teleport.terminal.v1.GatewayCertExpired.toObject = function(includeInstanc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GatewayCertExpired} + * @return {!proto.teleport.lib.teleterm.v1.GatewayCertExpired} */ -proto.teleport.terminal.v1.GatewayCertExpired.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.GatewayCertExpired.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GatewayCertExpired; - return proto.teleport.terminal.v1.GatewayCertExpired.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.GatewayCertExpired; + return proto.teleport.lib.teleterm.v1.GatewayCertExpired.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GatewayCertExpired} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.GatewayCertExpired} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GatewayCertExpired} + * @return {!proto.teleport.lib.teleterm.v1.GatewayCertExpired} */ -proto.teleport.terminal.v1.GatewayCertExpired.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.GatewayCertExpired.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -446,9 +446,9 @@ proto.teleport.terminal.v1.GatewayCertExpired.deserializeBinaryFromReader = func * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.GatewayCertExpired.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.GatewayCertExpired.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GatewayCertExpired.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.GatewayCertExpired.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -456,11 +456,11 @@ proto.teleport.terminal.v1.GatewayCertExpired.prototype.serializeBinary = functi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GatewayCertExpired} message + * @param {!proto.teleport.lib.teleterm.v1.GatewayCertExpired} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.GatewayCertExpired.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.GatewayCertExpired.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getGatewayUri(); if (f.length > 0) { @@ -483,16 +483,16 @@ proto.teleport.terminal.v1.GatewayCertExpired.serializeBinaryToWriter = function * optional string gateway_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.GatewayCertExpired.prototype.getGatewayUri = function() { +proto.teleport.lib.teleterm.v1.GatewayCertExpired.prototype.getGatewayUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GatewayCertExpired} returns this + * @return {!proto.teleport.lib.teleterm.v1.GatewayCertExpired} returns this */ -proto.teleport.terminal.v1.GatewayCertExpired.prototype.setGatewayUri = function(value) { +proto.teleport.lib.teleterm.v1.GatewayCertExpired.prototype.setGatewayUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -501,16 +501,16 @@ proto.teleport.terminal.v1.GatewayCertExpired.prototype.setGatewayUri = function * optional string target_uri = 2; * @return {string} */ -proto.teleport.terminal.v1.GatewayCertExpired.prototype.getTargetUri = function() { +proto.teleport.lib.teleterm.v1.GatewayCertExpired.prototype.getTargetUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.GatewayCertExpired} returns this + * @return {!proto.teleport.lib.teleterm.v1.GatewayCertExpired} returns this */ -proto.teleport.terminal.v1.GatewayCertExpired.prototype.setTargetUri = function(value) { +proto.teleport.lib.teleterm.v1.GatewayCertExpired.prototype.setTargetUri = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -531,8 +531,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.ReloginResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ReloginResponse.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.ReloginResponse.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.ReloginResponse.toObject(opt_includeInstance, this); }; @@ -541,11 +541,11 @@ proto.teleport.terminal.v1.ReloginResponse.prototype.toObject = function(opt_inc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ReloginResponse} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.ReloginResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ReloginResponse.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.ReloginResponse.toObject = function(includeInstance, msg) { var f, obj = { }; @@ -561,23 +561,23 @@ proto.teleport.terminal.v1.ReloginResponse.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ReloginResponse} + * @return {!proto.teleport.lib.teleterm.v1.ReloginResponse} */ -proto.teleport.terminal.v1.ReloginResponse.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.ReloginResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ReloginResponse; - return proto.teleport.terminal.v1.ReloginResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.ReloginResponse; + return proto.teleport.lib.teleterm.v1.ReloginResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ReloginResponse} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.ReloginResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ReloginResponse} + * @return {!proto.teleport.lib.teleterm.v1.ReloginResponse} */ -proto.teleport.terminal.v1.ReloginResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.ReloginResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -597,9 +597,9 @@ proto.teleport.terminal.v1.ReloginResponse.deserializeBinaryFromReader = functio * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.ReloginResponse.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.ReloginResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ReloginResponse.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.ReloginResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -607,11 +607,11 @@ proto.teleport.terminal.v1.ReloginResponse.prototype.serializeBinary = function( /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ReloginResponse} message + * @param {!proto.teleport.lib.teleterm.v1.ReloginResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ReloginResponse.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.ReloginResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; @@ -625,21 +625,21 @@ proto.teleport.terminal.v1.ReloginResponse.serializeBinaryToWriter = function(me * @private {!Array>} * @const */ -proto.teleport.terminal.v1.SendNotificationRequest.oneofGroups_ = [[1]]; +proto.teleport.lib.teleterm.v1.SendNotificationRequest.oneofGroups_ = [[1]]; /** * @enum {number} */ -proto.teleport.terminal.v1.SendNotificationRequest.SubjectCase = { +proto.teleport.lib.teleterm.v1.SendNotificationRequest.SubjectCase = { SUBJECT_NOT_SET: 0, CANNOT_PROXY_GATEWAY_CONNECTION: 1 }; /** - * @return {proto.teleport.terminal.v1.SendNotificationRequest.SubjectCase} + * @return {proto.teleport.lib.teleterm.v1.SendNotificationRequest.SubjectCase} */ -proto.teleport.terminal.v1.SendNotificationRequest.prototype.getSubjectCase = function() { - return /** @type {proto.teleport.terminal.v1.SendNotificationRequest.SubjectCase} */(jspb.Message.computeOneofCase(this, proto.teleport.terminal.v1.SendNotificationRequest.oneofGroups_[0])); +proto.teleport.lib.teleterm.v1.SendNotificationRequest.prototype.getSubjectCase = function() { + return /** @type {proto.teleport.lib.teleterm.v1.SendNotificationRequest.SubjectCase} */(jspb.Message.computeOneofCase(this, proto.teleport.lib.teleterm.v1.SendNotificationRequest.oneofGroups_[0])); }; @@ -657,8 +657,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.SendNotificationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.SendNotificationRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.SendNotificationRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.SendNotificationRequest.toObject(opt_includeInstance, this); }; @@ -667,13 +667,13 @@ proto.teleport.terminal.v1.SendNotificationRequest.prototype.toObject = function * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.SendNotificationRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.SendNotificationRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.SendNotificationRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.SendNotificationRequest.toObject = function(includeInstance, msg) { var f, obj = { - cannotProxyGatewayConnection: (f = msg.getCannotProxyGatewayConnection()) && proto.teleport.terminal.v1.CannotProxyGatewayConnection.toObject(includeInstance, f) + cannotProxyGatewayConnection: (f = msg.getCannotProxyGatewayConnection()) && proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection.toObject(includeInstance, f) }; if (includeInstance) { @@ -687,23 +687,23 @@ proto.teleport.terminal.v1.SendNotificationRequest.toObject = function(includeIn /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.SendNotificationRequest} + * @return {!proto.teleport.lib.teleterm.v1.SendNotificationRequest} */ -proto.teleport.terminal.v1.SendNotificationRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.SendNotificationRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.SendNotificationRequest; - return proto.teleport.terminal.v1.SendNotificationRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.SendNotificationRequest; + return proto.teleport.lib.teleterm.v1.SendNotificationRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.SendNotificationRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.SendNotificationRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.SendNotificationRequest} + * @return {!proto.teleport.lib.teleterm.v1.SendNotificationRequest} */ -proto.teleport.terminal.v1.SendNotificationRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.SendNotificationRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -711,8 +711,8 @@ proto.teleport.terminal.v1.SendNotificationRequest.deserializeBinaryFromReader = var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.teleport.terminal.v1.CannotProxyGatewayConnection; - reader.readMessage(value,proto.teleport.terminal.v1.CannotProxyGatewayConnection.deserializeBinaryFromReader); + var value = new proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection; + reader.readMessage(value,proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection.deserializeBinaryFromReader); msg.setCannotProxyGatewayConnection(value); break; default: @@ -728,9 +728,9 @@ proto.teleport.terminal.v1.SendNotificationRequest.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.SendNotificationRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.SendNotificationRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.SendNotificationRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.SendNotificationRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -738,18 +738,18 @@ proto.teleport.terminal.v1.SendNotificationRequest.prototype.serializeBinary = f /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.SendNotificationRequest} message + * @param {!proto.teleport.lib.teleterm.v1.SendNotificationRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.SendNotificationRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.SendNotificationRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCannotProxyGatewayConnection(); if (f != null) { writer.writeMessage( 1, f, - proto.teleport.terminal.v1.CannotProxyGatewayConnection.serializeBinaryToWriter + proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection.serializeBinaryToWriter ); } }; @@ -757,28 +757,28 @@ proto.teleport.terminal.v1.SendNotificationRequest.serializeBinaryToWriter = fun /** * optional CannotProxyGatewayConnection cannot_proxy_gateway_connection = 1; - * @return {?proto.teleport.terminal.v1.CannotProxyGatewayConnection} + * @return {?proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection} */ -proto.teleport.terminal.v1.SendNotificationRequest.prototype.getCannotProxyGatewayConnection = function() { - return /** @type{?proto.teleport.terminal.v1.CannotProxyGatewayConnection} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.CannotProxyGatewayConnection, 1)); +proto.teleport.lib.teleterm.v1.SendNotificationRequest.prototype.getCannotProxyGatewayConnection = function() { + return /** @type{?proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection} */ ( + jspb.Message.getWrapperField(this, proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection, 1)); }; /** - * @param {?proto.teleport.terminal.v1.CannotProxyGatewayConnection|undefined} value - * @return {!proto.teleport.terminal.v1.SendNotificationRequest} returns this + * @param {?proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection|undefined} value + * @return {!proto.teleport.lib.teleterm.v1.SendNotificationRequest} returns this */ -proto.teleport.terminal.v1.SendNotificationRequest.prototype.setCannotProxyGatewayConnection = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.teleport.terminal.v1.SendNotificationRequest.oneofGroups_[0], value); +proto.teleport.lib.teleterm.v1.SendNotificationRequest.prototype.setCannotProxyGatewayConnection = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.teleport.lib.teleterm.v1.SendNotificationRequest.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.SendNotificationRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.SendNotificationRequest} returns this */ -proto.teleport.terminal.v1.SendNotificationRequest.prototype.clearCannotProxyGatewayConnection = function() { +proto.teleport.lib.teleterm.v1.SendNotificationRequest.prototype.clearCannotProxyGatewayConnection = function() { return this.setCannotProxyGatewayConnection(undefined); }; @@ -787,7 +787,7 @@ proto.teleport.terminal.v1.SendNotificationRequest.prototype.clearCannotProxyGat * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.SendNotificationRequest.prototype.hasCannotProxyGatewayConnection = function() { +proto.teleport.lib.teleterm.v1.SendNotificationRequest.prototype.hasCannotProxyGatewayConnection = function() { return jspb.Message.getField(this, 1) != null; }; @@ -808,8 +808,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.CannotProxyGatewayConnection.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.CannotProxyGatewayConnection.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection.toObject(opt_includeInstance, this); }; @@ -818,11 +818,11 @@ proto.teleport.terminal.v1.CannotProxyGatewayConnection.prototype.toObject = fun * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.CannotProxyGatewayConnection} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.CannotProxyGatewayConnection.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection.toObject = function(includeInstance, msg) { var f, obj = { gatewayUri: jspb.Message.getFieldWithDefault(msg, 1, ""), targetUri: jspb.Message.getFieldWithDefault(msg, 2, ""), @@ -840,23 +840,23 @@ proto.teleport.terminal.v1.CannotProxyGatewayConnection.toObject = function(incl /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.CannotProxyGatewayConnection} + * @return {!proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection} */ -proto.teleport.terminal.v1.CannotProxyGatewayConnection.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.CannotProxyGatewayConnection; - return proto.teleport.terminal.v1.CannotProxyGatewayConnection.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection; + return proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.CannotProxyGatewayConnection} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.CannotProxyGatewayConnection} + * @return {!proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection} */ -proto.teleport.terminal.v1.CannotProxyGatewayConnection.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -888,9 +888,9 @@ proto.teleport.terminal.v1.CannotProxyGatewayConnection.deserializeBinaryFromRea * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.CannotProxyGatewayConnection.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.CannotProxyGatewayConnection.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -898,11 +898,11 @@ proto.teleport.terminal.v1.CannotProxyGatewayConnection.prototype.serializeBinar /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.CannotProxyGatewayConnection} message + * @param {!proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.CannotProxyGatewayConnection.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getGatewayUri(); if (f.length > 0) { @@ -932,16 +932,16 @@ proto.teleport.terminal.v1.CannotProxyGatewayConnection.serializeBinaryToWriter * optional string gateway_uri = 1; * @return {string} */ -proto.teleport.terminal.v1.CannotProxyGatewayConnection.prototype.getGatewayUri = function() { +proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection.prototype.getGatewayUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.CannotProxyGatewayConnection} returns this + * @return {!proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection} returns this */ -proto.teleport.terminal.v1.CannotProxyGatewayConnection.prototype.setGatewayUri = function(value) { +proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection.prototype.setGatewayUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -950,16 +950,16 @@ proto.teleport.terminal.v1.CannotProxyGatewayConnection.prototype.setGatewayUri * optional string target_uri = 2; * @return {string} */ -proto.teleport.terminal.v1.CannotProxyGatewayConnection.prototype.getTargetUri = function() { +proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection.prototype.getTargetUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.CannotProxyGatewayConnection} returns this + * @return {!proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection} returns this */ -proto.teleport.terminal.v1.CannotProxyGatewayConnection.prototype.setTargetUri = function(value) { +proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection.prototype.setTargetUri = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -968,16 +968,16 @@ proto.teleport.terminal.v1.CannotProxyGatewayConnection.prototype.setTargetUri = * optional string error = 3; * @return {string} */ -proto.teleport.terminal.v1.CannotProxyGatewayConnection.prototype.getError = function() { +proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection.prototype.getError = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.CannotProxyGatewayConnection} returns this + * @return {!proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection} returns this */ -proto.teleport.terminal.v1.CannotProxyGatewayConnection.prototype.setError = function(value) { +proto.teleport.lib.teleterm.v1.CannotProxyGatewayConnection.prototype.setError = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; @@ -998,8 +998,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.SendNotificationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.SendNotificationResponse.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.SendNotificationResponse.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.SendNotificationResponse.toObject(opt_includeInstance, this); }; @@ -1008,11 +1008,11 @@ proto.teleport.terminal.v1.SendNotificationResponse.prototype.toObject = functio * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.SendNotificationResponse} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.SendNotificationResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.SendNotificationResponse.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.SendNotificationResponse.toObject = function(includeInstance, msg) { var f, obj = { }; @@ -1028,23 +1028,23 @@ proto.teleport.terminal.v1.SendNotificationResponse.toObject = function(includeI /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.SendNotificationResponse} + * @return {!proto.teleport.lib.teleterm.v1.SendNotificationResponse} */ -proto.teleport.terminal.v1.SendNotificationResponse.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.SendNotificationResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.SendNotificationResponse; - return proto.teleport.terminal.v1.SendNotificationResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.SendNotificationResponse; + return proto.teleport.lib.teleterm.v1.SendNotificationResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.SendNotificationResponse} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.SendNotificationResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.SendNotificationResponse} + * @return {!proto.teleport.lib.teleterm.v1.SendNotificationResponse} */ -proto.teleport.terminal.v1.SendNotificationResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.SendNotificationResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1064,9 +1064,9 @@ proto.teleport.terminal.v1.SendNotificationResponse.deserializeBinaryFromReader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.SendNotificationResponse.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.SendNotificationResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.SendNotificationResponse.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.SendNotificationResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1074,13 +1074,13 @@ proto.teleport.terminal.v1.SendNotificationResponse.prototype.serializeBinary = /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.SendNotificationResponse} message + * @param {!proto.teleport.lib.teleterm.v1.SendNotificationResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.SendNotificationResponse.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.SendNotificationResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; -goog.object.extend(exports, proto.teleport.terminal.v1); +goog.object.extend(exports, proto.teleport.lib.teleterm.v1); diff --git a/lib/teleterm/api/protogen/js/v1/usage_events_grpc_pb.js b/gen/proto/js/teleport/lib/teleterm/v1/usage_events_grpc_pb.js similarity index 100% rename from lib/teleterm/api/protogen/js/v1/usage_events_grpc_pb.js rename to gen/proto/js/teleport/lib/teleterm/v1/usage_events_grpc_pb.js diff --git a/web/packages/teleterm/src/services/tshd/v1/usage_events_pb.d.ts b/gen/proto/js/teleport/lib/teleterm/v1/usage_events_pb.d.ts similarity index 88% rename from web/packages/teleterm/src/services/tshd/v1/usage_events_pb.d.ts rename to gen/proto/js/teleport/lib/teleterm/v1/usage_events_pb.d.ts index d9de73f83f47e..235d3853630a1 100644 --- a/web/packages/teleterm/src/services/tshd/v1/usage_events_pb.d.ts +++ b/gen/proto/js/teleport/lib/teleterm/v1/usage_events_pb.d.ts @@ -1,11 +1,11 @@ -// package: teleport.terminal.v1 -// file: v1/usage_events.proto +// package: teleport.lib.teleterm.v1 +// file: teleport/lib/teleterm/v1/usage_events.proto /* tslint:disable */ /* eslint-disable */ import * as jspb from "google-protobuf"; -import * as prehog_v1alpha_connect_pb from "../prehog/v1alpha/connect_pb"; +import * as prehog_v1alpha_connect_pb from "../../../../prehog/v1alpha/connect_pb"; export class ReportUsageEventRequest extends jspb.Message { getAuthClusterId(): string; diff --git a/lib/teleterm/api/protogen/js/v1/usage_events_pb.js b/gen/proto/js/teleport/lib/teleterm/v1/usage_events_pb.js similarity index 63% rename from lib/teleterm/api/protogen/js/v1/usage_events_pb.js rename to gen/proto/js/teleport/lib/teleterm/v1/usage_events_pb.js index 992b9da796fe0..183263f1c8ab5 100644 --- a/lib/teleterm/api/protogen/js/v1/usage_events_pb.js +++ b/gen/proto/js/teleport/lib/teleterm/v1/usage_events_pb.js @@ -1,4 +1,4 @@ -// source: v1/usage_events.proto +// source: teleport/lib/teleterm/v1/usage_events.proto /** * @fileoverview * @enhanceable @@ -15,9 +15,9 @@ var jspb = require('google-protobuf'); var goog = jspb; var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); -var prehog_v1alpha_connect_pb = require('../prehog/v1alpha/connect_pb.js'); +var prehog_v1alpha_connect_pb = require('../../../../prehog/v1alpha/connect_pb.js'); goog.object.extend(proto, prehog_v1alpha_connect_pb); -goog.exportSymbol('proto.teleport.terminal.v1.ReportUsageEventRequest', null, global); +goog.exportSymbol('proto.teleport.lib.teleterm.v1.ReportUsageEventRequest', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -28,16 +28,16 @@ goog.exportSymbol('proto.teleport.terminal.v1.ReportUsageEventRequest', null, gl * @extends {jspb.Message} * @constructor */ -proto.teleport.terminal.v1.ReportUsageEventRequest = function(opt_data) { +proto.teleport.lib.teleterm.v1.ReportUsageEventRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.teleport.terminal.v1.ReportUsageEventRequest, jspb.Message); +goog.inherits(proto.teleport.lib.teleterm.v1.ReportUsageEventRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.teleport.terminal.v1.ReportUsageEventRequest.displayName = 'proto.teleport.terminal.v1.ReportUsageEventRequest'; + proto.teleport.lib.teleterm.v1.ReportUsageEventRequest.displayName = 'proto.teleport.lib.teleterm.v1.ReportUsageEventRequest'; } @@ -55,8 +55,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.teleport.terminal.v1.ReportUsageEventRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ReportUsageEventRequest.toObject(opt_includeInstance, this); +proto.teleport.lib.teleterm.v1.ReportUsageEventRequest.prototype.toObject = function(opt_includeInstance) { + return proto.teleport.lib.teleterm.v1.ReportUsageEventRequest.toObject(opt_includeInstance, this); }; @@ -65,11 +65,11 @@ proto.teleport.terminal.v1.ReportUsageEventRequest.prototype.toObject = function * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ReportUsageEventRequest} msg The msg instance to transform. + * @param {!proto.teleport.lib.teleterm.v1.ReportUsageEventRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ReportUsageEventRequest.toObject = function(includeInstance, msg) { +proto.teleport.lib.teleterm.v1.ReportUsageEventRequest.toObject = function(includeInstance, msg) { var f, obj = { authClusterId: jspb.Message.getFieldWithDefault(msg, 1, ""), prehogReq: (f = msg.getPrehogReq()) && prehog_v1alpha_connect_pb.SubmitConnectEventRequest.toObject(includeInstance, f) @@ -86,23 +86,23 @@ proto.teleport.terminal.v1.ReportUsageEventRequest.toObject = function(includeIn /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ReportUsageEventRequest} + * @return {!proto.teleport.lib.teleterm.v1.ReportUsageEventRequest} */ -proto.teleport.terminal.v1.ReportUsageEventRequest.deserializeBinary = function(bytes) { +proto.teleport.lib.teleterm.v1.ReportUsageEventRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ReportUsageEventRequest; - return proto.teleport.terminal.v1.ReportUsageEventRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.teleport.lib.teleterm.v1.ReportUsageEventRequest; + return proto.teleport.lib.teleterm.v1.ReportUsageEventRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ReportUsageEventRequest} msg The message object to deserialize into. + * @param {!proto.teleport.lib.teleterm.v1.ReportUsageEventRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ReportUsageEventRequest} + * @return {!proto.teleport.lib.teleterm.v1.ReportUsageEventRequest} */ -proto.teleport.terminal.v1.ReportUsageEventRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.teleport.lib.teleterm.v1.ReportUsageEventRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -131,9 +131,9 @@ proto.teleport.terminal.v1.ReportUsageEventRequest.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.teleport.terminal.v1.ReportUsageEventRequest.prototype.serializeBinary = function() { +proto.teleport.lib.teleterm.v1.ReportUsageEventRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ReportUsageEventRequest.serializeBinaryToWriter(this, writer); + proto.teleport.lib.teleterm.v1.ReportUsageEventRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -141,11 +141,11 @@ proto.teleport.terminal.v1.ReportUsageEventRequest.prototype.serializeBinary = f /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ReportUsageEventRequest} message + * @param {!proto.teleport.lib.teleterm.v1.ReportUsageEventRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.teleport.terminal.v1.ReportUsageEventRequest.serializeBinaryToWriter = function(message, writer) { +proto.teleport.lib.teleterm.v1.ReportUsageEventRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getAuthClusterId(); if (f.length > 0) { @@ -169,16 +169,16 @@ proto.teleport.terminal.v1.ReportUsageEventRequest.serializeBinaryToWriter = fun * optional string auth_cluster_id = 1; * @return {string} */ -proto.teleport.terminal.v1.ReportUsageEventRequest.prototype.getAuthClusterId = function() { +proto.teleport.lib.teleterm.v1.ReportUsageEventRequest.prototype.getAuthClusterId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.teleport.terminal.v1.ReportUsageEventRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.ReportUsageEventRequest} returns this */ -proto.teleport.terminal.v1.ReportUsageEventRequest.prototype.setAuthClusterId = function(value) { +proto.teleport.lib.teleterm.v1.ReportUsageEventRequest.prototype.setAuthClusterId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -187,7 +187,7 @@ proto.teleport.terminal.v1.ReportUsageEventRequest.prototype.setAuthClusterId = * optional prehog.v1alpha.SubmitConnectEventRequest prehog_req = 2; * @return {?proto.prehog.v1alpha.SubmitConnectEventRequest} */ -proto.teleport.terminal.v1.ReportUsageEventRequest.prototype.getPrehogReq = function() { +proto.teleport.lib.teleterm.v1.ReportUsageEventRequest.prototype.getPrehogReq = function() { return /** @type{?proto.prehog.v1alpha.SubmitConnectEventRequest} */ ( jspb.Message.getWrapperField(this, prehog_v1alpha_connect_pb.SubmitConnectEventRequest, 2)); }; @@ -195,18 +195,18 @@ proto.teleport.terminal.v1.ReportUsageEventRequest.prototype.getPrehogReq = func /** * @param {?proto.prehog.v1alpha.SubmitConnectEventRequest|undefined} value - * @return {!proto.teleport.terminal.v1.ReportUsageEventRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.ReportUsageEventRequest} returns this */ -proto.teleport.terminal.v1.ReportUsageEventRequest.prototype.setPrehogReq = function(value) { +proto.teleport.lib.teleterm.v1.ReportUsageEventRequest.prototype.setPrehogReq = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ReportUsageEventRequest} returns this + * @return {!proto.teleport.lib.teleterm.v1.ReportUsageEventRequest} returns this */ -proto.teleport.terminal.v1.ReportUsageEventRequest.prototype.clearPrehogReq = function() { +proto.teleport.lib.teleterm.v1.ReportUsageEventRequest.prototype.clearPrehogReq = function() { return this.setPrehogReq(undefined); }; @@ -215,9 +215,9 @@ proto.teleport.terminal.v1.ReportUsageEventRequest.prototype.clearPrehogReq = fu * Returns whether this field is set. * @return {boolean} */ -proto.teleport.terminal.v1.ReportUsageEventRequest.prototype.hasPrehogReq = function() { +proto.teleport.lib.teleterm.v1.ReportUsageEventRequest.prototype.hasPrehogReq = function() { return jspb.Message.getField(this, 2) != null; }; -goog.object.extend(exports, proto.teleport.terminal.v1); +goog.object.extend(exports, proto.teleport.lib.teleterm.v1); diff --git a/integration/proxy/teleterm_test.go b/integration/proxy/teleterm_test.go index 8d4dfe2c00312..14943b4080957 100644 --- a/integration/proxy/teleterm_test.go +++ b/integration/proxy/teleterm_test.go @@ -27,11 +27,11 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" + api "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1" dbhelpers "github.com/gravitational/teleport/integration/db" "github.com/gravitational/teleport/integration/helpers" libclient "github.com/gravitational/teleport/lib/client" "github.com/gravitational/teleport/lib/srv/db/mysql" - api "github.com/gravitational/teleport/lib/teleterm/api/protogen/golang/v1" "github.com/gravitational/teleport/lib/teleterm/api/uri" "github.com/gravitational/teleport/lib/teleterm/clusters" "github.com/gravitational/teleport/lib/teleterm/daemon" diff --git a/lib/prehog/buf-teleterm.gen.yaml b/lib/prehog/buf-teleterm.gen.yaml deleted file mode 100644 index 7c921956410d5..0000000000000 --- a/lib/prehog/buf-teleterm.gen.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# buf-teleterm.gen.yaml is identical to buf.gen.yaml, -# with the exception of three additional JS plugins. -version: v1 -managed: - enabled: true - go_package_prefix: - default: github.com/gravitational/teleport/lib/prehog/gen -plugins: - - name: js - out: lib/prehog/gen-js - opt: - - import_style=commonjs,binary - - name: grpc - out: lib/prehog/gen-js - opt: grpc_js - path: grpc_tools_node_protoc_plugin - - name: ts - out: lib/prehog/gen-js - opt: "service=grpc-node" diff --git a/lib/prehog/buf.gen.yaml b/lib/prehog/buf.gen.yaml deleted file mode 100644 index e1632635012d5..0000000000000 --- a/lib/prehog/buf.gen.yaml +++ /dev/null @@ -1,16 +0,0 @@ -version: v1 -managed: - enabled: true - go_package_prefix: - default: github.com/gravitational/teleport/lib/prehog/gen -plugins: - - name: go - path: lib/prehog/bin/protoc-gen-go - out: lib/prehog/gen - opt: - - paths=source_relative - - name: connect-go - path: lib/prehog/bin/protoc-gen-connect-go - out: lib/prehog/gen - opt: - - paths=source_relative diff --git a/lib/prehog/proto/buf.yaml b/lib/prehog/proto/buf.yaml deleted file mode 100644 index 89d6b713b2a0f..0000000000000 --- a/lib/prehog/proto/buf.yaml +++ /dev/null @@ -1,6 +0,0 @@ -version: v1 -lint: - use: - - DEFAULT - - UNARY_RPC - - PACKAGE_NO_IMPORT_CYCLE diff --git a/lib/services/usagereporter.go b/lib/services/usagereporter.go index dfd577129bc9a..200b13d716068 100644 --- a/lib/services/usagereporter.go +++ b/lib/services/usagereporter.go @@ -31,10 +31,10 @@ import ( usageevents "github.com/gravitational/teleport/api/gen/proto/go/usageevents/v1" "github.com/gravitational/teleport/api/types" + prehogv1 "github.com/gravitational/teleport/gen/proto/go/prehog/v1alpha" + prehogclient "github.com/gravitational/teleport/gen/proto/go/prehog/v1alpha/v1alphaconnect" "github.com/gravitational/teleport/lib/defaults" "github.com/gravitational/teleport/lib/observability/metrics" - prehogv1 "github.com/gravitational/teleport/lib/prehog/gen/prehog/v1alpha" - prehogclient "github.com/gravitational/teleport/lib/prehog/gen/prehog/v1alpha/prehogv1alphaconnect" "github.com/gravitational/teleport/lib/usagereporter" "github.com/gravitational/teleport/lib/utils" ) diff --git a/lib/services/usagereporter_discover.go b/lib/services/usagereporter_discover.go index d835bf47803e2..2b5e41d486bb1 100644 --- a/lib/services/usagereporter_discover.go +++ b/lib/services/usagereporter_discover.go @@ -20,7 +20,7 @@ import ( "github.com/gravitational/trace" usageevents "github.com/gravitational/teleport/api/gen/proto/go/usageevents/v1" - prehogv1 "github.com/gravitational/teleport/lib/prehog/gen/prehog/v1alpha" + prehogv1 "github.com/gravitational/teleport/gen/proto/go/prehog/v1alpha" "github.com/gravitational/teleport/lib/utils" ) diff --git a/lib/services/usagereporter_test.go b/lib/services/usagereporter_test.go index 226faa489fa74..1d704ec6e529d 100644 --- a/lib/services/usagereporter_test.go +++ b/lib/services/usagereporter_test.go @@ -21,7 +21,7 @@ import ( "github.com/stretchr/testify/require" usageevents "github.com/gravitational/teleport/api/gen/proto/go/usageevents/v1" - prehogv1 "github.com/gravitational/teleport/lib/prehog/gen/prehog/v1alpha" + prehogv1 "github.com/gravitational/teleport/gen/proto/go/prehog/v1alpha" "github.com/gravitational/teleport/lib/utils" ) diff --git a/lib/teleterm/README.md b/lib/teleterm/README.md index 3b27ab98e1a65..dc82bbbba8446 100644 --- a/lib/teleterm/README.md +++ b/lib/teleterm/README.md @@ -112,9 +112,8 @@ obtains from the root cluster. ## gRPC server -The proto files live in `lib/teleterm/api/proto`. `make grpc` generates protobufs in -`lib/teleterm/api/protogen`. The protobuf files [need to be copied to the webapps -repo](../../web/packages/teleterm#generating-tshd-grpc-protobuf-files). +The proto files live in `proto/teleport/lib/teleterm`. `make grpc` generates protobufs in +`gen/proto`. ## Refactoring efforts diff --git a/lib/teleterm/api/proto/buf.yaml b/lib/teleterm/api/proto/buf.yaml deleted file mode 100644 index 10f1cb47f06c4..0000000000000 --- a/lib/teleterm/api/proto/buf.yaml +++ /dev/null @@ -1,20 +0,0 @@ -version: v1 -lint: - use: - - DEFAULT - - PACKAGE_NO_IMPORT_CYCLE - # Top-level types require comments. - - COMMENT_ENUM - # TODO(ravicious): Fix message and enable linter below. - # - COMMENT_MESSAGE - - COMMENT_RPC - - COMMENT_SERVICE - except: - - RPC_RESPONSE_STANDARD_NAME - - RPC_REQUEST_RESPONSE_UNIQUE - # TODO(ravicious): Fix protos and re-enable linters below. - - PACKAGE_DIRECTORY_MATCH - - RPC_REQUEST_STANDARD_NAME -breaking: - use: - - FILE diff --git a/lib/teleterm/api/protogen/golang/v1/kube.pb.go b/lib/teleterm/api/protogen/golang/v1/kube.pb.go deleted file mode 100644 index 571f304e20981..0000000000000 --- a/lib/teleterm/api/protogen/golang/v1/kube.pb.go +++ /dev/null @@ -1,187 +0,0 @@ -// Copyright 2021 Gravitational, Inc -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.1 -// protoc (unknown) -// source: v1/kube.proto - -package v1 - -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) -) - -// Kube describes connected Kubernetes cluster -type Kube struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // uri is the kube resource URI - Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` - // name is the kube name - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - // labels is the kube labels - Labels []*Label `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty"` -} - -func (x *Kube) Reset() { - *x = Kube{} - if protoimpl.UnsafeEnabled { - mi := &file_v1_kube_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Kube) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Kube) ProtoMessage() {} - -func (x *Kube) ProtoReflect() protoreflect.Message { - mi := &file_v1_kube_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 Kube.ProtoReflect.Descriptor instead. -func (*Kube) Descriptor() ([]byte, []int) { - return file_v1_kube_proto_rawDescGZIP(), []int{0} -} - -func (x *Kube) GetUri() string { - if x != nil { - return x.Uri - } - return "" -} - -func (x *Kube) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *Kube) GetLabels() []*Label { - if x != nil { - return x.Labels - } - return nil -} - -var File_v1_kube_proto protoreflect.FileDescriptor - -var file_v1_kube_proto_rawDesc = []byte{ - 0x0a, 0x0d, 0x76, 0x31, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x14, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, - 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x1a, 0x0e, 0x76, 0x31, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x61, 0x0a, 0x04, 0x4b, 0x75, 0x62, 0x65, 0x12, 0x10, 0x0a, - 0x03, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x74, - 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, - 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, - 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_v1_kube_proto_rawDescOnce sync.Once - file_v1_kube_proto_rawDescData = file_v1_kube_proto_rawDesc -) - -func file_v1_kube_proto_rawDescGZIP() []byte { - file_v1_kube_proto_rawDescOnce.Do(func() { - file_v1_kube_proto_rawDescData = protoimpl.X.CompressGZIP(file_v1_kube_proto_rawDescData) - }) - return file_v1_kube_proto_rawDescData -} - -var file_v1_kube_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_v1_kube_proto_goTypes = []interface{}{ - (*Kube)(nil), // 0: teleport.terminal.v1.Kube - (*Label)(nil), // 1: teleport.terminal.v1.Label -} -var file_v1_kube_proto_depIdxs = []int32{ - 1, // 0: teleport.terminal.v1.Kube.labels:type_name -> teleport.terminal.v1.Label - 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_v1_kube_proto_init() } -func file_v1_kube_proto_init() { - if File_v1_kube_proto != nil { - return - } - file_v1_label_proto_init() - if !protoimpl.UnsafeEnabled { - file_v1_kube_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Kube); 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_v1_kube_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_v1_kube_proto_goTypes, - DependencyIndexes: file_v1_kube_proto_depIdxs, - MessageInfos: file_v1_kube_proto_msgTypes, - }.Build() - File_v1_kube_proto = out.File - file_v1_kube_proto_rawDesc = nil - file_v1_kube_proto_goTypes = nil - file_v1_kube_proto_depIdxs = nil -} diff --git a/lib/teleterm/api/protogen/golang/v1/usage_events.pb.go b/lib/teleterm/api/protogen/golang/v1/usage_events.pb.go deleted file mode 100644 index d8c634fe2ca8c..0000000000000 --- a/lib/teleterm/api/protogen/golang/v1/usage_events.pb.go +++ /dev/null @@ -1,179 +0,0 @@ -// Copyright 2022 Gravitational, Inc -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.1 -// protoc (unknown) -// source: v1/usage_events.proto - -package v1 - -import ( - v1alpha "github.com/gravitational/teleport/lib/prehog/gen/prehog/v1alpha" - 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 ReportUsageEventRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AuthClusterId string `protobuf:"bytes,1,opt,name=auth_cluster_id,json=authClusterId,proto3" json:"auth_cluster_id,omitempty"` - PrehogReq *v1alpha.SubmitConnectEventRequest `protobuf:"bytes,2,opt,name=prehog_req,json=prehogReq,proto3" json:"prehog_req,omitempty"` -} - -func (x *ReportUsageEventRequest) Reset() { - *x = ReportUsageEventRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_v1_usage_events_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ReportUsageEventRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReportUsageEventRequest) ProtoMessage() {} - -func (x *ReportUsageEventRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_usage_events_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 ReportUsageEventRequest.ProtoReflect.Descriptor instead. -func (*ReportUsageEventRequest) Descriptor() ([]byte, []int) { - return file_v1_usage_events_proto_rawDescGZIP(), []int{0} -} - -func (x *ReportUsageEventRequest) GetAuthClusterId() string { - if x != nil { - return x.AuthClusterId - } - return "" -} - -func (x *ReportUsageEventRequest) GetPrehogReq() *v1alpha.SubmitConnectEventRequest { - if x != nil { - return x.PrehogReq - } - return nil -} - -var File_v1_usage_events_proto protoreflect.FileDescriptor - -var file_v1_usage_events_proto_rawDesc = []byte{ - 0x0a, 0x15, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, - 0x74, 0x2e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x70, - 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8b, 0x01, 0x0a, 0x17, - 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x55, 0x73, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x61, 0x75, 0x74, 0x68, 0x5f, - 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, - 0x48, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x5f, 0x72, 0x65, 0x71, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x09, - 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, - 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_v1_usage_events_proto_rawDescOnce sync.Once - file_v1_usage_events_proto_rawDescData = file_v1_usage_events_proto_rawDesc -) - -func file_v1_usage_events_proto_rawDescGZIP() []byte { - file_v1_usage_events_proto_rawDescOnce.Do(func() { - file_v1_usage_events_proto_rawDescData = protoimpl.X.CompressGZIP(file_v1_usage_events_proto_rawDescData) - }) - return file_v1_usage_events_proto_rawDescData -} - -var file_v1_usage_events_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_v1_usage_events_proto_goTypes = []interface{}{ - (*ReportUsageEventRequest)(nil), // 0: teleport.terminal.v1.ReportUsageEventRequest - (*v1alpha.SubmitConnectEventRequest)(nil), // 1: prehog.v1alpha.SubmitConnectEventRequest -} -var file_v1_usage_events_proto_depIdxs = []int32{ - 1, // 0: teleport.terminal.v1.ReportUsageEventRequest.prehog_req:type_name -> prehog.v1alpha.SubmitConnectEventRequest - 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_v1_usage_events_proto_init() } -func file_v1_usage_events_proto_init() { - if File_v1_usage_events_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_v1_usage_events_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportUsageEventRequest); 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_v1_usage_events_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_v1_usage_events_proto_goTypes, - DependencyIndexes: file_v1_usage_events_proto_depIdxs, - MessageInfos: file_v1_usage_events_proto_msgTypes, - }.Build() - File_v1_usage_events_proto = out.File - file_v1_usage_events_proto_rawDesc = nil - file_v1_usage_events_proto_goTypes = nil - file_v1_usage_events_proto_depIdxs = nil -} diff --git a/lib/teleterm/api/protogen/js/v1/access_request_pb.d.ts b/lib/teleterm/api/protogen/js/v1/access_request_pb.d.ts deleted file mode 100644 index c57fc6bf052ce..0000000000000 --- a/lib/teleterm/api/protogen/js/v1/access_request_pb.d.ts +++ /dev/null @@ -1,222 +0,0 @@ -// package: teleport.terminal.v1 -// file: v1/access_request.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; - -export class AccessRequest extends jspb.Message { - getId(): string; - setId(value: string): AccessRequest; - - getState(): string; - setState(value: string): AccessRequest; - - getResolveReason(): string; - setResolveReason(value: string): AccessRequest; - - getRequestReason(): string; - setRequestReason(value: string): AccessRequest; - - getUser(): string; - setUser(value: string): AccessRequest; - - clearRolesList(): void; - getRolesList(): Array; - setRolesList(value: Array): AccessRequest; - addRoles(value: string, index?: number): string; - - - hasCreated(): boolean; - clearCreated(): void; - getCreated(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreated(value?: google_protobuf_timestamp_pb.Timestamp): AccessRequest; - - - hasExpires(): boolean; - clearExpires(): void; - getExpires(): google_protobuf_timestamp_pb.Timestamp | undefined; - setExpires(value?: google_protobuf_timestamp_pb.Timestamp): AccessRequest; - - clearReviewsList(): void; - getReviewsList(): Array; - setReviewsList(value: Array): AccessRequest; - addReviews(value?: AccessRequestReview, index?: number): AccessRequestReview; - - clearSuggestedReviewersList(): void; - getSuggestedReviewersList(): Array; - setSuggestedReviewersList(value: Array): AccessRequest; - addSuggestedReviewers(value: string, index?: number): string; - - clearThresholdNamesList(): void; - getThresholdNamesList(): Array; - setThresholdNamesList(value: Array): AccessRequest; - addThresholdNames(value: string, index?: number): string; - - clearResourceIdsList(): void; - getResourceIdsList(): Array; - setResourceIdsList(value: Array): AccessRequest; - addResourceIds(value?: ResourceID, index?: number): ResourceID; - - clearResourcesList(): void; - getResourcesList(): Array; - setResourcesList(value: Array): AccessRequest; - addResources(value?: Resource, index?: number): Resource; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AccessRequest.AsObject; - static toObject(includeInstance: boolean, msg: AccessRequest): AccessRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AccessRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AccessRequest; - static deserializeBinaryFromReader(message: AccessRequest, reader: jspb.BinaryReader): AccessRequest; -} - -export namespace AccessRequest { - export type AsObject = { - id: string, - state: string, - resolveReason: string, - requestReason: string, - user: string, - rolesList: Array, - created?: google_protobuf_timestamp_pb.Timestamp.AsObject, - expires?: google_protobuf_timestamp_pb.Timestamp.AsObject, - reviewsList: Array, - suggestedReviewersList: Array, - thresholdNamesList: Array, - resourceIdsList: Array, - resourcesList: Array, - } -} - -export class AccessRequestReview extends jspb.Message { - getAuthor(): string; - setAuthor(value: string): AccessRequestReview; - - clearRolesList(): void; - getRolesList(): Array; - setRolesList(value: Array): AccessRequestReview; - addRoles(value: string, index?: number): string; - - getState(): string; - setState(value: string): AccessRequestReview; - - getReason(): string; - setReason(value: string): AccessRequestReview; - - - hasCreated(): boolean; - clearCreated(): void; - getCreated(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreated(value?: google_protobuf_timestamp_pb.Timestamp): AccessRequestReview; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AccessRequestReview.AsObject; - static toObject(includeInstance: boolean, msg: AccessRequestReview): AccessRequestReview.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AccessRequestReview, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AccessRequestReview; - static deserializeBinaryFromReader(message: AccessRequestReview, reader: jspb.BinaryReader): AccessRequestReview; -} - -export namespace AccessRequestReview { - export type AsObject = { - author: string, - rolesList: Array, - state: string, - reason: string, - created?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class ResourceID extends jspb.Message { - getKind(): string; - setKind(value: string): ResourceID; - - getName(): string; - setName(value: string): ResourceID; - - getClusterName(): string; - setClusterName(value: string): ResourceID; - - getSubResourceName(): string; - setSubResourceName(value: string): ResourceID; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ResourceID.AsObject; - static toObject(includeInstance: boolean, msg: ResourceID): ResourceID.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ResourceID, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ResourceID; - static deserializeBinaryFromReader(message: ResourceID, reader: jspb.BinaryReader): ResourceID; -} - -export namespace ResourceID { - export type AsObject = { - kind: string, - name: string, - clusterName: string, - subResourceName: string, - } -} - -export class ResourceDetails extends jspb.Message { - getHostname(): string; - setHostname(value: string): ResourceDetails; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ResourceDetails.AsObject; - static toObject(includeInstance: boolean, msg: ResourceDetails): ResourceDetails.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ResourceDetails, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ResourceDetails; - static deserializeBinaryFromReader(message: ResourceDetails, reader: jspb.BinaryReader): ResourceDetails; -} - -export namespace ResourceDetails { - export type AsObject = { - hostname: string, - } -} - -export class Resource extends jspb.Message { - - hasId(): boolean; - clearId(): void; - getId(): ResourceID | undefined; - setId(value?: ResourceID): Resource; - - - hasDetails(): boolean; - clearDetails(): void; - getDetails(): ResourceDetails | undefined; - setDetails(value?: ResourceDetails): Resource; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Resource.AsObject; - static toObject(includeInstance: boolean, msg: Resource): Resource.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Resource, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Resource; - static deserializeBinaryFromReader(message: Resource, reader: jspb.BinaryReader): Resource; -} - -export namespace Resource { - export type AsObject = { - id?: ResourceID.AsObject, - details?: ResourceDetails.AsObject, - } -} diff --git a/lib/teleterm/api/protogen/js/v1/access_request_pb.js b/lib/teleterm/api/protogen/js/v1/access_request_pb.js deleted file mode 100644 index 39a06ca22afdd..0000000000000 --- a/lib/teleterm/api/protogen/js/v1/access_request_pb.js +++ /dev/null @@ -1,1644 +0,0 @@ -// source: v1/access_request.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 || window || global || self || Function('return this')(); }).call(null); - -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -goog.exportSymbol('proto.teleport.terminal.v1.AccessRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.AccessRequestReview', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.Resource', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ResourceDetails', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ResourceID', 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.teleport.terminal.v1.AccessRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.AccessRequest.repeatedFields_, null); -}; -goog.inherits(proto.teleport.terminal.v1.AccessRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.AccessRequest.displayName = 'proto.teleport.terminal.v1.AccessRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.AccessRequestReview = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.AccessRequestReview.repeatedFields_, null); -}; -goog.inherits(proto.teleport.terminal.v1.AccessRequestReview, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.AccessRequestReview.displayName = 'proto.teleport.terminal.v1.AccessRequestReview'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.ResourceID = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.ResourceID, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.ResourceID.displayName = 'proto.teleport.terminal.v1.ResourceID'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.ResourceDetails = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.ResourceDetails, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.ResourceDetails.displayName = 'proto.teleport.terminal.v1.ResourceDetails'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.Resource = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.Resource, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.Resource.displayName = 'proto.teleport.terminal.v1.Resource'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.teleport.terminal.v1.AccessRequest.repeatedFields_ = [6,9,10,11,12,13]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.AccessRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.AccessRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.AccessRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.AccessRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - state: jspb.Message.getFieldWithDefault(msg, 2, ""), - resolveReason: jspb.Message.getFieldWithDefault(msg, 3, ""), - requestReason: jspb.Message.getFieldWithDefault(msg, 4, ""), - user: jspb.Message.getFieldWithDefault(msg, 5, ""), - rolesList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f, - created: (f = msg.getCreated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - expires: (f = msg.getExpires()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - reviewsList: jspb.Message.toObjectList(msg.getReviewsList(), - proto.teleport.terminal.v1.AccessRequestReview.toObject, includeInstance), - suggestedReviewersList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f, - thresholdNamesList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f, - resourceIdsList: jspb.Message.toObjectList(msg.getResourceIdsList(), - proto.teleport.terminal.v1.ResourceID.toObject, includeInstance), - resourcesList: jspb.Message.toObjectList(msg.getResourcesList(), - proto.teleport.terminal.v1.Resource.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.teleport.terminal.v1.AccessRequest} - */ -proto.teleport.terminal.v1.AccessRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.AccessRequest; - return proto.teleport.terminal.v1.AccessRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.AccessRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.AccessRequest} - */ -proto.teleport.terminal.v1.AccessRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setState(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setResolveReason(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setRequestReason(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setUser(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.addRoles(value); - break; - case 7: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreated(value); - break; - case 8: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setExpires(value); - break; - case 9: - var value = new proto.teleport.terminal.v1.AccessRequestReview; - reader.readMessage(value,proto.teleport.terminal.v1.AccessRequestReview.deserializeBinaryFromReader); - msg.addReviews(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.addSuggestedReviewers(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.addThresholdNames(value); - break; - case 12: - var value = new proto.teleport.terminal.v1.ResourceID; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceID.deserializeBinaryFromReader); - msg.addResourceIds(value); - break; - case 13: - var value = new proto.teleport.terminal.v1.Resource; - reader.readMessage(value,proto.teleport.terminal.v1.Resource.deserializeBinaryFromReader); - msg.addResources(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.AccessRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.AccessRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.AccessRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.AccessRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getState(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getResolveReason(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getRequestReason(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getUser(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getRolesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 6, - f - ); - } - f = message.getCreated(); - if (f != null) { - writer.writeMessage( - 7, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getExpires(); - if (f != null) { - writer.writeMessage( - 8, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getReviewsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 9, - f, - proto.teleport.terminal.v1.AccessRequestReview.serializeBinaryToWriter - ); - } - f = message.getSuggestedReviewersList(); - if (f.length > 0) { - writer.writeRepeatedString( - 10, - f - ); - } - f = message.getThresholdNamesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 11, - f - ); - } - f = message.getResourceIdsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 12, - f, - proto.teleport.terminal.v1.ResourceID.serializeBinaryToWriter - ); - } - f = message.getResourcesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 13, - f, - proto.teleport.terminal.v1.Resource.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.teleport.terminal.v1.AccessRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this - */ -proto.teleport.terminal.v1.AccessRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string state = 2; - * @return {string} - */ -proto.teleport.terminal.v1.AccessRequest.prototype.getState = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this - */ -proto.teleport.terminal.v1.AccessRequest.prototype.setState = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string resolve_reason = 3; - * @return {string} - */ -proto.teleport.terminal.v1.AccessRequest.prototype.getResolveReason = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this - */ -proto.teleport.terminal.v1.AccessRequest.prototype.setResolveReason = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string request_reason = 4; - * @return {string} - */ -proto.teleport.terminal.v1.AccessRequest.prototype.getRequestReason = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this - */ -proto.teleport.terminal.v1.AccessRequest.prototype.setRequestReason = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string user = 5; - * @return {string} - */ -proto.teleport.terminal.v1.AccessRequest.prototype.getUser = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this - */ -proto.teleport.terminal.v1.AccessRequest.prototype.setUser = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * repeated string roles = 6; - * @return {!Array} - */ -proto.teleport.terminal.v1.AccessRequest.prototype.getRolesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this - */ -proto.teleport.terminal.v1.AccessRequest.prototype.setRolesList = function(value) { - return jspb.Message.setField(this, 6, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this - */ -proto.teleport.terminal.v1.AccessRequest.prototype.addRoles = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 6, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this - */ -proto.teleport.terminal.v1.AccessRequest.prototype.clearRolesList = function() { - return this.setRolesList([]); -}; - - -/** - * optional google.protobuf.Timestamp created = 7; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.teleport.terminal.v1.AccessRequest.prototype.getCreated = 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.teleport.terminal.v1.AccessRequest} returns this -*/ -proto.teleport.terminal.v1.AccessRequest.prototype.setCreated = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this - */ -proto.teleport.terminal.v1.AccessRequest.prototype.clearCreated = function() { - return this.setCreated(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.AccessRequest.prototype.hasCreated = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional google.protobuf.Timestamp expires = 8; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.teleport.terminal.v1.AccessRequest.prototype.getExpires = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this -*/ -proto.teleport.terminal.v1.AccessRequest.prototype.setExpires = function(value) { - return jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this - */ -proto.teleport.terminal.v1.AccessRequest.prototype.clearExpires = function() { - return this.setExpires(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.AccessRequest.prototype.hasExpires = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * repeated AccessRequestReview reviews = 9; - * @return {!Array} - */ -proto.teleport.terminal.v1.AccessRequest.prototype.getReviewsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.teleport.terminal.v1.AccessRequestReview, 9)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this -*/ -proto.teleport.terminal.v1.AccessRequest.prototype.setReviewsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 9, value); -}; - - -/** - * @param {!proto.teleport.terminal.v1.AccessRequestReview=} opt_value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.AccessRequestReview} - */ -proto.teleport.terminal.v1.AccessRequest.prototype.addReviews = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.teleport.terminal.v1.AccessRequestReview, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this - */ -proto.teleport.terminal.v1.AccessRequest.prototype.clearReviewsList = function() { - return this.setReviewsList([]); -}; - - -/** - * repeated string suggested_reviewers = 10; - * @return {!Array} - */ -proto.teleport.terminal.v1.AccessRequest.prototype.getSuggestedReviewersList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 10)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this - */ -proto.teleport.terminal.v1.AccessRequest.prototype.setSuggestedReviewersList = function(value) { - return jspb.Message.setField(this, 10, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this - */ -proto.teleport.terminal.v1.AccessRequest.prototype.addSuggestedReviewers = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 10, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this - */ -proto.teleport.terminal.v1.AccessRequest.prototype.clearSuggestedReviewersList = function() { - return this.setSuggestedReviewersList([]); -}; - - -/** - * repeated string threshold_names = 11; - * @return {!Array} - */ -proto.teleport.terminal.v1.AccessRequest.prototype.getThresholdNamesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 11)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this - */ -proto.teleport.terminal.v1.AccessRequest.prototype.setThresholdNamesList = function(value) { - return jspb.Message.setField(this, 11, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this - */ -proto.teleport.terminal.v1.AccessRequest.prototype.addThresholdNames = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 11, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this - */ -proto.teleport.terminal.v1.AccessRequest.prototype.clearThresholdNamesList = function() { - return this.setThresholdNamesList([]); -}; - - -/** - * repeated ResourceID resource_ids = 12; - * @return {!Array} - */ -proto.teleport.terminal.v1.AccessRequest.prototype.getResourceIdsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.teleport.terminal.v1.ResourceID, 12)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this -*/ -proto.teleport.terminal.v1.AccessRequest.prototype.setResourceIdsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 12, value); -}; - - -/** - * @param {!proto.teleport.terminal.v1.ResourceID=} opt_value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.ResourceID} - */ -proto.teleport.terminal.v1.AccessRequest.prototype.addResourceIds = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.teleport.terminal.v1.ResourceID, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this - */ -proto.teleport.terminal.v1.AccessRequest.prototype.clearResourceIdsList = function() { - return this.setResourceIdsList([]); -}; - - -/** - * repeated Resource resources = 13; - * @return {!Array} - */ -proto.teleport.terminal.v1.AccessRequest.prototype.getResourcesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.teleport.terminal.v1.Resource, 13)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this -*/ -proto.teleport.terminal.v1.AccessRequest.prototype.setResourcesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 13, value); -}; - - -/** - * @param {!proto.teleport.terminal.v1.Resource=} opt_value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.Resource} - */ -proto.teleport.terminal.v1.AccessRequest.prototype.addResources = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 13, opt_value, proto.teleport.terminal.v1.Resource, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.AccessRequest} returns this - */ -proto.teleport.terminal.v1.AccessRequest.prototype.clearResourcesList = function() { - return this.setResourcesList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.teleport.terminal.v1.AccessRequestReview.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.AccessRequestReview.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.AccessRequestReview} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.AccessRequestReview.toObject = function(includeInstance, msg) { - var f, obj = { - author: jspb.Message.getFieldWithDefault(msg, 1, ""), - rolesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - state: jspb.Message.getFieldWithDefault(msg, 3, ""), - reason: jspb.Message.getFieldWithDefault(msg, 4, ""), - created: (f = msg.getCreated()) && 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.teleport.terminal.v1.AccessRequestReview} - */ -proto.teleport.terminal.v1.AccessRequestReview.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.AccessRequestReview; - return proto.teleport.terminal.v1.AccessRequestReview.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.AccessRequestReview} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.AccessRequestReview} - */ -proto.teleport.terminal.v1.AccessRequestReview.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setAuthor(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addRoles(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setState(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setReason(value); - break; - case 5: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreated(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.AccessRequestReview.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.AccessRequestReview} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.AccessRequestReview.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAuthor(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRolesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } - f = message.getState(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getReason(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getCreated(); - if (f != null) { - writer.writeMessage( - 5, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string author = 1; - * @return {string} - */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.getAuthor = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.AccessRequestReview} returns this - */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.setAuthor = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated string roles = 2; - * @return {!Array} - */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.getRolesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.AccessRequestReview} returns this - */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.setRolesList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.AccessRequestReview} returns this - */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.addRoles = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.AccessRequestReview} returns this - */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.clearRolesList = function() { - return this.setRolesList([]); -}; - - -/** - * optional string state = 3; - * @return {string} - */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.getState = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.AccessRequestReview} returns this - */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.setState = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string reason = 4; - * @return {string} - */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.getReason = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.AccessRequestReview} returns this - */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.setReason = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional google.protobuf.Timestamp created = 5; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.getCreated = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.teleport.terminal.v1.AccessRequestReview} returns this -*/ -proto.teleport.terminal.v1.AccessRequestReview.prototype.setCreated = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.AccessRequestReview} returns this - */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.clearCreated = function() { - return this.setCreated(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.AccessRequestReview.prototype.hasCreated = function() { - return jspb.Message.getField(this, 5) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.ResourceID.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ResourceID.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ResourceID} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ResourceID.toObject = function(includeInstance, msg) { - var f, obj = { - kind: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - clusterName: jspb.Message.getFieldWithDefault(msg, 3, ""), - subResourceName: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ResourceID} - */ -proto.teleport.terminal.v1.ResourceID.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ResourceID; - return proto.teleport.terminal.v1.ResourceID.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ResourceID} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ResourceID} - */ -proto.teleport.terminal.v1.ResourceID.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setKind(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setClusterName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setSubResourceName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.ResourceID.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ResourceID.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ResourceID} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ResourceID.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKind(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getClusterName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getSubResourceName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional string kind = 1; - * @return {string} - */ -proto.teleport.terminal.v1.ResourceID.prototype.getKind = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.ResourceID} returns this - */ -proto.teleport.terminal.v1.ResourceID.prototype.setKind = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.teleport.terminal.v1.ResourceID.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.ResourceID} returns this - */ -proto.teleport.terminal.v1.ResourceID.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string cluster_name = 3; - * @return {string} - */ -proto.teleport.terminal.v1.ResourceID.prototype.getClusterName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.ResourceID} returns this - */ -proto.teleport.terminal.v1.ResourceID.prototype.setClusterName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string sub_resource_name = 4; - * @return {string} - */ -proto.teleport.terminal.v1.ResourceID.prototype.getSubResourceName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.ResourceID} returns this - */ -proto.teleport.terminal.v1.ResourceID.prototype.setSubResourceName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.ResourceDetails.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ResourceDetails.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ResourceDetails} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ResourceDetails.toObject = function(includeInstance, msg) { - var f, obj = { - hostname: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ResourceDetails} - */ -proto.teleport.terminal.v1.ResourceDetails.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ResourceDetails; - return proto.teleport.terminal.v1.ResourceDetails.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ResourceDetails} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ResourceDetails} - */ -proto.teleport.terminal.v1.ResourceDetails.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setHostname(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.ResourceDetails.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ResourceDetails.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ResourceDetails} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ResourceDetails.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHostname(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string hostname = 1; - * @return {string} - */ -proto.teleport.terminal.v1.ResourceDetails.prototype.getHostname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.ResourceDetails} returns this - */ -proto.teleport.terminal.v1.ResourceDetails.prototype.setHostname = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.Resource.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.Resource.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.Resource} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.Resource.toObject = function(includeInstance, msg) { - var f, obj = { - id: (f = msg.getId()) && proto.teleport.terminal.v1.ResourceID.toObject(includeInstance, f), - details: (f = msg.getDetails()) && proto.teleport.terminal.v1.ResourceDetails.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.teleport.terminal.v1.Resource} - */ -proto.teleport.terminal.v1.Resource.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.Resource; - return proto.teleport.terminal.v1.Resource.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.Resource} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.Resource} - */ -proto.teleport.terminal.v1.Resource.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.teleport.terminal.v1.ResourceID; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceID.deserializeBinaryFromReader); - msg.setId(value); - break; - case 2: - var value = new proto.teleport.terminal.v1.ResourceDetails; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceDetails.deserializeBinaryFromReader); - msg.setDetails(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.Resource.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.Resource.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.Resource} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.Resource.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.teleport.terminal.v1.ResourceID.serializeBinaryToWriter - ); - } - f = message.getDetails(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.teleport.terminal.v1.ResourceDetails.serializeBinaryToWriter - ); - } -}; - - -/** - * optional ResourceID id = 1; - * @return {?proto.teleport.terminal.v1.ResourceID} - */ -proto.teleport.terminal.v1.Resource.prototype.getId = function() { - return /** @type{?proto.teleport.terminal.v1.ResourceID} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ResourceID, 1)); -}; - - -/** - * @param {?proto.teleport.terminal.v1.ResourceID|undefined} value - * @return {!proto.teleport.terminal.v1.Resource} returns this -*/ -proto.teleport.terminal.v1.Resource.prototype.setId = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.Resource} returns this - */ -proto.teleport.terminal.v1.Resource.prototype.clearId = function() { - return this.setId(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.Resource.prototype.hasId = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional ResourceDetails details = 2; - * @return {?proto.teleport.terminal.v1.ResourceDetails} - */ -proto.teleport.terminal.v1.Resource.prototype.getDetails = function() { - return /** @type{?proto.teleport.terminal.v1.ResourceDetails} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ResourceDetails, 2)); -}; - - -/** - * @param {?proto.teleport.terminal.v1.ResourceDetails|undefined} value - * @return {!proto.teleport.terminal.v1.Resource} returns this -*/ -proto.teleport.terminal.v1.Resource.prototype.setDetails = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.Resource} returns this - */ -proto.teleport.terminal.v1.Resource.prototype.clearDetails = function() { - return this.setDetails(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.Resource.prototype.hasDetails = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -goog.object.extend(exports, proto.teleport.terminal.v1); diff --git a/lib/teleterm/api/protogen/js/v1/app_pb.js b/lib/teleterm/api/protogen/js/v1/app_pb.js deleted file mode 100644 index 1fb0888edd33f..0000000000000 --- a/lib/teleterm/api/protogen/js/v1/app_pb.js +++ /dev/null @@ -1,647 +0,0 @@ -// source: v1/app.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 || window || global || self || Function('return this')(); }).call(null); - -var v1_label_pb = require('../v1/label_pb.js'); -goog.object.extend(proto, v1_label_pb); -goog.exportSymbol('proto.teleport.terminal.v1.App', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.App.AWSRole', 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.teleport.terminal.v1.App = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.App.repeatedFields_, null); -}; -goog.inherits(proto.teleport.terminal.v1.App, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.App.displayName = 'proto.teleport.terminal.v1.App'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.App.AWSRole = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.App.AWSRole, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.App.AWSRole.displayName = 'proto.teleport.terminal.v1.App.AWSRole'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.teleport.terminal.v1.App.repeatedFields_ = [7,9]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.App.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.App.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.App} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.App.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - description: jspb.Message.getFieldWithDefault(msg, 3, ""), - appUri: jspb.Message.getFieldWithDefault(msg, 4, ""), - publicAddr: jspb.Message.getFieldWithDefault(msg, 5, ""), - fqdn: jspb.Message.getFieldWithDefault(msg, 6, ""), - labelsList: jspb.Message.toObjectList(msg.getLabelsList(), - v1_label_pb.Label.toObject, includeInstance), - awsConsole: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), - awsRolesList: jspb.Message.toObjectList(msg.getAwsRolesList(), - proto.teleport.terminal.v1.App.AWSRole.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.teleport.terminal.v1.App} - */ -proto.teleport.terminal.v1.App.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.App; - return proto.teleport.terminal.v1.App.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.App} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.App} - */ -proto.teleport.terminal.v1.App.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setAppUri(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setPublicAddr(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setFqdn(value); - break; - case 7: - var value = new v1_label_pb.Label; - reader.readMessage(value,v1_label_pb.Label.deserializeBinaryFromReader); - msg.addLabels(value); - break; - case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAwsConsole(value); - break; - case 9: - var value = new proto.teleport.terminal.v1.App.AWSRole; - reader.readMessage(value,proto.teleport.terminal.v1.App.AWSRole.deserializeBinaryFromReader); - msg.addAwsRoles(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.App.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.App.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.App} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.App.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getAppUri(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getPublicAddr(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getFqdn(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getLabelsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 7, - f, - v1_label_pb.Label.serializeBinaryToWriter - ); - } - f = message.getAwsConsole(); - if (f) { - writer.writeBool( - 8, - f - ); - } - f = message.getAwsRolesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 9, - f, - proto.teleport.terminal.v1.App.AWSRole.serializeBinaryToWriter - ); - } -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.App.AWSRole.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.App.AWSRole.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.App.AWSRole} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.App.AWSRole.toObject = function(includeInstance, msg) { - var f, obj = { - display: jspb.Message.getFieldWithDefault(msg, 1, ""), - arn: 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.teleport.terminal.v1.App.AWSRole} - */ -proto.teleport.terminal.v1.App.AWSRole.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.App.AWSRole; - return proto.teleport.terminal.v1.App.AWSRole.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.App.AWSRole} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.App.AWSRole} - */ -proto.teleport.terminal.v1.App.AWSRole.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDisplay(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setArn(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.App.AWSRole.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.App.AWSRole.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.App.AWSRole} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.App.AWSRole.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDisplay(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getArn(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string display = 1; - * @return {string} - */ -proto.teleport.terminal.v1.App.AWSRole.prototype.getDisplay = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.App.AWSRole} returns this - */ -proto.teleport.terminal.v1.App.AWSRole.prototype.setDisplay = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string arn = 2; - * @return {string} - */ -proto.teleport.terminal.v1.App.AWSRole.prototype.getArn = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.App.AWSRole} returns this - */ -proto.teleport.terminal.v1.App.AWSRole.prototype.setArn = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.App.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.App} returns this - */ -proto.teleport.terminal.v1.App.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.teleport.terminal.v1.App.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.App} returns this - */ -proto.teleport.terminal.v1.App.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string description = 3; - * @return {string} - */ -proto.teleport.terminal.v1.App.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.App} returns this - */ -proto.teleport.terminal.v1.App.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string app_uri = 4; - * @return {string} - */ -proto.teleport.terminal.v1.App.prototype.getAppUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.App} returns this - */ -proto.teleport.terminal.v1.App.prototype.setAppUri = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string public_addr = 5; - * @return {string} - */ -proto.teleport.terminal.v1.App.prototype.getPublicAddr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.App} returns this - */ -proto.teleport.terminal.v1.App.prototype.setPublicAddr = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string fqdn = 6; - * @return {string} - */ -proto.teleport.terminal.v1.App.prototype.getFqdn = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.App} returns this - */ -proto.teleport.terminal.v1.App.prototype.setFqdn = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * repeated Label labels = 7; - * @return {!Array} - */ -proto.teleport.terminal.v1.App.prototype.getLabelsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_label_pb.Label, 7)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.App} returns this -*/ -proto.teleport.terminal.v1.App.prototype.setLabelsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 7, value); -}; - - -/** - * @param {!proto.teleport.terminal.v1.Label=} opt_value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.Label} - */ -proto.teleport.terminal.v1.App.prototype.addLabels = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.teleport.terminal.v1.Label, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.App} returns this - */ -proto.teleport.terminal.v1.App.prototype.clearLabelsList = function() { - return this.setLabelsList([]); -}; - - -/** - * optional bool aws_console = 8; - * @return {boolean} - */ -proto.teleport.terminal.v1.App.prototype.getAwsConsole = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.teleport.terminal.v1.App} returns this - */ -proto.teleport.terminal.v1.App.prototype.setAwsConsole = function(value) { - return jspb.Message.setProto3BooleanField(this, 8, value); -}; - - -/** - * repeated AWSRole aws_roles = 9; - * @return {!Array} - */ -proto.teleport.terminal.v1.App.prototype.getAwsRolesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.teleport.terminal.v1.App.AWSRole, 9)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.App} returns this -*/ -proto.teleport.terminal.v1.App.prototype.setAwsRolesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 9, value); -}; - - -/** - * @param {!proto.teleport.terminal.v1.App.AWSRole=} opt_value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.App.AWSRole} - */ -proto.teleport.terminal.v1.App.prototype.addAwsRoles = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.teleport.terminal.v1.App.AWSRole, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.App} returns this - */ -proto.teleport.terminal.v1.App.prototype.clearAwsRolesList = function() { - return this.setAwsRolesList([]); -}; - - -goog.object.extend(exports, proto.teleport.terminal.v1); diff --git a/lib/teleterm/api/protogen/js/v1/auth_settings_pb.d.ts b/lib/teleterm/api/protogen/js/v1/auth_settings_pb.d.ts deleted file mode 100644 index 1ff6576a2acb6..0000000000000 --- a/lib/teleterm/api/protogen/js/v1/auth_settings_pb.d.ts +++ /dev/null @@ -1,87 +0,0 @@ -// package: teleport.terminal.v1 -// file: v1/auth_settings.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; - -export class AuthSettings extends jspb.Message { - getLocalAuthEnabled(): boolean; - setLocalAuthEnabled(value: boolean): AuthSettings; - - getSecondFactor(): string; - setSecondFactor(value: string): AuthSettings; - - getPreferredMfa(): string; - setPreferredMfa(value: string): AuthSettings; - - clearAuthProvidersList(): void; - getAuthProvidersList(): Array; - setAuthProvidersList(value: Array): AuthSettings; - addAuthProviders(value?: AuthProvider, index?: number): AuthProvider; - - getHasMessageOfTheDay(): boolean; - setHasMessageOfTheDay(value: boolean): AuthSettings; - - getAuthType(): string; - setAuthType(value: string): AuthSettings; - - getAllowPasswordless(): boolean; - setAllowPasswordless(value: boolean): AuthSettings; - - getLocalConnectorName(): string; - setLocalConnectorName(value: string): AuthSettings; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AuthSettings.AsObject; - static toObject(includeInstance: boolean, msg: AuthSettings): AuthSettings.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AuthSettings, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AuthSettings; - static deserializeBinaryFromReader(message: AuthSettings, reader: jspb.BinaryReader): AuthSettings; -} - -export namespace AuthSettings { - export type AsObject = { - localAuthEnabled: boolean, - secondFactor: string, - preferredMfa: string, - authProvidersList: Array, - hasMessageOfTheDay: boolean, - authType: string, - allowPasswordless: boolean, - localConnectorName: string, - } -} - -export class AuthProvider extends jspb.Message { - getType(): string; - setType(value: string): AuthProvider; - - getName(): string; - setName(value: string): AuthProvider; - - getDisplayName(): string; - setDisplayName(value: string): AuthProvider; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AuthProvider.AsObject; - static toObject(includeInstance: boolean, msg: AuthProvider): AuthProvider.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AuthProvider, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AuthProvider; - static deserializeBinaryFromReader(message: AuthProvider, reader: jspb.BinaryReader): AuthProvider; -} - -export namespace AuthProvider { - export type AsObject = { - type: string, - name: string, - displayName: string, - } -} diff --git a/lib/teleterm/api/protogen/js/v1/auth_settings_pb.js b/lib/teleterm/api/protogen/js/v1/auth_settings_pb.js deleted file mode 100644 index 2f9065ee7e3a9..0000000000000 --- a/lib/teleterm/api/protogen/js/v1/auth_settings_pb.js +++ /dev/null @@ -1,622 +0,0 @@ -// source: v1/auth_settings.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 || window || global || self || Function('return this')(); }).call(null); - -goog.exportSymbol('proto.teleport.terminal.v1.AuthProvider', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.AuthSettings', 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.teleport.terminal.v1.AuthSettings = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.AuthSettings.repeatedFields_, null); -}; -goog.inherits(proto.teleport.terminal.v1.AuthSettings, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.AuthSettings.displayName = 'proto.teleport.terminal.v1.AuthSettings'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.AuthProvider = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.AuthProvider, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.AuthProvider.displayName = 'proto.teleport.terminal.v1.AuthProvider'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.teleport.terminal.v1.AuthSettings.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.AuthSettings.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.AuthSettings.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.AuthSettings} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.AuthSettings.toObject = function(includeInstance, msg) { - var f, obj = { - localAuthEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - secondFactor: jspb.Message.getFieldWithDefault(msg, 2, ""), - preferredMfa: jspb.Message.getFieldWithDefault(msg, 3, ""), - authProvidersList: jspb.Message.toObjectList(msg.getAuthProvidersList(), - proto.teleport.terminal.v1.AuthProvider.toObject, includeInstance), - hasMessageOfTheDay: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - authType: jspb.Message.getFieldWithDefault(msg, 6, ""), - allowPasswordless: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), - localConnectorName: 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.teleport.terminal.v1.AuthSettings} - */ -proto.teleport.terminal.v1.AuthSettings.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.AuthSettings; - return proto.teleport.terminal.v1.AuthSettings.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.AuthSettings} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.AuthSettings} - */ -proto.teleport.terminal.v1.AuthSettings.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setLocalAuthEnabled(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setSecondFactor(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setPreferredMfa(value); - break; - case 4: - var value = new proto.teleport.terminal.v1.AuthProvider; - reader.readMessage(value,proto.teleport.terminal.v1.AuthProvider.deserializeBinaryFromReader); - msg.addAuthProviders(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setHasMessageOfTheDay(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setAuthType(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAllowPasswordless(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setLocalConnectorName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.AuthSettings.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.AuthSettings.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.AuthSettings} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.AuthSettings.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLocalAuthEnabled(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getSecondFactor(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getPreferredMfa(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getAuthProvidersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.teleport.terminal.v1.AuthProvider.serializeBinaryToWriter - ); - } - f = message.getHasMessageOfTheDay(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getAuthType(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getAllowPasswordless(); - if (f) { - writer.writeBool( - 7, - f - ); - } - f = message.getLocalConnectorName(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } -}; - - -/** - * optional bool local_auth_enabled = 1; - * @return {boolean} - */ -proto.teleport.terminal.v1.AuthSettings.prototype.getLocalAuthEnabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.teleport.terminal.v1.AuthSettings} returns this - */ -proto.teleport.terminal.v1.AuthSettings.prototype.setLocalAuthEnabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional string second_factor = 2; - * @return {string} - */ -proto.teleport.terminal.v1.AuthSettings.prototype.getSecondFactor = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.AuthSettings} returns this - */ -proto.teleport.terminal.v1.AuthSettings.prototype.setSecondFactor = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string preferred_mfa = 3; - * @return {string} - */ -proto.teleport.terminal.v1.AuthSettings.prototype.getPreferredMfa = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.AuthSettings} returns this - */ -proto.teleport.terminal.v1.AuthSettings.prototype.setPreferredMfa = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * repeated AuthProvider auth_providers = 4; - * @return {!Array} - */ -proto.teleport.terminal.v1.AuthSettings.prototype.getAuthProvidersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.teleport.terminal.v1.AuthProvider, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.AuthSettings} returns this -*/ -proto.teleport.terminal.v1.AuthSettings.prototype.setAuthProvidersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.teleport.terminal.v1.AuthProvider=} opt_value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.AuthProvider} - */ -proto.teleport.terminal.v1.AuthSettings.prototype.addAuthProviders = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.teleport.terminal.v1.AuthProvider, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.AuthSettings} returns this - */ -proto.teleport.terminal.v1.AuthSettings.prototype.clearAuthProvidersList = function() { - return this.setAuthProvidersList([]); -}; - - -/** - * optional bool has_message_of_the_day = 5; - * @return {boolean} - */ -proto.teleport.terminal.v1.AuthSettings.prototype.getHasMessageOfTheDay = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.teleport.terminal.v1.AuthSettings} returns this - */ -proto.teleport.terminal.v1.AuthSettings.prototype.setHasMessageOfTheDay = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional string auth_type = 6; - * @return {string} - */ -proto.teleport.terminal.v1.AuthSettings.prototype.getAuthType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.AuthSettings} returns this - */ -proto.teleport.terminal.v1.AuthSettings.prototype.setAuthType = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional bool allow_passwordless = 7; - * @return {boolean} - */ -proto.teleport.terminal.v1.AuthSettings.prototype.getAllowPasswordless = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.teleport.terminal.v1.AuthSettings} returns this - */ -proto.teleport.terminal.v1.AuthSettings.prototype.setAllowPasswordless = function(value) { - return jspb.Message.setProto3BooleanField(this, 7, value); -}; - - -/** - * optional string local_connector_name = 8; - * @return {string} - */ -proto.teleport.terminal.v1.AuthSettings.prototype.getLocalConnectorName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.AuthSettings} returns this - */ -proto.teleport.terminal.v1.AuthSettings.prototype.setLocalConnectorName = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.AuthProvider.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.AuthProvider.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.AuthProvider} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.AuthProvider.toObject = function(includeInstance, msg) { - var f, obj = { - type: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - displayName: 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.teleport.terminal.v1.AuthProvider} - */ -proto.teleport.terminal.v1.AuthProvider.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.AuthProvider; - return proto.teleport.terminal.v1.AuthProvider.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.AuthProvider} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.AuthProvider} - */ -proto.teleport.terminal.v1.AuthProvider.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setType(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDisplayName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.AuthProvider.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.AuthProvider.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.AuthProvider} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.AuthProvider.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getType(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDisplayName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string type = 1; - * @return {string} - */ -proto.teleport.terminal.v1.AuthProvider.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.AuthProvider} returns this - */ -proto.teleport.terminal.v1.AuthProvider.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.teleport.terminal.v1.AuthProvider.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.AuthProvider} returns this - */ -proto.teleport.terminal.v1.AuthProvider.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string display_name = 3; - * @return {string} - */ -proto.teleport.terminal.v1.AuthProvider.prototype.getDisplayName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.AuthProvider} returns this - */ -proto.teleport.terminal.v1.AuthProvider.prototype.setDisplayName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -goog.object.extend(exports, proto.teleport.terminal.v1); diff --git a/lib/teleterm/api/protogen/js/v1/database_pb.js b/lib/teleterm/api/protogen/js/v1/database_pb.js deleted file mode 100644 index 8848814cb7625..0000000000000 --- a/lib/teleterm/api/protogen/js/v1/database_pb.js +++ /dev/null @@ -1,412 +0,0 @@ -// source: v1/database.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 || window || global || self || Function('return this')(); }).call(null); - -var v1_label_pb = require('../v1/label_pb.js'); -goog.object.extend(proto, v1_label_pb); -goog.exportSymbol('proto.teleport.terminal.v1.Database', 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.teleport.terminal.v1.Database = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.Database.repeatedFields_, null); -}; -goog.inherits(proto.teleport.terminal.v1.Database, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.Database.displayName = 'proto.teleport.terminal.v1.Database'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.teleport.terminal.v1.Database.repeatedFields_ = [8]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.Database.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.Database.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.Database} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.Database.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - desc: jspb.Message.getFieldWithDefault(msg, 3, ""), - protocol: jspb.Message.getFieldWithDefault(msg, 4, ""), - type: jspb.Message.getFieldWithDefault(msg, 5, ""), - hostname: jspb.Message.getFieldWithDefault(msg, 6, ""), - addr: jspb.Message.getFieldWithDefault(msg, 7, ""), - labelsList: jspb.Message.toObjectList(msg.getLabelsList(), - v1_label_pb.Label.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.teleport.terminal.v1.Database} - */ -proto.teleport.terminal.v1.Database.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.Database; - return proto.teleport.terminal.v1.Database.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.Database} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.Database} - */ -proto.teleport.terminal.v1.Database.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDesc(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setProtocol(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setType(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setHostname(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setAddr(value); - break; - case 8: - var value = new v1_label_pb.Label; - reader.readMessage(value,v1_label_pb.Label.deserializeBinaryFromReader); - msg.addLabels(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.Database.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.Database.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.Database} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.Database.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDesc(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getProtocol(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getType(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getHostname(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getAddr(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getLabelsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 8, - f, - v1_label_pb.Label.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.Database.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.Database} returns this - */ -proto.teleport.terminal.v1.Database.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.teleport.terminal.v1.Database.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.Database} returns this - */ -proto.teleport.terminal.v1.Database.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string desc = 3; - * @return {string} - */ -proto.teleport.terminal.v1.Database.prototype.getDesc = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.Database} returns this - */ -proto.teleport.terminal.v1.Database.prototype.setDesc = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string protocol = 4; - * @return {string} - */ -proto.teleport.terminal.v1.Database.prototype.getProtocol = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.Database} returns this - */ -proto.teleport.terminal.v1.Database.prototype.setProtocol = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string type = 5; - * @return {string} - */ -proto.teleport.terminal.v1.Database.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.Database} returns this - */ -proto.teleport.terminal.v1.Database.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string hostname = 6; - * @return {string} - */ -proto.teleport.terminal.v1.Database.prototype.getHostname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.Database} returns this - */ -proto.teleport.terminal.v1.Database.prototype.setHostname = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string addr = 7; - * @return {string} - */ -proto.teleport.terminal.v1.Database.prototype.getAddr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.Database} returns this - */ -proto.teleport.terminal.v1.Database.prototype.setAddr = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * repeated Label labels = 8; - * @return {!Array} - */ -proto.teleport.terminal.v1.Database.prototype.getLabelsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_label_pb.Label, 8)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.Database} returns this -*/ -proto.teleport.terminal.v1.Database.prototype.setLabelsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 8, value); -}; - - -/** - * @param {!proto.teleport.terminal.v1.Label=} opt_value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.Label} - */ -proto.teleport.terminal.v1.Database.prototype.addLabels = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.teleport.terminal.v1.Label, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.Database} returns this - */ -proto.teleport.terminal.v1.Database.prototype.clearLabelsList = function() { - return this.setLabelsList([]); -}; - - -goog.object.extend(exports, proto.teleport.terminal.v1); diff --git a/lib/teleterm/api/protogen/js/v1/gateway_pb.d.ts b/lib/teleterm/api/protogen/js/v1/gateway_pb.d.ts deleted file mode 100644 index 0476575eb6d43..0000000000000 --- a/lib/teleterm/api/protogen/js/v1/gateway_pb.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -// package: teleport.terminal.v1 -// file: v1/gateway.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; - -export class Gateway extends jspb.Message { - getUri(): string; - setUri(value: string): Gateway; - - getTargetName(): string; - setTargetName(value: string): Gateway; - - getTargetUri(): string; - setTargetUri(value: string): Gateway; - - getTargetUser(): string; - setTargetUser(value: string): Gateway; - - getLocalAddress(): string; - setLocalAddress(value: string): Gateway; - - getLocalPort(): string; - setLocalPort(value: string): Gateway; - - getProtocol(): string; - setProtocol(value: string): Gateway; - - getCliCommand(): string; - setCliCommand(value: string): Gateway; - - getTargetSubresourceName(): string; - setTargetSubresourceName(value: string): Gateway; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Gateway.AsObject; - static toObject(includeInstance: boolean, msg: Gateway): Gateway.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Gateway, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Gateway; - static deserializeBinaryFromReader(message: Gateway, reader: jspb.BinaryReader): Gateway; -} - -export namespace Gateway { - export type AsObject = { - uri: string, - targetName: string, - targetUri: string, - targetUser: string, - localAddress: string, - localPort: string, - protocol: string, - cliCommand: string, - targetSubresourceName: string, - } -} diff --git a/lib/teleterm/api/protogen/js/v1/kube_pb.d.ts b/lib/teleterm/api/protogen/js/v1/kube_pb.d.ts deleted file mode 100644 index 10ceee51b3bb9..0000000000000 --- a/lib/teleterm/api/protogen/js/v1/kube_pb.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -// package: teleport.terminal.v1 -// file: v1/kube.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as v1_label_pb from "../v1/label_pb"; - -export class Kube extends jspb.Message { - getUri(): string; - setUri(value: string): Kube; - - getName(): string; - setName(value: string): Kube; - - clearLabelsList(): void; - getLabelsList(): Array; - setLabelsList(value: Array): Kube; - addLabels(value?: v1_label_pb.Label, index?: number): v1_label_pb.Label; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Kube.AsObject; - static toObject(includeInstance: boolean, msg: Kube): Kube.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Kube, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Kube; - static deserializeBinaryFromReader(message: Kube, reader: jspb.BinaryReader): Kube; -} - -export namespace Kube { - export type AsObject = { - uri: string, - name: string, - labelsList: Array, - } -} diff --git a/lib/teleterm/api/protogen/js/v1/label_pb.d.ts b/lib/teleterm/api/protogen/js/v1/label_pb.d.ts deleted file mode 100644 index 9b976608f2542..0000000000000 --- a/lib/teleterm/api/protogen/js/v1/label_pb.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -// package: teleport.terminal.v1 -// file: v1/label.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; - -export class Label extends jspb.Message { - getName(): string; - setName(value: string): Label; - - getValue(): string; - setValue(value: string): Label; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Label.AsObject; - static toObject(includeInstance: boolean, msg: Label): Label.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Label, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Label; - static deserializeBinaryFromReader(message: Label, reader: jspb.BinaryReader): Label; -} - -export namespace Label { - export type AsObject = { - name: string, - value: string, - } -} diff --git a/lib/teleterm/api/protogen/js/v1/label_pb.js b/lib/teleterm/api/protogen/js/v1/label_pb.js deleted file mode 100644 index bc76168736a09..0000000000000 --- a/lib/teleterm/api/protogen/js/v1/label_pb.js +++ /dev/null @@ -1,200 +0,0 @@ -// source: v1/label.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 || window || global || self || Function('return this')(); }).call(null); - -goog.exportSymbol('proto.teleport.terminal.v1.Label', 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.teleport.terminal.v1.Label = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.Label, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.Label.displayName = 'proto.teleport.terminal.v1.Label'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.Label.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.Label.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.Label} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.Label.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - value: 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.teleport.terminal.v1.Label} - */ -proto.teleport.terminal.v1.Label.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.Label; - return proto.teleport.terminal.v1.Label.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.Label} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.Label} - */ -proto.teleport.terminal.v1.Label.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.Label.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.Label.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.Label} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.Label.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getValue(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.teleport.terminal.v1.Label.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.Label} returns this - */ -proto.teleport.terminal.v1.Label.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string value = 2; - * @return {string} - */ -proto.teleport.terminal.v1.Label.prototype.getValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.Label} returns this - */ -proto.teleport.terminal.v1.Label.prototype.setValue = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -goog.object.extend(exports, proto.teleport.terminal.v1); diff --git a/lib/teleterm/api/protogen/js/v1/server_pb.js b/lib/teleterm/api/protogen/js/v1/server_pb.js deleted file mode 100644 index 42e0239661697..0000000000000 --- a/lib/teleterm/api/protogen/js/v1/server_pb.js +++ /dev/null @@ -1,352 +0,0 @@ -// source: v1/server.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 || window || global || self || Function('return this')(); }).call(null); - -var v1_label_pb = require('../v1/label_pb.js'); -goog.object.extend(proto, v1_label_pb); -goog.exportSymbol('proto.teleport.terminal.v1.Server', 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.teleport.terminal.v1.Server = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.Server.repeatedFields_, null); -}; -goog.inherits(proto.teleport.terminal.v1.Server, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.Server.displayName = 'proto.teleport.terminal.v1.Server'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.teleport.terminal.v1.Server.repeatedFields_ = [6]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.Server.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.Server.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.Server} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.Server.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - tunnel: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - name: jspb.Message.getFieldWithDefault(msg, 3, ""), - hostname: jspb.Message.getFieldWithDefault(msg, 4, ""), - addr: jspb.Message.getFieldWithDefault(msg, 5, ""), - labelsList: jspb.Message.toObjectList(msg.getLabelsList(), - v1_label_pb.Label.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.teleport.terminal.v1.Server} - */ -proto.teleport.terminal.v1.Server.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.Server; - return proto.teleport.terminal.v1.Server.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.Server} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.Server} - */ -proto.teleport.terminal.v1.Server.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setTunnel(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setHostname(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setAddr(value); - break; - case 6: - var value = new v1_label_pb.Label; - reader.readMessage(value,v1_label_pb.Label.deserializeBinaryFromReader); - msg.addLabels(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.Server.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.Server.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.Server} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.Server.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTunnel(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getHostname(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getAddr(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getLabelsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - v1_label_pb.Label.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.Server.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.Server} returns this - */ -proto.teleport.terminal.v1.Server.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bool tunnel = 2; - * @return {boolean} - */ -proto.teleport.terminal.v1.Server.prototype.getTunnel = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.teleport.terminal.v1.Server} returns this - */ -proto.teleport.terminal.v1.Server.prototype.setTunnel = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional string name = 3; - * @return {string} - */ -proto.teleport.terminal.v1.Server.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.Server} returns this - */ -proto.teleport.terminal.v1.Server.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string hostname = 4; - * @return {string} - */ -proto.teleport.terminal.v1.Server.prototype.getHostname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.Server} returns this - */ -proto.teleport.terminal.v1.Server.prototype.setHostname = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string addr = 5; - * @return {string} - */ -proto.teleport.terminal.v1.Server.prototype.getAddr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.Server} returns this - */ -proto.teleport.terminal.v1.Server.prototype.setAddr = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * repeated Label labels = 6; - * @return {!Array} - */ -proto.teleport.terminal.v1.Server.prototype.getLabelsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_label_pb.Label, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.Server} returns this -*/ -proto.teleport.terminal.v1.Server.prototype.setLabelsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - - -/** - * @param {!proto.teleport.terminal.v1.Label=} opt_value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.Label} - */ -proto.teleport.terminal.v1.Server.prototype.addLabels = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.teleport.terminal.v1.Label, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.Server} returns this - */ -proto.teleport.terminal.v1.Server.prototype.clearLabelsList = function() { - return this.setLabelsList([]); -}; - - -goog.object.extend(exports, proto.teleport.terminal.v1); diff --git a/lib/teleterm/api/protogen/js/v1/service_grpc_pb.d.ts b/lib/teleterm/api/protogen/js/v1/service_grpc_pb.d.ts deleted file mode 100644 index d71c04f2db92d..0000000000000 --- a/lib/teleterm/api/protogen/js/v1/service_grpc_pb.d.ts +++ /dev/null @@ -1,591 +0,0 @@ -// package: teleport.terminal.v1 -// file: v1/service.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "grpc"; -import * as v1_service_pb from "../v1/service_pb"; -import * as v1_access_request_pb from "../v1/access_request_pb"; -import * as v1_app_pb from "../v1/app_pb"; -import * as v1_auth_settings_pb from "../v1/auth_settings_pb"; -import * as v1_cluster_pb from "../v1/cluster_pb"; -import * as v1_database_pb from "../v1/database_pb"; -import * as v1_gateway_pb from "../v1/gateway_pb"; -import * as v1_kube_pb from "../v1/kube_pb"; -import * as v1_server_pb from "../v1/server_pb"; -import * as v1_usage_events_pb from "../v1/usage_events_pb"; - -interface ITerminalServiceService extends grpc.ServiceDefinition { - updateTshdEventsServerAddress: ITerminalServiceService_IUpdateTshdEventsServerAddress; - listRootClusters: ITerminalServiceService_IListRootClusters; - listLeafClusters: ITerminalServiceService_IListLeafClusters; - getAllDatabases: ITerminalServiceService_IGetAllDatabases; - getDatabases: ITerminalServiceService_IGetDatabases; - listDatabaseUsers: ITerminalServiceService_IListDatabaseUsers; - getAllServers: ITerminalServiceService_IGetAllServers; - getServers: ITerminalServiceService_IGetServers; - getAccessRequests: ITerminalServiceService_IGetAccessRequests; - getAccessRequest: ITerminalServiceService_IGetAccessRequest; - deleteAccessRequest: ITerminalServiceService_IDeleteAccessRequest; - createAccessRequest: ITerminalServiceService_ICreateAccessRequest; - reviewAccessRequest: ITerminalServiceService_IReviewAccessRequest; - getRequestableRoles: ITerminalServiceService_IGetRequestableRoles; - assumeRole: ITerminalServiceService_IAssumeRole; - getAllKubes: ITerminalServiceService_IGetAllKubes; - getKubes: ITerminalServiceService_IGetKubes; - listApps: ITerminalServiceService_IListApps; - addCluster: ITerminalServiceService_IAddCluster; - removeCluster: ITerminalServiceService_IRemoveCluster; - listGateways: ITerminalServiceService_IListGateways; - createGateway: ITerminalServiceService_ICreateGateway; - removeGateway: ITerminalServiceService_IRemoveGateway; - restartGateway: ITerminalServiceService_IRestartGateway; - setGatewayTargetSubresourceName: ITerminalServiceService_ISetGatewayTargetSubresourceName; - setGatewayLocalPort: ITerminalServiceService_ISetGatewayLocalPort; - getAuthSettings: ITerminalServiceService_IGetAuthSettings; - getCluster: ITerminalServiceService_IGetCluster; - login: ITerminalServiceService_ILogin; - loginPasswordless: ITerminalServiceService_ILoginPasswordless; - logout: ITerminalServiceService_ILogout; - transferFile: ITerminalServiceService_ITransferFile; - reportUsageEvent: ITerminalServiceService_IReportUsageEvent; -} - -interface ITerminalServiceService_IUpdateTshdEventsServerAddress extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/UpdateTshdEventsServerAddress"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IListRootClusters extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/ListRootClusters"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IListLeafClusters extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/ListLeafClusters"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IGetAllDatabases extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/GetAllDatabases"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IGetDatabases extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/GetDatabases"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IListDatabaseUsers extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/ListDatabaseUsers"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IGetAllServers extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/GetAllServers"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IGetServers extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/GetServers"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IGetAccessRequests extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/GetAccessRequests"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IGetAccessRequest extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/GetAccessRequest"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IDeleteAccessRequest extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/DeleteAccessRequest"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_ICreateAccessRequest extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/CreateAccessRequest"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IReviewAccessRequest extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/ReviewAccessRequest"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IGetRequestableRoles extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/GetRequestableRoles"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IAssumeRole extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/AssumeRole"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IGetAllKubes extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/GetAllKubes"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IGetKubes extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/GetKubes"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IListApps extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/ListApps"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IAddCluster extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/AddCluster"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IRemoveCluster extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/RemoveCluster"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IListGateways extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/ListGateways"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_ICreateGateway extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/CreateGateway"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IRemoveGateway extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/RemoveGateway"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IRestartGateway extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/RestartGateway"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_ISetGatewayTargetSubresourceName extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/SetGatewayTargetSubresourceName"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_ISetGatewayLocalPort extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/SetGatewayLocalPort"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IGetAuthSettings extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/GetAuthSettings"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IGetCluster extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/GetCluster"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_ILogin extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/Login"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_ILoginPasswordless extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/LoginPasswordless"; - requestStream: true; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_ILogout extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/Logout"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_ITransferFile extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/TransferFile"; - requestStream: false; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IReportUsageEvent extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/ReportUsageEvent"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const TerminalServiceService: ITerminalServiceService; - -export interface ITerminalServiceServer { - updateTshdEventsServerAddress: grpc.handleUnaryCall; - listRootClusters: grpc.handleUnaryCall; - listLeafClusters: grpc.handleUnaryCall; - getAllDatabases: grpc.handleUnaryCall; - getDatabases: grpc.handleUnaryCall; - listDatabaseUsers: grpc.handleUnaryCall; - getAllServers: grpc.handleUnaryCall; - getServers: grpc.handleUnaryCall; - getAccessRequests: grpc.handleUnaryCall; - getAccessRequest: grpc.handleUnaryCall; - deleteAccessRequest: grpc.handleUnaryCall; - createAccessRequest: grpc.handleUnaryCall; - reviewAccessRequest: grpc.handleUnaryCall; - getRequestableRoles: grpc.handleUnaryCall; - assumeRole: grpc.handleUnaryCall; - getAllKubes: grpc.handleUnaryCall; - getKubes: grpc.handleUnaryCall; - listApps: grpc.handleUnaryCall; - addCluster: grpc.handleUnaryCall; - removeCluster: grpc.handleUnaryCall; - listGateways: grpc.handleUnaryCall; - createGateway: grpc.handleUnaryCall; - removeGateway: grpc.handleUnaryCall; - restartGateway: grpc.handleUnaryCall; - setGatewayTargetSubresourceName: grpc.handleUnaryCall; - setGatewayLocalPort: grpc.handleUnaryCall; - getAuthSettings: grpc.handleUnaryCall; - getCluster: grpc.handleUnaryCall; - login: grpc.handleUnaryCall; - loginPasswordless: grpc.handleBidiStreamingCall; - logout: grpc.handleUnaryCall; - transferFile: grpc.handleServerStreamingCall; - reportUsageEvent: grpc.handleUnaryCall; -} - -export interface ITerminalServiceClient { - updateTshdEventsServerAddress(request: v1_service_pb.UpdateTshdEventsServerAddressRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.UpdateTshdEventsServerAddressResponse) => void): grpc.ClientUnaryCall; - updateTshdEventsServerAddress(request: v1_service_pb.UpdateTshdEventsServerAddressRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.UpdateTshdEventsServerAddressResponse) => void): grpc.ClientUnaryCall; - updateTshdEventsServerAddress(request: v1_service_pb.UpdateTshdEventsServerAddressRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.UpdateTshdEventsServerAddressResponse) => void): grpc.ClientUnaryCall; - listRootClusters(request: v1_service_pb.ListClustersRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; - listRootClusters(request: v1_service_pb.ListClustersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; - listRootClusters(request: v1_service_pb.ListClustersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; - listLeafClusters(request: v1_service_pb.ListLeafClustersRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; - listLeafClusters(request: v1_service_pb.ListLeafClustersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; - listLeafClusters(request: v1_service_pb.ListLeafClustersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; - getAllDatabases(request: v1_service_pb.GetAllDatabasesRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllDatabasesResponse) => void): grpc.ClientUnaryCall; - getAllDatabases(request: v1_service_pb.GetAllDatabasesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllDatabasesResponse) => void): grpc.ClientUnaryCall; - getAllDatabases(request: v1_service_pb.GetAllDatabasesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllDatabasesResponse) => void): grpc.ClientUnaryCall; - getDatabases(request: v1_service_pb.GetDatabasesRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetDatabasesResponse) => void): grpc.ClientUnaryCall; - getDatabases(request: v1_service_pb.GetDatabasesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetDatabasesResponse) => void): grpc.ClientUnaryCall; - getDatabases(request: v1_service_pb.GetDatabasesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetDatabasesResponse) => void): grpc.ClientUnaryCall; - listDatabaseUsers(request: v1_service_pb.ListDatabaseUsersRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListDatabaseUsersResponse) => void): grpc.ClientUnaryCall; - listDatabaseUsers(request: v1_service_pb.ListDatabaseUsersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListDatabaseUsersResponse) => void): grpc.ClientUnaryCall; - listDatabaseUsers(request: v1_service_pb.ListDatabaseUsersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListDatabaseUsersResponse) => void): grpc.ClientUnaryCall; - getAllServers(request: v1_service_pb.GetAllServersRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllServersResponse) => void): grpc.ClientUnaryCall; - getAllServers(request: v1_service_pb.GetAllServersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllServersResponse) => void): grpc.ClientUnaryCall; - getAllServers(request: v1_service_pb.GetAllServersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllServersResponse) => void): grpc.ClientUnaryCall; - getServers(request: v1_service_pb.GetServersRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetServersResponse) => void): grpc.ClientUnaryCall; - getServers(request: v1_service_pb.GetServersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetServersResponse) => void): grpc.ClientUnaryCall; - getServers(request: v1_service_pb.GetServersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetServersResponse) => void): grpc.ClientUnaryCall; - getAccessRequests(request: v1_service_pb.GetAccessRequestsRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAccessRequestsResponse) => void): grpc.ClientUnaryCall; - getAccessRequests(request: v1_service_pb.GetAccessRequestsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAccessRequestsResponse) => void): grpc.ClientUnaryCall; - getAccessRequests(request: v1_service_pb.GetAccessRequestsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAccessRequestsResponse) => void): grpc.ClientUnaryCall; - getAccessRequest(request: v1_service_pb.GetAccessRequestRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAccessRequestResponse) => void): grpc.ClientUnaryCall; - getAccessRequest(request: v1_service_pb.GetAccessRequestRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAccessRequestResponse) => void): grpc.ClientUnaryCall; - getAccessRequest(request: v1_service_pb.GetAccessRequestRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAccessRequestResponse) => void): grpc.ClientUnaryCall; - deleteAccessRequest(request: v1_service_pb.DeleteAccessRequestRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - deleteAccessRequest(request: v1_service_pb.DeleteAccessRequestRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - deleteAccessRequest(request: v1_service_pb.DeleteAccessRequestRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - createAccessRequest(request: v1_service_pb.CreateAccessRequestRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.CreateAccessRequestResponse) => void): grpc.ClientUnaryCall; - createAccessRequest(request: v1_service_pb.CreateAccessRequestRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.CreateAccessRequestResponse) => void): grpc.ClientUnaryCall; - createAccessRequest(request: v1_service_pb.CreateAccessRequestRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.CreateAccessRequestResponse) => void): grpc.ClientUnaryCall; - reviewAccessRequest(request: v1_service_pb.ReviewAccessRequestRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ReviewAccessRequestResponse) => void): grpc.ClientUnaryCall; - reviewAccessRequest(request: v1_service_pb.ReviewAccessRequestRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ReviewAccessRequestResponse) => void): grpc.ClientUnaryCall; - reviewAccessRequest(request: v1_service_pb.ReviewAccessRequestRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ReviewAccessRequestResponse) => void): grpc.ClientUnaryCall; - getRequestableRoles(request: v1_service_pb.GetRequestableRolesRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetRequestableRolesResponse) => void): grpc.ClientUnaryCall; - getRequestableRoles(request: v1_service_pb.GetRequestableRolesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetRequestableRolesResponse) => void): grpc.ClientUnaryCall; - getRequestableRoles(request: v1_service_pb.GetRequestableRolesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetRequestableRolesResponse) => void): grpc.ClientUnaryCall; - assumeRole(request: v1_service_pb.AssumeRoleRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - assumeRole(request: v1_service_pb.AssumeRoleRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - assumeRole(request: v1_service_pb.AssumeRoleRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - getAllKubes(request: v1_service_pb.GetAllKubesRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllKubesResponse) => void): grpc.ClientUnaryCall; - getAllKubes(request: v1_service_pb.GetAllKubesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllKubesResponse) => void): grpc.ClientUnaryCall; - getAllKubes(request: v1_service_pb.GetAllKubesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllKubesResponse) => void): grpc.ClientUnaryCall; - getKubes(request: v1_service_pb.GetKubesRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetKubesResponse) => void): grpc.ClientUnaryCall; - getKubes(request: v1_service_pb.GetKubesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetKubesResponse) => void): grpc.ClientUnaryCall; - getKubes(request: v1_service_pb.GetKubesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetKubesResponse) => void): grpc.ClientUnaryCall; - listApps(request: v1_service_pb.ListAppsRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListAppsResponse) => void): grpc.ClientUnaryCall; - listApps(request: v1_service_pb.ListAppsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListAppsResponse) => void): grpc.ClientUnaryCall; - listApps(request: v1_service_pb.ListAppsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListAppsResponse) => void): grpc.ClientUnaryCall; - addCluster(request: v1_service_pb.AddClusterRequest, callback: (error: grpc.ServiceError | null, response: v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; - addCluster(request: v1_service_pb.AddClusterRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; - addCluster(request: v1_service_pb.AddClusterRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; - removeCluster(request: v1_service_pb.RemoveClusterRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - removeCluster(request: v1_service_pb.RemoveClusterRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - removeCluster(request: v1_service_pb.RemoveClusterRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - listGateways(request: v1_service_pb.ListGatewaysRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListGatewaysResponse) => void): grpc.ClientUnaryCall; - listGateways(request: v1_service_pb.ListGatewaysRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListGatewaysResponse) => void): grpc.ClientUnaryCall; - listGateways(request: v1_service_pb.ListGatewaysRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListGatewaysResponse) => void): grpc.ClientUnaryCall; - createGateway(request: v1_service_pb.CreateGatewayRequest, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - createGateway(request: v1_service_pb.CreateGatewayRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - createGateway(request: v1_service_pb.CreateGatewayRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - removeGateway(request: v1_service_pb.RemoveGatewayRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - removeGateway(request: v1_service_pb.RemoveGatewayRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - removeGateway(request: v1_service_pb.RemoveGatewayRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - restartGateway(request: v1_service_pb.RestartGatewayRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - restartGateway(request: v1_service_pb.RestartGatewayRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - restartGateway(request: v1_service_pb.RestartGatewayRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - setGatewayTargetSubresourceName(request: v1_service_pb.SetGatewayTargetSubresourceNameRequest, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - setGatewayTargetSubresourceName(request: v1_service_pb.SetGatewayTargetSubresourceNameRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - setGatewayTargetSubresourceName(request: v1_service_pb.SetGatewayTargetSubresourceNameRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - setGatewayLocalPort(request: v1_service_pb.SetGatewayLocalPortRequest, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - setGatewayLocalPort(request: v1_service_pb.SetGatewayLocalPortRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - setGatewayLocalPort(request: v1_service_pb.SetGatewayLocalPortRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - getAuthSettings(request: v1_service_pb.GetAuthSettingsRequest, callback: (error: grpc.ServiceError | null, response: v1_auth_settings_pb.AuthSettings) => void): grpc.ClientUnaryCall; - getAuthSettings(request: v1_service_pb.GetAuthSettingsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_auth_settings_pb.AuthSettings) => void): grpc.ClientUnaryCall; - getAuthSettings(request: v1_service_pb.GetAuthSettingsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_auth_settings_pb.AuthSettings) => void): grpc.ClientUnaryCall; - getCluster(request: v1_service_pb.GetClusterRequest, callback: (error: grpc.ServiceError | null, response: v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; - getCluster(request: v1_service_pb.GetClusterRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; - getCluster(request: v1_service_pb.GetClusterRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; - login(request: v1_service_pb.LoginRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - login(request: v1_service_pb.LoginRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - login(request: v1_service_pb.LoginRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - loginPasswordless(): grpc.ClientDuplexStream; - loginPasswordless(options: Partial): grpc.ClientDuplexStream; - loginPasswordless(metadata: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; - logout(request: v1_service_pb.LogoutRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - logout(request: v1_service_pb.LogoutRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - logout(request: v1_service_pb.LogoutRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - transferFile(request: v1_service_pb.FileTransferRequest, options?: Partial): grpc.ClientReadableStream; - transferFile(request: v1_service_pb.FileTransferRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - reportUsageEvent(request: v1_usage_events_pb.ReportUsageEventRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - reportUsageEvent(request: v1_usage_events_pb.ReportUsageEventRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - reportUsageEvent(request: v1_usage_events_pb.ReportUsageEventRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; -} - -export class TerminalServiceClient extends grpc.Client implements ITerminalServiceClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - public updateTshdEventsServerAddress(request: v1_service_pb.UpdateTshdEventsServerAddressRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.UpdateTshdEventsServerAddressResponse) => void): grpc.ClientUnaryCall; - public updateTshdEventsServerAddress(request: v1_service_pb.UpdateTshdEventsServerAddressRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.UpdateTshdEventsServerAddressResponse) => void): grpc.ClientUnaryCall; - public updateTshdEventsServerAddress(request: v1_service_pb.UpdateTshdEventsServerAddressRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.UpdateTshdEventsServerAddressResponse) => void): grpc.ClientUnaryCall; - public listRootClusters(request: v1_service_pb.ListClustersRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; - public listRootClusters(request: v1_service_pb.ListClustersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; - public listRootClusters(request: v1_service_pb.ListClustersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; - public listLeafClusters(request: v1_service_pb.ListLeafClustersRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; - public listLeafClusters(request: v1_service_pb.ListLeafClustersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; - public listLeafClusters(request: v1_service_pb.ListLeafClustersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; - public getAllDatabases(request: v1_service_pb.GetAllDatabasesRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllDatabasesResponse) => void): grpc.ClientUnaryCall; - public getAllDatabases(request: v1_service_pb.GetAllDatabasesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllDatabasesResponse) => void): grpc.ClientUnaryCall; - public getAllDatabases(request: v1_service_pb.GetAllDatabasesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllDatabasesResponse) => void): grpc.ClientUnaryCall; - public getDatabases(request: v1_service_pb.GetDatabasesRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetDatabasesResponse) => void): grpc.ClientUnaryCall; - public getDatabases(request: v1_service_pb.GetDatabasesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetDatabasesResponse) => void): grpc.ClientUnaryCall; - public getDatabases(request: v1_service_pb.GetDatabasesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetDatabasesResponse) => void): grpc.ClientUnaryCall; - public listDatabaseUsers(request: v1_service_pb.ListDatabaseUsersRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListDatabaseUsersResponse) => void): grpc.ClientUnaryCall; - public listDatabaseUsers(request: v1_service_pb.ListDatabaseUsersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListDatabaseUsersResponse) => void): grpc.ClientUnaryCall; - public listDatabaseUsers(request: v1_service_pb.ListDatabaseUsersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListDatabaseUsersResponse) => void): grpc.ClientUnaryCall; - public getAllServers(request: v1_service_pb.GetAllServersRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllServersResponse) => void): grpc.ClientUnaryCall; - public getAllServers(request: v1_service_pb.GetAllServersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllServersResponse) => void): grpc.ClientUnaryCall; - public getAllServers(request: v1_service_pb.GetAllServersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllServersResponse) => void): grpc.ClientUnaryCall; - public getServers(request: v1_service_pb.GetServersRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetServersResponse) => void): grpc.ClientUnaryCall; - public getServers(request: v1_service_pb.GetServersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetServersResponse) => void): grpc.ClientUnaryCall; - public getServers(request: v1_service_pb.GetServersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetServersResponse) => void): grpc.ClientUnaryCall; - public getAccessRequests(request: v1_service_pb.GetAccessRequestsRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAccessRequestsResponse) => void): grpc.ClientUnaryCall; - public getAccessRequests(request: v1_service_pb.GetAccessRequestsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAccessRequestsResponse) => void): grpc.ClientUnaryCall; - public getAccessRequests(request: v1_service_pb.GetAccessRequestsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAccessRequestsResponse) => void): grpc.ClientUnaryCall; - public getAccessRequest(request: v1_service_pb.GetAccessRequestRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAccessRequestResponse) => void): grpc.ClientUnaryCall; - public getAccessRequest(request: v1_service_pb.GetAccessRequestRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAccessRequestResponse) => void): grpc.ClientUnaryCall; - public getAccessRequest(request: v1_service_pb.GetAccessRequestRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAccessRequestResponse) => void): grpc.ClientUnaryCall; - public deleteAccessRequest(request: v1_service_pb.DeleteAccessRequestRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public deleteAccessRequest(request: v1_service_pb.DeleteAccessRequestRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public deleteAccessRequest(request: v1_service_pb.DeleteAccessRequestRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public createAccessRequest(request: v1_service_pb.CreateAccessRequestRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.CreateAccessRequestResponse) => void): grpc.ClientUnaryCall; - public createAccessRequest(request: v1_service_pb.CreateAccessRequestRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.CreateAccessRequestResponse) => void): grpc.ClientUnaryCall; - public createAccessRequest(request: v1_service_pb.CreateAccessRequestRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.CreateAccessRequestResponse) => void): grpc.ClientUnaryCall; - public reviewAccessRequest(request: v1_service_pb.ReviewAccessRequestRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ReviewAccessRequestResponse) => void): grpc.ClientUnaryCall; - public reviewAccessRequest(request: v1_service_pb.ReviewAccessRequestRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ReviewAccessRequestResponse) => void): grpc.ClientUnaryCall; - public reviewAccessRequest(request: v1_service_pb.ReviewAccessRequestRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ReviewAccessRequestResponse) => void): grpc.ClientUnaryCall; - public getRequestableRoles(request: v1_service_pb.GetRequestableRolesRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetRequestableRolesResponse) => void): grpc.ClientUnaryCall; - public getRequestableRoles(request: v1_service_pb.GetRequestableRolesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetRequestableRolesResponse) => void): grpc.ClientUnaryCall; - public getRequestableRoles(request: v1_service_pb.GetRequestableRolesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetRequestableRolesResponse) => void): grpc.ClientUnaryCall; - public assumeRole(request: v1_service_pb.AssumeRoleRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public assumeRole(request: v1_service_pb.AssumeRoleRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public assumeRole(request: v1_service_pb.AssumeRoleRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public getAllKubes(request: v1_service_pb.GetAllKubesRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllKubesResponse) => void): grpc.ClientUnaryCall; - public getAllKubes(request: v1_service_pb.GetAllKubesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllKubesResponse) => void): grpc.ClientUnaryCall; - public getAllKubes(request: v1_service_pb.GetAllKubesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllKubesResponse) => void): grpc.ClientUnaryCall; - public getKubes(request: v1_service_pb.GetKubesRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetKubesResponse) => void): grpc.ClientUnaryCall; - public getKubes(request: v1_service_pb.GetKubesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetKubesResponse) => void): grpc.ClientUnaryCall; - public getKubes(request: v1_service_pb.GetKubesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetKubesResponse) => void): grpc.ClientUnaryCall; - public listApps(request: v1_service_pb.ListAppsRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListAppsResponse) => void): grpc.ClientUnaryCall; - public listApps(request: v1_service_pb.ListAppsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListAppsResponse) => void): grpc.ClientUnaryCall; - public listApps(request: v1_service_pb.ListAppsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListAppsResponse) => void): grpc.ClientUnaryCall; - public addCluster(request: v1_service_pb.AddClusterRequest, callback: (error: grpc.ServiceError | null, response: v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; - public addCluster(request: v1_service_pb.AddClusterRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; - public addCluster(request: v1_service_pb.AddClusterRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; - public removeCluster(request: v1_service_pb.RemoveClusterRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public removeCluster(request: v1_service_pb.RemoveClusterRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public removeCluster(request: v1_service_pb.RemoveClusterRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public listGateways(request: v1_service_pb.ListGatewaysRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListGatewaysResponse) => void): grpc.ClientUnaryCall; - public listGateways(request: v1_service_pb.ListGatewaysRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListGatewaysResponse) => void): grpc.ClientUnaryCall; - public listGateways(request: v1_service_pb.ListGatewaysRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListGatewaysResponse) => void): grpc.ClientUnaryCall; - public createGateway(request: v1_service_pb.CreateGatewayRequest, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - public createGateway(request: v1_service_pb.CreateGatewayRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - public createGateway(request: v1_service_pb.CreateGatewayRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - public removeGateway(request: v1_service_pb.RemoveGatewayRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public removeGateway(request: v1_service_pb.RemoveGatewayRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public removeGateway(request: v1_service_pb.RemoveGatewayRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public restartGateway(request: v1_service_pb.RestartGatewayRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public restartGateway(request: v1_service_pb.RestartGatewayRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public restartGateway(request: v1_service_pb.RestartGatewayRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public setGatewayTargetSubresourceName(request: v1_service_pb.SetGatewayTargetSubresourceNameRequest, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - public setGatewayTargetSubresourceName(request: v1_service_pb.SetGatewayTargetSubresourceNameRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - public setGatewayTargetSubresourceName(request: v1_service_pb.SetGatewayTargetSubresourceNameRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - public setGatewayLocalPort(request: v1_service_pb.SetGatewayLocalPortRequest, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - public setGatewayLocalPort(request: v1_service_pb.SetGatewayLocalPortRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - public setGatewayLocalPort(request: v1_service_pb.SetGatewayLocalPortRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - public getAuthSettings(request: v1_service_pb.GetAuthSettingsRequest, callback: (error: grpc.ServiceError | null, response: v1_auth_settings_pb.AuthSettings) => void): grpc.ClientUnaryCall; - public getAuthSettings(request: v1_service_pb.GetAuthSettingsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_auth_settings_pb.AuthSettings) => void): grpc.ClientUnaryCall; - public getAuthSettings(request: v1_service_pb.GetAuthSettingsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_auth_settings_pb.AuthSettings) => void): grpc.ClientUnaryCall; - public getCluster(request: v1_service_pb.GetClusterRequest, callback: (error: grpc.ServiceError | null, response: v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; - public getCluster(request: v1_service_pb.GetClusterRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; - public getCluster(request: v1_service_pb.GetClusterRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; - public login(request: v1_service_pb.LoginRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public login(request: v1_service_pb.LoginRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public login(request: v1_service_pb.LoginRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public loginPasswordless(options?: Partial): grpc.ClientDuplexStream; - public loginPasswordless(metadata?: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; - public logout(request: v1_service_pb.LogoutRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public logout(request: v1_service_pb.LogoutRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public logout(request: v1_service_pb.LogoutRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public transferFile(request: v1_service_pb.FileTransferRequest, options?: Partial): grpc.ClientReadableStream; - public transferFile(request: v1_service_pb.FileTransferRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - public reportUsageEvent(request: v1_usage_events_pb.ReportUsageEventRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public reportUsageEvent(request: v1_usage_events_pb.ReportUsageEventRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public reportUsageEvent(request: v1_usage_events_pb.ReportUsageEventRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; -} diff --git a/lib/teleterm/api/protogen/js/v1/service_grpc_pb.js b/lib/teleterm/api/protogen/js/v1/service_grpc_pb.js deleted file mode 100644 index a6c5ffffce471..0000000000000 --- a/lib/teleterm/api/protogen/js/v1/service_grpc_pb.js +++ /dev/null @@ -1,1065 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -// Original file comments: -// Copyright 2021 Gravitational, Inc -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -'use strict'; -var grpc = require('@grpc/grpc-js'); -var v1_service_pb = require('../v1/service_pb.js'); -var v1_access_request_pb = require('../v1/access_request_pb.js'); -var v1_app_pb = require('../v1/app_pb.js'); -var v1_auth_settings_pb = require('../v1/auth_settings_pb.js'); -var v1_cluster_pb = require('../v1/cluster_pb.js'); -var v1_database_pb = require('../v1/database_pb.js'); -var v1_gateway_pb = require('../v1/gateway_pb.js'); -var v1_kube_pb = require('../v1/kube_pb.js'); -var v1_server_pb = require('../v1/server_pb.js'); -var v1_usage_events_pb = require('../v1/usage_events_pb.js'); - -function serialize_teleport_terminal_v1_AddClusterRequest(arg) { - if (!(arg instanceof v1_service_pb.AddClusterRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.AddClusterRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_AddClusterRequest(buffer_arg) { - return v1_service_pb.AddClusterRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_AssumeRoleRequest(arg) { - if (!(arg instanceof v1_service_pb.AssumeRoleRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.AssumeRoleRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_AssumeRoleRequest(buffer_arg) { - return v1_service_pb.AssumeRoleRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_AuthSettings(arg) { - if (!(arg instanceof v1_auth_settings_pb.AuthSettings)) { - throw new Error('Expected argument of type teleport.terminal.v1.AuthSettings'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_AuthSettings(buffer_arg) { - return v1_auth_settings_pb.AuthSettings.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_Cluster(arg) { - if (!(arg instanceof v1_cluster_pb.Cluster)) { - throw new Error('Expected argument of type teleport.terminal.v1.Cluster'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_Cluster(buffer_arg) { - return v1_cluster_pb.Cluster.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_CreateAccessRequestRequest(arg) { - if (!(arg instanceof v1_service_pb.CreateAccessRequestRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.CreateAccessRequestRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_CreateAccessRequestRequest(buffer_arg) { - return v1_service_pb.CreateAccessRequestRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_CreateAccessRequestResponse(arg) { - if (!(arg instanceof v1_service_pb.CreateAccessRequestResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.CreateAccessRequestResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_CreateAccessRequestResponse(buffer_arg) { - return v1_service_pb.CreateAccessRequestResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_CreateGatewayRequest(arg) { - if (!(arg instanceof v1_service_pb.CreateGatewayRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.CreateGatewayRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_CreateGatewayRequest(buffer_arg) { - return v1_service_pb.CreateGatewayRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_DeleteAccessRequestRequest(arg) { - if (!(arg instanceof v1_service_pb.DeleteAccessRequestRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.DeleteAccessRequestRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_DeleteAccessRequestRequest(buffer_arg) { - return v1_service_pb.DeleteAccessRequestRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_EmptyResponse(arg) { - if (!(arg instanceof v1_service_pb.EmptyResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.EmptyResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_EmptyResponse(buffer_arg) { - return v1_service_pb.EmptyResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_FileTransferProgress(arg) { - if (!(arg instanceof v1_service_pb.FileTransferProgress)) { - throw new Error('Expected argument of type teleport.terminal.v1.FileTransferProgress'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_FileTransferProgress(buffer_arg) { - return v1_service_pb.FileTransferProgress.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_FileTransferRequest(arg) { - if (!(arg instanceof v1_service_pb.FileTransferRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.FileTransferRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_FileTransferRequest(buffer_arg) { - return v1_service_pb.FileTransferRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_Gateway(arg) { - if (!(arg instanceof v1_gateway_pb.Gateway)) { - throw new Error('Expected argument of type teleport.terminal.v1.Gateway'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_Gateway(buffer_arg) { - return v1_gateway_pb.Gateway.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetAccessRequestRequest(arg) { - if (!(arg instanceof v1_service_pb.GetAccessRequestRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetAccessRequestRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetAccessRequestRequest(buffer_arg) { - return v1_service_pb.GetAccessRequestRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetAccessRequestResponse(arg) { - if (!(arg instanceof v1_service_pb.GetAccessRequestResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetAccessRequestResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetAccessRequestResponse(buffer_arg) { - return v1_service_pb.GetAccessRequestResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetAccessRequestsRequest(arg) { - if (!(arg instanceof v1_service_pb.GetAccessRequestsRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetAccessRequestsRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetAccessRequestsRequest(buffer_arg) { - return v1_service_pb.GetAccessRequestsRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetAccessRequestsResponse(arg) { - if (!(arg instanceof v1_service_pb.GetAccessRequestsResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetAccessRequestsResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetAccessRequestsResponse(buffer_arg) { - return v1_service_pb.GetAccessRequestsResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetAllDatabasesRequest(arg) { - if (!(arg instanceof v1_service_pb.GetAllDatabasesRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetAllDatabasesRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetAllDatabasesRequest(buffer_arg) { - return v1_service_pb.GetAllDatabasesRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetAllDatabasesResponse(arg) { - if (!(arg instanceof v1_service_pb.GetAllDatabasesResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetAllDatabasesResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetAllDatabasesResponse(buffer_arg) { - return v1_service_pb.GetAllDatabasesResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetAllKubesRequest(arg) { - if (!(arg instanceof v1_service_pb.GetAllKubesRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetAllKubesRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetAllKubesRequest(buffer_arg) { - return v1_service_pb.GetAllKubesRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetAllKubesResponse(arg) { - if (!(arg instanceof v1_service_pb.GetAllKubesResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetAllKubesResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetAllKubesResponse(buffer_arg) { - return v1_service_pb.GetAllKubesResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetAllServersRequest(arg) { - if (!(arg instanceof v1_service_pb.GetAllServersRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetAllServersRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetAllServersRequest(buffer_arg) { - return v1_service_pb.GetAllServersRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetAllServersResponse(arg) { - if (!(arg instanceof v1_service_pb.GetAllServersResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetAllServersResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetAllServersResponse(buffer_arg) { - return v1_service_pb.GetAllServersResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetAuthSettingsRequest(arg) { - if (!(arg instanceof v1_service_pb.GetAuthSettingsRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetAuthSettingsRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetAuthSettingsRequest(buffer_arg) { - return v1_service_pb.GetAuthSettingsRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetClusterRequest(arg) { - if (!(arg instanceof v1_service_pb.GetClusterRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetClusterRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetClusterRequest(buffer_arg) { - return v1_service_pb.GetClusterRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetDatabasesRequest(arg) { - if (!(arg instanceof v1_service_pb.GetDatabasesRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetDatabasesRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetDatabasesRequest(buffer_arg) { - return v1_service_pb.GetDatabasesRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetDatabasesResponse(arg) { - if (!(arg instanceof v1_service_pb.GetDatabasesResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetDatabasesResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetDatabasesResponse(buffer_arg) { - return v1_service_pb.GetDatabasesResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetKubesRequest(arg) { - if (!(arg instanceof v1_service_pb.GetKubesRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetKubesRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetKubesRequest(buffer_arg) { - return v1_service_pb.GetKubesRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetKubesResponse(arg) { - if (!(arg instanceof v1_service_pb.GetKubesResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetKubesResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetKubesResponse(buffer_arg) { - return v1_service_pb.GetKubesResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetRequestableRolesRequest(arg) { - if (!(arg instanceof v1_service_pb.GetRequestableRolesRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetRequestableRolesRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetRequestableRolesRequest(buffer_arg) { - return v1_service_pb.GetRequestableRolesRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetRequestableRolesResponse(arg) { - if (!(arg instanceof v1_service_pb.GetRequestableRolesResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetRequestableRolesResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetRequestableRolesResponse(buffer_arg) { - return v1_service_pb.GetRequestableRolesResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetServersRequest(arg) { - if (!(arg instanceof v1_service_pb.GetServersRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetServersRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetServersRequest(buffer_arg) { - return v1_service_pb.GetServersRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetServersResponse(arg) { - if (!(arg instanceof v1_service_pb.GetServersResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetServersResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetServersResponse(buffer_arg) { - return v1_service_pb.GetServersResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_ListAppsRequest(arg) { - if (!(arg instanceof v1_service_pb.ListAppsRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.ListAppsRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_ListAppsRequest(buffer_arg) { - return v1_service_pb.ListAppsRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_ListAppsResponse(arg) { - if (!(arg instanceof v1_service_pb.ListAppsResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.ListAppsResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_ListAppsResponse(buffer_arg) { - return v1_service_pb.ListAppsResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_ListClustersRequest(arg) { - if (!(arg instanceof v1_service_pb.ListClustersRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.ListClustersRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_ListClustersRequest(buffer_arg) { - return v1_service_pb.ListClustersRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_ListClustersResponse(arg) { - if (!(arg instanceof v1_service_pb.ListClustersResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.ListClustersResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_ListClustersResponse(buffer_arg) { - return v1_service_pb.ListClustersResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_ListDatabaseUsersRequest(arg) { - if (!(arg instanceof v1_service_pb.ListDatabaseUsersRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.ListDatabaseUsersRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_ListDatabaseUsersRequest(buffer_arg) { - return v1_service_pb.ListDatabaseUsersRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_ListDatabaseUsersResponse(arg) { - if (!(arg instanceof v1_service_pb.ListDatabaseUsersResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.ListDatabaseUsersResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_ListDatabaseUsersResponse(buffer_arg) { - return v1_service_pb.ListDatabaseUsersResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_ListGatewaysRequest(arg) { - if (!(arg instanceof v1_service_pb.ListGatewaysRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.ListGatewaysRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_ListGatewaysRequest(buffer_arg) { - return v1_service_pb.ListGatewaysRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_ListGatewaysResponse(arg) { - if (!(arg instanceof v1_service_pb.ListGatewaysResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.ListGatewaysResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_ListGatewaysResponse(buffer_arg) { - return v1_service_pb.ListGatewaysResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_ListLeafClustersRequest(arg) { - if (!(arg instanceof v1_service_pb.ListLeafClustersRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.ListLeafClustersRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_ListLeafClustersRequest(buffer_arg) { - return v1_service_pb.ListLeafClustersRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_LoginPasswordlessRequest(arg) { - if (!(arg instanceof v1_service_pb.LoginPasswordlessRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.LoginPasswordlessRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_LoginPasswordlessRequest(buffer_arg) { - return v1_service_pb.LoginPasswordlessRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_LoginPasswordlessResponse(arg) { - if (!(arg instanceof v1_service_pb.LoginPasswordlessResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.LoginPasswordlessResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_LoginPasswordlessResponse(buffer_arg) { - return v1_service_pb.LoginPasswordlessResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_LoginRequest(arg) { - if (!(arg instanceof v1_service_pb.LoginRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.LoginRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_LoginRequest(buffer_arg) { - return v1_service_pb.LoginRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_LogoutRequest(arg) { - if (!(arg instanceof v1_service_pb.LogoutRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.LogoutRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_LogoutRequest(buffer_arg) { - return v1_service_pb.LogoutRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_RemoveClusterRequest(arg) { - if (!(arg instanceof v1_service_pb.RemoveClusterRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.RemoveClusterRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_RemoveClusterRequest(buffer_arg) { - return v1_service_pb.RemoveClusterRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_RemoveGatewayRequest(arg) { - if (!(arg instanceof v1_service_pb.RemoveGatewayRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.RemoveGatewayRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_RemoveGatewayRequest(buffer_arg) { - return v1_service_pb.RemoveGatewayRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_ReportUsageEventRequest(arg) { - if (!(arg instanceof v1_usage_events_pb.ReportUsageEventRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.ReportUsageEventRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_ReportUsageEventRequest(buffer_arg) { - return v1_usage_events_pb.ReportUsageEventRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_RestartGatewayRequest(arg) { - if (!(arg instanceof v1_service_pb.RestartGatewayRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.RestartGatewayRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_RestartGatewayRequest(buffer_arg) { - return v1_service_pb.RestartGatewayRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_ReviewAccessRequestRequest(arg) { - if (!(arg instanceof v1_service_pb.ReviewAccessRequestRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.ReviewAccessRequestRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_ReviewAccessRequestRequest(buffer_arg) { - return v1_service_pb.ReviewAccessRequestRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_ReviewAccessRequestResponse(arg) { - if (!(arg instanceof v1_service_pb.ReviewAccessRequestResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.ReviewAccessRequestResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_ReviewAccessRequestResponse(buffer_arg) { - return v1_service_pb.ReviewAccessRequestResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_SetGatewayLocalPortRequest(arg) { - if (!(arg instanceof v1_service_pb.SetGatewayLocalPortRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.SetGatewayLocalPortRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_SetGatewayLocalPortRequest(buffer_arg) { - return v1_service_pb.SetGatewayLocalPortRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_SetGatewayTargetSubresourceNameRequest(arg) { - if (!(arg instanceof v1_service_pb.SetGatewayTargetSubresourceNameRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_SetGatewayTargetSubresourceNameRequest(buffer_arg) { - return v1_service_pb.SetGatewayTargetSubresourceNameRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_UpdateTshdEventsServerAddressRequest(arg) { - if (!(arg instanceof v1_service_pb.UpdateTshdEventsServerAddressRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.UpdateTshdEventsServerAddressRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_UpdateTshdEventsServerAddressRequest(buffer_arg) { - return v1_service_pb.UpdateTshdEventsServerAddressRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_UpdateTshdEventsServerAddressResponse(arg) { - if (!(arg instanceof v1_service_pb.UpdateTshdEventsServerAddressResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.UpdateTshdEventsServerAddressResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_UpdateTshdEventsServerAddressResponse(buffer_arg) { - return v1_service_pb.UpdateTshdEventsServerAddressResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -// TerminalService describes Teleterm service -var TerminalServiceService = exports.TerminalServiceService = { - // UpdateTshdEventsServerAddress lets the Electron app update the address the tsh daemon is -// supposed to use when connecting to the tshd events gRPC service. This RPC needs to be made -// before any other from this service. -// -// The service is supposed to return a response from this call only after the client is ready. -updateTshdEventsServerAddress: { - path: '/teleport.terminal.v1.TerminalService/UpdateTshdEventsServerAddress', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.UpdateTshdEventsServerAddressRequest, - responseType: v1_service_pb.UpdateTshdEventsServerAddressResponse, - requestSerialize: serialize_teleport_terminal_v1_UpdateTshdEventsServerAddressRequest, - requestDeserialize: deserialize_teleport_terminal_v1_UpdateTshdEventsServerAddressRequest, - responseSerialize: serialize_teleport_terminal_v1_UpdateTshdEventsServerAddressResponse, - responseDeserialize: deserialize_teleport_terminal_v1_UpdateTshdEventsServerAddressResponse, - }, - // ListRootClusters lists root clusters -// Does not include detailed cluster information that would require a network request. -listRootClusters: { - path: '/teleport.terminal.v1.TerminalService/ListRootClusters', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.ListClustersRequest, - responseType: v1_service_pb.ListClustersResponse, - requestSerialize: serialize_teleport_terminal_v1_ListClustersRequest, - requestDeserialize: deserialize_teleport_terminal_v1_ListClustersRequest, - responseSerialize: serialize_teleport_terminal_v1_ListClustersResponse, - responseDeserialize: deserialize_teleport_terminal_v1_ListClustersResponse, - }, - // ListLeafClusters lists leaf clusters -// Does not include detailed cluster information that would require a network request. -listLeafClusters: { - path: '/teleport.terminal.v1.TerminalService/ListLeafClusters', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.ListLeafClustersRequest, - responseType: v1_service_pb.ListClustersResponse, - requestSerialize: serialize_teleport_terminal_v1_ListLeafClustersRequest, - requestDeserialize: deserialize_teleport_terminal_v1_ListLeafClustersRequest, - responseSerialize: serialize_teleport_terminal_v1_ListClustersResponse, - responseDeserialize: deserialize_teleport_terminal_v1_ListClustersResponse, - }, - // GetAllDatabases lists all databases without pagination -getAllDatabases: { - path: '/teleport.terminal.v1.TerminalService/GetAllDatabases', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.GetAllDatabasesRequest, - responseType: v1_service_pb.GetAllDatabasesResponse, - requestSerialize: serialize_teleport_terminal_v1_GetAllDatabasesRequest, - requestDeserialize: deserialize_teleport_terminal_v1_GetAllDatabasesRequest, - responseSerialize: serialize_teleport_terminal_v1_GetAllDatabasesResponse, - responseDeserialize: deserialize_teleport_terminal_v1_GetAllDatabasesResponse, - }, - // GetDatabases returns a filtered and paginated list of databases -getDatabases: { - path: '/teleport.terminal.v1.TerminalService/GetDatabases', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.GetDatabasesRequest, - responseType: v1_service_pb.GetDatabasesResponse, - requestSerialize: serialize_teleport_terminal_v1_GetDatabasesRequest, - requestDeserialize: deserialize_teleport_terminal_v1_GetDatabasesRequest, - responseSerialize: serialize_teleport_terminal_v1_GetDatabasesResponse, - responseDeserialize: deserialize_teleport_terminal_v1_GetDatabasesResponse, - }, - // ListDatabaseUsers lists allowed users for the given database based on the role set. -listDatabaseUsers: { - path: '/teleport.terminal.v1.TerminalService/ListDatabaseUsers', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.ListDatabaseUsersRequest, - responseType: v1_service_pb.ListDatabaseUsersResponse, - requestSerialize: serialize_teleport_terminal_v1_ListDatabaseUsersRequest, - requestDeserialize: deserialize_teleport_terminal_v1_ListDatabaseUsersRequest, - responseSerialize: serialize_teleport_terminal_v1_ListDatabaseUsersResponse, - responseDeserialize: deserialize_teleport_terminal_v1_ListDatabaseUsersResponse, - }, - // GetAllServers returns all servers -getAllServers: { - path: '/teleport.terminal.v1.TerminalService/GetAllServers', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.GetAllServersRequest, - responseType: v1_service_pb.GetAllServersResponse, - requestSerialize: serialize_teleport_terminal_v1_GetAllServersRequest, - requestDeserialize: deserialize_teleport_terminal_v1_GetAllServersRequest, - responseSerialize: serialize_teleport_terminal_v1_GetAllServersResponse, - responseDeserialize: deserialize_teleport_terminal_v1_GetAllServersResponse, - }, - // GetServers returns filtered, sorted, and paginated servers -getServers: { - path: '/teleport.terminal.v1.TerminalService/GetServers', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.GetServersRequest, - responseType: v1_service_pb.GetServersResponse, - requestSerialize: serialize_teleport_terminal_v1_GetServersRequest, - requestDeserialize: deserialize_teleport_terminal_v1_GetServersRequest, - responseSerialize: serialize_teleport_terminal_v1_GetServersResponse, - responseDeserialize: deserialize_teleport_terminal_v1_GetServersResponse, - }, - // GetAccessRequests lists filtered AccessRequests -getAccessRequests: { - path: '/teleport.terminal.v1.TerminalService/GetAccessRequests', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.GetAccessRequestsRequest, - responseType: v1_service_pb.GetAccessRequestsResponse, - requestSerialize: serialize_teleport_terminal_v1_GetAccessRequestsRequest, - requestDeserialize: deserialize_teleport_terminal_v1_GetAccessRequestsRequest, - responseSerialize: serialize_teleport_terminal_v1_GetAccessRequestsResponse, - responseDeserialize: deserialize_teleport_terminal_v1_GetAccessRequestsResponse, - }, - // GetAccessRequest retreives a single Access Request -getAccessRequest: { - path: '/teleport.terminal.v1.TerminalService/GetAccessRequest', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.GetAccessRequestRequest, - responseType: v1_service_pb.GetAccessRequestResponse, - requestSerialize: serialize_teleport_terminal_v1_GetAccessRequestRequest, - requestDeserialize: deserialize_teleport_terminal_v1_GetAccessRequestRequest, - responseSerialize: serialize_teleport_terminal_v1_GetAccessRequestResponse, - responseDeserialize: deserialize_teleport_terminal_v1_GetAccessRequestResponse, - }, - // DeleteAccessRequest deletes the access request by id -deleteAccessRequest: { - path: '/teleport.terminal.v1.TerminalService/DeleteAccessRequest', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.DeleteAccessRequestRequest, - responseType: v1_service_pb.EmptyResponse, - requestSerialize: serialize_teleport_terminal_v1_DeleteAccessRequestRequest, - requestDeserialize: deserialize_teleport_terminal_v1_DeleteAccessRequestRequest, - responseSerialize: serialize_teleport_terminal_v1_EmptyResponse, - responseDeserialize: deserialize_teleport_terminal_v1_EmptyResponse, - }, - // CreateAccessRequest creates an access request -createAccessRequest: { - path: '/teleport.terminal.v1.TerminalService/CreateAccessRequest', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.CreateAccessRequestRequest, - responseType: v1_service_pb.CreateAccessRequestResponse, - requestSerialize: serialize_teleport_terminal_v1_CreateAccessRequestRequest, - requestDeserialize: deserialize_teleport_terminal_v1_CreateAccessRequestRequest, - responseSerialize: serialize_teleport_terminal_v1_CreateAccessRequestResponse, - responseDeserialize: deserialize_teleport_terminal_v1_CreateAccessRequestResponse, - }, - // ReviewAccessRequest submits a review for an Access Request -reviewAccessRequest: { - path: '/teleport.terminal.v1.TerminalService/ReviewAccessRequest', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.ReviewAccessRequestRequest, - responseType: v1_service_pb.ReviewAccessRequestResponse, - requestSerialize: serialize_teleport_terminal_v1_ReviewAccessRequestRequest, - requestDeserialize: deserialize_teleport_terminal_v1_ReviewAccessRequestRequest, - responseSerialize: serialize_teleport_terminal_v1_ReviewAccessRequestResponse, - responseDeserialize: deserialize_teleport_terminal_v1_ReviewAccessRequestResponse, - }, - // GetRequestableRoles gets all requestable roles -getRequestableRoles: { - path: '/teleport.terminal.v1.TerminalService/GetRequestableRoles', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.GetRequestableRolesRequest, - responseType: v1_service_pb.GetRequestableRolesResponse, - requestSerialize: serialize_teleport_terminal_v1_GetRequestableRolesRequest, - requestDeserialize: deserialize_teleport_terminal_v1_GetRequestableRolesRequest, - responseSerialize: serialize_teleport_terminal_v1_GetRequestableRolesResponse, - responseDeserialize: deserialize_teleport_terminal_v1_GetRequestableRolesResponse, - }, - // AssumeRole assumes the role of the given access request -assumeRole: { - path: '/teleport.terminal.v1.TerminalService/AssumeRole', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.AssumeRoleRequest, - responseType: v1_service_pb.EmptyResponse, - requestSerialize: serialize_teleport_terminal_v1_AssumeRoleRequest, - requestDeserialize: deserialize_teleport_terminal_v1_AssumeRoleRequest, - responseSerialize: serialize_teleport_terminal_v1_EmptyResponse, - responseDeserialize: deserialize_teleport_terminal_v1_EmptyResponse, - }, - // GetAllKubes list all kubes -getAllKubes: { - path: '/teleport.terminal.v1.TerminalService/GetAllKubes', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.GetAllKubesRequest, - responseType: v1_service_pb.GetAllKubesResponse, - requestSerialize: serialize_teleport_terminal_v1_GetAllKubesRequest, - requestDeserialize: deserialize_teleport_terminal_v1_GetAllKubesRequest, - responseSerialize: serialize_teleport_terminal_v1_GetAllKubesResponse, - responseDeserialize: deserialize_teleport_terminal_v1_GetAllKubesResponse, - }, - // GetKubes returns filtered, sorted, and paginated kubes -getKubes: { - path: '/teleport.terminal.v1.TerminalService/GetKubes', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.GetKubesRequest, - responseType: v1_service_pb.GetKubesResponse, - requestSerialize: serialize_teleport_terminal_v1_GetKubesRequest, - requestDeserialize: deserialize_teleport_terminal_v1_GetKubesRequest, - responseSerialize: serialize_teleport_terminal_v1_GetKubesResponse, - responseDeserialize: deserialize_teleport_terminal_v1_GetKubesResponse, - }, - // ListApps list apps -listApps: { - path: '/teleport.terminal.v1.TerminalService/ListApps', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.ListAppsRequest, - responseType: v1_service_pb.ListAppsResponse, - requestSerialize: serialize_teleport_terminal_v1_ListAppsRequest, - requestDeserialize: deserialize_teleport_terminal_v1_ListAppsRequest, - responseSerialize: serialize_teleport_terminal_v1_ListAppsResponse, - responseDeserialize: deserialize_teleport_terminal_v1_ListAppsResponse, - }, - // AddCluster adds a cluster to profile -addCluster: { - path: '/teleport.terminal.v1.TerminalService/AddCluster', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.AddClusterRequest, - responseType: v1_cluster_pb.Cluster, - requestSerialize: serialize_teleport_terminal_v1_AddClusterRequest, - requestDeserialize: deserialize_teleport_terminal_v1_AddClusterRequest, - responseSerialize: serialize_teleport_terminal_v1_Cluster, - responseDeserialize: deserialize_teleport_terminal_v1_Cluster, - }, - // RemoveCluster removes a cluster from profile -removeCluster: { - path: '/teleport.terminal.v1.TerminalService/RemoveCluster', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.RemoveClusterRequest, - responseType: v1_service_pb.EmptyResponse, - requestSerialize: serialize_teleport_terminal_v1_RemoveClusterRequest, - requestDeserialize: deserialize_teleport_terminal_v1_RemoveClusterRequest, - responseSerialize: serialize_teleport_terminal_v1_EmptyResponse, - responseDeserialize: deserialize_teleport_terminal_v1_EmptyResponse, - }, - // ListGateways lists gateways -listGateways: { - path: '/teleport.terminal.v1.TerminalService/ListGateways', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.ListGatewaysRequest, - responseType: v1_service_pb.ListGatewaysResponse, - requestSerialize: serialize_teleport_terminal_v1_ListGatewaysRequest, - requestDeserialize: deserialize_teleport_terminal_v1_ListGatewaysRequest, - responseSerialize: serialize_teleport_terminal_v1_ListGatewaysResponse, - responseDeserialize: deserialize_teleport_terminal_v1_ListGatewaysResponse, - }, - // CreateGateway creates a gateway -createGateway: { - path: '/teleport.terminal.v1.TerminalService/CreateGateway', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.CreateGatewayRequest, - responseType: v1_gateway_pb.Gateway, - requestSerialize: serialize_teleport_terminal_v1_CreateGatewayRequest, - requestDeserialize: deserialize_teleport_terminal_v1_CreateGatewayRequest, - responseSerialize: serialize_teleport_terminal_v1_Gateway, - responseDeserialize: deserialize_teleport_terminal_v1_Gateway, - }, - // RemoveGateway removes a gateway -removeGateway: { - path: '/teleport.terminal.v1.TerminalService/RemoveGateway', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.RemoveGatewayRequest, - responseType: v1_service_pb.EmptyResponse, - requestSerialize: serialize_teleport_terminal_v1_RemoveGatewayRequest, - requestDeserialize: deserialize_teleport_terminal_v1_RemoveGatewayRequest, - responseSerialize: serialize_teleport_terminal_v1_EmptyResponse, - responseDeserialize: deserialize_teleport_terminal_v1_EmptyResponse, - }, - // RestartGateway stops a gateway and starts a new with identical parameters, keeping the -// original URI. A temporary workaround until it's possible to refresh certs in a running -// database proxy. -restartGateway: { - path: '/teleport.terminal.v1.TerminalService/RestartGateway', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.RestartGatewayRequest, - responseType: v1_service_pb.EmptyResponse, - requestSerialize: serialize_teleport_terminal_v1_RestartGatewayRequest, - requestDeserialize: deserialize_teleport_terminal_v1_RestartGatewayRequest, - responseSerialize: serialize_teleport_terminal_v1_EmptyResponse, - responseDeserialize: deserialize_teleport_terminal_v1_EmptyResponse, - }, - // SetGatewayTargetSubresourceName changes the TargetSubresourceName field of gateway.Gateway -// and returns the updated version of gateway.Gateway. -// -// In Connect this is used to update the db name of a db connection along with the CLI command. -setGatewayTargetSubresourceName: { - path: '/teleport.terminal.v1.TerminalService/SetGatewayTargetSubresourceName', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.SetGatewayTargetSubresourceNameRequest, - responseType: v1_gateway_pb.Gateway, - requestSerialize: serialize_teleport_terminal_v1_SetGatewayTargetSubresourceNameRequest, - requestDeserialize: deserialize_teleport_terminal_v1_SetGatewayTargetSubresourceNameRequest, - responseSerialize: serialize_teleport_terminal_v1_Gateway, - responseDeserialize: deserialize_teleport_terminal_v1_Gateway, - }, - // SetGatewayLocalPort starts a new gateway on the new port, stops the old gateway and then -// assigns the URI of the old gateway to the new one. It does so without fetching a new db cert. -setGatewayLocalPort: { - path: '/teleport.terminal.v1.TerminalService/SetGatewayLocalPort', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.SetGatewayLocalPortRequest, - responseType: v1_gateway_pb.Gateway, - requestSerialize: serialize_teleport_terminal_v1_SetGatewayLocalPortRequest, - requestDeserialize: deserialize_teleport_terminal_v1_SetGatewayLocalPortRequest, - responseSerialize: serialize_teleport_terminal_v1_Gateway, - responseDeserialize: deserialize_teleport_terminal_v1_Gateway, - }, - // GetAuthSettings returns cluster auth settigns -getAuthSettings: { - path: '/teleport.terminal.v1.TerminalService/GetAuthSettings', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.GetAuthSettingsRequest, - responseType: v1_auth_settings_pb.AuthSettings, - requestSerialize: serialize_teleport_terminal_v1_GetAuthSettingsRequest, - requestDeserialize: deserialize_teleport_terminal_v1_GetAuthSettingsRequest, - responseSerialize: serialize_teleport_terminal_v1_AuthSettings, - responseDeserialize: deserialize_teleport_terminal_v1_AuthSettings, - }, - // GetCluster returns cluster. Makes a network request and includes detailed -// information about enterprise features availabed on the connected auth server -getCluster: { - path: '/teleport.terminal.v1.TerminalService/GetCluster', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.GetClusterRequest, - responseType: v1_cluster_pb.Cluster, - requestSerialize: serialize_teleport_terminal_v1_GetClusterRequest, - requestDeserialize: deserialize_teleport_terminal_v1_GetClusterRequest, - responseSerialize: serialize_teleport_terminal_v1_Cluster, - responseDeserialize: deserialize_teleport_terminal_v1_Cluster, - }, - // Login logs in a user to a cluster -login: { - path: '/teleport.terminal.v1.TerminalService/Login', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.LoginRequest, - responseType: v1_service_pb.EmptyResponse, - requestSerialize: serialize_teleport_terminal_v1_LoginRequest, - requestDeserialize: deserialize_teleport_terminal_v1_LoginRequest, - responseSerialize: serialize_teleport_terminal_v1_EmptyResponse, - responseDeserialize: deserialize_teleport_terminal_v1_EmptyResponse, - }, - // LoginPasswordless logs in a user to a cluster passwordlessly. -// -// The RPC is streaming both ways and the message sequence example for hardware keys are: -// (-> means client-to-server, <- means server-to-client) -// -// Hardware keys: -// -> Init -// <- Send PasswordlessPrompt enum TAP to choose a device -// -> Receive TAP device response -// <- Send PasswordlessPrompt enum PIN -// -> Receive PIN response -// <- Send PasswordlessPrompt enum RETAP to confirm -// -> Receive RETAP device response -// <- Send list of credentials (e.g. usernames) associated with device -// -> Receive the index number associated with the selected credential in list -// <- End -loginPasswordless: { - path: '/teleport.terminal.v1.TerminalService/LoginPasswordless', - requestStream: true, - responseStream: true, - requestType: v1_service_pb.LoginPasswordlessRequest, - responseType: v1_service_pb.LoginPasswordlessResponse, - requestSerialize: serialize_teleport_terminal_v1_LoginPasswordlessRequest, - requestDeserialize: deserialize_teleport_terminal_v1_LoginPasswordlessRequest, - responseSerialize: serialize_teleport_terminal_v1_LoginPasswordlessResponse, - responseDeserialize: deserialize_teleport_terminal_v1_LoginPasswordlessResponse, - }, - // ClusterLogin logs out a user from cluster -logout: { - path: '/teleport.terminal.v1.TerminalService/Logout', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.LogoutRequest, - responseType: v1_service_pb.EmptyResponse, - requestSerialize: serialize_teleport_terminal_v1_LogoutRequest, - requestDeserialize: deserialize_teleport_terminal_v1_LogoutRequest, - responseSerialize: serialize_teleport_terminal_v1_EmptyResponse, - responseDeserialize: deserialize_teleport_terminal_v1_EmptyResponse, - }, - // TransferFile sends a request to download/upload a file -transferFile: { - path: '/teleport.terminal.v1.TerminalService/TransferFile', - requestStream: false, - responseStream: true, - requestType: v1_service_pb.FileTransferRequest, - responseType: v1_service_pb.FileTransferProgress, - requestSerialize: serialize_teleport_terminal_v1_FileTransferRequest, - requestDeserialize: deserialize_teleport_terminal_v1_FileTransferRequest, - responseSerialize: serialize_teleport_terminal_v1_FileTransferProgress, - responseDeserialize: deserialize_teleport_terminal_v1_FileTransferProgress, - }, - // ReportUsageEvent allows to send usage events that are then anonymized and forwarded to prehog -reportUsageEvent: { - path: '/teleport.terminal.v1.TerminalService/ReportUsageEvent', - requestStream: false, - responseStream: false, - requestType: v1_usage_events_pb.ReportUsageEventRequest, - responseType: v1_service_pb.EmptyResponse, - requestSerialize: serialize_teleport_terminal_v1_ReportUsageEventRequest, - requestDeserialize: deserialize_teleport_terminal_v1_ReportUsageEventRequest, - responseSerialize: serialize_teleport_terminal_v1_EmptyResponse, - responseDeserialize: deserialize_teleport_terminal_v1_EmptyResponse, - }, -}; - -exports.TerminalServiceClient = grpc.makeGenericClientConstructor(TerminalServiceService); diff --git a/lib/teleterm/api/protogen/js/v1/service_pb.d.ts b/lib/teleterm/api/protogen/js/v1/service_pb.d.ts deleted file mode 100644 index e44f119c5ded2..0000000000000 --- a/lib/teleterm/api/protogen/js/v1/service_pb.d.ts +++ /dev/null @@ -1,1536 +0,0 @@ -// package: teleport.terminal.v1 -// file: v1/service.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as v1_access_request_pb from "../v1/access_request_pb"; -import * as v1_app_pb from "../v1/app_pb"; -import * as v1_auth_settings_pb from "../v1/auth_settings_pb"; -import * as v1_cluster_pb from "../v1/cluster_pb"; -import * as v1_database_pb from "../v1/database_pb"; -import * as v1_gateway_pb from "../v1/gateway_pb"; -import * as v1_kube_pb from "../v1/kube_pb"; -import * as v1_server_pb from "../v1/server_pb"; -import * as v1_usage_events_pb from "../v1/usage_events_pb"; - -export class EmptyResponse extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EmptyResponse.AsObject; - static toObject(includeInstance: boolean, msg: EmptyResponse): EmptyResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EmptyResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EmptyResponse; - static deserializeBinaryFromReader(message: EmptyResponse, reader: jspb.BinaryReader): EmptyResponse; -} - -export namespace EmptyResponse { - export type AsObject = { - } -} - -export class RemoveClusterRequest extends jspb.Message { - getClusterUri(): string; - setClusterUri(value: string): RemoveClusterRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RemoveClusterRequest.AsObject; - static toObject(includeInstance: boolean, msg: RemoveClusterRequest): RemoveClusterRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RemoveClusterRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RemoveClusterRequest; - static deserializeBinaryFromReader(message: RemoveClusterRequest, reader: jspb.BinaryReader): RemoveClusterRequest; -} - -export namespace RemoveClusterRequest { - export type AsObject = { - clusterUri: string, - } -} - -export class GetClusterRequest extends jspb.Message { - getClusterUri(): string; - setClusterUri(value: string): GetClusterRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetClusterRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetClusterRequest): GetClusterRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetClusterRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetClusterRequest; - static deserializeBinaryFromReader(message: GetClusterRequest, reader: jspb.BinaryReader): GetClusterRequest; -} - -export namespace GetClusterRequest { - export type AsObject = { - clusterUri: string, - } -} - -export class LogoutRequest extends jspb.Message { - getClusterUri(): string; - setClusterUri(value: string): LogoutRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LogoutRequest.AsObject; - static toObject(includeInstance: boolean, msg: LogoutRequest): LogoutRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LogoutRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LogoutRequest; - static deserializeBinaryFromReader(message: LogoutRequest, reader: jspb.BinaryReader): LogoutRequest; -} - -export namespace LogoutRequest { - export type AsObject = { - clusterUri: string, - } -} - -export class GetAccessRequestRequest extends jspb.Message { - getClusterUri(): string; - setClusterUri(value: string): GetAccessRequestRequest; - - getAccessRequestId(): string; - setAccessRequestId(value: string): GetAccessRequestRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAccessRequestRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetAccessRequestRequest): GetAccessRequestRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetAccessRequestRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAccessRequestRequest; - static deserializeBinaryFromReader(message: GetAccessRequestRequest, reader: jspb.BinaryReader): GetAccessRequestRequest; -} - -export namespace GetAccessRequestRequest { - export type AsObject = { - clusterUri: string, - accessRequestId: string, - } -} - -export class GetAccessRequestsRequest extends jspb.Message { - getClusterUri(): string; - setClusterUri(value: string): GetAccessRequestsRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAccessRequestsRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetAccessRequestsRequest): GetAccessRequestsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetAccessRequestsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAccessRequestsRequest; - static deserializeBinaryFromReader(message: GetAccessRequestsRequest, reader: jspb.BinaryReader): GetAccessRequestsRequest; -} - -export namespace GetAccessRequestsRequest { - export type AsObject = { - clusterUri: string, - } -} - -export class GetAccessRequestResponse extends jspb.Message { - - hasRequest(): boolean; - clearRequest(): void; - getRequest(): v1_access_request_pb.AccessRequest | undefined; - setRequest(value?: v1_access_request_pb.AccessRequest): GetAccessRequestResponse; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAccessRequestResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetAccessRequestResponse): GetAccessRequestResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetAccessRequestResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAccessRequestResponse; - static deserializeBinaryFromReader(message: GetAccessRequestResponse, reader: jspb.BinaryReader): GetAccessRequestResponse; -} - -export namespace GetAccessRequestResponse { - export type AsObject = { - request?: v1_access_request_pb.AccessRequest.AsObject, - } -} - -export class GetAccessRequestsResponse extends jspb.Message { - clearRequestsList(): void; - getRequestsList(): Array; - setRequestsList(value: Array): GetAccessRequestsResponse; - addRequests(value?: v1_access_request_pb.AccessRequest, index?: number): v1_access_request_pb.AccessRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAccessRequestsResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetAccessRequestsResponse): GetAccessRequestsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetAccessRequestsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAccessRequestsResponse; - static deserializeBinaryFromReader(message: GetAccessRequestsResponse, reader: jspb.BinaryReader): GetAccessRequestsResponse; -} - -export namespace GetAccessRequestsResponse { - export type AsObject = { - requestsList: Array, - } -} - -export class DeleteAccessRequestRequest extends jspb.Message { - getRootClusterUri(): string; - setRootClusterUri(value: string): DeleteAccessRequestRequest; - - getAccessRequestId(): string; - setAccessRequestId(value: string): DeleteAccessRequestRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteAccessRequestRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteAccessRequestRequest): DeleteAccessRequestRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteAccessRequestRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteAccessRequestRequest; - static deserializeBinaryFromReader(message: DeleteAccessRequestRequest, reader: jspb.BinaryReader): DeleteAccessRequestRequest; -} - -export namespace DeleteAccessRequestRequest { - export type AsObject = { - rootClusterUri: string, - accessRequestId: string, - } -} - -export class CreateAccessRequestRequest extends jspb.Message { - getRootClusterUri(): string; - setRootClusterUri(value: string): CreateAccessRequestRequest; - - getReason(): string; - setReason(value: string): CreateAccessRequestRequest; - - clearRolesList(): void; - getRolesList(): Array; - setRolesList(value: Array): CreateAccessRequestRequest; - addRoles(value: string, index?: number): string; - - clearSuggestedReviewersList(): void; - getSuggestedReviewersList(): Array; - setSuggestedReviewersList(value: Array): CreateAccessRequestRequest; - addSuggestedReviewers(value: string, index?: number): string; - - clearResourceIdsList(): void; - getResourceIdsList(): Array; - setResourceIdsList(value: Array): CreateAccessRequestRequest; - addResourceIds(value?: v1_access_request_pb.ResourceID, index?: number): v1_access_request_pb.ResourceID; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateAccessRequestRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateAccessRequestRequest): CreateAccessRequestRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateAccessRequestRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateAccessRequestRequest; - static deserializeBinaryFromReader(message: CreateAccessRequestRequest, reader: jspb.BinaryReader): CreateAccessRequestRequest; -} - -export namespace CreateAccessRequestRequest { - export type AsObject = { - rootClusterUri: string, - reason: string, - rolesList: Array, - suggestedReviewersList: Array, - resourceIdsList: Array, - } -} - -export class CreateAccessRequestResponse extends jspb.Message { - - hasRequest(): boolean; - clearRequest(): void; - getRequest(): v1_access_request_pb.AccessRequest | undefined; - setRequest(value?: v1_access_request_pb.AccessRequest): CreateAccessRequestResponse; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateAccessRequestResponse.AsObject; - static toObject(includeInstance: boolean, msg: CreateAccessRequestResponse): CreateAccessRequestResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateAccessRequestResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateAccessRequestResponse; - static deserializeBinaryFromReader(message: CreateAccessRequestResponse, reader: jspb.BinaryReader): CreateAccessRequestResponse; -} - -export namespace CreateAccessRequestResponse { - export type AsObject = { - request?: v1_access_request_pb.AccessRequest.AsObject, - } -} - -export class AssumeRoleRequest extends jspb.Message { - getRootClusterUri(): string; - setRootClusterUri(value: string): AssumeRoleRequest; - - clearAccessRequestIdsList(): void; - getAccessRequestIdsList(): Array; - setAccessRequestIdsList(value: Array): AssumeRoleRequest; - addAccessRequestIds(value: string, index?: number): string; - - clearDropRequestIdsList(): void; - getDropRequestIdsList(): Array; - setDropRequestIdsList(value: Array): AssumeRoleRequest; - addDropRequestIds(value: string, index?: number): string; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AssumeRoleRequest.AsObject; - static toObject(includeInstance: boolean, msg: AssumeRoleRequest): AssumeRoleRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AssumeRoleRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AssumeRoleRequest; - static deserializeBinaryFromReader(message: AssumeRoleRequest, reader: jspb.BinaryReader): AssumeRoleRequest; -} - -export namespace AssumeRoleRequest { - export type AsObject = { - rootClusterUri: string, - accessRequestIdsList: Array, - dropRequestIdsList: Array, - } -} - -export class GetRequestableRolesRequest extends jspb.Message { - getClusterUri(): string; - setClusterUri(value: string): GetRequestableRolesRequest; - - clearResourceIdsList(): void; - getResourceIdsList(): Array; - setResourceIdsList(value: Array): GetRequestableRolesRequest; - addResourceIds(value?: v1_access_request_pb.ResourceID, index?: number): v1_access_request_pb.ResourceID; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetRequestableRolesRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetRequestableRolesRequest): GetRequestableRolesRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetRequestableRolesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetRequestableRolesRequest; - static deserializeBinaryFromReader(message: GetRequestableRolesRequest, reader: jspb.BinaryReader): GetRequestableRolesRequest; -} - -export namespace GetRequestableRolesRequest { - export type AsObject = { - clusterUri: string, - resourceIdsList: Array, - } -} - -export class GetRequestableRolesResponse extends jspb.Message { - clearRolesList(): void; - getRolesList(): Array; - setRolesList(value: Array): GetRequestableRolesResponse; - addRoles(value: string, index?: number): string; - - clearApplicableRolesList(): void; - getApplicableRolesList(): Array; - setApplicableRolesList(value: Array): GetRequestableRolesResponse; - addApplicableRoles(value: string, index?: number): string; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetRequestableRolesResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetRequestableRolesResponse): GetRequestableRolesResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetRequestableRolesResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetRequestableRolesResponse; - static deserializeBinaryFromReader(message: GetRequestableRolesResponse, reader: jspb.BinaryReader): GetRequestableRolesResponse; -} - -export namespace GetRequestableRolesResponse { - export type AsObject = { - rolesList: Array, - applicableRolesList: Array, - } -} - -export class ReviewAccessRequestRequest extends jspb.Message { - getRootClusterUri(): string; - setRootClusterUri(value: string): ReviewAccessRequestRequest; - - getState(): string; - setState(value: string): ReviewAccessRequestRequest; - - getReason(): string; - setReason(value: string): ReviewAccessRequestRequest; - - clearRolesList(): void; - getRolesList(): Array; - setRolesList(value: Array): ReviewAccessRequestRequest; - addRoles(value: string, index?: number): string; - - getAccessRequestId(): string; - setAccessRequestId(value: string): ReviewAccessRequestRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ReviewAccessRequestRequest.AsObject; - static toObject(includeInstance: boolean, msg: ReviewAccessRequestRequest): ReviewAccessRequestRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ReviewAccessRequestRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ReviewAccessRequestRequest; - static deserializeBinaryFromReader(message: ReviewAccessRequestRequest, reader: jspb.BinaryReader): ReviewAccessRequestRequest; -} - -export namespace ReviewAccessRequestRequest { - export type AsObject = { - rootClusterUri: string, - state: string, - reason: string, - rolesList: Array, - accessRequestId: string, - } -} - -export class ReviewAccessRequestResponse extends jspb.Message { - - hasRequest(): boolean; - clearRequest(): void; - getRequest(): v1_access_request_pb.AccessRequest | undefined; - setRequest(value?: v1_access_request_pb.AccessRequest): ReviewAccessRequestResponse; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ReviewAccessRequestResponse.AsObject; - static toObject(includeInstance: boolean, msg: ReviewAccessRequestResponse): ReviewAccessRequestResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ReviewAccessRequestResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ReviewAccessRequestResponse; - static deserializeBinaryFromReader(message: ReviewAccessRequestResponse, reader: jspb.BinaryReader): ReviewAccessRequestResponse; -} - -export namespace ReviewAccessRequestResponse { - export type AsObject = { - request?: v1_access_request_pb.AccessRequest.AsObject, - } -} - -export class CredentialInfo extends jspb.Message { - getUsername(): string; - setUsername(value: string): CredentialInfo; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CredentialInfo.AsObject; - static toObject(includeInstance: boolean, msg: CredentialInfo): CredentialInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CredentialInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CredentialInfo; - static deserializeBinaryFromReader(message: CredentialInfo, reader: jspb.BinaryReader): CredentialInfo; -} - -export namespace CredentialInfo { - export type AsObject = { - username: string, - } -} - -export class LoginPasswordlessResponse extends jspb.Message { - getPrompt(): PasswordlessPrompt; - setPrompt(value: PasswordlessPrompt): LoginPasswordlessResponse; - - clearCredentialsList(): void; - getCredentialsList(): Array; - setCredentialsList(value: Array): LoginPasswordlessResponse; - addCredentials(value?: CredentialInfo, index?: number): CredentialInfo; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LoginPasswordlessResponse.AsObject; - static toObject(includeInstance: boolean, msg: LoginPasswordlessResponse): LoginPasswordlessResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LoginPasswordlessResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LoginPasswordlessResponse; - static deserializeBinaryFromReader(message: LoginPasswordlessResponse, reader: jspb.BinaryReader): LoginPasswordlessResponse; -} - -export namespace LoginPasswordlessResponse { - export type AsObject = { - prompt: PasswordlessPrompt, - credentialsList: Array, - } -} - -export class LoginPasswordlessRequest extends jspb.Message { - - hasInit(): boolean; - clearInit(): void; - getInit(): LoginPasswordlessRequest.LoginPasswordlessRequestInit | undefined; - setInit(value?: LoginPasswordlessRequest.LoginPasswordlessRequestInit): LoginPasswordlessRequest; - - - hasPin(): boolean; - clearPin(): void; - getPin(): LoginPasswordlessRequest.LoginPasswordlessPINResponse | undefined; - setPin(value?: LoginPasswordlessRequest.LoginPasswordlessPINResponse): LoginPasswordlessRequest; - - - hasCredential(): boolean; - clearCredential(): void; - getCredential(): LoginPasswordlessRequest.LoginPasswordlessCredentialResponse | undefined; - setCredential(value?: LoginPasswordlessRequest.LoginPasswordlessCredentialResponse): LoginPasswordlessRequest; - - - getRequestCase(): LoginPasswordlessRequest.RequestCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LoginPasswordlessRequest.AsObject; - static toObject(includeInstance: boolean, msg: LoginPasswordlessRequest): LoginPasswordlessRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LoginPasswordlessRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LoginPasswordlessRequest; - static deserializeBinaryFromReader(message: LoginPasswordlessRequest, reader: jspb.BinaryReader): LoginPasswordlessRequest; -} - -export namespace LoginPasswordlessRequest { - export type AsObject = { - init?: LoginPasswordlessRequest.LoginPasswordlessRequestInit.AsObject, - pin?: LoginPasswordlessRequest.LoginPasswordlessPINResponse.AsObject, - credential?: LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.AsObject, - } - - - export class LoginPasswordlessRequestInit extends jspb.Message { - getClusterUri(): string; - setClusterUri(value: string): LoginPasswordlessRequestInit; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LoginPasswordlessRequestInit.AsObject; - static toObject(includeInstance: boolean, msg: LoginPasswordlessRequestInit): LoginPasswordlessRequestInit.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LoginPasswordlessRequestInit, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LoginPasswordlessRequestInit; - static deserializeBinaryFromReader(message: LoginPasswordlessRequestInit, reader: jspb.BinaryReader): LoginPasswordlessRequestInit; - } - - export namespace LoginPasswordlessRequestInit { - export type AsObject = { - clusterUri: string, - } - } - - export class LoginPasswordlessPINResponse extends jspb.Message { - getPin(): string; - setPin(value: string): LoginPasswordlessPINResponse; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LoginPasswordlessPINResponse.AsObject; - static toObject(includeInstance: boolean, msg: LoginPasswordlessPINResponse): LoginPasswordlessPINResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LoginPasswordlessPINResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LoginPasswordlessPINResponse; - static deserializeBinaryFromReader(message: LoginPasswordlessPINResponse, reader: jspb.BinaryReader): LoginPasswordlessPINResponse; - } - - export namespace LoginPasswordlessPINResponse { - export type AsObject = { - pin: string, - } - } - - export class LoginPasswordlessCredentialResponse extends jspb.Message { - getIndex(): number; - setIndex(value: number): LoginPasswordlessCredentialResponse; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LoginPasswordlessCredentialResponse.AsObject; - static toObject(includeInstance: boolean, msg: LoginPasswordlessCredentialResponse): LoginPasswordlessCredentialResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LoginPasswordlessCredentialResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LoginPasswordlessCredentialResponse; - static deserializeBinaryFromReader(message: LoginPasswordlessCredentialResponse, reader: jspb.BinaryReader): LoginPasswordlessCredentialResponse; - } - - export namespace LoginPasswordlessCredentialResponse { - export type AsObject = { - index: number, - } - } - - - export enum RequestCase { - REQUEST_NOT_SET = 0, - - INIT = 1, - - PIN = 2, - - CREDENTIAL = 3, - - } - -} - -export class FileTransferRequest extends jspb.Message { - getClusterUri(): string; - setClusterUri(value: string): FileTransferRequest; - - getLogin(): string; - setLogin(value: string): FileTransferRequest; - - getHostname(): string; - setHostname(value: string): FileTransferRequest; - - getSource(): string; - setSource(value: string): FileTransferRequest; - - getDestination(): string; - setDestination(value: string): FileTransferRequest; - - getDirection(): FileTransferDirection; - setDirection(value: FileTransferDirection): FileTransferRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FileTransferRequest.AsObject; - static toObject(includeInstance: boolean, msg: FileTransferRequest): FileTransferRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: FileTransferRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FileTransferRequest; - static deserializeBinaryFromReader(message: FileTransferRequest, reader: jspb.BinaryReader): FileTransferRequest; -} - -export namespace FileTransferRequest { - export type AsObject = { - clusterUri: string, - login: string, - hostname: string, - source: string, - destination: string, - direction: FileTransferDirection, - } -} - -export class FileTransferProgress extends jspb.Message { - getPercentage(): number; - setPercentage(value: number): FileTransferProgress; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FileTransferProgress.AsObject; - static toObject(includeInstance: boolean, msg: FileTransferProgress): FileTransferProgress.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: FileTransferProgress, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FileTransferProgress; - static deserializeBinaryFromReader(message: FileTransferProgress, reader: jspb.BinaryReader): FileTransferProgress; -} - -export namespace FileTransferProgress { - export type AsObject = { - percentage: number, - } -} - -export class LoginRequest extends jspb.Message { - getClusterUri(): string; - setClusterUri(value: string): LoginRequest; - - - hasLocal(): boolean; - clearLocal(): void; - getLocal(): LoginRequest.LocalParams | undefined; - setLocal(value?: LoginRequest.LocalParams): LoginRequest; - - - hasSso(): boolean; - clearSso(): void; - getSso(): LoginRequest.SsoParams | undefined; - setSso(value?: LoginRequest.SsoParams): LoginRequest; - - - getParamsCase(): LoginRequest.ParamsCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LoginRequest.AsObject; - static toObject(includeInstance: boolean, msg: LoginRequest): LoginRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LoginRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LoginRequest; - static deserializeBinaryFromReader(message: LoginRequest, reader: jspb.BinaryReader): LoginRequest; -} - -export namespace LoginRequest { - export type AsObject = { - clusterUri: string, - local?: LoginRequest.LocalParams.AsObject, - sso?: LoginRequest.SsoParams.AsObject, - } - - - export class LocalParams extends jspb.Message { - getUser(): string; - setUser(value: string): LocalParams; - - getPassword(): string; - setPassword(value: string): LocalParams; - - getToken(): string; - setToken(value: string): LocalParams; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LocalParams.AsObject; - static toObject(includeInstance: boolean, msg: LocalParams): LocalParams.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LocalParams, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LocalParams; - static deserializeBinaryFromReader(message: LocalParams, reader: jspb.BinaryReader): LocalParams; - } - - export namespace LocalParams { - export type AsObject = { - user: string, - password: string, - token: string, - } - } - - export class SsoParams extends jspb.Message { - getProviderType(): string; - setProviderType(value: string): SsoParams; - - getProviderName(): string; - setProviderName(value: string): SsoParams; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SsoParams.AsObject; - static toObject(includeInstance: boolean, msg: SsoParams): SsoParams.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SsoParams, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SsoParams; - static deserializeBinaryFromReader(message: SsoParams, reader: jspb.BinaryReader): SsoParams; - } - - export namespace SsoParams { - export type AsObject = { - providerType: string, - providerName: string, - } - } - - - export enum ParamsCase { - PARAMS_NOT_SET = 0, - - LOCAL = 2, - - SSO = 3, - - } - -} - -export class AddClusterRequest extends jspb.Message { - getName(): string; - setName(value: string): AddClusterRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AddClusterRequest.AsObject; - static toObject(includeInstance: boolean, msg: AddClusterRequest): AddClusterRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AddClusterRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AddClusterRequest; - static deserializeBinaryFromReader(message: AddClusterRequest, reader: jspb.BinaryReader): AddClusterRequest; -} - -export namespace AddClusterRequest { - export type AsObject = { - name: string, - } -} - -export class ListAppsRequest extends jspb.Message { - getClusterUri(): string; - setClusterUri(value: string): ListAppsRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListAppsRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListAppsRequest): ListAppsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListAppsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListAppsRequest; - static deserializeBinaryFromReader(message: ListAppsRequest, reader: jspb.BinaryReader): ListAppsRequest; -} - -export namespace ListAppsRequest { - export type AsObject = { - clusterUri: string, - } -} - -export class ListClustersRequest extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListClustersRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListClustersRequest): ListClustersRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListClustersRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListClustersRequest; - static deserializeBinaryFromReader(message: ListClustersRequest, reader: jspb.BinaryReader): ListClustersRequest; -} - -export namespace ListClustersRequest { - export type AsObject = { - } -} - -export class ListClustersResponse extends jspb.Message { - clearClustersList(): void; - getClustersList(): Array; - setClustersList(value: Array): ListClustersResponse; - addClusters(value?: v1_cluster_pb.Cluster, index?: number): v1_cluster_pb.Cluster; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListClustersResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListClustersResponse): ListClustersResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListClustersResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListClustersResponse; - static deserializeBinaryFromReader(message: ListClustersResponse, reader: jspb.BinaryReader): ListClustersResponse; -} - -export namespace ListClustersResponse { - export type AsObject = { - clustersList: Array, - } -} - -export class GetAllDatabasesRequest extends jspb.Message { - getClusterUri(): string; - setClusterUri(value: string): GetAllDatabasesRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllDatabasesRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetAllDatabasesRequest): GetAllDatabasesRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetAllDatabasesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAllDatabasesRequest; - static deserializeBinaryFromReader(message: GetAllDatabasesRequest, reader: jspb.BinaryReader): GetAllDatabasesRequest; -} - -export namespace GetAllDatabasesRequest { - export type AsObject = { - clusterUri: string, - } -} - -export class GetDatabasesRequest extends jspb.Message { - getClusterUri(): string; - setClusterUri(value: string): GetDatabasesRequest; - - getLimit(): number; - setLimit(value: number): GetDatabasesRequest; - - getStartKey(): string; - setStartKey(value: string): GetDatabasesRequest; - - getSearch(): string; - setSearch(value: string): GetDatabasesRequest; - - getQuery(): string; - setQuery(value: string): GetDatabasesRequest; - - getSortBy(): string; - setSortBy(value: string): GetDatabasesRequest; - - getSearchAsRoles(): string; - setSearchAsRoles(value: string): GetDatabasesRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDatabasesRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetDatabasesRequest): GetDatabasesRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetDatabasesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDatabasesRequest; - static deserializeBinaryFromReader(message: GetDatabasesRequest, reader: jspb.BinaryReader): GetDatabasesRequest; -} - -export namespace GetDatabasesRequest { - export type AsObject = { - clusterUri: string, - limit: number, - startKey: string, - search: string, - query: string, - sortBy: string, - searchAsRoles: string, - } -} - -export class ListLeafClustersRequest extends jspb.Message { - getClusterUri(): string; - setClusterUri(value: string): ListLeafClustersRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListLeafClustersRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListLeafClustersRequest): ListLeafClustersRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListLeafClustersRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListLeafClustersRequest; - static deserializeBinaryFromReader(message: ListLeafClustersRequest, reader: jspb.BinaryReader): ListLeafClustersRequest; -} - -export namespace ListLeafClustersRequest { - export type AsObject = { - clusterUri: string, - } -} - -export class GetAllDatabasesResponse extends jspb.Message { - clearDatabasesList(): void; - getDatabasesList(): Array; - setDatabasesList(value: Array): GetAllDatabasesResponse; - addDatabases(value?: v1_database_pb.Database, index?: number): v1_database_pb.Database; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllDatabasesResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetAllDatabasesResponse): GetAllDatabasesResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetAllDatabasesResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAllDatabasesResponse; - static deserializeBinaryFromReader(message: GetAllDatabasesResponse, reader: jspb.BinaryReader): GetAllDatabasesResponse; -} - -export namespace GetAllDatabasesResponse { - export type AsObject = { - databasesList: Array, - } -} - -export class ListDatabaseUsersRequest extends jspb.Message { - getDbUri(): string; - setDbUri(value: string): ListDatabaseUsersRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListDatabaseUsersRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListDatabaseUsersRequest): ListDatabaseUsersRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListDatabaseUsersRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListDatabaseUsersRequest; - static deserializeBinaryFromReader(message: ListDatabaseUsersRequest, reader: jspb.BinaryReader): ListDatabaseUsersRequest; -} - -export namespace ListDatabaseUsersRequest { - export type AsObject = { - dbUri: string, - } -} - -export class ListDatabaseUsersResponse extends jspb.Message { - clearUsersList(): void; - getUsersList(): Array; - setUsersList(value: Array): ListDatabaseUsersResponse; - addUsers(value: string, index?: number): string; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListDatabaseUsersResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListDatabaseUsersResponse): ListDatabaseUsersResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListDatabaseUsersResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListDatabaseUsersResponse; - static deserializeBinaryFromReader(message: ListDatabaseUsersResponse, reader: jspb.BinaryReader): ListDatabaseUsersResponse; -} - -export namespace ListDatabaseUsersResponse { - export type AsObject = { - usersList: Array, - } -} - -export class CreateGatewayRequest extends jspb.Message { - getTargetUri(): string; - setTargetUri(value: string): CreateGatewayRequest; - - getTargetUser(): string; - setTargetUser(value: string): CreateGatewayRequest; - - getLocalPort(): string; - setLocalPort(value: string): CreateGatewayRequest; - - getTargetSubresourceName(): string; - setTargetSubresourceName(value: string): CreateGatewayRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateGatewayRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateGatewayRequest): CreateGatewayRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateGatewayRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateGatewayRequest; - static deserializeBinaryFromReader(message: CreateGatewayRequest, reader: jspb.BinaryReader): CreateGatewayRequest; -} - -export namespace CreateGatewayRequest { - export type AsObject = { - targetUri: string, - targetUser: string, - localPort: string, - targetSubresourceName: string, - } -} - -export class ListGatewaysRequest extends jspb.Message { - clearClusterIdsList(): void; - getClusterIdsList(): Array; - setClusterIdsList(value: Array): ListGatewaysRequest; - addClusterIds(value: string, index?: number): string; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListGatewaysRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListGatewaysRequest): ListGatewaysRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListGatewaysRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListGatewaysRequest; - static deserializeBinaryFromReader(message: ListGatewaysRequest, reader: jspb.BinaryReader): ListGatewaysRequest; -} - -export namespace ListGatewaysRequest { - export type AsObject = { - clusterIdsList: Array, - } -} - -export class ListGatewaysResponse extends jspb.Message { - clearGatewaysList(): void; - getGatewaysList(): Array; - setGatewaysList(value: Array): ListGatewaysResponse; - addGateways(value?: v1_gateway_pb.Gateway, index?: number): v1_gateway_pb.Gateway; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListGatewaysResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListGatewaysResponse): ListGatewaysResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListGatewaysResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListGatewaysResponse; - static deserializeBinaryFromReader(message: ListGatewaysResponse, reader: jspb.BinaryReader): ListGatewaysResponse; -} - -export namespace ListGatewaysResponse { - export type AsObject = { - gatewaysList: Array, - } -} - -export class RemoveGatewayRequest extends jspb.Message { - getGatewayUri(): string; - setGatewayUri(value: string): RemoveGatewayRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RemoveGatewayRequest.AsObject; - static toObject(includeInstance: boolean, msg: RemoveGatewayRequest): RemoveGatewayRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RemoveGatewayRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RemoveGatewayRequest; - static deserializeBinaryFromReader(message: RemoveGatewayRequest, reader: jspb.BinaryReader): RemoveGatewayRequest; -} - -export namespace RemoveGatewayRequest { - export type AsObject = { - gatewayUri: string, - } -} - -export class RestartGatewayRequest extends jspb.Message { - getGatewayUri(): string; - setGatewayUri(value: string): RestartGatewayRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RestartGatewayRequest.AsObject; - static toObject(includeInstance: boolean, msg: RestartGatewayRequest): RestartGatewayRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RestartGatewayRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RestartGatewayRequest; - static deserializeBinaryFromReader(message: RestartGatewayRequest, reader: jspb.BinaryReader): RestartGatewayRequest; -} - -export namespace RestartGatewayRequest { - export type AsObject = { - gatewayUri: string, - } -} - -export class SetGatewayTargetSubresourceNameRequest extends jspb.Message { - getGatewayUri(): string; - setGatewayUri(value: string): SetGatewayTargetSubresourceNameRequest; - - getTargetSubresourceName(): string; - setTargetSubresourceName(value: string): SetGatewayTargetSubresourceNameRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SetGatewayTargetSubresourceNameRequest.AsObject; - static toObject(includeInstance: boolean, msg: SetGatewayTargetSubresourceNameRequest): SetGatewayTargetSubresourceNameRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SetGatewayTargetSubresourceNameRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SetGatewayTargetSubresourceNameRequest; - static deserializeBinaryFromReader(message: SetGatewayTargetSubresourceNameRequest, reader: jspb.BinaryReader): SetGatewayTargetSubresourceNameRequest; -} - -export namespace SetGatewayTargetSubresourceNameRequest { - export type AsObject = { - gatewayUri: string, - targetSubresourceName: string, - } -} - -export class SetGatewayLocalPortRequest extends jspb.Message { - getGatewayUri(): string; - setGatewayUri(value: string): SetGatewayLocalPortRequest; - - getLocalPort(): string; - setLocalPort(value: string): SetGatewayLocalPortRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SetGatewayLocalPortRequest.AsObject; - static toObject(includeInstance: boolean, msg: SetGatewayLocalPortRequest): SetGatewayLocalPortRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SetGatewayLocalPortRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SetGatewayLocalPortRequest; - static deserializeBinaryFromReader(message: SetGatewayLocalPortRequest, reader: jspb.BinaryReader): SetGatewayLocalPortRequest; -} - -export namespace SetGatewayLocalPortRequest { - export type AsObject = { - gatewayUri: string, - localPort: string, - } -} - -export class GetAllServersRequest extends jspb.Message { - getClusterUri(): string; - setClusterUri(value: string): GetAllServersRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllServersRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetAllServersRequest): GetAllServersRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetAllServersRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAllServersRequest; - static deserializeBinaryFromReader(message: GetAllServersRequest, reader: jspb.BinaryReader): GetAllServersRequest; -} - -export namespace GetAllServersRequest { - export type AsObject = { - clusterUri: string, - } -} - -export class GetAllServersResponse extends jspb.Message { - clearServersList(): void; - getServersList(): Array; - setServersList(value: Array): GetAllServersResponse; - addServers(value?: v1_server_pb.Server, index?: number): v1_server_pb.Server; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllServersResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetAllServersResponse): GetAllServersResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetAllServersResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAllServersResponse; - static deserializeBinaryFromReader(message: GetAllServersResponse, reader: jspb.BinaryReader): GetAllServersResponse; -} - -export namespace GetAllServersResponse { - export type AsObject = { - serversList: Array, - } -} - -export class GetServersRequest extends jspb.Message { - getClusterUri(): string; - setClusterUri(value: string): GetServersRequest; - - getLimit(): number; - setLimit(value: number): GetServersRequest; - - getStartKey(): string; - setStartKey(value: string): GetServersRequest; - - getSearch(): string; - setSearch(value: string): GetServersRequest; - - getQuery(): string; - setQuery(value: string): GetServersRequest; - - getSortBy(): string; - setSortBy(value: string): GetServersRequest; - - getSearchAsRoles(): string; - setSearchAsRoles(value: string): GetServersRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetServersRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetServersRequest): GetServersRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetServersRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetServersRequest; - static deserializeBinaryFromReader(message: GetServersRequest, reader: jspb.BinaryReader): GetServersRequest; -} - -export namespace GetServersRequest { - export type AsObject = { - clusterUri: string, - limit: number, - startKey: string, - search: string, - query: string, - sortBy: string, - searchAsRoles: string, - } -} - -export class GetServersResponse extends jspb.Message { - clearAgentsList(): void; - getAgentsList(): Array; - setAgentsList(value: Array): GetServersResponse; - addAgents(value?: v1_server_pb.Server, index?: number): v1_server_pb.Server; - - getTotalCount(): number; - setTotalCount(value: number): GetServersResponse; - - getStartKey(): string; - setStartKey(value: string): GetServersResponse; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetServersResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetServersResponse): GetServersResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetServersResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetServersResponse; - static deserializeBinaryFromReader(message: GetServersResponse, reader: jspb.BinaryReader): GetServersResponse; -} - -export namespace GetServersResponse { - export type AsObject = { - agentsList: Array, - totalCount: number, - startKey: string, - } -} - -export class GetDatabasesResponse extends jspb.Message { - clearAgentsList(): void; - getAgentsList(): Array; - setAgentsList(value: Array): GetDatabasesResponse; - addAgents(value?: v1_database_pb.Database, index?: number): v1_database_pb.Database; - - getTotalCount(): number; - setTotalCount(value: number): GetDatabasesResponse; - - getStartKey(): string; - setStartKey(value: string): GetDatabasesResponse; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDatabasesResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetDatabasesResponse): GetDatabasesResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetDatabasesResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDatabasesResponse; - static deserializeBinaryFromReader(message: GetDatabasesResponse, reader: jspb.BinaryReader): GetDatabasesResponse; -} - -export namespace GetDatabasesResponse { - export type AsObject = { - agentsList: Array, - totalCount: number, - startKey: string, - } -} - -export class GetAllKubesRequest extends jspb.Message { - getClusterUri(): string; - setClusterUri(value: string): GetAllKubesRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllKubesRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetAllKubesRequest): GetAllKubesRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetAllKubesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAllKubesRequest; - static deserializeBinaryFromReader(message: GetAllKubesRequest, reader: jspb.BinaryReader): GetAllKubesRequest; -} - -export namespace GetAllKubesRequest { - export type AsObject = { - clusterUri: string, - } -} - -export class GetAllKubesResponse extends jspb.Message { - clearKubesList(): void; - getKubesList(): Array; - setKubesList(value: Array): GetAllKubesResponse; - addKubes(value?: v1_kube_pb.Kube, index?: number): v1_kube_pb.Kube; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllKubesResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetAllKubesResponse): GetAllKubesResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetAllKubesResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAllKubesResponse; - static deserializeBinaryFromReader(message: GetAllKubesResponse, reader: jspb.BinaryReader): GetAllKubesResponse; -} - -export namespace GetAllKubesResponse { - export type AsObject = { - kubesList: Array, - } -} - -export class GetKubesRequest extends jspb.Message { - getClusterUri(): string; - setClusterUri(value: string): GetKubesRequest; - - getLimit(): number; - setLimit(value: number): GetKubesRequest; - - getStartKey(): string; - setStartKey(value: string): GetKubesRequest; - - getSearch(): string; - setSearch(value: string): GetKubesRequest; - - getQuery(): string; - setQuery(value: string): GetKubesRequest; - - getSortBy(): string; - setSortBy(value: string): GetKubesRequest; - - getSearchAsRoles(): string; - setSearchAsRoles(value: string): GetKubesRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetKubesRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetKubesRequest): GetKubesRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetKubesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetKubesRequest; - static deserializeBinaryFromReader(message: GetKubesRequest, reader: jspb.BinaryReader): GetKubesRequest; -} - -export namespace GetKubesRequest { - export type AsObject = { - clusterUri: string, - limit: number, - startKey: string, - search: string, - query: string, - sortBy: string, - searchAsRoles: string, - } -} - -export class GetKubesResponse extends jspb.Message { - clearAgentsList(): void; - getAgentsList(): Array; - setAgentsList(value: Array): GetKubesResponse; - addAgents(value?: v1_kube_pb.Kube, index?: number): v1_kube_pb.Kube; - - getTotalCount(): number; - setTotalCount(value: number): GetKubesResponse; - - getStartKey(): string; - setStartKey(value: string): GetKubesResponse; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetKubesResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetKubesResponse): GetKubesResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetKubesResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetKubesResponse; - static deserializeBinaryFromReader(message: GetKubesResponse, reader: jspb.BinaryReader): GetKubesResponse; -} - -export namespace GetKubesResponse { - export type AsObject = { - agentsList: Array, - totalCount: number, - startKey: string, - } -} - -export class ListAppsResponse extends jspb.Message { - clearAppsList(): void; - getAppsList(): Array; - setAppsList(value: Array): ListAppsResponse; - addApps(value?: v1_app_pb.App, index?: number): v1_app_pb.App; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListAppsResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListAppsResponse): ListAppsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListAppsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListAppsResponse; - static deserializeBinaryFromReader(message: ListAppsResponse, reader: jspb.BinaryReader): ListAppsResponse; -} - -export namespace ListAppsResponse { - export type AsObject = { - appsList: Array, - } -} - -export class GetAuthSettingsRequest extends jspb.Message { - getClusterUri(): string; - setClusterUri(value: string): GetAuthSettingsRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAuthSettingsRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetAuthSettingsRequest): GetAuthSettingsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetAuthSettingsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAuthSettingsRequest; - static deserializeBinaryFromReader(message: GetAuthSettingsRequest, reader: jspb.BinaryReader): GetAuthSettingsRequest; -} - -export namespace GetAuthSettingsRequest { - export type AsObject = { - clusterUri: string, - } -} - -export class UpdateTshdEventsServerAddressRequest extends jspb.Message { - getAddress(): string; - setAddress(value: string): UpdateTshdEventsServerAddressRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateTshdEventsServerAddressRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateTshdEventsServerAddressRequest): UpdateTshdEventsServerAddressRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateTshdEventsServerAddressRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateTshdEventsServerAddressRequest; - static deserializeBinaryFromReader(message: UpdateTshdEventsServerAddressRequest, reader: jspb.BinaryReader): UpdateTshdEventsServerAddressRequest; -} - -export namespace UpdateTshdEventsServerAddressRequest { - export type AsObject = { - address: string, - } -} - -export class UpdateTshdEventsServerAddressResponse extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateTshdEventsServerAddressResponse.AsObject; - static toObject(includeInstance: boolean, msg: UpdateTshdEventsServerAddressResponse): UpdateTshdEventsServerAddressResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateTshdEventsServerAddressResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateTshdEventsServerAddressResponse; - static deserializeBinaryFromReader(message: UpdateTshdEventsServerAddressResponse, reader: jspb.BinaryReader): UpdateTshdEventsServerAddressResponse; -} - -export namespace UpdateTshdEventsServerAddressResponse { - export type AsObject = { - } -} - -export enum PasswordlessPrompt { - PASSWORDLESS_PROMPT_UNSPECIFIED = 0, - PASSWORDLESS_PROMPT_PIN = 1, - PASSWORDLESS_PROMPT_TAP = 2, - PASSWORDLESS_PROMPT_CREDENTIAL = 3, -} - -export enum FileTransferDirection { - FILE_TRANSFER_DIRECTION_UNSPECIFIED = 0, - FILE_TRANSFER_DIRECTION_DOWNLOAD = 1, - FILE_TRANSFER_DIRECTION_UPLOAD = 2, -} diff --git a/lib/teleterm/api/protogen/js/v1/tshd_events_service_grpc_pb.d.ts b/lib/teleterm/api/protogen/js/v1/tshd_events_service_grpc_pb.d.ts deleted file mode 100644 index 6f2f5780f2009..0000000000000 --- a/lib/teleterm/api/protogen/js/v1/tshd_events_service_grpc_pb.d.ts +++ /dev/null @@ -1,58 +0,0 @@ -// package: teleport.terminal.v1 -// file: v1/tshd_events_service.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "grpc"; -import * as v1_tshd_events_service_pb from "../v1/tshd_events_service_pb"; - -interface ITshdEventsServiceService extends grpc.ServiceDefinition { - relogin: ITshdEventsServiceService_IRelogin; - sendNotification: ITshdEventsServiceService_ISendNotification; -} - -interface ITshdEventsServiceService_IRelogin extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TshdEventsService/Relogin"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITshdEventsServiceService_ISendNotification extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TshdEventsService/SendNotification"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const TshdEventsServiceService: ITshdEventsServiceService; - -export interface ITshdEventsServiceServer { - relogin: grpc.handleUnaryCall; - sendNotification: grpc.handleUnaryCall; -} - -export interface ITshdEventsServiceClient { - relogin(request: v1_tshd_events_service_pb.ReloginRequest, callback: (error: grpc.ServiceError | null, response: v1_tshd_events_service_pb.ReloginResponse) => void): grpc.ClientUnaryCall; - relogin(request: v1_tshd_events_service_pb.ReloginRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_tshd_events_service_pb.ReloginResponse) => void): grpc.ClientUnaryCall; - relogin(request: v1_tshd_events_service_pb.ReloginRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_tshd_events_service_pb.ReloginResponse) => void): grpc.ClientUnaryCall; - sendNotification(request: v1_tshd_events_service_pb.SendNotificationRequest, callback: (error: grpc.ServiceError | null, response: v1_tshd_events_service_pb.SendNotificationResponse) => void): grpc.ClientUnaryCall; - sendNotification(request: v1_tshd_events_service_pb.SendNotificationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_tshd_events_service_pb.SendNotificationResponse) => void): grpc.ClientUnaryCall; - sendNotification(request: v1_tshd_events_service_pb.SendNotificationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_tshd_events_service_pb.SendNotificationResponse) => void): grpc.ClientUnaryCall; -} - -export class TshdEventsServiceClient extends grpc.Client implements ITshdEventsServiceClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - public relogin(request: v1_tshd_events_service_pb.ReloginRequest, callback: (error: grpc.ServiceError | null, response: v1_tshd_events_service_pb.ReloginResponse) => void): grpc.ClientUnaryCall; - public relogin(request: v1_tshd_events_service_pb.ReloginRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_tshd_events_service_pb.ReloginResponse) => void): grpc.ClientUnaryCall; - public relogin(request: v1_tshd_events_service_pb.ReloginRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_tshd_events_service_pb.ReloginResponse) => void): grpc.ClientUnaryCall; - public sendNotification(request: v1_tshd_events_service_pb.SendNotificationRequest, callback: (error: grpc.ServiceError | null, response: v1_tshd_events_service_pb.SendNotificationResponse) => void): grpc.ClientUnaryCall; - public sendNotification(request: v1_tshd_events_service_pb.SendNotificationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_tshd_events_service_pb.SendNotificationResponse) => void): grpc.ClientUnaryCall; - public sendNotification(request: v1_tshd_events_service_pb.SendNotificationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_tshd_events_service_pb.SendNotificationResponse) => void): grpc.ClientUnaryCall; -} diff --git a/lib/teleterm/api/protogen/js/v1/tshd_events_service_grpc_pb.js b/lib/teleterm/api/protogen/js/v1/tshd_events_service_grpc_pb.js deleted file mode 100644 index 9ef264c208979..0000000000000 --- a/lib/teleterm/api/protogen/js/v1/tshd_events_service_grpc_pb.js +++ /dev/null @@ -1,99 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -// Original file comments: -// Copyright 2022 Gravitational, Inc -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -'use strict'; -var grpc = require('@grpc/grpc-js'); -var v1_tshd_events_service_pb = require('../v1/tshd_events_service_pb.js'); - -function serialize_teleport_terminal_v1_ReloginRequest(arg) { - if (!(arg instanceof v1_tshd_events_service_pb.ReloginRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.ReloginRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_ReloginRequest(buffer_arg) { - return v1_tshd_events_service_pb.ReloginRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_ReloginResponse(arg) { - if (!(arg instanceof v1_tshd_events_service_pb.ReloginResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.ReloginResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_ReloginResponse(buffer_arg) { - return v1_tshd_events_service_pb.ReloginResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_SendNotificationRequest(arg) { - if (!(arg instanceof v1_tshd_events_service_pb.SendNotificationRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.SendNotificationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_SendNotificationRequest(buffer_arg) { - return v1_tshd_events_service_pb.SendNotificationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_SendNotificationResponse(arg) { - if (!(arg instanceof v1_tshd_events_service_pb.SendNotificationResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.SendNotificationResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_SendNotificationResponse(buffer_arg) { - return v1_tshd_events_service_pb.SendNotificationResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -// TshdEventsService is served by the Electron app. The tsh daemon calls this service to notify the -// app about actions that happen outside of the app itself. -var TshdEventsServiceService = exports.TshdEventsServiceService = { - // Relogin makes the Electron app display a login modal for the specific root cluster. The request -// returns a response after the relogin procedure has been successfully finished. -relogin: { - path: '/teleport.terminal.v1.TshdEventsService/Relogin', - requestStream: false, - responseStream: false, - requestType: v1_tshd_events_service_pb.ReloginRequest, - responseType: v1_tshd_events_service_pb.ReloginResponse, - requestSerialize: serialize_teleport_terminal_v1_ReloginRequest, - requestDeserialize: deserialize_teleport_terminal_v1_ReloginRequest, - responseSerialize: serialize_teleport_terminal_v1_ReloginResponse, - responseDeserialize: deserialize_teleport_terminal_v1_ReloginResponse, - }, - // SendNotification causes the Electron app to display a notification in the UI. The request -// accepts a specific message rather than a generic string so that the Electron is in control as -// to what message is displayed and how exactly it looks. -sendNotification: { - path: '/teleport.terminal.v1.TshdEventsService/SendNotification', - requestStream: false, - responseStream: false, - requestType: v1_tshd_events_service_pb.SendNotificationRequest, - responseType: v1_tshd_events_service_pb.SendNotificationResponse, - requestSerialize: serialize_teleport_terminal_v1_SendNotificationRequest, - requestDeserialize: deserialize_teleport_terminal_v1_SendNotificationRequest, - responseSerialize: serialize_teleport_terminal_v1_SendNotificationResponse, - responseDeserialize: deserialize_teleport_terminal_v1_SendNotificationResponse, - }, -}; - -exports.TshdEventsServiceClient = grpc.makeGenericClientConstructor(TshdEventsServiceService); diff --git a/lib/teleterm/api/protogen/js/v1/usage_events_pb.d.ts b/lib/teleterm/api/protogen/js/v1/usage_events_pb.d.ts deleted file mode 100644 index d9de73f83f47e..0000000000000 --- a/lib/teleterm/api/protogen/js/v1/usage_events_pb.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -// package: teleport.terminal.v1 -// file: v1/usage_events.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as prehog_v1alpha_connect_pb from "../prehog/v1alpha/connect_pb"; - -export class ReportUsageEventRequest extends jspb.Message { - getAuthClusterId(): string; - setAuthClusterId(value: string): ReportUsageEventRequest; - - - hasPrehogReq(): boolean; - clearPrehogReq(): void; - getPrehogReq(): prehog_v1alpha_connect_pb.SubmitConnectEventRequest | undefined; - setPrehogReq(value?: prehog_v1alpha_connect_pb.SubmitConnectEventRequest): ReportUsageEventRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ReportUsageEventRequest.AsObject; - static toObject(includeInstance: boolean, msg: ReportUsageEventRequest): ReportUsageEventRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ReportUsageEventRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ReportUsageEventRequest; - static deserializeBinaryFromReader(message: ReportUsageEventRequest, reader: jspb.BinaryReader): ReportUsageEventRequest; -} - -export namespace ReportUsageEventRequest { - export type AsObject = { - authClusterId: string, - prehogReq?: prehog_v1alpha_connect_pb.SubmitConnectEventRequest.AsObject, - } -} diff --git a/lib/teleterm/apiserver/apiserver.go b/lib/teleterm/apiserver/apiserver.go index d0c0cc4385872..10625b609e951 100644 --- a/lib/teleterm/apiserver/apiserver.go +++ b/lib/teleterm/apiserver/apiserver.go @@ -22,7 +22,7 @@ import ( log "github.com/sirupsen/logrus" "google.golang.org/grpc" - api "github.com/gravitational/teleport/lib/teleterm/api/protogen/golang/v1" + api "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1" "github.com/gravitational/teleport/lib/teleterm/apiserver/handler" "github.com/gravitational/teleport/lib/utils" ) diff --git a/lib/teleterm/apiserver/handler/handler.go b/lib/teleterm/apiserver/handler/handler.go index 656f741108921..43899c71d2dae 100644 --- a/lib/teleterm/apiserver/handler/handler.go +++ b/lib/teleterm/apiserver/handler/handler.go @@ -17,7 +17,7 @@ package handler import ( "github.com/gravitational/trace" - api "github.com/gravitational/teleport/lib/teleterm/api/protogen/golang/v1" + api "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1" "github.com/gravitational/teleport/lib/teleterm/daemon" ) diff --git a/lib/teleterm/apiserver/handler/handler_access_requests.go b/lib/teleterm/apiserver/handler/handler_access_requests.go index 97566dc05ed84..d7ca1a26fefc4 100644 --- a/lib/teleterm/apiserver/handler/handler_access_requests.go +++ b/lib/teleterm/apiserver/handler/handler_access_requests.go @@ -21,7 +21,7 @@ import ( "github.com/gravitational/trace" "google.golang.org/protobuf/types/known/timestamppb" - api "github.com/gravitational/teleport/lib/teleterm/api/protogen/golang/v1" + api "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1" "github.com/gravitational/teleport/lib/teleterm/clusters" ) diff --git a/lib/teleterm/apiserver/handler/handler_apps.go b/lib/teleterm/apiserver/handler/handler_apps.go index 579cad4fd65c0..cde59cc267222 100644 --- a/lib/teleterm/apiserver/handler/handler_apps.go +++ b/lib/teleterm/apiserver/handler/handler_apps.go @@ -20,7 +20,7 @@ import ( "github.com/gravitational/trace" - api "github.com/gravitational/teleport/lib/teleterm/api/protogen/golang/v1" + api "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1" "github.com/gravitational/teleport/lib/teleterm/clusters" ) diff --git a/lib/teleterm/apiserver/handler/handler_auth.go b/lib/teleterm/apiserver/handler/handler_auth.go index 71cf5bea7f227..a9de78a285309 100644 --- a/lib/teleterm/apiserver/handler/handler_auth.go +++ b/lib/teleterm/apiserver/handler/handler_auth.go @@ -19,7 +19,7 @@ import ( "github.com/gravitational/trace" - api "github.com/gravitational/teleport/lib/teleterm/api/protogen/golang/v1" + api "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1" ) // Login logs in a user to a cluster diff --git a/lib/teleterm/apiserver/handler/handler_clusters.go b/lib/teleterm/apiserver/handler/handler_clusters.go index 3c24750fb00ba..2601b83995a61 100644 --- a/lib/teleterm/apiserver/handler/handler_clusters.go +++ b/lib/teleterm/apiserver/handler/handler_clusters.go @@ -19,7 +19,7 @@ import ( "github.com/gravitational/trace" - api "github.com/gravitational/teleport/lib/teleterm/api/protogen/golang/v1" + api "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1" "github.com/gravitational/teleport/lib/teleterm/clusters" ) diff --git a/lib/teleterm/apiserver/handler/handler_databases.go b/lib/teleterm/apiserver/handler/handler_databases.go index 877bd098fc1a6..87cabbcc0cf2f 100644 --- a/lib/teleterm/apiserver/handler/handler_databases.go +++ b/lib/teleterm/apiserver/handler/handler_databases.go @@ -20,7 +20,7 @@ import ( "github.com/gravitational/trace" - api "github.com/gravitational/teleport/lib/teleterm/api/protogen/golang/v1" + api "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1" "github.com/gravitational/teleport/lib/teleterm/clusters" ) diff --git a/lib/teleterm/apiserver/handler/handler_file_transfer.go b/lib/teleterm/apiserver/handler/handler_file_transfer.go index 8a517bbad64fa..2d2cdb64ddf08 100644 --- a/lib/teleterm/apiserver/handler/handler_file_transfer.go +++ b/lib/teleterm/apiserver/handler/handler_file_transfer.go @@ -17,7 +17,7 @@ package handler import ( "github.com/gravitational/trace" - api "github.com/gravitational/teleport/lib/teleterm/api/protogen/golang/v1" + api "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1" ) func (s *Handler) TransferFile(request *api.FileTransferRequest, server api.TerminalService_TransferFileServer) error { diff --git a/lib/teleterm/apiserver/handler/handler_gateways.go b/lib/teleterm/apiserver/handler/handler_gateways.go index 22bc8a30dc4eb..abb46d9a1062f 100644 --- a/lib/teleterm/apiserver/handler/handler_gateways.go +++ b/lib/teleterm/apiserver/handler/handler_gateways.go @@ -19,7 +19,7 @@ import ( "github.com/gravitational/trace" - api "github.com/gravitational/teleport/lib/teleterm/api/protogen/golang/v1" + api "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1" "github.com/gravitational/teleport/lib/teleterm/daemon" "github.com/gravitational/teleport/lib/teleterm/gateway" ) diff --git a/lib/teleterm/apiserver/handler/handler_kubes.go b/lib/teleterm/apiserver/handler/handler_kubes.go index f97dfbd2a12f4..7b18fe3b7e70d 100644 --- a/lib/teleterm/apiserver/handler/handler_kubes.go +++ b/lib/teleterm/apiserver/handler/handler_kubes.go @@ -20,7 +20,7 @@ import ( "github.com/gravitational/trace" - api "github.com/gravitational/teleport/lib/teleterm/api/protogen/golang/v1" + api "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1" "github.com/gravitational/teleport/lib/teleterm/clusters" ) diff --git a/lib/teleterm/apiserver/handler/handler_servers.go b/lib/teleterm/apiserver/handler/handler_servers.go index 685f6ee6db5ca..425e9ceeae6a7 100644 --- a/lib/teleterm/apiserver/handler/handler_servers.go +++ b/lib/teleterm/apiserver/handler/handler_servers.go @@ -20,7 +20,7 @@ import ( "github.com/gravitational/trace" - api "github.com/gravitational/teleport/lib/teleterm/api/protogen/golang/v1" + api "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1" "github.com/gravitational/teleport/lib/teleterm/clusters" ) diff --git a/lib/teleterm/apiserver/handler/handler_tshd_events.go b/lib/teleterm/apiserver/handler/handler_tshd_events.go index f8e507047525e..200263362c185 100644 --- a/lib/teleterm/apiserver/handler/handler_tshd_events.go +++ b/lib/teleterm/apiserver/handler/handler_tshd_events.go @@ -19,7 +19,7 @@ import ( "github.com/gravitational/trace" - api "github.com/gravitational/teleport/lib/teleterm/api/protogen/golang/v1" + api "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1" ) func (h *Handler) UpdateTshdEventsServerAddress(ctx context.Context, req *api.UpdateTshdEventsServerAddressRequest) (*api.UpdateTshdEventsServerAddressResponse, error) { diff --git a/lib/teleterm/apiserver/handler/handler_usage_events.go b/lib/teleterm/apiserver/handler/handler_usage_events.go index 30d7d5d0ae7bd..599200b5713bf 100644 --- a/lib/teleterm/apiserver/handler/handler_usage_events.go +++ b/lib/teleterm/apiserver/handler/handler_usage_events.go @@ -19,7 +19,7 @@ import ( "github.com/gravitational/trace" - api "github.com/gravitational/teleport/lib/teleterm/api/protogen/golang/v1" + api "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1" ) func (h *Handler) ReportUsageEvent(ctx context.Context, req *api.ReportUsageEventRequest) (*api.EmptyResponse, error) { diff --git a/lib/teleterm/buf.gen.yaml b/lib/teleterm/buf.gen.yaml deleted file mode 100644 index f029be2329858..0000000000000 --- a/lib/teleterm/buf.gen.yaml +++ /dev/null @@ -1,25 +0,0 @@ -version: v1 -plugins: - - name: go - out: lib/teleterm/api/protogen/golang - opt: - - paths=source_relative - - - name: go-grpc - out: lib/teleterm/api/protogen/golang - opt: - - paths=source_relative - - - name: js - out: lib/teleterm/api/protogen/js - opt: - - import_style=commonjs,binary - - - name: grpc - out: lib/teleterm/api/protogen/js - opt: grpc_js - path: grpc_tools_node_protoc_plugin - - - name: ts - out: lib/teleterm/api/protogen/js - opt: "service=grpc-node" diff --git a/lib/teleterm/clusters/cluster.go b/lib/teleterm/clusters/cluster.go index 4df6b23fdbf32..58c69770b96fd 100644 --- a/lib/teleterm/clusters/cluster.go +++ b/lib/teleterm/clusters/cluster.go @@ -27,9 +27,9 @@ import ( "github.com/gravitational/teleport/api/client/proto" "github.com/gravitational/teleport/api/types" + api "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1" "github.com/gravitational/teleport/lib/auth" "github.com/gravitational/teleport/lib/client" - api "github.com/gravitational/teleport/lib/teleterm/api/protogen/golang/v1" "github.com/gravitational/teleport/lib/teleterm/api/uri" ) diff --git a/lib/teleterm/clusters/cluster_access_requests.go b/lib/teleterm/clusters/cluster_access_requests.go index c479df95bb2d2..daa1c95833511 100644 --- a/lib/teleterm/clusters/cluster_access_requests.go +++ b/lib/teleterm/clusters/cluster_access_requests.go @@ -22,10 +22,10 @@ import ( "golang.org/x/exp/slices" "github.com/gravitational/teleport/api/types" + api "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1" "github.com/gravitational/teleport/lib/auth" "github.com/gravitational/teleport/lib/client" "github.com/gravitational/teleport/lib/services" - api "github.com/gravitational/teleport/lib/teleterm/api/protogen/golang/v1" "github.com/gravitational/teleport/lib/teleterm/api/uri" ) diff --git a/lib/teleterm/clusters/cluster_auth.go b/lib/teleterm/clusters/cluster_auth.go index 01dae78355841..2f4fd228a2f45 100644 --- a/lib/teleterm/clusters/cluster_auth.go +++ b/lib/teleterm/clusters/cluster_auth.go @@ -27,12 +27,12 @@ import ( "github.com/gravitational/teleport/api/client/webclient" "github.com/gravitational/teleport/api/constants" "github.com/gravitational/teleport/api/utils/keys" + api "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1" "github.com/gravitational/teleport/lib/auth" wancli "github.com/gravitational/teleport/lib/auth/webauthncli" "github.com/gravitational/teleport/lib/client" dbprofile "github.com/gravitational/teleport/lib/client/db" "github.com/gravitational/teleport/lib/kube/kubeconfig" - api "github.com/gravitational/teleport/lib/teleterm/api/protogen/golang/v1" ) // SyncAuthPreference fetches Teleport auth preferences and stores it in the cluster profile diff --git a/lib/teleterm/clusters/cluster_auth_test.go b/lib/teleterm/clusters/cluster_auth_test.go index 3df6c12694c22..33cd4bfea2c8a 100644 --- a/lib/teleterm/clusters/cluster_auth_test.go +++ b/lib/teleterm/clusters/cluster_auth_test.go @@ -24,8 +24,8 @@ import ( "github.com/stretchr/testify/require" "google.golang.org/grpc" + api "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1" wancli "github.com/gravitational/teleport/lib/auth/webauthncli" - api "github.com/gravitational/teleport/lib/teleterm/api/protogen/golang/v1" ) func TestPwdlessLoginPrompt_PromptPIN(t *testing.T) { diff --git a/lib/teleterm/clusters/cluster_databases.go b/lib/teleterm/clusters/cluster_databases.go index b946c91c48def..b149314a83a4d 100644 --- a/lib/teleterm/clusters/cluster_databases.go +++ b/lib/teleterm/clusters/cluster_databases.go @@ -24,12 +24,12 @@ import ( "github.com/gravitational/teleport/api/client/proto" "github.com/gravitational/teleport/api/defaults" "github.com/gravitational/teleport/api/types" + api "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1" "github.com/gravitational/teleport/lib/auth" "github.com/gravitational/teleport/lib/client" dbprofile "github.com/gravitational/teleport/lib/client/db" libdefaults "github.com/gravitational/teleport/lib/defaults" "github.com/gravitational/teleport/lib/services" - api "github.com/gravitational/teleport/lib/teleterm/api/protogen/golang/v1" "github.com/gravitational/teleport/lib/teleterm/api/uri" "github.com/gravitational/teleport/lib/tlsca" ) diff --git a/lib/teleterm/clusters/cluster_file_transfer.go b/lib/teleterm/clusters/cluster_file_transfer.go index 196a40648e3e4..927fdae00bb13 100644 --- a/lib/teleterm/clusters/cluster_file_transfer.go +++ b/lib/teleterm/clusters/cluster_file_transfer.go @@ -23,8 +23,8 @@ import ( "github.com/gravitational/trace" + api "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1" "github.com/gravitational/teleport/lib/sshutils/sftp" - api "github.com/gravitational/teleport/lib/teleterm/api/protogen/golang/v1" ) type FileTransferProgressSender = func(progress *api.FileTransferProgress) error diff --git a/lib/teleterm/clusters/cluster_kubes.go b/lib/teleterm/clusters/cluster_kubes.go index f620c001fc909..74b70cbb87c86 100644 --- a/lib/teleterm/clusters/cluster_kubes.go +++ b/lib/teleterm/clusters/cluster_kubes.go @@ -24,9 +24,9 @@ import ( "github.com/gravitational/teleport/api/client/proto" "github.com/gravitational/teleport/api/defaults" "github.com/gravitational/teleport/api/types" + api "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1" "github.com/gravitational/teleport/lib/auth" "github.com/gravitational/teleport/lib/client" - api "github.com/gravitational/teleport/lib/teleterm/api/protogen/golang/v1" "github.com/gravitational/teleport/lib/teleterm/api/uri" ) diff --git a/lib/teleterm/clusters/cluster_servers.go b/lib/teleterm/clusters/cluster_servers.go index 564da3024a73b..3baf30643cfc1 100644 --- a/lib/teleterm/clusters/cluster_servers.go +++ b/lib/teleterm/clusters/cluster_servers.go @@ -24,9 +24,9 @@ import ( "github.com/gravitational/teleport/api/client/proto" "github.com/gravitational/teleport/api/defaults" "github.com/gravitational/teleport/api/types" + api "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1" "github.com/gravitational/teleport/lib/auth" "github.com/gravitational/teleport/lib/client" - api "github.com/gravitational/teleport/lib/teleterm/api/protogen/golang/v1" "github.com/gravitational/teleport/lib/teleterm/api/uri" ) diff --git a/lib/teleterm/daemon/daemon.go b/lib/teleterm/daemon/daemon.go index 07ab5a0abd4ac..33d1d65cc4718 100644 --- a/lib/teleterm/daemon/daemon.go +++ b/lib/teleterm/daemon/daemon.go @@ -23,9 +23,9 @@ import ( "google.golang.org/grpc" "github.com/gravitational/teleport/api/types" + prehogapi "github.com/gravitational/teleport/gen/proto/go/prehog/v1alpha" + api "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1" "github.com/gravitational/teleport/lib/client/db/dbcmd" - prehogapi "github.com/gravitational/teleport/lib/prehog/gen/prehog/v1alpha" - api "github.com/gravitational/teleport/lib/teleterm/api/protogen/golang/v1" "github.com/gravitational/teleport/lib/teleterm/clusters" "github.com/gravitational/teleport/lib/teleterm/gateway" "github.com/gravitational/teleport/lib/usagereporter" diff --git a/lib/teleterm/daemon/gateway_cert_reissuer.go b/lib/teleterm/daemon/gateway_cert_reissuer.go index f2cbaab8c6dc6..f0b7330119d9d 100644 --- a/lib/teleterm/daemon/gateway_cert_reissuer.go +++ b/lib/teleterm/daemon/gateway_cert_reissuer.go @@ -25,8 +25,8 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" + api "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1" "github.com/gravitational/teleport/lib/client" - api "github.com/gravitational/teleport/lib/teleterm/api/protogen/golang/v1" "github.com/gravitational/teleport/lib/teleterm/api/uri" "github.com/gravitational/teleport/lib/teleterm/gateway" "github.com/gravitational/teleport/lib/tlsca" diff --git a/lib/teleterm/daemon/gateway_cert_reissuer_test.go b/lib/teleterm/daemon/gateway_cert_reissuer_test.go index 604e22d04bd62..9d117cb7b5c9f 100644 --- a/lib/teleterm/daemon/gateway_cert_reissuer_test.go +++ b/lib/teleterm/daemon/gateway_cert_reissuer_test.go @@ -26,7 +26,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - api "github.com/gravitational/teleport/lib/teleterm/api/protogen/golang/v1" + api "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1" "github.com/gravitational/teleport/lib/teleterm/api/uri" "github.com/gravitational/teleport/lib/teleterm/clusters" "github.com/gravitational/teleport/lib/teleterm/gateway" diff --git a/lib/teleterm/daemon/usagereporter.go b/lib/teleterm/daemon/usagereporter.go index 98f58dbd36078..734a79bb45e27 100644 --- a/lib/teleterm/daemon/usagereporter.go +++ b/lib/teleterm/daemon/usagereporter.go @@ -23,10 +23,10 @@ import ( "github.com/google/uuid" "github.com/gravitational/trace" + prehogapi "github.com/gravitational/teleport/gen/proto/go/prehog/v1alpha" + prehogclient "github.com/gravitational/teleport/gen/proto/go/prehog/v1alpha/v1alphaconnect" + api "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1" "github.com/gravitational/teleport/lib/defaults" - prehogapi "github.com/gravitational/teleport/lib/prehog/gen/prehog/v1alpha" - prehogclient "github.com/gravitational/teleport/lib/prehog/gen/prehog/v1alpha/prehogv1alphaconnect" - api "github.com/gravitational/teleport/lib/teleterm/api/protogen/golang/v1" "github.com/gravitational/teleport/lib/usagereporter" "github.com/gravitational/teleport/lib/utils" ) diff --git a/proto/buf.yaml b/proto/buf.yaml index c25015f5aed9d..85d1088d90e78 100644 --- a/proto/buf.yaml +++ b/proto/buf.yaml @@ -3,15 +3,45 @@ lint: use: - DEFAULT - PACKAGE_NO_IMPORT_CYCLE + - UNARY_RPC # Top-level types require comments. - COMMENT_ENUM - COMMENT_MESSAGE - COMMENT_RPC - COMMENT_SERVICE + except: + # Allow Google API-style responses (CreateFoo returns Foo). + # See https://cloud.google.com/apis/design/standard_methods. + - RPC_REQUEST_RESPONSE_UNIQUE + - RPC_RESPONSE_STANDARD_NAME ignore: # "legacy" lib protos. - teleport/lib/multiplexer/test/ping.proto - teleport/lib/web/envelope.proto + ignore_only: + # Allow only certain services to use streaming RPCs. + # + # We should avoid streaming RPCs until we have a compelling reason to use them (e.g. the + # implementation needs 1-N messages or the server cannot dial directly to the client). + # + # Check out the links below. If you still have questions or doubts, reach out to @codingllama. + # + # https://docs.buf.build/lint/rules#unary_rpc + # https://github.com/gravitational/teleport/pull/16043#issuecomment-1235728212 + # https://github.com/twitchtv/twirp/issues/70#issuecomment-470367807 + UNARY_RPC: + - teleport/lib/teleterm/v1/service.proto + # TODO(ravicious): Fix protos and re-enable lib/teleterm lint rules below. + RPC_REQUEST_STANDARD_NAME: + - teleport/lib/teleterm + # TODO(espadolini): Fix protos and re-enable prehog lint rules below. + COMMENT_MESSAGE: + - teleport/lib/teleterm + - prehog + COMMENT_RPC: + - prehog + COMMENT_SERVICE: + - prehog breaking: use: - FILE diff --git a/lib/prehog/proto/prehog/v1alpha/connect.proto b/proto/prehog/v1alpha/connect.proto similarity index 96% rename from lib/prehog/proto/prehog/v1alpha/connect.proto rename to proto/prehog/v1alpha/connect.proto index d15968711b3f1..bbc744de10d3b 100644 --- a/lib/prehog/proto/prehog/v1alpha/connect.proto +++ b/proto/prehog/v1alpha/connect.proto @@ -18,7 +18,7 @@ package prehog.v1alpha; import "google/protobuf/timestamp.proto"; -option go_package = "github.com/gravitational/teleport/lib/prehog/gen/prehog/v1alpha"; +option go_package = "github.com/gravitational/teleport/gen/proto/go/prehog/v1alpha"; message ConnectClusterLoginEvent { // anonymized diff --git a/lib/prehog/proto/prehog/v1alpha/teleport.proto b/proto/prehog/v1alpha/teleport.proto similarity index 99% rename from lib/prehog/proto/prehog/v1alpha/teleport.proto rename to proto/prehog/v1alpha/teleport.proto index 0d658b0da1892..9a58c265f2913 100644 --- a/lib/prehog/proto/prehog/v1alpha/teleport.proto +++ b/proto/prehog/v1alpha/teleport.proto @@ -19,7 +19,7 @@ package prehog.v1alpha; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "github.com/gravitational/teleport/lib/prehog/gen/prehog/v1alpha"; +option go_package = "github.com/gravitational/teleport/gen/proto/go/prehog/v1alpha"; message UserLoginEvent { // anonymized diff --git a/lib/teleterm/api/proto/v1/access_request.proto b/proto/teleport/lib/teleterm/v1/access_request.proto similarity index 94% rename from lib/teleterm/api/proto/v1/access_request.proto rename to proto/teleport/lib/teleterm/v1/access_request.proto index 330f20f65eebf..ad185a20f36b5 100644 --- a/lib/teleterm/api/proto/v1/access_request.proto +++ b/proto/teleport/lib/teleterm/v1/access_request.proto @@ -14,11 +14,11 @@ syntax = "proto3"; -package teleport.terminal.v1; +package teleport.lib.teleterm.v1; import "google/protobuf/timestamp.proto"; -option go_package = "github.com/gravitational/teleport/lib/teleterm/v1"; +option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1"; message AccessRequest { string id = 1; diff --git a/lib/teleterm/api/proto/v1/app.proto b/proto/teleport/lib/teleterm/v1/app.proto similarity index 90% rename from lib/teleterm/api/proto/v1/app.proto rename to proto/teleport/lib/teleterm/v1/app.proto index a0b5316c67713..141f876d612c7 100644 --- a/lib/teleterm/api/proto/v1/app.proto +++ b/proto/teleport/lib/teleterm/v1/app.proto @@ -14,11 +14,11 @@ syntax = "proto3"; -package teleport.terminal.v1; +package teleport.lib.teleterm.v1; -import "v1/label.proto"; +import "teleport/lib/teleterm/v1/label.proto"; -option go_package = "github.com/gravitational/teleport/lib/teleterm/v1"; +option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1"; // App describes connected Application message App { diff --git a/lib/teleterm/api/proto/v1/auth_settings.proto b/proto/teleport/lib/teleterm/v1/auth_settings.proto similarity index 93% rename from lib/teleterm/api/proto/v1/auth_settings.proto rename to proto/teleport/lib/teleterm/v1/auth_settings.proto index 4f39d167e5745..3cd826b2bce18 100644 --- a/lib/teleterm/api/proto/v1/auth_settings.proto +++ b/proto/teleport/lib/teleterm/v1/auth_settings.proto @@ -14,9 +14,9 @@ syntax = "proto3"; -package teleport.terminal.v1; +package teleport.lib.teleterm.v1; -option go_package = "github.com/gravitational/teleport/lib/teleterm/v1"; +option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1"; // AuthSettings contains the form of authentication the auth server supports. message AuthSettings { diff --git a/lib/teleterm/api/proto/v1/cluster.proto b/proto/teleport/lib/teleterm/v1/cluster.proto similarity index 96% rename from lib/teleterm/api/proto/v1/cluster.proto rename to proto/teleport/lib/teleterm/v1/cluster.proto index 49b77f1d89bbf..e7006247261ff 100644 --- a/lib/teleterm/api/proto/v1/cluster.proto +++ b/proto/teleport/lib/teleterm/v1/cluster.proto @@ -14,9 +14,9 @@ syntax = "proto3"; -package teleport.terminal.v1; +package teleport.lib.teleterm.v1; -option go_package = "github.com/gravitational/teleport/lib/teleterm/v1"; +option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1"; // Cluster describes cluster fields message Cluster { diff --git a/lib/teleterm/api/proto/v1/database.proto b/proto/teleport/lib/teleterm/v1/database.proto similarity index 87% rename from lib/teleterm/api/proto/v1/database.proto rename to proto/teleport/lib/teleterm/v1/database.proto index 83f60d1a21999..88956b0c447aa 100644 --- a/lib/teleterm/api/proto/v1/database.proto +++ b/proto/teleport/lib/teleterm/v1/database.proto @@ -14,11 +14,11 @@ syntax = "proto3"; -package teleport.terminal.v1; +package teleport.lib.teleterm.v1; -import "v1/label.proto"; +import "teleport/lib/teleterm/v1/label.proto"; -option go_package = "github.com/gravitational/teleport/lib/teleterm/v1"; +option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1"; // Database describes a database message Database { diff --git a/lib/teleterm/api/proto/v1/gateway.proto b/proto/teleport/lib/teleterm/v1/gateway.proto similarity index 94% rename from lib/teleterm/api/proto/v1/gateway.proto rename to proto/teleport/lib/teleterm/v1/gateway.proto index 91861f47b1a0e..4d0f53d2003ec 100644 --- a/lib/teleterm/api/proto/v1/gateway.proto +++ b/proto/teleport/lib/teleterm/v1/gateway.proto @@ -14,9 +14,9 @@ syntax = "proto3"; -package teleport.terminal.v1; +package teleport.lib.teleterm.v1; -option go_package = "github.com/gravitational/teleport/lib/teleterm/v1"; +option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1"; // Gateway is Teleterm's name for a connection to a resource like a database or a web app // established through our ALPN proxy. diff --git a/lib/teleterm/api/proto/v1/kube.proto b/proto/teleport/lib/teleterm/v1/kube.proto similarity index 82% rename from lib/teleterm/api/proto/v1/kube.proto rename to proto/teleport/lib/teleterm/v1/kube.proto index d13e4166b9b3a..df4f668788f56 100644 --- a/lib/teleterm/api/proto/v1/kube.proto +++ b/proto/teleport/lib/teleterm/v1/kube.proto @@ -14,11 +14,11 @@ syntax = "proto3"; -package teleport.terminal.v1; +package teleport.lib.teleterm.v1; -import "v1/label.proto"; +import "teleport/lib/teleterm/v1/label.proto"; -option go_package = "github.com/gravitational/teleport/lib/teleterm/v1"; +option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1"; // Kube describes connected Kubernetes cluster message Kube { diff --git a/lib/teleterm/api/proto/v1/label.proto b/proto/teleport/lib/teleterm/v1/label.proto similarity index 85% rename from lib/teleterm/api/proto/v1/label.proto rename to proto/teleport/lib/teleterm/v1/label.proto index 669c144339cca..365fd8ba64e26 100644 --- a/lib/teleterm/api/proto/v1/label.proto +++ b/proto/teleport/lib/teleterm/v1/label.proto @@ -14,9 +14,9 @@ syntax = "proto3"; -package teleport.terminal.v1; +package teleport.lib.teleterm.v1; -option go_package = "github.com/gravitational/teleport/lib/teleterm/v1"; +option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1"; // Label describes a label message Label { diff --git a/lib/teleterm/api/proto/v1/server.proto b/proto/teleport/lib/teleterm/v1/server.proto similarity index 85% rename from lib/teleterm/api/proto/v1/server.proto rename to proto/teleport/lib/teleterm/v1/server.proto index 2a639f0d03de9..176f32f4ee903 100644 --- a/lib/teleterm/api/proto/v1/server.proto +++ b/proto/teleport/lib/teleterm/v1/server.proto @@ -14,11 +14,11 @@ syntax = "proto3"; -package teleport.terminal.v1; +package teleport.lib.teleterm.v1; -import "v1/label.proto"; +import "teleport/lib/teleterm/v1/label.proto"; -option go_package = "github.com/gravitational/teleport/lib/teleterm/v1"; +option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1"; // Server describes connected Server message Server { diff --git a/lib/teleterm/api/proto/v1/service.proto b/proto/teleport/lib/teleterm/v1/service.proto similarity index 96% rename from lib/teleterm/api/proto/v1/service.proto rename to proto/teleport/lib/teleterm/v1/service.proto index 86cb8592cc72a..bedab93c5f1c2 100644 --- a/lib/teleterm/api/proto/v1/service.proto +++ b/proto/teleport/lib/teleterm/v1/service.proto @@ -14,19 +14,19 @@ syntax = "proto3"; -package teleport.terminal.v1; - -import "v1/access_request.proto"; -import "v1/app.proto"; -import "v1/auth_settings.proto"; -import "v1/cluster.proto"; -import "v1/database.proto"; -import "v1/gateway.proto"; -import "v1/kube.proto"; -import "v1/server.proto"; -import "v1/usage_events.proto"; - -option go_package = "github.com/gravitational/teleport/lib/teleterm/v1"; +package teleport.lib.teleterm.v1; + +import "teleport/lib/teleterm/v1/access_request.proto"; +import "teleport/lib/teleterm/v1/app.proto"; +import "teleport/lib/teleterm/v1/auth_settings.proto"; +import "teleport/lib/teleterm/v1/cluster.proto"; +import "teleport/lib/teleterm/v1/database.proto"; +import "teleport/lib/teleterm/v1/gateway.proto"; +import "teleport/lib/teleterm/v1/kube.proto"; +import "teleport/lib/teleterm/v1/server.proto"; +import "teleport/lib/teleterm/v1/usage_events.proto"; + +option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1"; // TerminalService describes Teleterm service service TerminalService { diff --git a/lib/teleterm/api/proto/v1/tshd_events_service.proto b/proto/teleport/lib/teleterm/v1/tshd_events_service.proto similarity index 95% rename from lib/teleterm/api/proto/v1/tshd_events_service.proto rename to proto/teleport/lib/teleterm/v1/tshd_events_service.proto index 8020e752d7765..7769e16214869 100644 --- a/lib/teleterm/api/proto/v1/tshd_events_service.proto +++ b/proto/teleport/lib/teleterm/v1/tshd_events_service.proto @@ -14,9 +14,9 @@ syntax = "proto3"; -package teleport.terminal.v1; +package teleport.lib.teleterm.v1; -option go_package = "github.com/gravitational/teleport/lib/teleterm/v1"; +option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1"; // TshdEventsService is served by the Electron app. The tsh daemon calls this service to notify the // app about actions that happen outside of the app itself. diff --git a/lib/teleterm/api/proto/v1/usage_events.proto b/proto/teleport/lib/teleterm/v1/usage_events.proto similarity index 85% rename from lib/teleterm/api/proto/v1/usage_events.proto rename to proto/teleport/lib/teleterm/v1/usage_events.proto index 96bddcc0da4ac..177660af3cc1d 100644 --- a/lib/teleterm/api/proto/v1/usage_events.proto +++ b/proto/teleport/lib/teleterm/v1/usage_events.proto @@ -14,11 +14,11 @@ syntax = "proto3"; -package teleport.terminal.v1; +package teleport.lib.teleterm.v1; import "prehog/v1alpha/connect.proto"; -option go_package = "github.com/gravitational/teleport/lib/teleterm/v1"; +option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1"; message ReportUsageEventRequest { string auth_cluster_id = 1; diff --git a/tsconfig.json b/tsconfig.json index c3c6f2e8042bd..050751fa8686a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -50,6 +50,9 @@ ], "e-teleterm/*": [ "e/web/teleterm/src/*" + ], + "gen-proto-js/*": [ + "gen/proto/js/*" ] } }, diff --git a/web/packages/build/jest/config.js b/web/packages/build/jest/config.js index 0528bb5cfd931..ea7624f8f20ea 100644 --- a/web/packages/build/jest/config.js +++ b/web/packages/build/jest/config.js @@ -28,5 +28,6 @@ module.exports = { '^teleterm($|/.*)': '/web/packages/teleterm/src/$1', '^e-teleport/(.*)$': '/e/web/teleport/src/$1', '^e-teleterm/(.*)$': '/e/web/teleterm/src/$1', + '^gen-proto-js/(.*)$': '/gen/proto/js/$1', }, }; diff --git a/web/packages/build/webpack/webpack.base.js b/web/packages/build/webpack/webpack.base.js index 853440dbbba26..1c65a7a6ed558 100644 --- a/web/packages/build/webpack/webpack.base.js +++ b/web/packages/build/webpack/webpack.base.js @@ -154,6 +154,7 @@ function createDefaultConfig() { 'e-teleterm': path.join(__dirname, '/../../../../e/web/teleterm/src'), design: path.join(__dirname, '/../../design/src'), shared: path.join(__dirname, '/../../shared'), + 'gen-proto-js': path.join(__dirname, '/../../../../gen/proto/js'), }, /* diff --git a/web/packages/teleterm/README.md b/web/packages/teleterm/README.md index edf7205e19164..4b7c93cfb5014 100644 --- a/web/packages/teleterm/README.md +++ b/web/packages/teleterm/README.md @@ -85,37 +85,15 @@ For a quick restart which restarts all processes and the `tsh` daemon, press `F6 ### Generating tshd gRPC protobuf files -Rebulding them is needed only if you change any of the files in `lib/teleterm/api/proto/` dir. +Rebuilding them is needed only if you change any of the files in `proto/teleport/lib/teleterm` dir. -1. To rebuild and update gRPC proto files: +To rebuild and update gRPC proto files: ```sh $ make grpc ``` -Resulting files both `nodejs` and `golang` can be found in the `lib/teleterm/api/protogen/` -directory. - -```pro -lib/teleterm/api/protogen/ -├── golang -│ └── v1 -│ ├── auth_challenge.pb.go -│ ├── auth_settings.pb.go -│ ├── ... -│ └── ... -└── js - └── v1 - ├── service_grpc_pb.js - ├── service_pb.d.ts - └── ... -``` - -2. Update `nodejs` files by copying them to the `web/packages/teleterm/src/services/tshd/` location. - -```sh -$ rm -rf web/packages/teleterm/src/services/tshd/v1/ && cp -R lib/teleterm/api/protogen/js/v1 web/packages/teleterm/src/services/tshd/v1 -``` +Resulting Go and JS files can be found in `gen/proto`. ### Generating shared process gRPC protobuf files diff --git a/web/packages/teleterm/src/services/tshd/createClient.ts b/web/packages/teleterm/src/services/tshd/createClient.ts index 972628555f26a..4a63a72b97fbd 100644 --- a/web/packages/teleterm/src/services/tshd/createClient.ts +++ b/web/packages/teleterm/src/services/tshd/createClient.ts @@ -1,15 +1,18 @@ import { ChannelCredentials, ClientDuplexStream } from '@grpc/grpc-js'; +import * as api from 'gen-proto-js/teleport/lib/teleterm/v1/service_pb'; +import { TerminalServiceClient } from 'gen-proto-js/teleport/lib/teleterm/v1/service_grpc_pb'; +import { + AccessRequest, + ResourceID, +} from 'gen-proto-js/teleport/lib/teleterm/v1/access_request_pb'; import Logger from 'teleterm/logger'; import * as uri from 'teleterm/ui/uri'; -import * as api from './v1/service_pb'; -import { TerminalServiceClient } from './v1/service_grpc_pb'; import { createFileTransferStream } from './createFileTransferStream'; import middleware, { withLogging } from './middleware'; import * as types from './types'; import createAbortController from './createAbortController'; -import { AccessRequest, ResourceID } from './v1/access_request_pb'; import { mapUsageEvent } from './mapUsageEvent'; import { ReportUsageEventRequest } from './types'; diff --git a/web/packages/teleterm/src/services/tshd/createFileTransferStream.ts b/web/packages/teleterm/src/services/tshd/createFileTransferStream.ts index 9b765263ec337..5302b1cf76da9 100644 --- a/web/packages/teleterm/src/services/tshd/createFileTransferStream.ts +++ b/web/packages/teleterm/src/services/tshd/createFileTransferStream.ts @@ -1,8 +1,8 @@ import { ClientReadableStream } from '@grpc/grpc-js'; import { FileTransferListeners } from 'shared/components/FileTransfer'; +import { FileTransferProgress } from 'gen-proto-js/teleport/lib/teleterm/v1/service_pb'; +import * as api from 'gen-proto-js/teleport/lib/teleterm/v1/service_pb'; -import { FileTransferProgress } from './v1/service_pb'; -import * as api from './v1/service_pb'; import { TshAbortSignal } from './types'; export function createFileTransferStream( diff --git a/web/packages/teleterm/src/services/tshd/fixtures/mocks.ts b/web/packages/teleterm/src/services/tshd/fixtures/mocks.ts index d4fab5fa546d1..187149b0bf523 100644 --- a/web/packages/teleterm/src/services/tshd/fixtures/mocks.ts +++ b/web/packages/teleterm/src/services/tshd/fixtures/mocks.ts @@ -1,6 +1,7 @@ import { Application, AuthSettings, + AccessRequest, Cluster, CreateAccessRequestParams, CreateGatewayParams, @@ -22,7 +23,6 @@ import { TshClient, GetRequestableRolesResponse, } from '../types'; -import { AccessRequest } from '../v1/access_request_pb'; export class MockTshClient implements TshClient { listRootClusters: () => Promise; @@ -44,18 +44,18 @@ export class MockTshClient implements TshClient { dropIds: string[] ) => Promise; deleteAccessRequest: (clusterUri: string, requestId: string) => Promise; - getAccessRequests: (clusterUri: string) => Promise; + getAccessRequests: (clusterUri: string) => Promise; getAccessRequest: ( clusterUri: string, requestId: string - ) => Promise; + ) => Promise; reviewAccessRequest: ( clusterUri: string, params: ReviewAccessRequestParams - ) => Promise; + ) => Promise; createAccessRequest: ( params: CreateAccessRequestParams - ) => Promise; + ) => Promise; listServers: (clusterUri: string) => Promise; createAbortController: () => TshAbortController; addRootCluster: (addr: string) => Promise; diff --git a/web/packages/teleterm/src/services/tshd/mapUsageEvent.ts b/web/packages/teleterm/src/services/tshd/mapUsageEvent.ts index c94deabc063a5..d6172988ce982 100644 --- a/web/packages/teleterm/src/services/tshd/mapUsageEvent.ts +++ b/web/packages/teleterm/src/services/tshd/mapUsageEvent.ts @@ -1,7 +1,6 @@ import { Timestamp } from 'google-protobuf/google/protobuf/timestamp_pb'; - -import * as api from './v1/usage_events_pb'; -import * as prehogApi from './prehog/v1alpha/connect_pb'; +import * as api from 'gen-proto-js/teleport/lib/teleterm/v1/usage_events_pb'; +import * as prehogApi from 'gen-proto-js/prehog/v1alpha/connect_pb'; import * as types from './types'; diff --git a/web/packages/teleterm/src/services/tshd/middleware.ts b/web/packages/teleterm/src/services/tshd/middleware.ts index eb573c876aa8d..575b57166a1be 100644 --- a/web/packages/teleterm/src/services/tshd/middleware.ts +++ b/web/packages/teleterm/src/services/tshd/middleware.ts @@ -1,5 +1,4 @@ import * as grpc from '@grpc/grpc-js'; - import { isObject, transform } from 'lodash'; import Logger from 'teleterm/logger'; diff --git a/web/packages/teleterm/src/services/tshd/prehog/v1alpha/connect_grpc_pb.d.ts b/web/packages/teleterm/src/services/tshd/prehog/v1alpha/connect_grpc_pb.d.ts deleted file mode 100644 index edf7861404619..0000000000000 --- a/web/packages/teleterm/src/services/tshd/prehog/v1alpha/connect_grpc_pb.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -// package: prehog.v1alpha -// file: prehog/v1alpha/connect.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "grpc"; -import * as prehog_v1alpha_connect_pb from "../../prehog/v1alpha/connect_pb"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; - -interface IConnectReportingServiceService extends grpc.ServiceDefinition { - submitConnectEvent: IConnectReportingServiceService_ISubmitConnectEvent; -} - -interface IConnectReportingServiceService_ISubmitConnectEvent extends grpc.MethodDefinition { - path: "/prehog.v1alpha.ConnectReportingService/SubmitConnectEvent"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const ConnectReportingServiceService: IConnectReportingServiceService; - -export interface IConnectReportingServiceServer { - submitConnectEvent: grpc.handleUnaryCall; -} - -export interface IConnectReportingServiceClient { - submitConnectEvent(request: prehog_v1alpha_connect_pb.SubmitConnectEventRequest, callback: (error: grpc.ServiceError | null, response: prehog_v1alpha_connect_pb.SubmitConnectEventResponse) => void): grpc.ClientUnaryCall; - submitConnectEvent(request: prehog_v1alpha_connect_pb.SubmitConnectEventRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: prehog_v1alpha_connect_pb.SubmitConnectEventResponse) => void): grpc.ClientUnaryCall; - submitConnectEvent(request: prehog_v1alpha_connect_pb.SubmitConnectEventRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: prehog_v1alpha_connect_pb.SubmitConnectEventResponse) => void): grpc.ClientUnaryCall; -} - -export class ConnectReportingServiceClient extends grpc.Client implements IConnectReportingServiceClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - public submitConnectEvent(request: prehog_v1alpha_connect_pb.SubmitConnectEventRequest, callback: (error: grpc.ServiceError | null, response: prehog_v1alpha_connect_pb.SubmitConnectEventResponse) => void): grpc.ClientUnaryCall; - public submitConnectEvent(request: prehog_v1alpha_connect_pb.SubmitConnectEventRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: prehog_v1alpha_connect_pb.SubmitConnectEventResponse) => void): grpc.ClientUnaryCall; - public submitConnectEvent(request: prehog_v1alpha_connect_pb.SubmitConnectEventRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: prehog_v1alpha_connect_pb.SubmitConnectEventResponse) => void): grpc.ClientUnaryCall; -} diff --git a/web/packages/teleterm/src/services/tshd/prehog/v1alpha/connect_grpc_pb.js b/web/packages/teleterm/src/services/tshd/prehog/v1alpha/connect_grpc_pb.js deleted file mode 100644 index 1124230de9011..0000000000000 --- a/web/packages/teleterm/src/services/tshd/prehog/v1alpha/connect_grpc_pb.js +++ /dev/null @@ -1,45 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -'use strict'; -var grpc = require('@grpc/grpc-js'); -var prehog_v1alpha_connect_pb = require('../../prehog/v1alpha/connect_pb.js'); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); - -function serialize_prehog_v1alpha_SubmitConnectEventRequest(arg) { - if (!(arg instanceof prehog_v1alpha_connect_pb.SubmitConnectEventRequest)) { - throw new Error('Expected argument of type prehog.v1alpha.SubmitConnectEventRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_prehog_v1alpha_SubmitConnectEventRequest(buffer_arg) { - return prehog_v1alpha_connect_pb.SubmitConnectEventRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_prehog_v1alpha_SubmitConnectEventResponse(arg) { - if (!(arg instanceof prehog_v1alpha_connect_pb.SubmitConnectEventResponse)) { - throw new Error('Expected argument of type prehog.v1alpha.SubmitConnectEventResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_prehog_v1alpha_SubmitConnectEventResponse(buffer_arg) { - return prehog_v1alpha_connect_pb.SubmitConnectEventResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -var ConnectReportingServiceService = exports.ConnectReportingServiceService = { - submitConnectEvent: { - path: '/prehog.v1alpha.ConnectReportingService/SubmitConnectEvent', - requestStream: false, - responseStream: false, - requestType: prehog_v1alpha_connect_pb.SubmitConnectEventRequest, - responseType: prehog_v1alpha_connect_pb.SubmitConnectEventResponse, - requestSerialize: serialize_prehog_v1alpha_SubmitConnectEventRequest, - requestDeserialize: deserialize_prehog_v1alpha_SubmitConnectEventRequest, - responseSerialize: serialize_prehog_v1alpha_SubmitConnectEventResponse, - responseDeserialize: deserialize_prehog_v1alpha_SubmitConnectEventResponse, - }, -}; - -exports.ConnectReportingServiceClient = grpc.makeGenericClientConstructor(ConnectReportingServiceService); diff --git a/web/packages/teleterm/src/services/tshd/prehog/v1alpha/connect_pb.d.ts b/web/packages/teleterm/src/services/tshd/prehog/v1alpha/connect_pb.d.ts deleted file mode 100644 index b3995986e7f95..0000000000000 --- a/web/packages/teleterm/src/services/tshd/prehog/v1alpha/connect_pb.d.ts +++ /dev/null @@ -1,327 +0,0 @@ -// package: prehog.v1alpha -// file: prehog/v1alpha/connect.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; - -export class ConnectClusterLoginEvent extends jspb.Message { - getClusterName(): string; - setClusterName(value: string): ConnectClusterLoginEvent; - - getUserName(): string; - setUserName(value: string): ConnectClusterLoginEvent; - - getConnectorType(): string; - setConnectorType(value: string): ConnectClusterLoginEvent; - - getArch(): string; - setArch(value: string): ConnectClusterLoginEvent; - - getOs(): string; - setOs(value: string): ConnectClusterLoginEvent; - - getOsVersion(): string; - setOsVersion(value: string): ConnectClusterLoginEvent; - - getAppVersion(): string; - setAppVersion(value: string): ConnectClusterLoginEvent; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConnectClusterLoginEvent.AsObject; - static toObject(includeInstance: boolean, msg: ConnectClusterLoginEvent): ConnectClusterLoginEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConnectClusterLoginEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConnectClusterLoginEvent; - static deserializeBinaryFromReader(message: ConnectClusterLoginEvent, reader: jspb.BinaryReader): ConnectClusterLoginEvent; -} - -export namespace ConnectClusterLoginEvent { - export type AsObject = { - clusterName: string, - userName: string, - connectorType: string, - arch: string, - os: string, - osVersion: string, - appVersion: string, - } -} - -export class ConnectProtocolUseEvent extends jspb.Message { - getClusterName(): string; - setClusterName(value: string): ConnectProtocolUseEvent; - - getUserName(): string; - setUserName(value: string): ConnectProtocolUseEvent; - - getProtocol(): string; - setProtocol(value: string): ConnectProtocolUseEvent; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConnectProtocolUseEvent.AsObject; - static toObject(includeInstance: boolean, msg: ConnectProtocolUseEvent): ConnectProtocolUseEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConnectProtocolUseEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConnectProtocolUseEvent; - static deserializeBinaryFromReader(message: ConnectProtocolUseEvent, reader: jspb.BinaryReader): ConnectProtocolUseEvent; -} - -export namespace ConnectProtocolUseEvent { - export type AsObject = { - clusterName: string, - userName: string, - protocol: string, - } -} - -export class ConnectAccessRequestCreateEvent extends jspb.Message { - getClusterName(): string; - setClusterName(value: string): ConnectAccessRequestCreateEvent; - - getUserName(): string; - setUserName(value: string): ConnectAccessRequestCreateEvent; - - getKind(): string; - setKind(value: string): ConnectAccessRequestCreateEvent; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConnectAccessRequestCreateEvent.AsObject; - static toObject(includeInstance: boolean, msg: ConnectAccessRequestCreateEvent): ConnectAccessRequestCreateEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConnectAccessRequestCreateEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConnectAccessRequestCreateEvent; - static deserializeBinaryFromReader(message: ConnectAccessRequestCreateEvent, reader: jspb.BinaryReader): ConnectAccessRequestCreateEvent; -} - -export namespace ConnectAccessRequestCreateEvent { - export type AsObject = { - clusterName: string, - userName: string, - kind: string, - } -} - -export class ConnectAccessRequestReviewEvent extends jspb.Message { - getClusterName(): string; - setClusterName(value: string): ConnectAccessRequestReviewEvent; - - getUserName(): string; - setUserName(value: string): ConnectAccessRequestReviewEvent; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConnectAccessRequestReviewEvent.AsObject; - static toObject(includeInstance: boolean, msg: ConnectAccessRequestReviewEvent): ConnectAccessRequestReviewEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConnectAccessRequestReviewEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConnectAccessRequestReviewEvent; - static deserializeBinaryFromReader(message: ConnectAccessRequestReviewEvent, reader: jspb.BinaryReader): ConnectAccessRequestReviewEvent; -} - -export namespace ConnectAccessRequestReviewEvent { - export type AsObject = { - clusterName: string, - userName: string, - } -} - -export class ConnectAccessRequestAssumeRoleEvent extends jspb.Message { - getClusterName(): string; - setClusterName(value: string): ConnectAccessRequestAssumeRoleEvent; - - getUserName(): string; - setUserName(value: string): ConnectAccessRequestAssumeRoleEvent; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConnectAccessRequestAssumeRoleEvent.AsObject; - static toObject(includeInstance: boolean, msg: ConnectAccessRequestAssumeRoleEvent): ConnectAccessRequestAssumeRoleEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConnectAccessRequestAssumeRoleEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConnectAccessRequestAssumeRoleEvent; - static deserializeBinaryFromReader(message: ConnectAccessRequestAssumeRoleEvent, reader: jspb.BinaryReader): ConnectAccessRequestAssumeRoleEvent; -} - -export namespace ConnectAccessRequestAssumeRoleEvent { - export type AsObject = { - clusterName: string, - userName: string, - } -} - -export class ConnectFileTransferRunEvent extends jspb.Message { - getClusterName(): string; - setClusterName(value: string): ConnectFileTransferRunEvent; - - getUserName(): string; - setUserName(value: string): ConnectFileTransferRunEvent; - - getIsUpload(): boolean; - setIsUpload(value: boolean): ConnectFileTransferRunEvent; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConnectFileTransferRunEvent.AsObject; - static toObject(includeInstance: boolean, msg: ConnectFileTransferRunEvent): ConnectFileTransferRunEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConnectFileTransferRunEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConnectFileTransferRunEvent; - static deserializeBinaryFromReader(message: ConnectFileTransferRunEvent, reader: jspb.BinaryReader): ConnectFileTransferRunEvent; -} - -export namespace ConnectFileTransferRunEvent { - export type AsObject = { - clusterName: string, - userName: string, - isUpload: boolean, - } -} - -export class ConnectUserJobRoleUpdateEvent extends jspb.Message { - getJobRole(): string; - setJobRole(value: string): ConnectUserJobRoleUpdateEvent; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConnectUserJobRoleUpdateEvent.AsObject; - static toObject(includeInstance: boolean, msg: ConnectUserJobRoleUpdateEvent): ConnectUserJobRoleUpdateEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConnectUserJobRoleUpdateEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConnectUserJobRoleUpdateEvent; - static deserializeBinaryFromReader(message: ConnectUserJobRoleUpdateEvent, reader: jspb.BinaryReader): ConnectUserJobRoleUpdateEvent; -} - -export namespace ConnectUserJobRoleUpdateEvent { - export type AsObject = { - jobRole: string, - } -} - -export class SubmitConnectEventRequest extends jspb.Message { - getDistinctId(): string; - setDistinctId(value: string): SubmitConnectEventRequest; - - - hasTimestamp(): boolean; - clearTimestamp(): void; - getTimestamp(): google_protobuf_timestamp_pb.Timestamp | undefined; - setTimestamp(value?: google_protobuf_timestamp_pb.Timestamp): SubmitConnectEventRequest; - - - hasClusterLogin(): boolean; - clearClusterLogin(): void; - getClusterLogin(): ConnectClusterLoginEvent | undefined; - setClusterLogin(value?: ConnectClusterLoginEvent): SubmitConnectEventRequest; - - - hasProtocolUse(): boolean; - clearProtocolUse(): void; - getProtocolUse(): ConnectProtocolUseEvent | undefined; - setProtocolUse(value?: ConnectProtocolUseEvent): SubmitConnectEventRequest; - - - hasAccessRequestCreate(): boolean; - clearAccessRequestCreate(): void; - getAccessRequestCreate(): ConnectAccessRequestCreateEvent | undefined; - setAccessRequestCreate(value?: ConnectAccessRequestCreateEvent): SubmitConnectEventRequest; - - - hasAccessRequestReview(): boolean; - clearAccessRequestReview(): void; - getAccessRequestReview(): ConnectAccessRequestReviewEvent | undefined; - setAccessRequestReview(value?: ConnectAccessRequestReviewEvent): SubmitConnectEventRequest; - - - hasAccessRequestAssumeRole(): boolean; - clearAccessRequestAssumeRole(): void; - getAccessRequestAssumeRole(): ConnectAccessRequestAssumeRoleEvent | undefined; - setAccessRequestAssumeRole(value?: ConnectAccessRequestAssumeRoleEvent): SubmitConnectEventRequest; - - - hasFileTransferRun(): boolean; - clearFileTransferRun(): void; - getFileTransferRun(): ConnectFileTransferRunEvent | undefined; - setFileTransferRun(value?: ConnectFileTransferRunEvent): SubmitConnectEventRequest; - - - hasUserJobRoleUpdate(): boolean; - clearUserJobRoleUpdate(): void; - getUserJobRoleUpdate(): ConnectUserJobRoleUpdateEvent | undefined; - setUserJobRoleUpdate(value?: ConnectUserJobRoleUpdateEvent): SubmitConnectEventRequest; - - - getEventCase(): SubmitConnectEventRequest.EventCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SubmitConnectEventRequest.AsObject; - static toObject(includeInstance: boolean, msg: SubmitConnectEventRequest): SubmitConnectEventRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SubmitConnectEventRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SubmitConnectEventRequest; - static deserializeBinaryFromReader(message: SubmitConnectEventRequest, reader: jspb.BinaryReader): SubmitConnectEventRequest; -} - -export namespace SubmitConnectEventRequest { - export type AsObject = { - distinctId: string, - timestamp?: google_protobuf_timestamp_pb.Timestamp.AsObject, - clusterLogin?: ConnectClusterLoginEvent.AsObject, - protocolUse?: ConnectProtocolUseEvent.AsObject, - accessRequestCreate?: ConnectAccessRequestCreateEvent.AsObject, - accessRequestReview?: ConnectAccessRequestReviewEvent.AsObject, - accessRequestAssumeRole?: ConnectAccessRequestAssumeRoleEvent.AsObject, - fileTransferRun?: ConnectFileTransferRunEvent.AsObject, - userJobRoleUpdate?: ConnectUserJobRoleUpdateEvent.AsObject, - } - - export enum EventCase { - EVENT_NOT_SET = 0, - - CLUSTER_LOGIN = 3, - - PROTOCOL_USE = 4, - - ACCESS_REQUEST_CREATE = 5, - - ACCESS_REQUEST_REVIEW = 6, - - ACCESS_REQUEST_ASSUME_ROLE = 7, - - FILE_TRANSFER_RUN = 8, - - USER_JOB_ROLE_UPDATE = 9, - - } - -} - -export class SubmitConnectEventResponse extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SubmitConnectEventResponse.AsObject; - static toObject(includeInstance: boolean, msg: SubmitConnectEventResponse): SubmitConnectEventResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SubmitConnectEventResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SubmitConnectEventResponse; - static deserializeBinaryFromReader(message: SubmitConnectEventResponse, reader: jspb.BinaryReader): SubmitConnectEventResponse; -} - -export namespace SubmitConnectEventResponse { - export type AsObject = { - } -} diff --git a/web/packages/teleterm/src/services/tshd/prehog/v1alpha/connect_pb.js b/web/packages/teleterm/src/services/tshd/prehog/v1alpha/connect_pb.js deleted file mode 100644 index 31114b8c9c074..0000000000000 --- a/web/packages/teleterm/src/services/tshd/prehog/v1alpha/connect_pb.js +++ /dev/null @@ -1,2219 +0,0 @@ -// source: prehog/v1alpha/connect.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 || window || global || self || Function('return this')(); }).call(null); - -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -goog.exportSymbol('proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent', null, global); -goog.exportSymbol('proto.prehog.v1alpha.ConnectAccessRequestCreateEvent', null, global); -goog.exportSymbol('proto.prehog.v1alpha.ConnectAccessRequestReviewEvent', null, global); -goog.exportSymbol('proto.prehog.v1alpha.ConnectClusterLoginEvent', null, global); -goog.exportSymbol('proto.prehog.v1alpha.ConnectFileTransferRunEvent', null, global); -goog.exportSymbol('proto.prehog.v1alpha.ConnectProtocolUseEvent', null, global); -goog.exportSymbol('proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent', null, global); -goog.exportSymbol('proto.prehog.v1alpha.SubmitConnectEventRequest', null, global); -goog.exportSymbol('proto.prehog.v1alpha.SubmitConnectEventRequest.EventCase', null, global); -goog.exportSymbol('proto.prehog.v1alpha.SubmitConnectEventResponse', 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.prehog.v1alpha.ConnectClusterLoginEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.prehog.v1alpha.ConnectClusterLoginEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.prehog.v1alpha.ConnectClusterLoginEvent.displayName = 'proto.prehog.v1alpha.ConnectClusterLoginEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.prehog.v1alpha.ConnectProtocolUseEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.prehog.v1alpha.ConnectProtocolUseEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.prehog.v1alpha.ConnectProtocolUseEvent.displayName = 'proto.prehog.v1alpha.ConnectProtocolUseEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.prehog.v1alpha.ConnectAccessRequestCreateEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.prehog.v1alpha.ConnectAccessRequestCreateEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.prehog.v1alpha.ConnectAccessRequestCreateEvent.displayName = 'proto.prehog.v1alpha.ConnectAccessRequestCreateEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.prehog.v1alpha.ConnectAccessRequestReviewEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.prehog.v1alpha.ConnectAccessRequestReviewEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.prehog.v1alpha.ConnectAccessRequestReviewEvent.displayName = 'proto.prehog.v1alpha.ConnectAccessRequestReviewEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent.displayName = 'proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.prehog.v1alpha.ConnectFileTransferRunEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.prehog.v1alpha.ConnectFileTransferRunEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.prehog.v1alpha.ConnectFileTransferRunEvent.displayName = 'proto.prehog.v1alpha.ConnectFileTransferRunEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent.displayName = 'proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.prehog.v1alpha.SubmitConnectEventRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.prehog.v1alpha.SubmitConnectEventRequest.oneofGroups_); -}; -goog.inherits(proto.prehog.v1alpha.SubmitConnectEventRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.prehog.v1alpha.SubmitConnectEventRequest.displayName = 'proto.prehog.v1alpha.SubmitConnectEventRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.prehog.v1alpha.SubmitConnectEventResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.prehog.v1alpha.SubmitConnectEventResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.prehog.v1alpha.SubmitConnectEventResponse.displayName = 'proto.prehog.v1alpha.SubmitConnectEventResponse'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.prehog.v1alpha.ConnectClusterLoginEvent.prototype.toObject = function(opt_includeInstance) { - return proto.prehog.v1alpha.ConnectClusterLoginEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.prehog.v1alpha.ConnectClusterLoginEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.ConnectClusterLoginEvent.toObject = function(includeInstance, msg) { - var f, obj = { - clusterName: jspb.Message.getFieldWithDefault(msg, 1, ""), - userName: jspb.Message.getFieldWithDefault(msg, 2, ""), - connectorType: jspb.Message.getFieldWithDefault(msg, 3, ""), - arch: jspb.Message.getFieldWithDefault(msg, 4, ""), - os: jspb.Message.getFieldWithDefault(msg, 5, ""), - osVersion: jspb.Message.getFieldWithDefault(msg, 6, ""), - appVersion: jspb.Message.getFieldWithDefault(msg, 7, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.prehog.v1alpha.ConnectClusterLoginEvent} - */ -proto.prehog.v1alpha.ConnectClusterLoginEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.prehog.v1alpha.ConnectClusterLoginEvent; - return proto.prehog.v1alpha.ConnectClusterLoginEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.prehog.v1alpha.ConnectClusterLoginEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.prehog.v1alpha.ConnectClusterLoginEvent} - */ -proto.prehog.v1alpha.ConnectClusterLoginEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClusterName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setConnectorType(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setArch(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setOs(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setOsVersion(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setAppVersion(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.prehog.v1alpha.ConnectClusterLoginEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.prehog.v1alpha.ConnectClusterLoginEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.prehog.v1alpha.ConnectClusterLoginEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.ConnectClusterLoginEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClusterName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getConnectorType(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getArch(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getOs(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getOsVersion(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getAppVersion(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } -}; - - -/** - * optional string cluster_name = 1; - * @return {string} - */ -proto.prehog.v1alpha.ConnectClusterLoginEvent.prototype.getClusterName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.ConnectClusterLoginEvent} returns this - */ -proto.prehog.v1alpha.ConnectClusterLoginEvent.prototype.setClusterName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string user_name = 2; - * @return {string} - */ -proto.prehog.v1alpha.ConnectClusterLoginEvent.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.ConnectClusterLoginEvent} returns this - */ -proto.prehog.v1alpha.ConnectClusterLoginEvent.prototype.setUserName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string connector_type = 3; - * @return {string} - */ -proto.prehog.v1alpha.ConnectClusterLoginEvent.prototype.getConnectorType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.ConnectClusterLoginEvent} returns this - */ -proto.prehog.v1alpha.ConnectClusterLoginEvent.prototype.setConnectorType = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string arch = 4; - * @return {string} - */ -proto.prehog.v1alpha.ConnectClusterLoginEvent.prototype.getArch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.ConnectClusterLoginEvent} returns this - */ -proto.prehog.v1alpha.ConnectClusterLoginEvent.prototype.setArch = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string os = 5; - * @return {string} - */ -proto.prehog.v1alpha.ConnectClusterLoginEvent.prototype.getOs = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.ConnectClusterLoginEvent} returns this - */ -proto.prehog.v1alpha.ConnectClusterLoginEvent.prototype.setOs = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string os_version = 6; - * @return {string} - */ -proto.prehog.v1alpha.ConnectClusterLoginEvent.prototype.getOsVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.ConnectClusterLoginEvent} returns this - */ -proto.prehog.v1alpha.ConnectClusterLoginEvent.prototype.setOsVersion = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string app_version = 7; - * @return {string} - */ -proto.prehog.v1alpha.ConnectClusterLoginEvent.prototype.getAppVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.ConnectClusterLoginEvent} returns this - */ -proto.prehog.v1alpha.ConnectClusterLoginEvent.prototype.setAppVersion = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.prehog.v1alpha.ConnectProtocolUseEvent.prototype.toObject = function(opt_includeInstance) { - return proto.prehog.v1alpha.ConnectProtocolUseEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.prehog.v1alpha.ConnectProtocolUseEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.ConnectProtocolUseEvent.toObject = function(includeInstance, msg) { - var f, obj = { - clusterName: jspb.Message.getFieldWithDefault(msg, 1, ""), - userName: jspb.Message.getFieldWithDefault(msg, 2, ""), - protocol: 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.prehog.v1alpha.ConnectProtocolUseEvent} - */ -proto.prehog.v1alpha.ConnectProtocolUseEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.prehog.v1alpha.ConnectProtocolUseEvent; - return proto.prehog.v1alpha.ConnectProtocolUseEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.prehog.v1alpha.ConnectProtocolUseEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.prehog.v1alpha.ConnectProtocolUseEvent} - */ -proto.prehog.v1alpha.ConnectProtocolUseEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClusterName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - case 3: - 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.prehog.v1alpha.ConnectProtocolUseEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.prehog.v1alpha.ConnectProtocolUseEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.prehog.v1alpha.ConnectProtocolUseEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.ConnectProtocolUseEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClusterName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getProtocol(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string cluster_name = 1; - * @return {string} - */ -proto.prehog.v1alpha.ConnectProtocolUseEvent.prototype.getClusterName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.ConnectProtocolUseEvent} returns this - */ -proto.prehog.v1alpha.ConnectProtocolUseEvent.prototype.setClusterName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string user_name = 2; - * @return {string} - */ -proto.prehog.v1alpha.ConnectProtocolUseEvent.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.ConnectProtocolUseEvent} returns this - */ -proto.prehog.v1alpha.ConnectProtocolUseEvent.prototype.setUserName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string protocol = 3; - * @return {string} - */ -proto.prehog.v1alpha.ConnectProtocolUseEvent.prototype.getProtocol = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.ConnectProtocolUseEvent} returns this - */ -proto.prehog.v1alpha.ConnectProtocolUseEvent.prototype.setProtocol = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.prehog.v1alpha.ConnectAccessRequestCreateEvent.prototype.toObject = function(opt_includeInstance) { - return proto.prehog.v1alpha.ConnectAccessRequestCreateEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.prehog.v1alpha.ConnectAccessRequestCreateEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.ConnectAccessRequestCreateEvent.toObject = function(includeInstance, msg) { - var f, obj = { - clusterName: jspb.Message.getFieldWithDefault(msg, 1, ""), - userName: jspb.Message.getFieldWithDefault(msg, 2, ""), - kind: 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.prehog.v1alpha.ConnectAccessRequestCreateEvent} - */ -proto.prehog.v1alpha.ConnectAccessRequestCreateEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.prehog.v1alpha.ConnectAccessRequestCreateEvent; - return proto.prehog.v1alpha.ConnectAccessRequestCreateEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.prehog.v1alpha.ConnectAccessRequestCreateEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.prehog.v1alpha.ConnectAccessRequestCreateEvent} - */ -proto.prehog.v1alpha.ConnectAccessRequestCreateEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClusterName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setKind(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.prehog.v1alpha.ConnectAccessRequestCreateEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.prehog.v1alpha.ConnectAccessRequestCreateEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.prehog.v1alpha.ConnectAccessRequestCreateEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.ConnectAccessRequestCreateEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClusterName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getKind(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string cluster_name = 1; - * @return {string} - */ -proto.prehog.v1alpha.ConnectAccessRequestCreateEvent.prototype.getClusterName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.ConnectAccessRequestCreateEvent} returns this - */ -proto.prehog.v1alpha.ConnectAccessRequestCreateEvent.prototype.setClusterName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string user_name = 2; - * @return {string} - */ -proto.prehog.v1alpha.ConnectAccessRequestCreateEvent.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.ConnectAccessRequestCreateEvent} returns this - */ -proto.prehog.v1alpha.ConnectAccessRequestCreateEvent.prototype.setUserName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string kind = 3; - * @return {string} - */ -proto.prehog.v1alpha.ConnectAccessRequestCreateEvent.prototype.getKind = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.ConnectAccessRequestCreateEvent} returns this - */ -proto.prehog.v1alpha.ConnectAccessRequestCreateEvent.prototype.setKind = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.prehog.v1alpha.ConnectAccessRequestReviewEvent.prototype.toObject = function(opt_includeInstance) { - return proto.prehog.v1alpha.ConnectAccessRequestReviewEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.prehog.v1alpha.ConnectAccessRequestReviewEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.ConnectAccessRequestReviewEvent.toObject = function(includeInstance, msg) { - var f, obj = { - clusterName: jspb.Message.getFieldWithDefault(msg, 1, ""), - userName: 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.prehog.v1alpha.ConnectAccessRequestReviewEvent} - */ -proto.prehog.v1alpha.ConnectAccessRequestReviewEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.prehog.v1alpha.ConnectAccessRequestReviewEvent; - return proto.prehog.v1alpha.ConnectAccessRequestReviewEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.prehog.v1alpha.ConnectAccessRequestReviewEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.prehog.v1alpha.ConnectAccessRequestReviewEvent} - */ -proto.prehog.v1alpha.ConnectAccessRequestReviewEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClusterName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.prehog.v1alpha.ConnectAccessRequestReviewEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.prehog.v1alpha.ConnectAccessRequestReviewEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.prehog.v1alpha.ConnectAccessRequestReviewEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.ConnectAccessRequestReviewEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClusterName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string cluster_name = 1; - * @return {string} - */ -proto.prehog.v1alpha.ConnectAccessRequestReviewEvent.prototype.getClusterName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.ConnectAccessRequestReviewEvent} returns this - */ -proto.prehog.v1alpha.ConnectAccessRequestReviewEvent.prototype.setClusterName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string user_name = 2; - * @return {string} - */ -proto.prehog.v1alpha.ConnectAccessRequestReviewEvent.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.ConnectAccessRequestReviewEvent} returns this - */ -proto.prehog.v1alpha.ConnectAccessRequestReviewEvent.prototype.setUserName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent.prototype.toObject = function(opt_includeInstance) { - return proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent.toObject = function(includeInstance, msg) { - var f, obj = { - clusterName: jspb.Message.getFieldWithDefault(msg, 1, ""), - userName: 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.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent} - */ -proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent; - return proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent} - */ -proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClusterName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClusterName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string cluster_name = 1; - * @return {string} - */ -proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent.prototype.getClusterName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent} returns this - */ -proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent.prototype.setClusterName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string user_name = 2; - * @return {string} - */ -proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent} returns this - */ -proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent.prototype.setUserName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.prehog.v1alpha.ConnectFileTransferRunEvent.prototype.toObject = function(opt_includeInstance) { - return proto.prehog.v1alpha.ConnectFileTransferRunEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.prehog.v1alpha.ConnectFileTransferRunEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.ConnectFileTransferRunEvent.toObject = function(includeInstance, msg) { - var f, obj = { - clusterName: jspb.Message.getFieldWithDefault(msg, 1, ""), - userName: jspb.Message.getFieldWithDefault(msg, 2, ""), - isUpload: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.prehog.v1alpha.ConnectFileTransferRunEvent} - */ -proto.prehog.v1alpha.ConnectFileTransferRunEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.prehog.v1alpha.ConnectFileTransferRunEvent; - return proto.prehog.v1alpha.ConnectFileTransferRunEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.prehog.v1alpha.ConnectFileTransferRunEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.prehog.v1alpha.ConnectFileTransferRunEvent} - */ -proto.prehog.v1alpha.ConnectFileTransferRunEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClusterName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsUpload(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.prehog.v1alpha.ConnectFileTransferRunEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.prehog.v1alpha.ConnectFileTransferRunEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.prehog.v1alpha.ConnectFileTransferRunEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.ConnectFileTransferRunEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClusterName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getIsUpload(); - if (f) { - writer.writeBool( - 3, - f - ); - } -}; - - -/** - * optional string cluster_name = 1; - * @return {string} - */ -proto.prehog.v1alpha.ConnectFileTransferRunEvent.prototype.getClusterName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.ConnectFileTransferRunEvent} returns this - */ -proto.prehog.v1alpha.ConnectFileTransferRunEvent.prototype.setClusterName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string user_name = 2; - * @return {string} - */ -proto.prehog.v1alpha.ConnectFileTransferRunEvent.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.ConnectFileTransferRunEvent} returns this - */ -proto.prehog.v1alpha.ConnectFileTransferRunEvent.prototype.setUserName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool is_upload = 3; - * @return {boolean} - */ -proto.prehog.v1alpha.ConnectFileTransferRunEvent.prototype.getIsUpload = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.prehog.v1alpha.ConnectFileTransferRunEvent} returns this - */ -proto.prehog.v1alpha.ConnectFileTransferRunEvent.prototype.setIsUpload = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent.prototype.toObject = function(opt_includeInstance) { - return proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent.toObject = function(includeInstance, msg) { - var f, obj = { - jobRole: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent} - */ -proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent; - return proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent} - */ -proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setJobRole(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getJobRole(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string job_role = 1; - * @return {string} - */ -proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent.prototype.getJobRole = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent} returns this - */ -proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent.prototype.setJobRole = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.oneofGroups_ = [[3,4,5,6,7,8,9]]; - -/** - * @enum {number} - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.EventCase = { - EVENT_NOT_SET: 0, - CLUSTER_LOGIN: 3, - PROTOCOL_USE: 4, - ACCESS_REQUEST_CREATE: 5, - ACCESS_REQUEST_REVIEW: 6, - ACCESS_REQUEST_ASSUME_ROLE: 7, - FILE_TRANSFER_RUN: 8, - USER_JOB_ROLE_UPDATE: 9 -}; - -/** - * @return {proto.prehog.v1alpha.SubmitConnectEventRequest.EventCase} - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.getEventCase = function() { - return /** @type {proto.prehog.v1alpha.SubmitConnectEventRequest.EventCase} */(jspb.Message.computeOneofCase(this, proto.prehog.v1alpha.SubmitConnectEventRequest.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.toObject = function(opt_includeInstance) { - return proto.prehog.v1alpha.SubmitConnectEventRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.prehog.v1alpha.SubmitConnectEventRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.toObject = function(includeInstance, msg) { - var f, obj = { - distinctId: jspb.Message.getFieldWithDefault(msg, 1, ""), - timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - clusterLogin: (f = msg.getClusterLogin()) && proto.prehog.v1alpha.ConnectClusterLoginEvent.toObject(includeInstance, f), - protocolUse: (f = msg.getProtocolUse()) && proto.prehog.v1alpha.ConnectProtocolUseEvent.toObject(includeInstance, f), - accessRequestCreate: (f = msg.getAccessRequestCreate()) && proto.prehog.v1alpha.ConnectAccessRequestCreateEvent.toObject(includeInstance, f), - accessRequestReview: (f = msg.getAccessRequestReview()) && proto.prehog.v1alpha.ConnectAccessRequestReviewEvent.toObject(includeInstance, f), - accessRequestAssumeRole: (f = msg.getAccessRequestAssumeRole()) && proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent.toObject(includeInstance, f), - fileTransferRun: (f = msg.getFileTransferRun()) && proto.prehog.v1alpha.ConnectFileTransferRunEvent.toObject(includeInstance, f), - userJobRoleUpdate: (f = msg.getUserJobRoleUpdate()) && proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent.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.prehog.v1alpha.SubmitConnectEventRequest} - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.prehog.v1alpha.SubmitConnectEventRequest; - return proto.prehog.v1alpha.SubmitConnectEventRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.prehog.v1alpha.SubmitConnectEventRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.prehog.v1alpha.SubmitConnectEventRequest} - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDistinctId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTimestamp(value); - break; - case 3: - var value = new proto.prehog.v1alpha.ConnectClusterLoginEvent; - reader.readMessage(value,proto.prehog.v1alpha.ConnectClusterLoginEvent.deserializeBinaryFromReader); - msg.setClusterLogin(value); - break; - case 4: - var value = new proto.prehog.v1alpha.ConnectProtocolUseEvent; - reader.readMessage(value,proto.prehog.v1alpha.ConnectProtocolUseEvent.deserializeBinaryFromReader); - msg.setProtocolUse(value); - break; - case 5: - var value = new proto.prehog.v1alpha.ConnectAccessRequestCreateEvent; - reader.readMessage(value,proto.prehog.v1alpha.ConnectAccessRequestCreateEvent.deserializeBinaryFromReader); - msg.setAccessRequestCreate(value); - break; - case 6: - var value = new proto.prehog.v1alpha.ConnectAccessRequestReviewEvent; - reader.readMessage(value,proto.prehog.v1alpha.ConnectAccessRequestReviewEvent.deserializeBinaryFromReader); - msg.setAccessRequestReview(value); - break; - case 7: - var value = new proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent; - reader.readMessage(value,proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent.deserializeBinaryFromReader); - msg.setAccessRequestAssumeRole(value); - break; - case 8: - var value = new proto.prehog.v1alpha.ConnectFileTransferRunEvent; - reader.readMessage(value,proto.prehog.v1alpha.ConnectFileTransferRunEvent.deserializeBinaryFromReader); - msg.setFileTransferRun(value); - break; - case 9: - var value = new proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent; - reader.readMessage(value,proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent.deserializeBinaryFromReader); - msg.setUserJobRoleUpdate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.prehog.v1alpha.SubmitConnectEventRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.prehog.v1alpha.SubmitConnectEventRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDistinctId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTimestamp(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getClusterLogin(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.prehog.v1alpha.ConnectClusterLoginEvent.serializeBinaryToWriter - ); - } - f = message.getProtocolUse(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.prehog.v1alpha.ConnectProtocolUseEvent.serializeBinaryToWriter - ); - } - f = message.getAccessRequestCreate(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.prehog.v1alpha.ConnectAccessRequestCreateEvent.serializeBinaryToWriter - ); - } - f = message.getAccessRequestReview(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.prehog.v1alpha.ConnectAccessRequestReviewEvent.serializeBinaryToWriter - ); - } - f = message.getAccessRequestAssumeRole(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent.serializeBinaryToWriter - ); - } - f = message.getFileTransferRun(); - if (f != null) { - writer.writeMessage( - 8, - f, - proto.prehog.v1alpha.ConnectFileTransferRunEvent.serializeBinaryToWriter - ); - } - f = message.getUserJobRoleUpdate(); - if (f != null) { - writer.writeMessage( - 9, - f, - proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string distinct_id = 1; - * @return {string} - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.getDistinctId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.SubmitConnectEventRequest} returns this - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.setDistinctId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp timestamp = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.getTimestamp = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.prehog.v1alpha.SubmitConnectEventRequest} returns this -*/ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.setTimestamp = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.prehog.v1alpha.SubmitConnectEventRequest} returns this - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.clearTimestamp = function() { - return this.setTimestamp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.hasTimestamp = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional ConnectClusterLoginEvent cluster_login = 3; - * @return {?proto.prehog.v1alpha.ConnectClusterLoginEvent} - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.getClusterLogin = function() { - return /** @type{?proto.prehog.v1alpha.ConnectClusterLoginEvent} */ ( - jspb.Message.getWrapperField(this, proto.prehog.v1alpha.ConnectClusterLoginEvent, 3)); -}; - - -/** - * @param {?proto.prehog.v1alpha.ConnectClusterLoginEvent|undefined} value - * @return {!proto.prehog.v1alpha.SubmitConnectEventRequest} returns this -*/ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.setClusterLogin = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.prehog.v1alpha.SubmitConnectEventRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.prehog.v1alpha.SubmitConnectEventRequest} returns this - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.clearClusterLogin = function() { - return this.setClusterLogin(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.hasClusterLogin = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional ConnectProtocolUseEvent protocol_use = 4; - * @return {?proto.prehog.v1alpha.ConnectProtocolUseEvent} - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.getProtocolUse = function() { - return /** @type{?proto.prehog.v1alpha.ConnectProtocolUseEvent} */ ( - jspb.Message.getWrapperField(this, proto.prehog.v1alpha.ConnectProtocolUseEvent, 4)); -}; - - -/** - * @param {?proto.prehog.v1alpha.ConnectProtocolUseEvent|undefined} value - * @return {!proto.prehog.v1alpha.SubmitConnectEventRequest} returns this -*/ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.setProtocolUse = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.prehog.v1alpha.SubmitConnectEventRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.prehog.v1alpha.SubmitConnectEventRequest} returns this - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.clearProtocolUse = function() { - return this.setProtocolUse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.hasProtocolUse = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional ConnectAccessRequestCreateEvent access_request_create = 5; - * @return {?proto.prehog.v1alpha.ConnectAccessRequestCreateEvent} - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.getAccessRequestCreate = function() { - return /** @type{?proto.prehog.v1alpha.ConnectAccessRequestCreateEvent} */ ( - jspb.Message.getWrapperField(this, proto.prehog.v1alpha.ConnectAccessRequestCreateEvent, 5)); -}; - - -/** - * @param {?proto.prehog.v1alpha.ConnectAccessRequestCreateEvent|undefined} value - * @return {!proto.prehog.v1alpha.SubmitConnectEventRequest} returns this -*/ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.setAccessRequestCreate = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, proto.prehog.v1alpha.SubmitConnectEventRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.prehog.v1alpha.SubmitConnectEventRequest} returns this - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.clearAccessRequestCreate = function() { - return this.setAccessRequestCreate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.hasAccessRequestCreate = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional ConnectAccessRequestReviewEvent access_request_review = 6; - * @return {?proto.prehog.v1alpha.ConnectAccessRequestReviewEvent} - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.getAccessRequestReview = function() { - return /** @type{?proto.prehog.v1alpha.ConnectAccessRequestReviewEvent} */ ( - jspb.Message.getWrapperField(this, proto.prehog.v1alpha.ConnectAccessRequestReviewEvent, 6)); -}; - - -/** - * @param {?proto.prehog.v1alpha.ConnectAccessRequestReviewEvent|undefined} value - * @return {!proto.prehog.v1alpha.SubmitConnectEventRequest} returns this -*/ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.setAccessRequestReview = function(value) { - return jspb.Message.setOneofWrapperField(this, 6, proto.prehog.v1alpha.SubmitConnectEventRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.prehog.v1alpha.SubmitConnectEventRequest} returns this - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.clearAccessRequestReview = function() { - return this.setAccessRequestReview(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.hasAccessRequestReview = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional ConnectAccessRequestAssumeRoleEvent access_request_assume_role = 7; - * @return {?proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent} - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.getAccessRequestAssumeRole = function() { - return /** @type{?proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent} */ ( - jspb.Message.getWrapperField(this, proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent, 7)); -}; - - -/** - * @param {?proto.prehog.v1alpha.ConnectAccessRequestAssumeRoleEvent|undefined} value - * @return {!proto.prehog.v1alpha.SubmitConnectEventRequest} returns this -*/ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.setAccessRequestAssumeRole = function(value) { - return jspb.Message.setOneofWrapperField(this, 7, proto.prehog.v1alpha.SubmitConnectEventRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.prehog.v1alpha.SubmitConnectEventRequest} returns this - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.clearAccessRequestAssumeRole = function() { - return this.setAccessRequestAssumeRole(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.hasAccessRequestAssumeRole = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional ConnectFileTransferRunEvent file_transfer_run = 8; - * @return {?proto.prehog.v1alpha.ConnectFileTransferRunEvent} - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.getFileTransferRun = function() { - return /** @type{?proto.prehog.v1alpha.ConnectFileTransferRunEvent} */ ( - jspb.Message.getWrapperField(this, proto.prehog.v1alpha.ConnectFileTransferRunEvent, 8)); -}; - - -/** - * @param {?proto.prehog.v1alpha.ConnectFileTransferRunEvent|undefined} value - * @return {!proto.prehog.v1alpha.SubmitConnectEventRequest} returns this -*/ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.setFileTransferRun = function(value) { - return jspb.Message.setOneofWrapperField(this, 8, proto.prehog.v1alpha.SubmitConnectEventRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.prehog.v1alpha.SubmitConnectEventRequest} returns this - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.clearFileTransferRun = function() { - return this.setFileTransferRun(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.hasFileTransferRun = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional ConnectUserJobRoleUpdateEvent user_job_role_update = 9; - * @return {?proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent} - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.getUserJobRoleUpdate = function() { - return /** @type{?proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent} */ ( - jspb.Message.getWrapperField(this, proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent, 9)); -}; - - -/** - * @param {?proto.prehog.v1alpha.ConnectUserJobRoleUpdateEvent|undefined} value - * @return {!proto.prehog.v1alpha.SubmitConnectEventRequest} returns this -*/ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.setUserJobRoleUpdate = function(value) { - return jspb.Message.setOneofWrapperField(this, 9, proto.prehog.v1alpha.SubmitConnectEventRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.prehog.v1alpha.SubmitConnectEventRequest} returns this - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.clearUserJobRoleUpdate = function() { - return this.setUserJobRoleUpdate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.prehog.v1alpha.SubmitConnectEventRequest.prototype.hasUserJobRoleUpdate = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.prehog.v1alpha.SubmitConnectEventResponse.prototype.toObject = function(opt_includeInstance) { - return proto.prehog.v1alpha.SubmitConnectEventResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.prehog.v1alpha.SubmitConnectEventResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.SubmitConnectEventResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.prehog.v1alpha.SubmitConnectEventResponse} - */ -proto.prehog.v1alpha.SubmitConnectEventResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.prehog.v1alpha.SubmitConnectEventResponse; - return proto.prehog.v1alpha.SubmitConnectEventResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.prehog.v1alpha.SubmitConnectEventResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.prehog.v1alpha.SubmitConnectEventResponse} - */ -proto.prehog.v1alpha.SubmitConnectEventResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.prehog.v1alpha.SubmitConnectEventResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.prehog.v1alpha.SubmitConnectEventResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.prehog.v1alpha.SubmitConnectEventResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.SubmitConnectEventResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - -goog.object.extend(exports, proto.prehog.v1alpha); diff --git a/web/packages/teleterm/src/services/tshd/prehog/v1alpha/teleport_grpc_pb.d.ts b/web/packages/teleterm/src/services/tshd/prehog/v1alpha/teleport_grpc_pb.d.ts deleted file mode 100644 index 8dac89c19c58d..0000000000000 --- a/web/packages/teleterm/src/services/tshd/prehog/v1alpha/teleport_grpc_pb.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -// package: prehog.v1alpha -// file: prehog/v1alpha/teleport.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "grpc"; -import * as prehog_v1alpha_teleport_pb from "../../prehog/v1alpha/teleport_pb"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; - -interface ITeleportReportingServiceService extends grpc.ServiceDefinition { - submitEvent: ITeleportReportingServiceService_ISubmitEvent; -} - -interface ITeleportReportingServiceService_ISubmitEvent extends grpc.MethodDefinition { - path: "/prehog.v1alpha.TeleportReportingService/SubmitEvent"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const TeleportReportingServiceService: ITeleportReportingServiceService; - -export interface ITeleportReportingServiceServer { - submitEvent: grpc.handleUnaryCall; -} - -export interface ITeleportReportingServiceClient { - submitEvent(request: prehog_v1alpha_teleport_pb.SubmitEventRequest, callback: (error: grpc.ServiceError | null, response: prehog_v1alpha_teleport_pb.SubmitEventResponse) => void): grpc.ClientUnaryCall; - submitEvent(request: prehog_v1alpha_teleport_pb.SubmitEventRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: prehog_v1alpha_teleport_pb.SubmitEventResponse) => void): grpc.ClientUnaryCall; - submitEvent(request: prehog_v1alpha_teleport_pb.SubmitEventRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: prehog_v1alpha_teleport_pb.SubmitEventResponse) => void): grpc.ClientUnaryCall; -} - -export class TeleportReportingServiceClient extends grpc.Client implements ITeleportReportingServiceClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - public submitEvent(request: prehog_v1alpha_teleport_pb.SubmitEventRequest, callback: (error: grpc.ServiceError | null, response: prehog_v1alpha_teleport_pb.SubmitEventResponse) => void): grpc.ClientUnaryCall; - public submitEvent(request: prehog_v1alpha_teleport_pb.SubmitEventRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: prehog_v1alpha_teleport_pb.SubmitEventResponse) => void): grpc.ClientUnaryCall; - public submitEvent(request: prehog_v1alpha_teleport_pb.SubmitEventRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: prehog_v1alpha_teleport_pb.SubmitEventResponse) => void): grpc.ClientUnaryCall; -} diff --git a/web/packages/teleterm/src/services/tshd/prehog/v1alpha/teleport_grpc_pb.js b/web/packages/teleterm/src/services/tshd/prehog/v1alpha/teleport_grpc_pb.js deleted file mode 100644 index bec30f63109b8..0000000000000 --- a/web/packages/teleterm/src/services/tshd/prehog/v1alpha/teleport_grpc_pb.js +++ /dev/null @@ -1,60 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -// Original file comments: -// Copyright 2022 Gravitational, Inc -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -'use strict'; -var grpc = require('@grpc/grpc-js'); -var prehog_v1alpha_teleport_pb = require('../../prehog/v1alpha/teleport_pb.js'); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); - -function serialize_prehog_v1alpha_SubmitEventRequest(arg) { - if (!(arg instanceof prehog_v1alpha_teleport_pb.SubmitEventRequest)) { - throw new Error('Expected argument of type prehog.v1alpha.SubmitEventRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_prehog_v1alpha_SubmitEventRequest(buffer_arg) { - return prehog_v1alpha_teleport_pb.SubmitEventRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_prehog_v1alpha_SubmitEventResponse(arg) { - if (!(arg instanceof prehog_v1alpha_teleport_pb.SubmitEventResponse)) { - throw new Error('Expected argument of type prehog.v1alpha.SubmitEventResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_prehog_v1alpha_SubmitEventResponse(buffer_arg) { - return prehog_v1alpha_teleport_pb.SubmitEventResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -var TeleportReportingServiceService = exports.TeleportReportingServiceService = { - submitEvent: { - path: '/prehog.v1alpha.TeleportReportingService/SubmitEvent', - requestStream: false, - responseStream: false, - requestType: prehog_v1alpha_teleport_pb.SubmitEventRequest, - responseType: prehog_v1alpha_teleport_pb.SubmitEventResponse, - requestSerialize: serialize_prehog_v1alpha_SubmitEventRequest, - requestDeserialize: deserialize_prehog_v1alpha_SubmitEventRequest, - responseSerialize: serialize_prehog_v1alpha_SubmitEventResponse, - responseDeserialize: deserialize_prehog_v1alpha_SubmitEventResponse, - }, -}; - -exports.TeleportReportingServiceClient = grpc.makeGenericClientConstructor(TeleportReportingServiceService); diff --git a/web/packages/teleterm/src/services/tshd/prehog/v1alpha/teleport_pb.d.ts b/web/packages/teleterm/src/services/tshd/prehog/v1alpha/teleport_pb.d.ts deleted file mode 100644 index 5f354bfbf267f..0000000000000 --- a/web/packages/teleterm/src/services/tshd/prehog/v1alpha/teleport_pb.d.ts +++ /dev/null @@ -1,433 +0,0 @@ -// package: prehog.v1alpha -// file: prehog/v1alpha/teleport.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; - -export class UserLoginEvent extends jspb.Message { - getUserName(): string; - setUserName(value: string): UserLoginEvent; - - getConnectorType(): string; - setConnectorType(value: string): UserLoginEvent; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserLoginEvent.AsObject; - static toObject(includeInstance: boolean, msg: UserLoginEvent): UserLoginEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UserLoginEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserLoginEvent; - static deserializeBinaryFromReader(message: UserLoginEvent, reader: jspb.BinaryReader): UserLoginEvent; -} - -export namespace UserLoginEvent { - export type AsObject = { - userName: string, - connectorType: string, - } -} - -export class SSOCreateEvent extends jspb.Message { - getConnectorType(): string; - setConnectorType(value: string): SSOCreateEvent; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SSOCreateEvent.AsObject; - static toObject(includeInstance: boolean, msg: SSOCreateEvent): SSOCreateEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SSOCreateEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SSOCreateEvent; - static deserializeBinaryFromReader(message: SSOCreateEvent, reader: jspb.BinaryReader): SSOCreateEvent; -} - -export namespace SSOCreateEvent { - export type AsObject = { - connectorType: string, - } -} - -export class ResourceCreateEvent extends jspb.Message { - getResourceType(): string; - setResourceType(value: string): ResourceCreateEvent; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ResourceCreateEvent.AsObject; - static toObject(includeInstance: boolean, msg: ResourceCreateEvent): ResourceCreateEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ResourceCreateEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ResourceCreateEvent; - static deserializeBinaryFromReader(message: ResourceCreateEvent, reader: jspb.BinaryReader): ResourceCreateEvent; -} - -export namespace ResourceCreateEvent { - export type AsObject = { - resourceType: string, - } -} - -export class SessionStartEvent extends jspb.Message { - getUserName(): string; - setUserName(value: string): SessionStartEvent; - - getSessionType(): string; - setSessionType(value: string): SessionStartEvent; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SessionStartEvent.AsObject; - static toObject(includeInstance: boolean, msg: SessionStartEvent): SessionStartEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SessionStartEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SessionStartEvent; - static deserializeBinaryFromReader(message: SessionStartEvent, reader: jspb.BinaryReader): SessionStartEvent; -} - -export namespace SessionStartEvent { - export type AsObject = { - userName: string, - sessionType: string, - } -} - -export class UIBannerClickEvent extends jspb.Message { - getUserName(): string; - setUserName(value: string): UIBannerClickEvent; - - getAlert(): string; - setAlert(value: string): UIBannerClickEvent; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UIBannerClickEvent.AsObject; - static toObject(includeInstance: boolean, msg: UIBannerClickEvent): UIBannerClickEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UIBannerClickEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UIBannerClickEvent; - static deserializeBinaryFromReader(message: UIBannerClickEvent, reader: jspb.BinaryReader): UIBannerClickEvent; -} - -export namespace UIBannerClickEvent { - export type AsObject = { - userName: string, - alert: string, - } -} - -export class UIOnboardGetStartedClickEvent extends jspb.Message { - getUserName(): string; - setUserName(value: string): UIOnboardGetStartedClickEvent; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UIOnboardGetStartedClickEvent.AsObject; - static toObject(includeInstance: boolean, msg: UIOnboardGetStartedClickEvent): UIOnboardGetStartedClickEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UIOnboardGetStartedClickEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UIOnboardGetStartedClickEvent; - static deserializeBinaryFromReader(message: UIOnboardGetStartedClickEvent, reader: jspb.BinaryReader): UIOnboardGetStartedClickEvent; -} - -export namespace UIOnboardGetStartedClickEvent { - export type AsObject = { - userName: string, - } -} - -export class UIOnboardCompleteGoToDashboardClickEvent extends jspb.Message { - getUserName(): string; - setUserName(value: string): UIOnboardCompleteGoToDashboardClickEvent; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UIOnboardCompleteGoToDashboardClickEvent.AsObject; - static toObject(includeInstance: boolean, msg: UIOnboardCompleteGoToDashboardClickEvent): UIOnboardCompleteGoToDashboardClickEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UIOnboardCompleteGoToDashboardClickEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UIOnboardCompleteGoToDashboardClickEvent; - static deserializeBinaryFromReader(message: UIOnboardCompleteGoToDashboardClickEvent, reader: jspb.BinaryReader): UIOnboardCompleteGoToDashboardClickEvent; -} - -export namespace UIOnboardCompleteGoToDashboardClickEvent { - export type AsObject = { - userName: string, - } -} - -export class UIOnboardAddFirstResourceClickEvent extends jspb.Message { - getUserName(): string; - setUserName(value: string): UIOnboardAddFirstResourceClickEvent; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UIOnboardAddFirstResourceClickEvent.AsObject; - static toObject(includeInstance: boolean, msg: UIOnboardAddFirstResourceClickEvent): UIOnboardAddFirstResourceClickEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UIOnboardAddFirstResourceClickEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UIOnboardAddFirstResourceClickEvent; - static deserializeBinaryFromReader(message: UIOnboardAddFirstResourceClickEvent, reader: jspb.BinaryReader): UIOnboardAddFirstResourceClickEvent; -} - -export namespace UIOnboardAddFirstResourceClickEvent { - export type AsObject = { - userName: string, - } -} - -export class UIOnboardAddFirstResourceLaterClickEvent extends jspb.Message { - getUserName(): string; - setUserName(value: string): UIOnboardAddFirstResourceLaterClickEvent; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UIOnboardAddFirstResourceLaterClickEvent.AsObject; - static toObject(includeInstance: boolean, msg: UIOnboardAddFirstResourceLaterClickEvent): UIOnboardAddFirstResourceLaterClickEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UIOnboardAddFirstResourceLaterClickEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UIOnboardAddFirstResourceLaterClickEvent; - static deserializeBinaryFromReader(message: UIOnboardAddFirstResourceLaterClickEvent, reader: jspb.BinaryReader): UIOnboardAddFirstResourceLaterClickEvent; -} - -export namespace UIOnboardAddFirstResourceLaterClickEvent { - export type AsObject = { - userName: string, - } -} - -export class UIOnboardSetCredentialSubmitEvent extends jspb.Message { - getUserName(): string; - setUserName(value: string): UIOnboardSetCredentialSubmitEvent; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UIOnboardSetCredentialSubmitEvent.AsObject; - static toObject(includeInstance: boolean, msg: UIOnboardSetCredentialSubmitEvent): UIOnboardSetCredentialSubmitEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UIOnboardSetCredentialSubmitEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UIOnboardSetCredentialSubmitEvent; - static deserializeBinaryFromReader(message: UIOnboardSetCredentialSubmitEvent, reader: jspb.BinaryReader): UIOnboardSetCredentialSubmitEvent; -} - -export namespace UIOnboardSetCredentialSubmitEvent { - export type AsObject = { - userName: string, - } -} - -export class UIOnboardRegisterChallengeSubmitEvent extends jspb.Message { - getUserName(): string; - setUserName(value: string): UIOnboardRegisterChallengeSubmitEvent; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UIOnboardRegisterChallengeSubmitEvent.AsObject; - static toObject(includeInstance: boolean, msg: UIOnboardRegisterChallengeSubmitEvent): UIOnboardRegisterChallengeSubmitEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UIOnboardRegisterChallengeSubmitEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UIOnboardRegisterChallengeSubmitEvent; - static deserializeBinaryFromReader(message: UIOnboardRegisterChallengeSubmitEvent, reader: jspb.BinaryReader): UIOnboardRegisterChallengeSubmitEvent; -} - -export namespace UIOnboardRegisterChallengeSubmitEvent { - export type AsObject = { - userName: string, - } -} - -export class UIRecoveryCodesContinueClickEvent extends jspb.Message { - getUserName(): string; - setUserName(value: string): UIRecoveryCodesContinueClickEvent; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UIRecoveryCodesContinueClickEvent.AsObject; - static toObject(includeInstance: boolean, msg: UIRecoveryCodesContinueClickEvent): UIRecoveryCodesContinueClickEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UIRecoveryCodesContinueClickEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UIRecoveryCodesContinueClickEvent; - static deserializeBinaryFromReader(message: UIRecoveryCodesContinueClickEvent, reader: jspb.BinaryReader): UIRecoveryCodesContinueClickEvent; -} - -export namespace UIRecoveryCodesContinueClickEvent { - export type AsObject = { - userName: string, - } -} - -export class SubmitEventRequest extends jspb.Message { - getClusterName(): string; - setClusterName(value: string): SubmitEventRequest; - - - hasTimestamp(): boolean; - clearTimestamp(): void; - getTimestamp(): google_protobuf_timestamp_pb.Timestamp | undefined; - setTimestamp(value?: google_protobuf_timestamp_pb.Timestamp): SubmitEventRequest; - - - hasUserLogin(): boolean; - clearUserLogin(): void; - getUserLogin(): UserLoginEvent | undefined; - setUserLogin(value?: UserLoginEvent): SubmitEventRequest; - - - hasSsoCreate(): boolean; - clearSsoCreate(): void; - getSsoCreate(): SSOCreateEvent | undefined; - setSsoCreate(value?: SSOCreateEvent): SubmitEventRequest; - - - hasResourceCreate(): boolean; - clearResourceCreate(): void; - getResourceCreate(): ResourceCreateEvent | undefined; - setResourceCreate(value?: ResourceCreateEvent): SubmitEventRequest; - - - hasSessionStart(): boolean; - clearSessionStart(): void; - getSessionStart(): SessionStartEvent | undefined; - setSessionStart(value?: SessionStartEvent): SubmitEventRequest; - - - hasUiBannerClick(): boolean; - clearUiBannerClick(): void; - getUiBannerClick(): UIBannerClickEvent | undefined; - setUiBannerClick(value?: UIBannerClickEvent): SubmitEventRequest; - - - hasUiOnboardGetStartedClick(): boolean; - clearUiOnboardGetStartedClick(): void; - getUiOnboardGetStartedClick(): UIOnboardGetStartedClickEvent | undefined; - setUiOnboardGetStartedClick(value?: UIOnboardGetStartedClickEvent): SubmitEventRequest; - - - hasUiOnboardCompleteGoToDashboardClick(): boolean; - clearUiOnboardCompleteGoToDashboardClick(): void; - getUiOnboardCompleteGoToDashboardClick(): UIOnboardCompleteGoToDashboardClickEvent | undefined; - setUiOnboardCompleteGoToDashboardClick(value?: UIOnboardCompleteGoToDashboardClickEvent): SubmitEventRequest; - - - hasUiOnboardAddFirstResourceClick(): boolean; - clearUiOnboardAddFirstResourceClick(): void; - getUiOnboardAddFirstResourceClick(): UIOnboardAddFirstResourceClickEvent | undefined; - setUiOnboardAddFirstResourceClick(value?: UIOnboardAddFirstResourceClickEvent): SubmitEventRequest; - - - hasUiOnboardAddFirstResourceLaterClick(): boolean; - clearUiOnboardAddFirstResourceLaterClick(): void; - getUiOnboardAddFirstResourceLaterClick(): UIOnboardAddFirstResourceLaterClickEvent | undefined; - setUiOnboardAddFirstResourceLaterClick(value?: UIOnboardAddFirstResourceLaterClickEvent): SubmitEventRequest; - - - hasUiOnboardSetCredentialSubmit(): boolean; - clearUiOnboardSetCredentialSubmit(): void; - getUiOnboardSetCredentialSubmit(): UIOnboardSetCredentialSubmitEvent | undefined; - setUiOnboardSetCredentialSubmit(value?: UIOnboardSetCredentialSubmitEvent): SubmitEventRequest; - - - hasUiOnboardRegisterChallengeSubmit(): boolean; - clearUiOnboardRegisterChallengeSubmit(): void; - getUiOnboardRegisterChallengeSubmit(): UIOnboardRegisterChallengeSubmitEvent | undefined; - setUiOnboardRegisterChallengeSubmit(value?: UIOnboardRegisterChallengeSubmitEvent): SubmitEventRequest; - - - hasUiRecoveryCodesContinueClick(): boolean; - clearUiRecoveryCodesContinueClick(): void; - getUiRecoveryCodesContinueClick(): UIRecoveryCodesContinueClickEvent | undefined; - setUiRecoveryCodesContinueClick(value?: UIRecoveryCodesContinueClickEvent): SubmitEventRequest; - - - getEventCase(): SubmitEventRequest.EventCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SubmitEventRequest.AsObject; - static toObject(includeInstance: boolean, msg: SubmitEventRequest): SubmitEventRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SubmitEventRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SubmitEventRequest; - static deserializeBinaryFromReader(message: SubmitEventRequest, reader: jspb.BinaryReader): SubmitEventRequest; -} - -export namespace SubmitEventRequest { - export type AsObject = { - clusterName: string, - timestamp?: google_protobuf_timestamp_pb.Timestamp.AsObject, - userLogin?: UserLoginEvent.AsObject, - ssoCreate?: SSOCreateEvent.AsObject, - resourceCreate?: ResourceCreateEvent.AsObject, - sessionStart?: SessionStartEvent.AsObject, - uiBannerClick?: UIBannerClickEvent.AsObject, - uiOnboardGetStartedClick?: UIOnboardGetStartedClickEvent.AsObject, - uiOnboardCompleteGoToDashboardClick?: UIOnboardCompleteGoToDashboardClickEvent.AsObject, - uiOnboardAddFirstResourceClick?: UIOnboardAddFirstResourceClickEvent.AsObject, - uiOnboardAddFirstResourceLaterClick?: UIOnboardAddFirstResourceLaterClickEvent.AsObject, - uiOnboardSetCredentialSubmit?: UIOnboardSetCredentialSubmitEvent.AsObject, - uiOnboardRegisterChallengeSubmit?: UIOnboardRegisterChallengeSubmitEvent.AsObject, - uiRecoveryCodesContinueClick?: UIRecoveryCodesContinueClickEvent.AsObject, - } - - export enum EventCase { - EVENT_NOT_SET = 0, - - USER_LOGIN = 3, - - SSO_CREATE = 4, - - RESOURCE_CREATE = 5, - - SESSION_START = 6, - - UI_BANNER_CLICK = 7, - - UI_ONBOARD_GET_STARTED_CLICK = 8, - - UI_ONBOARD_COMPLETE_GO_TO_DASHBOARD_CLICK = 9, - - UI_ONBOARD_ADD_FIRST_RESOURCE_CLICK = 10, - - UI_ONBOARD_ADD_FIRST_RESOURCE_LATER_CLICK = 11, - - UI_ONBOARD_SET_CREDENTIAL_SUBMIT = 12, - - UI_ONBOARD_REGISTER_CHALLENGE_SUBMIT = 13, - - UI_RECOVERY_CODES_CONTINUE_CLICK = 14, - - } - -} - -export class SubmitEventResponse extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SubmitEventResponse.AsObject; - static toObject(includeInstance: boolean, msg: SubmitEventResponse): SubmitEventResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SubmitEventResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SubmitEventResponse; - static deserializeBinaryFromReader(message: SubmitEventResponse, reader: jspb.BinaryReader): SubmitEventResponse; -} - -export namespace SubmitEventResponse { - export type AsObject = { - } -} diff --git a/web/packages/teleterm/src/services/tshd/prehog/v1alpha/teleport_pb.js b/web/packages/teleterm/src/services/tshd/prehog/v1alpha/teleport_pb.js deleted file mode 100644 index c750fb101d136..0000000000000 --- a/web/packages/teleterm/src/services/tshd/prehog/v1alpha/teleport_pb.js +++ /dev/null @@ -1,2909 +0,0 @@ -// source: prehog/v1alpha/teleport.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 || window || global || self || Function('return this')(); }).call(null); - -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -goog.exportSymbol('proto.prehog.v1alpha.ResourceCreateEvent', null, global); -goog.exportSymbol('proto.prehog.v1alpha.SSOCreateEvent', null, global); -goog.exportSymbol('proto.prehog.v1alpha.SessionStartEvent', null, global); -goog.exportSymbol('proto.prehog.v1alpha.SubmitEventRequest', null, global); -goog.exportSymbol('proto.prehog.v1alpha.SubmitEventRequest.EventCase', null, global); -goog.exportSymbol('proto.prehog.v1alpha.SubmitEventResponse', null, global); -goog.exportSymbol('proto.prehog.v1alpha.UIBannerClickEvent', null, global); -goog.exportSymbol('proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent', null, global); -goog.exportSymbol('proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent', null, global); -goog.exportSymbol('proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent', null, global); -goog.exportSymbol('proto.prehog.v1alpha.UIOnboardGetStartedClickEvent', null, global); -goog.exportSymbol('proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent', null, global); -goog.exportSymbol('proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent', null, global); -goog.exportSymbol('proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent', null, global); -goog.exportSymbol('proto.prehog.v1alpha.UserLoginEvent', 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.prehog.v1alpha.UserLoginEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.prehog.v1alpha.UserLoginEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.prehog.v1alpha.UserLoginEvent.displayName = 'proto.prehog.v1alpha.UserLoginEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.prehog.v1alpha.SSOCreateEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.prehog.v1alpha.SSOCreateEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.prehog.v1alpha.SSOCreateEvent.displayName = 'proto.prehog.v1alpha.SSOCreateEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.prehog.v1alpha.ResourceCreateEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.prehog.v1alpha.ResourceCreateEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.prehog.v1alpha.ResourceCreateEvent.displayName = 'proto.prehog.v1alpha.ResourceCreateEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.prehog.v1alpha.SessionStartEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.prehog.v1alpha.SessionStartEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.prehog.v1alpha.SessionStartEvent.displayName = 'proto.prehog.v1alpha.SessionStartEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.prehog.v1alpha.UIBannerClickEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.prehog.v1alpha.UIBannerClickEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.prehog.v1alpha.UIBannerClickEvent.displayName = 'proto.prehog.v1alpha.UIBannerClickEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.prehog.v1alpha.UIOnboardGetStartedClickEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.prehog.v1alpha.UIOnboardGetStartedClickEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.prehog.v1alpha.UIOnboardGetStartedClickEvent.displayName = 'proto.prehog.v1alpha.UIOnboardGetStartedClickEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent.displayName = 'proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent.displayName = 'proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent.displayName = 'proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent.displayName = 'proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent.displayName = 'proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent.displayName = 'proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.prehog.v1alpha.SubmitEventRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_); -}; -goog.inherits(proto.prehog.v1alpha.SubmitEventRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.prehog.v1alpha.SubmitEventRequest.displayName = 'proto.prehog.v1alpha.SubmitEventRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.prehog.v1alpha.SubmitEventResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.prehog.v1alpha.SubmitEventResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.prehog.v1alpha.SubmitEventResponse.displayName = 'proto.prehog.v1alpha.SubmitEventResponse'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.prehog.v1alpha.UserLoginEvent.prototype.toObject = function(opt_includeInstance) { - return proto.prehog.v1alpha.UserLoginEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.prehog.v1alpha.UserLoginEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.UserLoginEvent.toObject = function(includeInstance, msg) { - var f, obj = { - userName: jspb.Message.getFieldWithDefault(msg, 1, ""), - connectorType: 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.prehog.v1alpha.UserLoginEvent} - */ -proto.prehog.v1alpha.UserLoginEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.prehog.v1alpha.UserLoginEvent; - return proto.prehog.v1alpha.UserLoginEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.prehog.v1alpha.UserLoginEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.prehog.v1alpha.UserLoginEvent} - */ -proto.prehog.v1alpha.UserLoginEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setConnectorType(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.prehog.v1alpha.UserLoginEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.prehog.v1alpha.UserLoginEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.prehog.v1alpha.UserLoginEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.UserLoginEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getConnectorType(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string user_name = 1; - * @return {string} - */ -proto.prehog.v1alpha.UserLoginEvent.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.UserLoginEvent} returns this - */ -proto.prehog.v1alpha.UserLoginEvent.prototype.setUserName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string connector_type = 2; - * @return {string} - */ -proto.prehog.v1alpha.UserLoginEvent.prototype.getConnectorType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.UserLoginEvent} returns this - */ -proto.prehog.v1alpha.UserLoginEvent.prototype.setConnectorType = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.prehog.v1alpha.SSOCreateEvent.prototype.toObject = function(opt_includeInstance) { - return proto.prehog.v1alpha.SSOCreateEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.prehog.v1alpha.SSOCreateEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.SSOCreateEvent.toObject = function(includeInstance, msg) { - var f, obj = { - connectorType: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.prehog.v1alpha.SSOCreateEvent} - */ -proto.prehog.v1alpha.SSOCreateEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.prehog.v1alpha.SSOCreateEvent; - return proto.prehog.v1alpha.SSOCreateEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.prehog.v1alpha.SSOCreateEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.prehog.v1alpha.SSOCreateEvent} - */ -proto.prehog.v1alpha.SSOCreateEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setConnectorType(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.prehog.v1alpha.SSOCreateEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.prehog.v1alpha.SSOCreateEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.prehog.v1alpha.SSOCreateEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.SSOCreateEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getConnectorType(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string connector_type = 1; - * @return {string} - */ -proto.prehog.v1alpha.SSOCreateEvent.prototype.getConnectorType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.SSOCreateEvent} returns this - */ -proto.prehog.v1alpha.SSOCreateEvent.prototype.setConnectorType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.prehog.v1alpha.ResourceCreateEvent.prototype.toObject = function(opt_includeInstance) { - return proto.prehog.v1alpha.ResourceCreateEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.prehog.v1alpha.ResourceCreateEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.ResourceCreateEvent.toObject = function(includeInstance, msg) { - var f, obj = { - resourceType: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.prehog.v1alpha.ResourceCreateEvent} - */ -proto.prehog.v1alpha.ResourceCreateEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.prehog.v1alpha.ResourceCreateEvent; - return proto.prehog.v1alpha.ResourceCreateEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.prehog.v1alpha.ResourceCreateEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.prehog.v1alpha.ResourceCreateEvent} - */ -proto.prehog.v1alpha.ResourceCreateEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setResourceType(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.prehog.v1alpha.ResourceCreateEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.prehog.v1alpha.ResourceCreateEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.prehog.v1alpha.ResourceCreateEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.ResourceCreateEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResourceType(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string resource_type = 1; - * @return {string} - */ -proto.prehog.v1alpha.ResourceCreateEvent.prototype.getResourceType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.ResourceCreateEvent} returns this - */ -proto.prehog.v1alpha.ResourceCreateEvent.prototype.setResourceType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.prehog.v1alpha.SessionStartEvent.prototype.toObject = function(opt_includeInstance) { - return proto.prehog.v1alpha.SessionStartEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.prehog.v1alpha.SessionStartEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.SessionStartEvent.toObject = function(includeInstance, msg) { - var f, obj = { - userName: jspb.Message.getFieldWithDefault(msg, 1, ""), - sessionType: 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.prehog.v1alpha.SessionStartEvent} - */ -proto.prehog.v1alpha.SessionStartEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.prehog.v1alpha.SessionStartEvent; - return proto.prehog.v1alpha.SessionStartEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.prehog.v1alpha.SessionStartEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.prehog.v1alpha.SessionStartEvent} - */ -proto.prehog.v1alpha.SessionStartEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setSessionType(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.prehog.v1alpha.SessionStartEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.prehog.v1alpha.SessionStartEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.prehog.v1alpha.SessionStartEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.SessionStartEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSessionType(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string user_name = 1; - * @return {string} - */ -proto.prehog.v1alpha.SessionStartEvent.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.SessionStartEvent} returns this - */ -proto.prehog.v1alpha.SessionStartEvent.prototype.setUserName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string session_type = 2; - * @return {string} - */ -proto.prehog.v1alpha.SessionStartEvent.prototype.getSessionType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.SessionStartEvent} returns this - */ -proto.prehog.v1alpha.SessionStartEvent.prototype.setSessionType = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.prehog.v1alpha.UIBannerClickEvent.prototype.toObject = function(opt_includeInstance) { - return proto.prehog.v1alpha.UIBannerClickEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.prehog.v1alpha.UIBannerClickEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.UIBannerClickEvent.toObject = function(includeInstance, msg) { - var f, obj = { - userName: jspb.Message.getFieldWithDefault(msg, 1, ""), - alert: 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.prehog.v1alpha.UIBannerClickEvent} - */ -proto.prehog.v1alpha.UIBannerClickEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.prehog.v1alpha.UIBannerClickEvent; - return proto.prehog.v1alpha.UIBannerClickEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.prehog.v1alpha.UIBannerClickEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.prehog.v1alpha.UIBannerClickEvent} - */ -proto.prehog.v1alpha.UIBannerClickEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setAlert(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.prehog.v1alpha.UIBannerClickEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.prehog.v1alpha.UIBannerClickEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.prehog.v1alpha.UIBannerClickEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.UIBannerClickEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getAlert(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string user_name = 1; - * @return {string} - */ -proto.prehog.v1alpha.UIBannerClickEvent.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.UIBannerClickEvent} returns this - */ -proto.prehog.v1alpha.UIBannerClickEvent.prototype.setUserName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string alert = 2; - * @return {string} - */ -proto.prehog.v1alpha.UIBannerClickEvent.prototype.getAlert = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.UIBannerClickEvent} returns this - */ -proto.prehog.v1alpha.UIBannerClickEvent.prototype.setAlert = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.prehog.v1alpha.UIOnboardGetStartedClickEvent.prototype.toObject = function(opt_includeInstance) { - return proto.prehog.v1alpha.UIOnboardGetStartedClickEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.prehog.v1alpha.UIOnboardGetStartedClickEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.UIOnboardGetStartedClickEvent.toObject = function(includeInstance, msg) { - var f, obj = { - userName: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.prehog.v1alpha.UIOnboardGetStartedClickEvent} - */ -proto.prehog.v1alpha.UIOnboardGetStartedClickEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.prehog.v1alpha.UIOnboardGetStartedClickEvent; - return proto.prehog.v1alpha.UIOnboardGetStartedClickEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.prehog.v1alpha.UIOnboardGetStartedClickEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.prehog.v1alpha.UIOnboardGetStartedClickEvent} - */ -proto.prehog.v1alpha.UIOnboardGetStartedClickEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.prehog.v1alpha.UIOnboardGetStartedClickEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.prehog.v1alpha.UIOnboardGetStartedClickEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.prehog.v1alpha.UIOnboardGetStartedClickEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.UIOnboardGetStartedClickEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string user_name = 1; - * @return {string} - */ -proto.prehog.v1alpha.UIOnboardGetStartedClickEvent.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.UIOnboardGetStartedClickEvent} returns this - */ -proto.prehog.v1alpha.UIOnboardGetStartedClickEvent.prototype.setUserName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent.prototype.toObject = function(opt_includeInstance) { - return proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent.toObject = function(includeInstance, msg) { - var f, obj = { - userName: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent} - */ -proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent; - return proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent} - */ -proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string user_name = 1; - * @return {string} - */ -proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent} returns this - */ -proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent.prototype.setUserName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent.prototype.toObject = function(opt_includeInstance) { - return proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent.toObject = function(includeInstance, msg) { - var f, obj = { - userName: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent} - */ -proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent; - return proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent} - */ -proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string user_name = 1; - * @return {string} - */ -proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent} returns this - */ -proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent.prototype.setUserName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent.prototype.toObject = function(opt_includeInstance) { - return proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent.toObject = function(includeInstance, msg) { - var f, obj = { - userName: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent} - */ -proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent; - return proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent} - */ -proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string user_name = 1; - * @return {string} - */ -proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent} returns this - */ -proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent.prototype.setUserName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent.prototype.toObject = function(opt_includeInstance) { - return proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent.toObject = function(includeInstance, msg) { - var f, obj = { - userName: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent} - */ -proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent; - return proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent} - */ -proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string user_name = 1; - * @return {string} - */ -proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent} returns this - */ -proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent.prototype.setUserName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent.prototype.toObject = function(opt_includeInstance) { - return proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent.toObject = function(includeInstance, msg) { - var f, obj = { - userName: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent} - */ -proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent; - return proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent} - */ -proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string user_name = 1; - * @return {string} - */ -proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent} returns this - */ -proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent.prototype.setUserName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent.prototype.toObject = function(opt_includeInstance) { - return proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent.toObject = function(includeInstance, msg) { - var f, obj = { - userName: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent} - */ -proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent; - return proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent} - */ -proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string user_name = 1; - * @return {string} - */ -proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent} returns this - */ -proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent.prototype.setUserName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_ = [[3,4,5,6,7,8,9,10,11,12,13,14]]; - -/** - * @enum {number} - */ -proto.prehog.v1alpha.SubmitEventRequest.EventCase = { - EVENT_NOT_SET: 0, - USER_LOGIN: 3, - SSO_CREATE: 4, - RESOURCE_CREATE: 5, - SESSION_START: 6, - UI_BANNER_CLICK: 7, - UI_ONBOARD_GET_STARTED_CLICK: 8, - UI_ONBOARD_COMPLETE_GO_TO_DASHBOARD_CLICK: 9, - UI_ONBOARD_ADD_FIRST_RESOURCE_CLICK: 10, - UI_ONBOARD_ADD_FIRST_RESOURCE_LATER_CLICK: 11, - UI_ONBOARD_SET_CREDENTIAL_SUBMIT: 12, - UI_ONBOARD_REGISTER_CHALLENGE_SUBMIT: 13, - UI_RECOVERY_CODES_CONTINUE_CLICK: 14 -}; - -/** - * @return {proto.prehog.v1alpha.SubmitEventRequest.EventCase} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.getEventCase = function() { - return /** @type {proto.prehog.v1alpha.SubmitEventRequest.EventCase} */(jspb.Message.computeOneofCase(this, proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.toObject = function(opt_includeInstance) { - return proto.prehog.v1alpha.SubmitEventRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.prehog.v1alpha.SubmitEventRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.SubmitEventRequest.toObject = function(includeInstance, msg) { - var f, obj = { - clusterName: jspb.Message.getFieldWithDefault(msg, 1, ""), - timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - userLogin: (f = msg.getUserLogin()) && proto.prehog.v1alpha.UserLoginEvent.toObject(includeInstance, f), - ssoCreate: (f = msg.getSsoCreate()) && proto.prehog.v1alpha.SSOCreateEvent.toObject(includeInstance, f), - resourceCreate: (f = msg.getResourceCreate()) && proto.prehog.v1alpha.ResourceCreateEvent.toObject(includeInstance, f), - sessionStart: (f = msg.getSessionStart()) && proto.prehog.v1alpha.SessionStartEvent.toObject(includeInstance, f), - uiBannerClick: (f = msg.getUiBannerClick()) && proto.prehog.v1alpha.UIBannerClickEvent.toObject(includeInstance, f), - uiOnboardGetStartedClick: (f = msg.getUiOnboardGetStartedClick()) && proto.prehog.v1alpha.UIOnboardGetStartedClickEvent.toObject(includeInstance, f), - uiOnboardCompleteGoToDashboardClick: (f = msg.getUiOnboardCompleteGoToDashboardClick()) && proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent.toObject(includeInstance, f), - uiOnboardAddFirstResourceClick: (f = msg.getUiOnboardAddFirstResourceClick()) && proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent.toObject(includeInstance, f), - uiOnboardAddFirstResourceLaterClick: (f = msg.getUiOnboardAddFirstResourceLaterClick()) && proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent.toObject(includeInstance, f), - uiOnboardSetCredentialSubmit: (f = msg.getUiOnboardSetCredentialSubmit()) && proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent.toObject(includeInstance, f), - uiOnboardRegisterChallengeSubmit: (f = msg.getUiOnboardRegisterChallengeSubmit()) && proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent.toObject(includeInstance, f), - uiRecoveryCodesContinueClick: (f = msg.getUiRecoveryCodesContinueClick()) && proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent.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.prehog.v1alpha.SubmitEventRequest} - */ -proto.prehog.v1alpha.SubmitEventRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.prehog.v1alpha.SubmitEventRequest; - return proto.prehog.v1alpha.SubmitEventRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.prehog.v1alpha.SubmitEventRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.prehog.v1alpha.SubmitEventRequest} - */ -proto.prehog.v1alpha.SubmitEventRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClusterName(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTimestamp(value); - break; - case 3: - var value = new proto.prehog.v1alpha.UserLoginEvent; - reader.readMessage(value,proto.prehog.v1alpha.UserLoginEvent.deserializeBinaryFromReader); - msg.setUserLogin(value); - break; - case 4: - var value = new proto.prehog.v1alpha.SSOCreateEvent; - reader.readMessage(value,proto.prehog.v1alpha.SSOCreateEvent.deserializeBinaryFromReader); - msg.setSsoCreate(value); - break; - case 5: - var value = new proto.prehog.v1alpha.ResourceCreateEvent; - reader.readMessage(value,proto.prehog.v1alpha.ResourceCreateEvent.deserializeBinaryFromReader); - msg.setResourceCreate(value); - break; - case 6: - var value = new proto.prehog.v1alpha.SessionStartEvent; - reader.readMessage(value,proto.prehog.v1alpha.SessionStartEvent.deserializeBinaryFromReader); - msg.setSessionStart(value); - break; - case 7: - var value = new proto.prehog.v1alpha.UIBannerClickEvent; - reader.readMessage(value,proto.prehog.v1alpha.UIBannerClickEvent.deserializeBinaryFromReader); - msg.setUiBannerClick(value); - break; - case 8: - var value = new proto.prehog.v1alpha.UIOnboardGetStartedClickEvent; - reader.readMessage(value,proto.prehog.v1alpha.UIOnboardGetStartedClickEvent.deserializeBinaryFromReader); - msg.setUiOnboardGetStartedClick(value); - break; - case 9: - var value = new proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent; - reader.readMessage(value,proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent.deserializeBinaryFromReader); - msg.setUiOnboardCompleteGoToDashboardClick(value); - break; - case 10: - var value = new proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent; - reader.readMessage(value,proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent.deserializeBinaryFromReader); - msg.setUiOnboardAddFirstResourceClick(value); - break; - case 11: - var value = new proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent; - reader.readMessage(value,proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent.deserializeBinaryFromReader); - msg.setUiOnboardAddFirstResourceLaterClick(value); - break; - case 12: - var value = new proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent; - reader.readMessage(value,proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent.deserializeBinaryFromReader); - msg.setUiOnboardSetCredentialSubmit(value); - break; - case 13: - var value = new proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent; - reader.readMessage(value,proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent.deserializeBinaryFromReader); - msg.setUiOnboardRegisterChallengeSubmit(value); - break; - case 14: - var value = new proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent; - reader.readMessage(value,proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent.deserializeBinaryFromReader); - msg.setUiRecoveryCodesContinueClick(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.prehog.v1alpha.SubmitEventRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.prehog.v1alpha.SubmitEventRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.SubmitEventRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClusterName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTimestamp(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUserLogin(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.prehog.v1alpha.UserLoginEvent.serializeBinaryToWriter - ); - } - f = message.getSsoCreate(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.prehog.v1alpha.SSOCreateEvent.serializeBinaryToWriter - ); - } - f = message.getResourceCreate(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.prehog.v1alpha.ResourceCreateEvent.serializeBinaryToWriter - ); - } - f = message.getSessionStart(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.prehog.v1alpha.SessionStartEvent.serializeBinaryToWriter - ); - } - f = message.getUiBannerClick(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.prehog.v1alpha.UIBannerClickEvent.serializeBinaryToWriter - ); - } - f = message.getUiOnboardGetStartedClick(); - if (f != null) { - writer.writeMessage( - 8, - f, - proto.prehog.v1alpha.UIOnboardGetStartedClickEvent.serializeBinaryToWriter - ); - } - f = message.getUiOnboardCompleteGoToDashboardClick(); - if (f != null) { - writer.writeMessage( - 9, - f, - proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent.serializeBinaryToWriter - ); - } - f = message.getUiOnboardAddFirstResourceClick(); - if (f != null) { - writer.writeMessage( - 10, - f, - proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent.serializeBinaryToWriter - ); - } - f = message.getUiOnboardAddFirstResourceLaterClick(); - if (f != null) { - writer.writeMessage( - 11, - f, - proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent.serializeBinaryToWriter - ); - } - f = message.getUiOnboardSetCredentialSubmit(); - if (f != null) { - writer.writeMessage( - 12, - f, - proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent.serializeBinaryToWriter - ); - } - f = message.getUiOnboardRegisterChallengeSubmit(); - if (f != null) { - writer.writeMessage( - 13, - f, - proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent.serializeBinaryToWriter - ); - } - f = message.getUiRecoveryCodesContinueClick(); - if (f != null) { - writer.writeMessage( - 14, - f, - proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string cluster_name = 1; - * @return {string} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.getClusterName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.setClusterName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp timestamp = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.getTimestamp = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this -*/ -proto.prehog.v1alpha.SubmitEventRequest.prototype.setTimestamp = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.clearTimestamp = function() { - return this.setTimestamp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.hasTimestamp = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional UserLoginEvent user_login = 3; - * @return {?proto.prehog.v1alpha.UserLoginEvent} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.getUserLogin = function() { - return /** @type{?proto.prehog.v1alpha.UserLoginEvent} */ ( - jspb.Message.getWrapperField(this, proto.prehog.v1alpha.UserLoginEvent, 3)); -}; - - -/** - * @param {?proto.prehog.v1alpha.UserLoginEvent|undefined} value - * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this -*/ -proto.prehog.v1alpha.SubmitEventRequest.prototype.setUserLogin = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.clearUserLogin = function() { - return this.setUserLogin(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.hasUserLogin = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional SSOCreateEvent sso_create = 4; - * @return {?proto.prehog.v1alpha.SSOCreateEvent} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.getSsoCreate = function() { - return /** @type{?proto.prehog.v1alpha.SSOCreateEvent} */ ( - jspb.Message.getWrapperField(this, proto.prehog.v1alpha.SSOCreateEvent, 4)); -}; - - -/** - * @param {?proto.prehog.v1alpha.SSOCreateEvent|undefined} value - * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this -*/ -proto.prehog.v1alpha.SubmitEventRequest.prototype.setSsoCreate = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.clearSsoCreate = function() { - return this.setSsoCreate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.hasSsoCreate = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional ResourceCreateEvent resource_create = 5; - * @return {?proto.prehog.v1alpha.ResourceCreateEvent} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.getResourceCreate = function() { - return /** @type{?proto.prehog.v1alpha.ResourceCreateEvent} */ ( - jspb.Message.getWrapperField(this, proto.prehog.v1alpha.ResourceCreateEvent, 5)); -}; - - -/** - * @param {?proto.prehog.v1alpha.ResourceCreateEvent|undefined} value - * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this -*/ -proto.prehog.v1alpha.SubmitEventRequest.prototype.setResourceCreate = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.clearResourceCreate = function() { - return this.setResourceCreate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.hasResourceCreate = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional SessionStartEvent session_start = 6; - * @return {?proto.prehog.v1alpha.SessionStartEvent} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.getSessionStart = function() { - return /** @type{?proto.prehog.v1alpha.SessionStartEvent} */ ( - jspb.Message.getWrapperField(this, proto.prehog.v1alpha.SessionStartEvent, 6)); -}; - - -/** - * @param {?proto.prehog.v1alpha.SessionStartEvent|undefined} value - * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this -*/ -proto.prehog.v1alpha.SubmitEventRequest.prototype.setSessionStart = function(value) { - return jspb.Message.setOneofWrapperField(this, 6, proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.clearSessionStart = function() { - return this.setSessionStart(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.hasSessionStart = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional UIBannerClickEvent ui_banner_click = 7; - * @return {?proto.prehog.v1alpha.UIBannerClickEvent} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.getUiBannerClick = function() { - return /** @type{?proto.prehog.v1alpha.UIBannerClickEvent} */ ( - jspb.Message.getWrapperField(this, proto.prehog.v1alpha.UIBannerClickEvent, 7)); -}; - - -/** - * @param {?proto.prehog.v1alpha.UIBannerClickEvent|undefined} value - * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this -*/ -proto.prehog.v1alpha.SubmitEventRequest.prototype.setUiBannerClick = function(value) { - return jspb.Message.setOneofWrapperField(this, 7, proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.clearUiBannerClick = function() { - return this.setUiBannerClick(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.hasUiBannerClick = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional UIOnboardGetStartedClickEvent ui_onboard_get_started_click = 8; - * @return {?proto.prehog.v1alpha.UIOnboardGetStartedClickEvent} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.getUiOnboardGetStartedClick = function() { - return /** @type{?proto.prehog.v1alpha.UIOnboardGetStartedClickEvent} */ ( - jspb.Message.getWrapperField(this, proto.prehog.v1alpha.UIOnboardGetStartedClickEvent, 8)); -}; - - -/** - * @param {?proto.prehog.v1alpha.UIOnboardGetStartedClickEvent|undefined} value - * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this -*/ -proto.prehog.v1alpha.SubmitEventRequest.prototype.setUiOnboardGetStartedClick = function(value) { - return jspb.Message.setOneofWrapperField(this, 8, proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.clearUiOnboardGetStartedClick = function() { - return this.setUiOnboardGetStartedClick(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.hasUiOnboardGetStartedClick = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional UIOnboardCompleteGoToDashboardClickEvent ui_onboard_complete_go_to_dashboard_click = 9; - * @return {?proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.getUiOnboardCompleteGoToDashboardClick = function() { - return /** @type{?proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent} */ ( - jspb.Message.getWrapperField(this, proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent, 9)); -}; - - -/** - * @param {?proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent|undefined} value - * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this -*/ -proto.prehog.v1alpha.SubmitEventRequest.prototype.setUiOnboardCompleteGoToDashboardClick = function(value) { - return jspb.Message.setOneofWrapperField(this, 9, proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.clearUiOnboardCompleteGoToDashboardClick = function() { - return this.setUiOnboardCompleteGoToDashboardClick(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.hasUiOnboardCompleteGoToDashboardClick = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * optional UIOnboardAddFirstResourceClickEvent ui_onboard_add_first_resource_click = 10; - * @return {?proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.getUiOnboardAddFirstResourceClick = function() { - return /** @type{?proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent} */ ( - jspb.Message.getWrapperField(this, proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent, 10)); -}; - - -/** - * @param {?proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent|undefined} value - * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this -*/ -proto.prehog.v1alpha.SubmitEventRequest.prototype.setUiOnboardAddFirstResourceClick = function(value) { - return jspb.Message.setOneofWrapperField(this, 10, proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.clearUiOnboardAddFirstResourceClick = function() { - return this.setUiOnboardAddFirstResourceClick(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.hasUiOnboardAddFirstResourceClick = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional UIOnboardAddFirstResourceLaterClickEvent ui_onboard_add_first_resource_later_click = 11; - * @return {?proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.getUiOnboardAddFirstResourceLaterClick = function() { - return /** @type{?proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent} */ ( - jspb.Message.getWrapperField(this, proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent, 11)); -}; - - -/** - * @param {?proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent|undefined} value - * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this -*/ -proto.prehog.v1alpha.SubmitEventRequest.prototype.setUiOnboardAddFirstResourceLaterClick = function(value) { - return jspb.Message.setOneofWrapperField(this, 11, proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.clearUiOnboardAddFirstResourceLaterClick = function() { - return this.setUiOnboardAddFirstResourceLaterClick(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.hasUiOnboardAddFirstResourceLaterClick = function() { - return jspb.Message.getField(this, 11) != null; -}; - - -/** - * optional UIOnboardSetCredentialSubmitEvent ui_onboard_set_credential_submit = 12; - * @return {?proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.getUiOnboardSetCredentialSubmit = function() { - return /** @type{?proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent} */ ( - jspb.Message.getWrapperField(this, proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent, 12)); -}; - - -/** - * @param {?proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent|undefined} value - * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this -*/ -proto.prehog.v1alpha.SubmitEventRequest.prototype.setUiOnboardSetCredentialSubmit = function(value) { - return jspb.Message.setOneofWrapperField(this, 12, proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.clearUiOnboardSetCredentialSubmit = function() { - return this.setUiOnboardSetCredentialSubmit(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.hasUiOnboardSetCredentialSubmit = function() { - return jspb.Message.getField(this, 12) != null; -}; - - -/** - * optional UIOnboardRegisterChallengeSubmitEvent ui_onboard_register_challenge_submit = 13; - * @return {?proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.getUiOnboardRegisterChallengeSubmit = function() { - return /** @type{?proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent} */ ( - jspb.Message.getWrapperField(this, proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent, 13)); -}; - - -/** - * @param {?proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent|undefined} value - * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this -*/ -proto.prehog.v1alpha.SubmitEventRequest.prototype.setUiOnboardRegisterChallengeSubmit = function(value) { - return jspb.Message.setOneofWrapperField(this, 13, proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.clearUiOnboardRegisterChallengeSubmit = function() { - return this.setUiOnboardRegisterChallengeSubmit(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.hasUiOnboardRegisterChallengeSubmit = function() { - return jspb.Message.getField(this, 13) != null; -}; - - -/** - * optional UIRecoveryCodesContinueClickEvent ui_recovery_codes_continue_click = 14; - * @return {?proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.getUiRecoveryCodesContinueClick = function() { - return /** @type{?proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent} */ ( - jspb.Message.getWrapperField(this, proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent, 14)); -}; - - -/** - * @param {?proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent|undefined} value - * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this -*/ -proto.prehog.v1alpha.SubmitEventRequest.prototype.setUiRecoveryCodesContinueClick = function(value) { - return jspb.Message.setOneofWrapperField(this, 14, proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.clearUiRecoveryCodesContinueClick = function() { - return this.setUiRecoveryCodesContinueClick(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.hasUiRecoveryCodesContinueClick = function() { - return jspb.Message.getField(this, 14) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.prehog.v1alpha.SubmitEventResponse.prototype.toObject = function(opt_includeInstance) { - return proto.prehog.v1alpha.SubmitEventResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.prehog.v1alpha.SubmitEventResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.SubmitEventResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.prehog.v1alpha.SubmitEventResponse} - */ -proto.prehog.v1alpha.SubmitEventResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.prehog.v1alpha.SubmitEventResponse; - return proto.prehog.v1alpha.SubmitEventResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.prehog.v1alpha.SubmitEventResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.prehog.v1alpha.SubmitEventResponse} - */ -proto.prehog.v1alpha.SubmitEventResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.prehog.v1alpha.SubmitEventResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.prehog.v1alpha.SubmitEventResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.prehog.v1alpha.SubmitEventResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.prehog.v1alpha.SubmitEventResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - -goog.object.extend(exports, proto.prehog.v1alpha); diff --git a/web/packages/teleterm/src/services/tshd/types.ts b/web/packages/teleterm/src/services/tshd/types.ts index c2856c7698170..bc8a055483a00 100644 --- a/web/packages/teleterm/src/services/tshd/types.ts +++ b/web/packages/teleterm/src/services/tshd/types.ts @@ -5,20 +5,21 @@ import { ResourceKind } from 'e-teleterm/ui/DocumentAccessRequests/NewRequest/us import { RequestState } from 'e-teleport/services/workflow'; import { SortType } from 'design/DataTable/types'; import { FileTransferListeners } from 'shared/components/FileTransfer'; +import apiCluster from 'gen-proto-js/teleport/lib/teleterm/v1/cluster_pb'; +import apiDb from 'gen-proto-js/teleport/lib/teleterm/v1/database_pb'; +import apiGateway from 'gen-proto-js/teleport/lib/teleterm/v1/gateway_pb'; +import apiServer from 'gen-proto-js/teleport/lib/teleterm/v1/server_pb'; +import apiKube from 'gen-proto-js/teleport/lib/teleterm/v1/kube_pb'; +import apiApp from 'gen-proto-js/teleport/lib/teleterm/v1/app_pb'; +import apiService, { + FileTransferDirection, +} from 'gen-proto-js/teleport/lib/teleterm/v1/service_pb'; +import apiAuthSettings from 'gen-proto-js/teleport/lib/teleterm/v1/auth_settings_pb'; +import apiAccessRequest from 'gen-proto-js/teleport/lib/teleterm/v1/access_request_pb'; +import apiUsageEvents from 'gen-proto-js/teleport/lib/teleterm/v1/usage_events_pb'; import * as uri from 'teleterm/ui/uri'; -import apiCluster from './v1/cluster_pb'; -import apiDb from './v1/database_pb'; -import apigateway from './v1/gateway_pb'; -import apiServer from './v1/server_pb'; -import apiKube from './v1/kube_pb'; -import apiApp from './v1/app_pb'; -import apiService from './v1/service_pb'; -import apiAuthSettings from './v1/auth_settings_pb'; -import apiAccessRequest from './v1/access_request_pb'; -import apiUsageEvents from './v1/usage_events_pb'; - export type Application = apiApp.App.AsObject; export interface Kube extends apiKube.Kube.AsObject { @@ -29,7 +30,7 @@ export interface Server extends apiServer.Server.AsObject { uri: uri.ServerUri; } -export interface Gateway extends apigateway.Gateway.AsObject { +export interface Gateway extends apiGateway.Gateway.AsObject { uri: uri.GatewayUri; targetUri: uri.DatabaseUri; } @@ -264,5 +265,7 @@ export type AssumedRequest = { roles: string[]; }; +export { FileTransferDirection }; + // Replaces object property with a new type type Modify = Omit & R; diff --git a/web/packages/teleterm/src/services/tshd/v1/access_request_grpc_pb.js b/web/packages/teleterm/src/services/tshd/v1/access_request_grpc_pb.js deleted file mode 100644 index 97b3a2461dbea..0000000000000 --- a/web/packages/teleterm/src/services/tshd/v1/access_request_grpc_pb.js +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/web/packages/teleterm/src/services/tshd/v1/app_grpc_pb.js b/web/packages/teleterm/src/services/tshd/v1/app_grpc_pb.js deleted file mode 100644 index 97b3a2461dbea..0000000000000 --- a/web/packages/teleterm/src/services/tshd/v1/app_grpc_pb.js +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/web/packages/teleterm/src/services/tshd/v1/app_pb.d.ts b/web/packages/teleterm/src/services/tshd/v1/app_pb.d.ts deleted file mode 100644 index 258a5bcc6e293..0000000000000 --- a/web/packages/teleterm/src/services/tshd/v1/app_pb.d.ts +++ /dev/null @@ -1,92 +0,0 @@ -// package: teleport.terminal.v1 -// file: v1/app.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as v1_label_pb from "../v1/label_pb"; - -export class App extends jspb.Message { - getUri(): string; - setUri(value: string): App; - - getName(): string; - setName(value: string): App; - - getDescription(): string; - setDescription(value: string): App; - - getAppUri(): string; - setAppUri(value: string): App; - - getPublicAddr(): string; - setPublicAddr(value: string): App; - - getFqdn(): string; - setFqdn(value: string): App; - - clearLabelsList(): void; - getLabelsList(): Array; - setLabelsList(value: Array): App; - addLabels(value?: v1_label_pb.Label, index?: number): v1_label_pb.Label; - - getAwsConsole(): boolean; - setAwsConsole(value: boolean): App; - - clearAwsRolesList(): void; - getAwsRolesList(): Array; - setAwsRolesList(value: Array): App; - addAwsRoles(value?: App.AWSRole, index?: number): App.AWSRole; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): App.AsObject; - static toObject(includeInstance: boolean, msg: App): App.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: App, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): App; - static deserializeBinaryFromReader(message: App, reader: jspb.BinaryReader): App; -} - -export namespace App { - export type AsObject = { - uri: string, - name: string, - description: string, - appUri: string, - publicAddr: string, - fqdn: string, - labelsList: Array, - awsConsole: boolean, - awsRolesList: Array, - } - - - export class AWSRole extends jspb.Message { - getDisplay(): string; - setDisplay(value: string): AWSRole; - - getArn(): string; - setArn(value: string): AWSRole; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AWSRole.AsObject; - static toObject(includeInstance: boolean, msg: AWSRole): AWSRole.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AWSRole, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AWSRole; - static deserializeBinaryFromReader(message: AWSRole, reader: jspb.BinaryReader): AWSRole; - } - - export namespace AWSRole { - export type AsObject = { - display: string, - arn: string, - } - } - -} diff --git a/web/packages/teleterm/src/services/tshd/v1/auth_settings_grpc_pb.js b/web/packages/teleterm/src/services/tshd/v1/auth_settings_grpc_pb.js deleted file mode 100644 index 97b3a2461dbea..0000000000000 --- a/web/packages/teleterm/src/services/tshd/v1/auth_settings_grpc_pb.js +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/web/packages/teleterm/src/services/tshd/v1/cluster_grpc_pb.js b/web/packages/teleterm/src/services/tshd/v1/cluster_grpc_pb.js deleted file mode 100644 index 97b3a2461dbea..0000000000000 --- a/web/packages/teleterm/src/services/tshd/v1/cluster_grpc_pb.js +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/web/packages/teleterm/src/services/tshd/v1/cluster_pb.d.ts b/web/packages/teleterm/src/services/tshd/v1/cluster_pb.d.ts deleted file mode 100644 index 881f1e4120fcd..0000000000000 --- a/web/packages/teleterm/src/services/tshd/v1/cluster_pb.d.ts +++ /dev/null @@ -1,279 +0,0 @@ -// package: teleport.terminal.v1 -// file: v1/cluster.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; - -export class Cluster extends jspb.Message { - getUri(): string; - setUri(value: string): Cluster; - - getName(): string; - setName(value: string): Cluster; - - getProxyHost(): string; - setProxyHost(value: string): Cluster; - - getConnected(): boolean; - setConnected(value: boolean): Cluster; - - getLeaf(): boolean; - setLeaf(value: boolean): Cluster; - - - hasLoggedInUser(): boolean; - clearLoggedInUser(): void; - getLoggedInUser(): LoggedInUser | undefined; - setLoggedInUser(value?: LoggedInUser): Cluster; - - - hasFeatures(): boolean; - clearFeatures(): void; - getFeatures(): Features | undefined; - setFeatures(value?: Features): Cluster; - - getAuthClusterId(): string; - setAuthClusterId(value: string): Cluster; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Cluster.AsObject; - static toObject(includeInstance: boolean, msg: Cluster): Cluster.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Cluster, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Cluster; - static deserializeBinaryFromReader(message: Cluster, reader: jspb.BinaryReader): Cluster; -} - -export namespace Cluster { - export type AsObject = { - uri: string, - name: string, - proxyHost: string, - connected: boolean, - leaf: boolean, - loggedInUser?: LoggedInUser.AsObject, - features?: Features.AsObject, - authClusterId: string, - } -} - -export class LoggedInUser extends jspb.Message { - getName(): string; - setName(value: string): LoggedInUser; - - clearRolesList(): void; - getRolesList(): Array; - setRolesList(value: Array): LoggedInUser; - addRoles(value: string, index?: number): string; - - clearSshLoginsList(): void; - getSshLoginsList(): Array; - setSshLoginsList(value: Array): LoggedInUser; - addSshLogins(value: string, index?: number): string; - - - hasAcl(): boolean; - clearAcl(): void; - getAcl(): ACL | undefined; - setAcl(value?: ACL): LoggedInUser; - - clearActiveRequestsList(): void; - getActiveRequestsList(): Array; - setActiveRequestsList(value: Array): LoggedInUser; - addActiveRequests(value: string, index?: number): string; - - clearSuggestedReviewersList(): void; - getSuggestedReviewersList(): Array; - setSuggestedReviewersList(value: Array): LoggedInUser; - addSuggestedReviewers(value: string, index?: number): string; - - clearRequestableRolesList(): void; - getRequestableRolesList(): Array; - setRequestableRolesList(value: Array): LoggedInUser; - addRequestableRoles(value: string, index?: number): string; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LoggedInUser.AsObject; - static toObject(includeInstance: boolean, msg: LoggedInUser): LoggedInUser.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LoggedInUser, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LoggedInUser; - static deserializeBinaryFromReader(message: LoggedInUser, reader: jspb.BinaryReader): LoggedInUser; -} - -export namespace LoggedInUser { - export type AsObject = { - name: string, - rolesList: Array, - sshLoginsList: Array, - acl?: ACL.AsObject, - activeRequestsList: Array, - suggestedReviewersList: Array, - requestableRolesList: Array, - } -} - -export class ACL extends jspb.Message { - - hasSessions(): boolean; - clearSessions(): void; - getSessions(): ResourceAccess | undefined; - setSessions(value?: ResourceAccess): ACL; - - - hasAuthConnectors(): boolean; - clearAuthConnectors(): void; - getAuthConnectors(): ResourceAccess | undefined; - setAuthConnectors(value?: ResourceAccess): ACL; - - - hasRoles(): boolean; - clearRoles(): void; - getRoles(): ResourceAccess | undefined; - setRoles(value?: ResourceAccess): ACL; - - - hasUsers(): boolean; - clearUsers(): void; - getUsers(): ResourceAccess | undefined; - setUsers(value?: ResourceAccess): ACL; - - - hasTrustedClusters(): boolean; - clearTrustedClusters(): void; - getTrustedClusters(): ResourceAccess | undefined; - setTrustedClusters(value?: ResourceAccess): ACL; - - - hasEvents(): boolean; - clearEvents(): void; - getEvents(): ResourceAccess | undefined; - setEvents(value?: ResourceAccess): ACL; - - - hasTokens(): boolean; - clearTokens(): void; - getTokens(): ResourceAccess | undefined; - setTokens(value?: ResourceAccess): ACL; - - - hasServers(): boolean; - clearServers(): void; - getServers(): ResourceAccess | undefined; - setServers(value?: ResourceAccess): ACL; - - - hasApps(): boolean; - clearApps(): void; - getApps(): ResourceAccess | undefined; - setApps(value?: ResourceAccess): ACL; - - - hasDbs(): boolean; - clearDbs(): void; - getDbs(): ResourceAccess | undefined; - setDbs(value?: ResourceAccess): ACL; - - - hasKubeservers(): boolean; - clearKubeservers(): void; - getKubeservers(): ResourceAccess | undefined; - setKubeservers(value?: ResourceAccess): ACL; - - - hasAccessRequests(): boolean; - clearAccessRequests(): void; - getAccessRequests(): ResourceAccess | undefined; - setAccessRequests(value?: ResourceAccess): ACL; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ACL.AsObject; - static toObject(includeInstance: boolean, msg: ACL): ACL.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ACL, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ACL; - static deserializeBinaryFromReader(message: ACL, reader: jspb.BinaryReader): ACL; -} - -export namespace ACL { - export type AsObject = { - sessions?: ResourceAccess.AsObject, - authConnectors?: ResourceAccess.AsObject, - roles?: ResourceAccess.AsObject, - users?: ResourceAccess.AsObject, - trustedClusters?: ResourceAccess.AsObject, - events?: ResourceAccess.AsObject, - tokens?: ResourceAccess.AsObject, - servers?: ResourceAccess.AsObject, - apps?: ResourceAccess.AsObject, - dbs?: ResourceAccess.AsObject, - kubeservers?: ResourceAccess.AsObject, - accessRequests?: ResourceAccess.AsObject, - } -} - -export class ResourceAccess extends jspb.Message { - getList(): boolean; - setList(value: boolean): ResourceAccess; - - getRead(): boolean; - setRead(value: boolean): ResourceAccess; - - getEdit(): boolean; - setEdit(value: boolean): ResourceAccess; - - getCreate(): boolean; - setCreate(value: boolean): ResourceAccess; - - getDelete(): boolean; - setDelete(value: boolean): ResourceAccess; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ResourceAccess.AsObject; - static toObject(includeInstance: boolean, msg: ResourceAccess): ResourceAccess.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ResourceAccess, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ResourceAccess; - static deserializeBinaryFromReader(message: ResourceAccess, reader: jspb.BinaryReader): ResourceAccess; -} - -export namespace ResourceAccess { - export type AsObject = { - list: boolean, - read: boolean, - edit: boolean, - create: boolean, - pb_delete: boolean, - } -} - -export class Features extends jspb.Message { - getAdvancedAccessWorkflows(): boolean; - setAdvancedAccessWorkflows(value: boolean): Features; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Features.AsObject; - static toObject(includeInstance: boolean, msg: Features): Features.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Features, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Features; - static deserializeBinaryFromReader(message: Features, reader: jspb.BinaryReader): Features; -} - -export namespace Features { - export type AsObject = { - advancedAccessWorkflows: boolean, - } -} diff --git a/web/packages/teleterm/src/services/tshd/v1/cluster_pb.js b/web/packages/teleterm/src/services/tshd/v1/cluster_pb.js deleted file mode 100644 index 5bb2b31171eb8..0000000000000 --- a/web/packages/teleterm/src/services/tshd/v1/cluster_pb.js +++ /dev/null @@ -1,2035 +0,0 @@ -// source: v1/cluster.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 || window || global || self || Function('return this')(); }).call(null); - -goog.exportSymbol('proto.teleport.terminal.v1.ACL', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.Cluster', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.Features', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.LoggedInUser', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ResourceAccess', 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.teleport.terminal.v1.Cluster = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.Cluster, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.Cluster.displayName = 'proto.teleport.terminal.v1.Cluster'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.LoggedInUser = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.LoggedInUser.repeatedFields_, null); -}; -goog.inherits(proto.teleport.terminal.v1.LoggedInUser, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.LoggedInUser.displayName = 'proto.teleport.terminal.v1.LoggedInUser'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.ACL = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.ACL, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.ACL.displayName = 'proto.teleport.terminal.v1.ACL'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.ResourceAccess = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.ResourceAccess, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.ResourceAccess.displayName = 'proto.teleport.terminal.v1.ResourceAccess'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.Features = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.Features, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.Features.displayName = 'proto.teleport.terminal.v1.Features'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.Cluster.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.Cluster.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.Cluster} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.Cluster.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - proxyHost: jspb.Message.getFieldWithDefault(msg, 3, ""), - connected: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - leaf: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - loggedInUser: (f = msg.getLoggedInUser()) && proto.teleport.terminal.v1.LoggedInUser.toObject(includeInstance, f), - features: (f = msg.getFeatures()) && proto.teleport.terminal.v1.Features.toObject(includeInstance, f), - authClusterId: 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.teleport.terminal.v1.Cluster} - */ -proto.teleport.terminal.v1.Cluster.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.Cluster; - return proto.teleport.terminal.v1.Cluster.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.Cluster} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.Cluster} - */ -proto.teleport.terminal.v1.Cluster.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setProxyHost(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setConnected(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setLeaf(value); - break; - case 7: - var value = new proto.teleport.terminal.v1.LoggedInUser; - reader.readMessage(value,proto.teleport.terminal.v1.LoggedInUser.deserializeBinaryFromReader); - msg.setLoggedInUser(value); - break; - case 8: - var value = new proto.teleport.terminal.v1.Features; - reader.readMessage(value,proto.teleport.terminal.v1.Features.deserializeBinaryFromReader); - msg.setFeatures(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setAuthClusterId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.Cluster.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.Cluster.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.Cluster} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.Cluster.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getProxyHost(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getConnected(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getLeaf(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getLoggedInUser(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.teleport.terminal.v1.LoggedInUser.serializeBinaryToWriter - ); - } - f = message.getFeatures(); - if (f != null) { - writer.writeMessage( - 8, - f, - proto.teleport.terminal.v1.Features.serializeBinaryToWriter - ); - } - f = message.getAuthClusterId(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.Cluster.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.Cluster} returns this - */ -proto.teleport.terminal.v1.Cluster.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.teleport.terminal.v1.Cluster.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.Cluster} returns this - */ -proto.teleport.terminal.v1.Cluster.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string proxy_host = 3; - * @return {string} - */ -proto.teleport.terminal.v1.Cluster.prototype.getProxyHost = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.Cluster} returns this - */ -proto.teleport.terminal.v1.Cluster.prototype.setProxyHost = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional bool connected = 4; - * @return {boolean} - */ -proto.teleport.terminal.v1.Cluster.prototype.getConnected = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.teleport.terminal.v1.Cluster} returns this - */ -proto.teleport.terminal.v1.Cluster.prototype.setConnected = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional bool leaf = 5; - * @return {boolean} - */ -proto.teleport.terminal.v1.Cluster.prototype.getLeaf = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.teleport.terminal.v1.Cluster} returns this - */ -proto.teleport.terminal.v1.Cluster.prototype.setLeaf = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional LoggedInUser logged_in_user = 7; - * @return {?proto.teleport.terminal.v1.LoggedInUser} - */ -proto.teleport.terminal.v1.Cluster.prototype.getLoggedInUser = function() { - return /** @type{?proto.teleport.terminal.v1.LoggedInUser} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.LoggedInUser, 7)); -}; - - -/** - * @param {?proto.teleport.terminal.v1.LoggedInUser|undefined} value - * @return {!proto.teleport.terminal.v1.Cluster} returns this -*/ -proto.teleport.terminal.v1.Cluster.prototype.setLoggedInUser = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.Cluster} returns this - */ -proto.teleport.terminal.v1.Cluster.prototype.clearLoggedInUser = function() { - return this.setLoggedInUser(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.Cluster.prototype.hasLoggedInUser = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional Features features = 8; - * @return {?proto.teleport.terminal.v1.Features} - */ -proto.teleport.terminal.v1.Cluster.prototype.getFeatures = function() { - return /** @type{?proto.teleport.terminal.v1.Features} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.Features, 8)); -}; - - -/** - * @param {?proto.teleport.terminal.v1.Features|undefined} value - * @return {!proto.teleport.terminal.v1.Cluster} returns this -*/ -proto.teleport.terminal.v1.Cluster.prototype.setFeatures = function(value) { - return jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.Cluster} returns this - */ -proto.teleport.terminal.v1.Cluster.prototype.clearFeatures = function() { - return this.setFeatures(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.Cluster.prototype.hasFeatures = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional string auth_cluster_id = 9; - * @return {string} - */ -proto.teleport.terminal.v1.Cluster.prototype.getAuthClusterId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.Cluster} returns this - */ -proto.teleport.terminal.v1.Cluster.prototype.setAuthClusterId = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.teleport.terminal.v1.LoggedInUser.repeatedFields_ = [2,3,5,6,7]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.LoggedInUser.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.LoggedInUser.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.LoggedInUser} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.LoggedInUser.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - rolesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - sshLoginsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, - acl: (f = msg.getAcl()) && proto.teleport.terminal.v1.ACL.toObject(includeInstance, f), - activeRequestsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f, - suggestedReviewersList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f, - requestableRolesList: (f = jspb.Message.getRepeatedField(msg, 7)) == 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.teleport.terminal.v1.LoggedInUser} - */ -proto.teleport.terminal.v1.LoggedInUser.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.LoggedInUser; - return proto.teleport.terminal.v1.LoggedInUser.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.LoggedInUser} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.LoggedInUser} - */ -proto.teleport.terminal.v1.LoggedInUser.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addRoles(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addSshLogins(value); - break; - case 4: - var value = new proto.teleport.terminal.v1.ACL; - reader.readMessage(value,proto.teleport.terminal.v1.ACL.deserializeBinaryFromReader); - msg.setAcl(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.addActiveRequests(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.addSuggestedReviewers(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.addRequestableRoles(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.LoggedInUser.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.LoggedInUser.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.LoggedInUser} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.LoggedInUser.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRolesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } - f = message.getSshLoginsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f - ); - } - f = message.getAcl(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.teleport.terminal.v1.ACL.serializeBinaryToWriter - ); - } - f = message.getActiveRequestsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 5, - f - ); - } - f = message.getSuggestedReviewersList(); - if (f.length > 0) { - writer.writeRepeatedString( - 6, - f - ); - } - f = message.getRequestableRolesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 7, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.teleport.terminal.v1.LoggedInUser.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this - */ -proto.teleport.terminal.v1.LoggedInUser.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated string roles = 2; - * @return {!Array} - */ -proto.teleport.terminal.v1.LoggedInUser.prototype.getRolesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this - */ -proto.teleport.terminal.v1.LoggedInUser.prototype.setRolesList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this - */ -proto.teleport.terminal.v1.LoggedInUser.prototype.addRoles = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this - */ -proto.teleport.terminal.v1.LoggedInUser.prototype.clearRolesList = function() { - return this.setRolesList([]); -}; - - -/** - * repeated string ssh_logins = 3; - * @return {!Array} - */ -proto.teleport.terminal.v1.LoggedInUser.prototype.getSshLoginsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this - */ -proto.teleport.terminal.v1.LoggedInUser.prototype.setSshLoginsList = function(value) { - return jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this - */ -proto.teleport.terminal.v1.LoggedInUser.prototype.addSshLogins = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this - */ -proto.teleport.terminal.v1.LoggedInUser.prototype.clearSshLoginsList = function() { - return this.setSshLoginsList([]); -}; - - -/** - * optional ACL acl = 4; - * @return {?proto.teleport.terminal.v1.ACL} - */ -proto.teleport.terminal.v1.LoggedInUser.prototype.getAcl = function() { - return /** @type{?proto.teleport.terminal.v1.ACL} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ACL, 4)); -}; - - -/** - * @param {?proto.teleport.terminal.v1.ACL|undefined} value - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this -*/ -proto.teleport.terminal.v1.LoggedInUser.prototype.setAcl = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this - */ -proto.teleport.terminal.v1.LoggedInUser.prototype.clearAcl = function() { - return this.setAcl(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.LoggedInUser.prototype.hasAcl = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * repeated string active_requests = 5; - * @return {!Array} - */ -proto.teleport.terminal.v1.LoggedInUser.prototype.getActiveRequestsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this - */ -proto.teleport.terminal.v1.LoggedInUser.prototype.setActiveRequestsList = function(value) { - return jspb.Message.setField(this, 5, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this - */ -proto.teleport.terminal.v1.LoggedInUser.prototype.addActiveRequests = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 5, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this - */ -proto.teleport.terminal.v1.LoggedInUser.prototype.clearActiveRequestsList = function() { - return this.setActiveRequestsList([]); -}; - - -/** - * repeated string suggested_reviewers = 6; - * @return {!Array} - */ -proto.teleport.terminal.v1.LoggedInUser.prototype.getSuggestedReviewersList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this - */ -proto.teleport.terminal.v1.LoggedInUser.prototype.setSuggestedReviewersList = function(value) { - return jspb.Message.setField(this, 6, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this - */ -proto.teleport.terminal.v1.LoggedInUser.prototype.addSuggestedReviewers = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 6, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this - */ -proto.teleport.terminal.v1.LoggedInUser.prototype.clearSuggestedReviewersList = function() { - return this.setSuggestedReviewersList([]); -}; - - -/** - * repeated string requestable_roles = 7; - * @return {!Array} - */ -proto.teleport.terminal.v1.LoggedInUser.prototype.getRequestableRolesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 7)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this - */ -proto.teleport.terminal.v1.LoggedInUser.prototype.setRequestableRolesList = function(value) { - return jspb.Message.setField(this, 7, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this - */ -proto.teleport.terminal.v1.LoggedInUser.prototype.addRequestableRoles = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 7, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.LoggedInUser} returns this - */ -proto.teleport.terminal.v1.LoggedInUser.prototype.clearRequestableRolesList = function() { - return this.setRequestableRolesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.ACL.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ACL.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ACL} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ACL.toObject = function(includeInstance, msg) { - var f, obj = { - sessions: (f = msg.getSessions()) && proto.teleport.terminal.v1.ResourceAccess.toObject(includeInstance, f), - authConnectors: (f = msg.getAuthConnectors()) && proto.teleport.terminal.v1.ResourceAccess.toObject(includeInstance, f), - roles: (f = msg.getRoles()) && proto.teleport.terminal.v1.ResourceAccess.toObject(includeInstance, f), - users: (f = msg.getUsers()) && proto.teleport.terminal.v1.ResourceAccess.toObject(includeInstance, f), - trustedClusters: (f = msg.getTrustedClusters()) && proto.teleport.terminal.v1.ResourceAccess.toObject(includeInstance, f), - events: (f = msg.getEvents()) && proto.teleport.terminal.v1.ResourceAccess.toObject(includeInstance, f), - tokens: (f = msg.getTokens()) && proto.teleport.terminal.v1.ResourceAccess.toObject(includeInstance, f), - servers: (f = msg.getServers()) && proto.teleport.terminal.v1.ResourceAccess.toObject(includeInstance, f), - apps: (f = msg.getApps()) && proto.teleport.terminal.v1.ResourceAccess.toObject(includeInstance, f), - dbs: (f = msg.getDbs()) && proto.teleport.terminal.v1.ResourceAccess.toObject(includeInstance, f), - kubeservers: (f = msg.getKubeservers()) && proto.teleport.terminal.v1.ResourceAccess.toObject(includeInstance, f), - accessRequests: (f = msg.getAccessRequests()) && proto.teleport.terminal.v1.ResourceAccess.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.teleport.terminal.v1.ACL} - */ -proto.teleport.terminal.v1.ACL.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ACL; - return proto.teleport.terminal.v1.ACL.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ACL} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ACL} - */ -proto.teleport.terminal.v1.ACL.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.teleport.terminal.v1.ResourceAccess; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader); - msg.setSessions(value); - break; - case 2: - var value = new proto.teleport.terminal.v1.ResourceAccess; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader); - msg.setAuthConnectors(value); - break; - case 3: - var value = new proto.teleport.terminal.v1.ResourceAccess; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader); - msg.setRoles(value); - break; - case 4: - var value = new proto.teleport.terminal.v1.ResourceAccess; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader); - msg.setUsers(value); - break; - case 5: - var value = new proto.teleport.terminal.v1.ResourceAccess; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader); - msg.setTrustedClusters(value); - break; - case 6: - var value = new proto.teleport.terminal.v1.ResourceAccess; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader); - msg.setEvents(value); - break; - case 7: - var value = new proto.teleport.terminal.v1.ResourceAccess; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader); - msg.setTokens(value); - break; - case 8: - var value = new proto.teleport.terminal.v1.ResourceAccess; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader); - msg.setServers(value); - break; - case 9: - var value = new proto.teleport.terminal.v1.ResourceAccess; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader); - msg.setApps(value); - break; - case 10: - var value = new proto.teleport.terminal.v1.ResourceAccess; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader); - msg.setDbs(value); - break; - case 11: - var value = new proto.teleport.terminal.v1.ResourceAccess; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader); - msg.setKubeservers(value); - break; - case 12: - var value = new proto.teleport.terminal.v1.ResourceAccess; - reader.readMessage(value,proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader); - msg.setAccessRequests(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.ACL.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ACL.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ACL} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ACL.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSessions(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter - ); - } - f = message.getAuthConnectors(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter - ); - } - f = message.getRoles(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter - ); - } - f = message.getUsers(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter - ); - } - f = message.getTrustedClusters(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter - ); - } - f = message.getEvents(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter - ); - } - f = message.getTokens(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter - ); - } - f = message.getServers(); - if (f != null) { - writer.writeMessage( - 8, - f, - proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter - ); - } - f = message.getApps(); - if (f != null) { - writer.writeMessage( - 9, - f, - proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter - ); - } - f = message.getDbs(); - if (f != null) { - writer.writeMessage( - 10, - f, - proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter - ); - } - f = message.getKubeservers(); - if (f != null) { - writer.writeMessage( - 11, - f, - proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter - ); - } - f = message.getAccessRequests(); - if (f != null) { - writer.writeMessage( - 12, - f, - proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter - ); - } -}; - - -/** - * optional ResourceAccess sessions = 1; - * @return {?proto.teleport.terminal.v1.ResourceAccess} - */ -proto.teleport.terminal.v1.ACL.prototype.getSessions = function() { - return /** @type{?proto.teleport.terminal.v1.ResourceAccess} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ResourceAccess, 1)); -}; - - -/** - * @param {?proto.teleport.terminal.v1.ResourceAccess|undefined} value - * @return {!proto.teleport.terminal.v1.ACL} returns this -*/ -proto.teleport.terminal.v1.ACL.prototype.setSessions = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ACL} returns this - */ -proto.teleport.terminal.v1.ACL.prototype.clearSessions = function() { - return this.setSessions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.ACL.prototype.hasSessions = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional ResourceAccess auth_connectors = 2; - * @return {?proto.teleport.terminal.v1.ResourceAccess} - */ -proto.teleport.terminal.v1.ACL.prototype.getAuthConnectors = function() { - return /** @type{?proto.teleport.terminal.v1.ResourceAccess} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ResourceAccess, 2)); -}; - - -/** - * @param {?proto.teleport.terminal.v1.ResourceAccess|undefined} value - * @return {!proto.teleport.terminal.v1.ACL} returns this -*/ -proto.teleport.terminal.v1.ACL.prototype.setAuthConnectors = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ACL} returns this - */ -proto.teleport.terminal.v1.ACL.prototype.clearAuthConnectors = function() { - return this.setAuthConnectors(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.ACL.prototype.hasAuthConnectors = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional ResourceAccess roles = 3; - * @return {?proto.teleport.terminal.v1.ResourceAccess} - */ -proto.teleport.terminal.v1.ACL.prototype.getRoles = function() { - return /** @type{?proto.teleport.terminal.v1.ResourceAccess} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ResourceAccess, 3)); -}; - - -/** - * @param {?proto.teleport.terminal.v1.ResourceAccess|undefined} value - * @return {!proto.teleport.terminal.v1.ACL} returns this -*/ -proto.teleport.terminal.v1.ACL.prototype.setRoles = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ACL} returns this - */ -proto.teleport.terminal.v1.ACL.prototype.clearRoles = function() { - return this.setRoles(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.ACL.prototype.hasRoles = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional ResourceAccess users = 4; - * @return {?proto.teleport.terminal.v1.ResourceAccess} - */ -proto.teleport.terminal.v1.ACL.prototype.getUsers = function() { - return /** @type{?proto.teleport.terminal.v1.ResourceAccess} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ResourceAccess, 4)); -}; - - -/** - * @param {?proto.teleport.terminal.v1.ResourceAccess|undefined} value - * @return {!proto.teleport.terminal.v1.ACL} returns this -*/ -proto.teleport.terminal.v1.ACL.prototype.setUsers = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ACL} returns this - */ -proto.teleport.terminal.v1.ACL.prototype.clearUsers = function() { - return this.setUsers(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.ACL.prototype.hasUsers = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional ResourceAccess trusted_clusters = 5; - * @return {?proto.teleport.terminal.v1.ResourceAccess} - */ -proto.teleport.terminal.v1.ACL.prototype.getTrustedClusters = function() { - return /** @type{?proto.teleport.terminal.v1.ResourceAccess} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ResourceAccess, 5)); -}; - - -/** - * @param {?proto.teleport.terminal.v1.ResourceAccess|undefined} value - * @return {!proto.teleport.terminal.v1.ACL} returns this -*/ -proto.teleport.terminal.v1.ACL.prototype.setTrustedClusters = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ACL} returns this - */ -proto.teleport.terminal.v1.ACL.prototype.clearTrustedClusters = function() { - return this.setTrustedClusters(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.ACL.prototype.hasTrustedClusters = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional ResourceAccess events = 6; - * @return {?proto.teleport.terminal.v1.ResourceAccess} - */ -proto.teleport.terminal.v1.ACL.prototype.getEvents = function() { - return /** @type{?proto.teleport.terminal.v1.ResourceAccess} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ResourceAccess, 6)); -}; - - -/** - * @param {?proto.teleport.terminal.v1.ResourceAccess|undefined} value - * @return {!proto.teleport.terminal.v1.ACL} returns this -*/ -proto.teleport.terminal.v1.ACL.prototype.setEvents = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ACL} returns this - */ -proto.teleport.terminal.v1.ACL.prototype.clearEvents = function() { - return this.setEvents(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.ACL.prototype.hasEvents = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional ResourceAccess tokens = 7; - * @return {?proto.teleport.terminal.v1.ResourceAccess} - */ -proto.teleport.terminal.v1.ACL.prototype.getTokens = function() { - return /** @type{?proto.teleport.terminal.v1.ResourceAccess} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ResourceAccess, 7)); -}; - - -/** - * @param {?proto.teleport.terminal.v1.ResourceAccess|undefined} value - * @return {!proto.teleport.terminal.v1.ACL} returns this -*/ -proto.teleport.terminal.v1.ACL.prototype.setTokens = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ACL} returns this - */ -proto.teleport.terminal.v1.ACL.prototype.clearTokens = function() { - return this.setTokens(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.ACL.prototype.hasTokens = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional ResourceAccess servers = 8; - * @return {?proto.teleport.terminal.v1.ResourceAccess} - */ -proto.teleport.terminal.v1.ACL.prototype.getServers = function() { - return /** @type{?proto.teleport.terminal.v1.ResourceAccess} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ResourceAccess, 8)); -}; - - -/** - * @param {?proto.teleport.terminal.v1.ResourceAccess|undefined} value - * @return {!proto.teleport.terminal.v1.ACL} returns this -*/ -proto.teleport.terminal.v1.ACL.prototype.setServers = function(value) { - return jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ACL} returns this - */ -proto.teleport.terminal.v1.ACL.prototype.clearServers = function() { - return this.setServers(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.ACL.prototype.hasServers = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional ResourceAccess apps = 9; - * @return {?proto.teleport.terminal.v1.ResourceAccess} - */ -proto.teleport.terminal.v1.ACL.prototype.getApps = function() { - return /** @type{?proto.teleport.terminal.v1.ResourceAccess} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ResourceAccess, 9)); -}; - - -/** - * @param {?proto.teleport.terminal.v1.ResourceAccess|undefined} value - * @return {!proto.teleport.terminal.v1.ACL} returns this -*/ -proto.teleport.terminal.v1.ACL.prototype.setApps = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ACL} returns this - */ -proto.teleport.terminal.v1.ACL.prototype.clearApps = function() { - return this.setApps(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.ACL.prototype.hasApps = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * optional ResourceAccess dbs = 10; - * @return {?proto.teleport.terminal.v1.ResourceAccess} - */ -proto.teleport.terminal.v1.ACL.prototype.getDbs = function() { - return /** @type{?proto.teleport.terminal.v1.ResourceAccess} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ResourceAccess, 10)); -}; - - -/** - * @param {?proto.teleport.terminal.v1.ResourceAccess|undefined} value - * @return {!proto.teleport.terminal.v1.ACL} returns this -*/ -proto.teleport.terminal.v1.ACL.prototype.setDbs = function(value) { - return jspb.Message.setWrapperField(this, 10, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ACL} returns this - */ -proto.teleport.terminal.v1.ACL.prototype.clearDbs = function() { - return this.setDbs(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.ACL.prototype.hasDbs = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional ResourceAccess kubeservers = 11; - * @return {?proto.teleport.terminal.v1.ResourceAccess} - */ -proto.teleport.terminal.v1.ACL.prototype.getKubeservers = function() { - return /** @type{?proto.teleport.terminal.v1.ResourceAccess} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ResourceAccess, 11)); -}; - - -/** - * @param {?proto.teleport.terminal.v1.ResourceAccess|undefined} value - * @return {!proto.teleport.terminal.v1.ACL} returns this -*/ -proto.teleport.terminal.v1.ACL.prototype.setKubeservers = function(value) { - return jspb.Message.setWrapperField(this, 11, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ACL} returns this - */ -proto.teleport.terminal.v1.ACL.prototype.clearKubeservers = function() { - return this.setKubeservers(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.ACL.prototype.hasKubeservers = function() { - return jspb.Message.getField(this, 11) != null; -}; - - -/** - * optional ResourceAccess access_requests = 12; - * @return {?proto.teleport.terminal.v1.ResourceAccess} - */ -proto.teleport.terminal.v1.ACL.prototype.getAccessRequests = function() { - return /** @type{?proto.teleport.terminal.v1.ResourceAccess} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.ResourceAccess, 12)); -}; - - -/** - * @param {?proto.teleport.terminal.v1.ResourceAccess|undefined} value - * @return {!proto.teleport.terminal.v1.ACL} returns this -*/ -proto.teleport.terminal.v1.ACL.prototype.setAccessRequests = function(value) { - return jspb.Message.setWrapperField(this, 12, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ACL} returns this - */ -proto.teleport.terminal.v1.ACL.prototype.clearAccessRequests = function() { - return this.setAccessRequests(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.ACL.prototype.hasAccessRequests = function() { - return jspb.Message.getField(this, 12) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.ResourceAccess.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ResourceAccess.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ResourceAccess} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ResourceAccess.toObject = function(includeInstance, msg) { - var f, obj = { - list: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - read: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - edit: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - create: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - pb_delete: jspb.Message.getBooleanFieldWithDefault(msg, 5, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ResourceAccess} - */ -proto.teleport.terminal.v1.ResourceAccess.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ResourceAccess; - return proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ResourceAccess} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ResourceAccess} - */ -proto.teleport.terminal.v1.ResourceAccess.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setList(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setRead(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setEdit(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setCreate(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDelete(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.ResourceAccess.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ResourceAccess} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ResourceAccess.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getList(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getRead(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getEdit(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getCreate(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getDelete(); - if (f) { - writer.writeBool( - 5, - f - ); - } -}; - - -/** - * optional bool list = 1; - * @return {boolean} - */ -proto.teleport.terminal.v1.ResourceAccess.prototype.getList = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.teleport.terminal.v1.ResourceAccess} returns this - */ -proto.teleport.terminal.v1.ResourceAccess.prototype.setList = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional bool read = 2; - * @return {boolean} - */ -proto.teleport.terminal.v1.ResourceAccess.prototype.getRead = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.teleport.terminal.v1.ResourceAccess} returns this - */ -proto.teleport.terminal.v1.ResourceAccess.prototype.setRead = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional bool edit = 3; - * @return {boolean} - */ -proto.teleport.terminal.v1.ResourceAccess.prototype.getEdit = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.teleport.terminal.v1.ResourceAccess} returns this - */ -proto.teleport.terminal.v1.ResourceAccess.prototype.setEdit = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional bool create = 4; - * @return {boolean} - */ -proto.teleport.terminal.v1.ResourceAccess.prototype.getCreate = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.teleport.terminal.v1.ResourceAccess} returns this - */ -proto.teleport.terminal.v1.ResourceAccess.prototype.setCreate = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional bool delete = 5; - * @return {boolean} - */ -proto.teleport.terminal.v1.ResourceAccess.prototype.getDelete = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.teleport.terminal.v1.ResourceAccess} returns this - */ -proto.teleport.terminal.v1.ResourceAccess.prototype.setDelete = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.Features.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.Features.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.Features} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.Features.toObject = function(includeInstance, msg) { - var f, obj = { - advancedAccessWorkflows: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.Features} - */ -proto.teleport.terminal.v1.Features.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.Features; - return proto.teleport.terminal.v1.Features.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.Features} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.Features} - */ -proto.teleport.terminal.v1.Features.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAdvancedAccessWorkflows(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.Features.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.Features.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.Features} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.Features.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAdvancedAccessWorkflows(); - if (f) { - writer.writeBool( - 1, - f - ); - } -}; - - -/** - * optional bool advanced_access_workflows = 1; - * @return {boolean} - */ -proto.teleport.terminal.v1.Features.prototype.getAdvancedAccessWorkflows = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.teleport.terminal.v1.Features} returns this - */ -proto.teleport.terminal.v1.Features.prototype.setAdvancedAccessWorkflows = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -goog.object.extend(exports, proto.teleport.terminal.v1); diff --git a/web/packages/teleterm/src/services/tshd/v1/database_grpc_pb.js b/web/packages/teleterm/src/services/tshd/v1/database_grpc_pb.js deleted file mode 100644 index 97b3a2461dbea..0000000000000 --- a/web/packages/teleterm/src/services/tshd/v1/database_grpc_pb.js +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/web/packages/teleterm/src/services/tshd/v1/database_pb.d.ts b/web/packages/teleterm/src/services/tshd/v1/database_pb.d.ts deleted file mode 100644 index 63b5f81dfa365..0000000000000 --- a/web/packages/teleterm/src/services/tshd/v1/database_pb.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -// package: teleport.terminal.v1 -// file: v1/database.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as v1_label_pb from "../v1/label_pb"; - -export class Database extends jspb.Message { - getUri(): string; - setUri(value: string): Database; - - getName(): string; - setName(value: string): Database; - - getDesc(): string; - setDesc(value: string): Database; - - getProtocol(): string; - setProtocol(value: string): Database; - - getType(): string; - setType(value: string): Database; - - getHostname(): string; - setHostname(value: string): Database; - - getAddr(): string; - setAddr(value: string): Database; - - clearLabelsList(): void; - getLabelsList(): Array; - setLabelsList(value: Array): Database; - addLabels(value?: v1_label_pb.Label, index?: number): v1_label_pb.Label; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Database.AsObject; - static toObject(includeInstance: boolean, msg: Database): Database.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Database, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Database; - static deserializeBinaryFromReader(message: Database, reader: jspb.BinaryReader): Database; -} - -export namespace Database { - export type AsObject = { - uri: string, - name: string, - desc: string, - protocol: string, - type: string, - hostname: string, - addr: string, - labelsList: Array, - } -} diff --git a/web/packages/teleterm/src/services/tshd/v1/gateway_grpc_pb.js b/web/packages/teleterm/src/services/tshd/v1/gateway_grpc_pb.js deleted file mode 100644 index 97b3a2461dbea..0000000000000 --- a/web/packages/teleterm/src/services/tshd/v1/gateway_grpc_pb.js +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/web/packages/teleterm/src/services/tshd/v1/gateway_pb.js b/web/packages/teleterm/src/services/tshd/v1/gateway_pb.js deleted file mode 100644 index 2d1d042f37490..0000000000000 --- a/web/packages/teleterm/src/services/tshd/v1/gateway_pb.js +++ /dev/null @@ -1,410 +0,0 @@ -// source: v1/gateway.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 || window || global || self || Function('return this')(); }).call(null); - -goog.exportSymbol('proto.teleport.terminal.v1.Gateway', 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.teleport.terminal.v1.Gateway = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.Gateway, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.Gateway.displayName = 'proto.teleport.terminal.v1.Gateway'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.Gateway.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.Gateway.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.Gateway} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.Gateway.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - targetName: jspb.Message.getFieldWithDefault(msg, 2, ""), - targetUri: jspb.Message.getFieldWithDefault(msg, 3, ""), - targetUser: jspb.Message.getFieldWithDefault(msg, 4, ""), - localAddress: jspb.Message.getFieldWithDefault(msg, 5, ""), - localPort: jspb.Message.getFieldWithDefault(msg, 6, ""), - protocol: jspb.Message.getFieldWithDefault(msg, 7, ""), - cliCommand: jspb.Message.getFieldWithDefault(msg, 8, ""), - targetSubresourceName: 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.teleport.terminal.v1.Gateway} - */ -proto.teleport.terminal.v1.Gateway.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.Gateway; - return proto.teleport.terminal.v1.Gateway.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.Gateway} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.Gateway} - */ -proto.teleport.terminal.v1.Gateway.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTargetName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setTargetUri(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setTargetUser(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setLocalAddress(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setLocalPort(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setProtocol(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setCliCommand(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setTargetSubresourceName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.Gateway.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.Gateway.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.Gateway} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.Gateway.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTargetName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getTargetUri(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getTargetUser(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getLocalAddress(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getLocalPort(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getProtocol(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getCliCommand(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getTargetSubresourceName(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.Gateway.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.Gateway} returns this - */ -proto.teleport.terminal.v1.Gateway.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string target_name = 2; - * @return {string} - */ -proto.teleport.terminal.v1.Gateway.prototype.getTargetName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.Gateway} returns this - */ -proto.teleport.terminal.v1.Gateway.prototype.setTargetName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string target_uri = 3; - * @return {string} - */ -proto.teleport.terminal.v1.Gateway.prototype.getTargetUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.Gateway} returns this - */ -proto.teleport.terminal.v1.Gateway.prototype.setTargetUri = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string target_user = 4; - * @return {string} - */ -proto.teleport.terminal.v1.Gateway.prototype.getTargetUser = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.Gateway} returns this - */ -proto.teleport.terminal.v1.Gateway.prototype.setTargetUser = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string local_address = 5; - * @return {string} - */ -proto.teleport.terminal.v1.Gateway.prototype.getLocalAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.Gateway} returns this - */ -proto.teleport.terminal.v1.Gateway.prototype.setLocalAddress = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string local_port = 6; - * @return {string} - */ -proto.teleport.terminal.v1.Gateway.prototype.getLocalPort = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.Gateway} returns this - */ -proto.teleport.terminal.v1.Gateway.prototype.setLocalPort = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string protocol = 7; - * @return {string} - */ -proto.teleport.terminal.v1.Gateway.prototype.getProtocol = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.Gateway} returns this - */ -proto.teleport.terminal.v1.Gateway.prototype.setProtocol = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string cli_command = 8; - * @return {string} - */ -proto.teleport.terminal.v1.Gateway.prototype.getCliCommand = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.Gateway} returns this - */ -proto.teleport.terminal.v1.Gateway.prototype.setCliCommand = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional string target_subresource_name = 9; - * @return {string} - */ -proto.teleport.terminal.v1.Gateway.prototype.getTargetSubresourceName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.Gateway} returns this - */ -proto.teleport.terminal.v1.Gateway.prototype.setTargetSubresourceName = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -goog.object.extend(exports, proto.teleport.terminal.v1); diff --git a/web/packages/teleterm/src/services/tshd/v1/kube_grpc_pb.js b/web/packages/teleterm/src/services/tshd/v1/kube_grpc_pb.js deleted file mode 100644 index 97b3a2461dbea..0000000000000 --- a/web/packages/teleterm/src/services/tshd/v1/kube_grpc_pb.js +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/web/packages/teleterm/src/services/tshd/v1/kube_pb.js b/web/packages/teleterm/src/services/tshd/v1/kube_pb.js deleted file mode 100644 index 79fb75e61f5d4..0000000000000 --- a/web/packages/teleterm/src/services/tshd/v1/kube_pb.js +++ /dev/null @@ -1,262 +0,0 @@ -// source: v1/kube.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 || window || global || self || Function('return this')(); }).call(null); - -var v1_label_pb = require('../v1/label_pb.js'); -goog.object.extend(proto, v1_label_pb); -goog.exportSymbol('proto.teleport.terminal.v1.Kube', 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.teleport.terminal.v1.Kube = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.Kube.repeatedFields_, null); -}; -goog.inherits(proto.teleport.terminal.v1.Kube, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.Kube.displayName = 'proto.teleport.terminal.v1.Kube'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.teleport.terminal.v1.Kube.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.Kube.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.Kube.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.Kube} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.Kube.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - labelsList: jspb.Message.toObjectList(msg.getLabelsList(), - v1_label_pb.Label.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.teleport.terminal.v1.Kube} - */ -proto.teleport.terminal.v1.Kube.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.Kube; - return proto.teleport.terminal.v1.Kube.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.Kube} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.Kube} - */ -proto.teleport.terminal.v1.Kube.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = new v1_label_pb.Label; - reader.readMessage(value,v1_label_pb.Label.deserializeBinaryFromReader); - msg.addLabels(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.Kube.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.Kube.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.Kube} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.Kube.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getLabelsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - v1_label_pb.Label.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.Kube.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.Kube} returns this - */ -proto.teleport.terminal.v1.Kube.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.teleport.terminal.v1.Kube.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.Kube} returns this - */ -proto.teleport.terminal.v1.Kube.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated Label labels = 3; - * @return {!Array} - */ -proto.teleport.terminal.v1.Kube.prototype.getLabelsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_label_pb.Label, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.Kube} returns this -*/ -proto.teleport.terminal.v1.Kube.prototype.setLabelsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.teleport.terminal.v1.Label=} opt_value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.Label} - */ -proto.teleport.terminal.v1.Kube.prototype.addLabels = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.teleport.terminal.v1.Label, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.Kube} returns this - */ -proto.teleport.terminal.v1.Kube.prototype.clearLabelsList = function() { - return this.setLabelsList([]); -}; - - -goog.object.extend(exports, proto.teleport.terminal.v1); diff --git a/web/packages/teleterm/src/services/tshd/v1/label_grpc_pb.js b/web/packages/teleterm/src/services/tshd/v1/label_grpc_pb.js deleted file mode 100644 index 97b3a2461dbea..0000000000000 --- a/web/packages/teleterm/src/services/tshd/v1/label_grpc_pb.js +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/web/packages/teleterm/src/services/tshd/v1/server_grpc_pb.js b/web/packages/teleterm/src/services/tshd/v1/server_grpc_pb.js deleted file mode 100644 index 97b3a2461dbea..0000000000000 --- a/web/packages/teleterm/src/services/tshd/v1/server_grpc_pb.js +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/web/packages/teleterm/src/services/tshd/v1/server_pb.d.ts b/web/packages/teleterm/src/services/tshd/v1/server_pb.d.ts deleted file mode 100644 index d01e741b93e51..0000000000000 --- a/web/packages/teleterm/src/services/tshd/v1/server_pb.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -// package: teleport.terminal.v1 -// file: v1/server.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as v1_label_pb from "../v1/label_pb"; - -export class Server extends jspb.Message { - getUri(): string; - setUri(value: string): Server; - - getTunnel(): boolean; - setTunnel(value: boolean): Server; - - getName(): string; - setName(value: string): Server; - - getHostname(): string; - setHostname(value: string): Server; - - getAddr(): string; - setAddr(value: string): Server; - - clearLabelsList(): void; - getLabelsList(): Array; - setLabelsList(value: Array): Server; - addLabels(value?: v1_label_pb.Label, index?: number): v1_label_pb.Label; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Server.AsObject; - static toObject(includeInstance: boolean, msg: Server): Server.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Server, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Server; - static deserializeBinaryFromReader(message: Server, reader: jspb.BinaryReader): Server; -} - -export namespace Server { - export type AsObject = { - uri: string, - tunnel: boolean, - name: string, - hostname: string, - addr: string, - labelsList: Array, - } -} diff --git a/web/packages/teleterm/src/services/tshd/v1/service_grpc_pb.d.ts b/web/packages/teleterm/src/services/tshd/v1/service_grpc_pb.d.ts deleted file mode 100644 index d71c04f2db92d..0000000000000 --- a/web/packages/teleterm/src/services/tshd/v1/service_grpc_pb.d.ts +++ /dev/null @@ -1,591 +0,0 @@ -// package: teleport.terminal.v1 -// file: v1/service.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "grpc"; -import * as v1_service_pb from "../v1/service_pb"; -import * as v1_access_request_pb from "../v1/access_request_pb"; -import * as v1_app_pb from "../v1/app_pb"; -import * as v1_auth_settings_pb from "../v1/auth_settings_pb"; -import * as v1_cluster_pb from "../v1/cluster_pb"; -import * as v1_database_pb from "../v1/database_pb"; -import * as v1_gateway_pb from "../v1/gateway_pb"; -import * as v1_kube_pb from "../v1/kube_pb"; -import * as v1_server_pb from "../v1/server_pb"; -import * as v1_usage_events_pb from "../v1/usage_events_pb"; - -interface ITerminalServiceService extends grpc.ServiceDefinition { - updateTshdEventsServerAddress: ITerminalServiceService_IUpdateTshdEventsServerAddress; - listRootClusters: ITerminalServiceService_IListRootClusters; - listLeafClusters: ITerminalServiceService_IListLeafClusters; - getAllDatabases: ITerminalServiceService_IGetAllDatabases; - getDatabases: ITerminalServiceService_IGetDatabases; - listDatabaseUsers: ITerminalServiceService_IListDatabaseUsers; - getAllServers: ITerminalServiceService_IGetAllServers; - getServers: ITerminalServiceService_IGetServers; - getAccessRequests: ITerminalServiceService_IGetAccessRequests; - getAccessRequest: ITerminalServiceService_IGetAccessRequest; - deleteAccessRequest: ITerminalServiceService_IDeleteAccessRequest; - createAccessRequest: ITerminalServiceService_ICreateAccessRequest; - reviewAccessRequest: ITerminalServiceService_IReviewAccessRequest; - getRequestableRoles: ITerminalServiceService_IGetRequestableRoles; - assumeRole: ITerminalServiceService_IAssumeRole; - getAllKubes: ITerminalServiceService_IGetAllKubes; - getKubes: ITerminalServiceService_IGetKubes; - listApps: ITerminalServiceService_IListApps; - addCluster: ITerminalServiceService_IAddCluster; - removeCluster: ITerminalServiceService_IRemoveCluster; - listGateways: ITerminalServiceService_IListGateways; - createGateway: ITerminalServiceService_ICreateGateway; - removeGateway: ITerminalServiceService_IRemoveGateway; - restartGateway: ITerminalServiceService_IRestartGateway; - setGatewayTargetSubresourceName: ITerminalServiceService_ISetGatewayTargetSubresourceName; - setGatewayLocalPort: ITerminalServiceService_ISetGatewayLocalPort; - getAuthSettings: ITerminalServiceService_IGetAuthSettings; - getCluster: ITerminalServiceService_IGetCluster; - login: ITerminalServiceService_ILogin; - loginPasswordless: ITerminalServiceService_ILoginPasswordless; - logout: ITerminalServiceService_ILogout; - transferFile: ITerminalServiceService_ITransferFile; - reportUsageEvent: ITerminalServiceService_IReportUsageEvent; -} - -interface ITerminalServiceService_IUpdateTshdEventsServerAddress extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/UpdateTshdEventsServerAddress"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IListRootClusters extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/ListRootClusters"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IListLeafClusters extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/ListLeafClusters"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IGetAllDatabases extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/GetAllDatabases"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IGetDatabases extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/GetDatabases"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IListDatabaseUsers extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/ListDatabaseUsers"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IGetAllServers extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/GetAllServers"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IGetServers extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/GetServers"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IGetAccessRequests extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/GetAccessRequests"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IGetAccessRequest extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/GetAccessRequest"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IDeleteAccessRequest extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/DeleteAccessRequest"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_ICreateAccessRequest extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/CreateAccessRequest"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IReviewAccessRequest extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/ReviewAccessRequest"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IGetRequestableRoles extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/GetRequestableRoles"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IAssumeRole extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/AssumeRole"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IGetAllKubes extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/GetAllKubes"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IGetKubes extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/GetKubes"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IListApps extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/ListApps"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IAddCluster extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/AddCluster"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IRemoveCluster extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/RemoveCluster"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IListGateways extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/ListGateways"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_ICreateGateway extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/CreateGateway"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IRemoveGateway extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/RemoveGateway"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IRestartGateway extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/RestartGateway"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_ISetGatewayTargetSubresourceName extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/SetGatewayTargetSubresourceName"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_ISetGatewayLocalPort extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/SetGatewayLocalPort"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IGetAuthSettings extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/GetAuthSettings"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IGetCluster extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/GetCluster"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_ILogin extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/Login"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_ILoginPasswordless extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/LoginPasswordless"; - requestStream: true; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_ILogout extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/Logout"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_ITransferFile extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/TransferFile"; - requestStream: false; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITerminalServiceService_IReportUsageEvent extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TerminalService/ReportUsageEvent"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const TerminalServiceService: ITerminalServiceService; - -export interface ITerminalServiceServer { - updateTshdEventsServerAddress: grpc.handleUnaryCall; - listRootClusters: grpc.handleUnaryCall; - listLeafClusters: grpc.handleUnaryCall; - getAllDatabases: grpc.handleUnaryCall; - getDatabases: grpc.handleUnaryCall; - listDatabaseUsers: grpc.handleUnaryCall; - getAllServers: grpc.handleUnaryCall; - getServers: grpc.handleUnaryCall; - getAccessRequests: grpc.handleUnaryCall; - getAccessRequest: grpc.handleUnaryCall; - deleteAccessRequest: grpc.handleUnaryCall; - createAccessRequest: grpc.handleUnaryCall; - reviewAccessRequest: grpc.handleUnaryCall; - getRequestableRoles: grpc.handleUnaryCall; - assumeRole: grpc.handleUnaryCall; - getAllKubes: grpc.handleUnaryCall; - getKubes: grpc.handleUnaryCall; - listApps: grpc.handleUnaryCall; - addCluster: grpc.handleUnaryCall; - removeCluster: grpc.handleUnaryCall; - listGateways: grpc.handleUnaryCall; - createGateway: grpc.handleUnaryCall; - removeGateway: grpc.handleUnaryCall; - restartGateway: grpc.handleUnaryCall; - setGatewayTargetSubresourceName: grpc.handleUnaryCall; - setGatewayLocalPort: grpc.handleUnaryCall; - getAuthSettings: grpc.handleUnaryCall; - getCluster: grpc.handleUnaryCall; - login: grpc.handleUnaryCall; - loginPasswordless: grpc.handleBidiStreamingCall; - logout: grpc.handleUnaryCall; - transferFile: grpc.handleServerStreamingCall; - reportUsageEvent: grpc.handleUnaryCall; -} - -export interface ITerminalServiceClient { - updateTshdEventsServerAddress(request: v1_service_pb.UpdateTshdEventsServerAddressRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.UpdateTshdEventsServerAddressResponse) => void): grpc.ClientUnaryCall; - updateTshdEventsServerAddress(request: v1_service_pb.UpdateTshdEventsServerAddressRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.UpdateTshdEventsServerAddressResponse) => void): grpc.ClientUnaryCall; - updateTshdEventsServerAddress(request: v1_service_pb.UpdateTshdEventsServerAddressRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.UpdateTshdEventsServerAddressResponse) => void): grpc.ClientUnaryCall; - listRootClusters(request: v1_service_pb.ListClustersRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; - listRootClusters(request: v1_service_pb.ListClustersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; - listRootClusters(request: v1_service_pb.ListClustersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; - listLeafClusters(request: v1_service_pb.ListLeafClustersRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; - listLeafClusters(request: v1_service_pb.ListLeafClustersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; - listLeafClusters(request: v1_service_pb.ListLeafClustersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; - getAllDatabases(request: v1_service_pb.GetAllDatabasesRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllDatabasesResponse) => void): grpc.ClientUnaryCall; - getAllDatabases(request: v1_service_pb.GetAllDatabasesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllDatabasesResponse) => void): grpc.ClientUnaryCall; - getAllDatabases(request: v1_service_pb.GetAllDatabasesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllDatabasesResponse) => void): grpc.ClientUnaryCall; - getDatabases(request: v1_service_pb.GetDatabasesRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetDatabasesResponse) => void): grpc.ClientUnaryCall; - getDatabases(request: v1_service_pb.GetDatabasesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetDatabasesResponse) => void): grpc.ClientUnaryCall; - getDatabases(request: v1_service_pb.GetDatabasesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetDatabasesResponse) => void): grpc.ClientUnaryCall; - listDatabaseUsers(request: v1_service_pb.ListDatabaseUsersRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListDatabaseUsersResponse) => void): grpc.ClientUnaryCall; - listDatabaseUsers(request: v1_service_pb.ListDatabaseUsersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListDatabaseUsersResponse) => void): grpc.ClientUnaryCall; - listDatabaseUsers(request: v1_service_pb.ListDatabaseUsersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListDatabaseUsersResponse) => void): grpc.ClientUnaryCall; - getAllServers(request: v1_service_pb.GetAllServersRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllServersResponse) => void): grpc.ClientUnaryCall; - getAllServers(request: v1_service_pb.GetAllServersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllServersResponse) => void): grpc.ClientUnaryCall; - getAllServers(request: v1_service_pb.GetAllServersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllServersResponse) => void): grpc.ClientUnaryCall; - getServers(request: v1_service_pb.GetServersRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetServersResponse) => void): grpc.ClientUnaryCall; - getServers(request: v1_service_pb.GetServersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetServersResponse) => void): grpc.ClientUnaryCall; - getServers(request: v1_service_pb.GetServersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetServersResponse) => void): grpc.ClientUnaryCall; - getAccessRequests(request: v1_service_pb.GetAccessRequestsRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAccessRequestsResponse) => void): grpc.ClientUnaryCall; - getAccessRequests(request: v1_service_pb.GetAccessRequestsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAccessRequestsResponse) => void): grpc.ClientUnaryCall; - getAccessRequests(request: v1_service_pb.GetAccessRequestsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAccessRequestsResponse) => void): grpc.ClientUnaryCall; - getAccessRequest(request: v1_service_pb.GetAccessRequestRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAccessRequestResponse) => void): grpc.ClientUnaryCall; - getAccessRequest(request: v1_service_pb.GetAccessRequestRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAccessRequestResponse) => void): grpc.ClientUnaryCall; - getAccessRequest(request: v1_service_pb.GetAccessRequestRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAccessRequestResponse) => void): grpc.ClientUnaryCall; - deleteAccessRequest(request: v1_service_pb.DeleteAccessRequestRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - deleteAccessRequest(request: v1_service_pb.DeleteAccessRequestRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - deleteAccessRequest(request: v1_service_pb.DeleteAccessRequestRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - createAccessRequest(request: v1_service_pb.CreateAccessRequestRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.CreateAccessRequestResponse) => void): grpc.ClientUnaryCall; - createAccessRequest(request: v1_service_pb.CreateAccessRequestRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.CreateAccessRequestResponse) => void): grpc.ClientUnaryCall; - createAccessRequest(request: v1_service_pb.CreateAccessRequestRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.CreateAccessRequestResponse) => void): grpc.ClientUnaryCall; - reviewAccessRequest(request: v1_service_pb.ReviewAccessRequestRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ReviewAccessRequestResponse) => void): grpc.ClientUnaryCall; - reviewAccessRequest(request: v1_service_pb.ReviewAccessRequestRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ReviewAccessRequestResponse) => void): grpc.ClientUnaryCall; - reviewAccessRequest(request: v1_service_pb.ReviewAccessRequestRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ReviewAccessRequestResponse) => void): grpc.ClientUnaryCall; - getRequestableRoles(request: v1_service_pb.GetRequestableRolesRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetRequestableRolesResponse) => void): grpc.ClientUnaryCall; - getRequestableRoles(request: v1_service_pb.GetRequestableRolesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetRequestableRolesResponse) => void): grpc.ClientUnaryCall; - getRequestableRoles(request: v1_service_pb.GetRequestableRolesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetRequestableRolesResponse) => void): grpc.ClientUnaryCall; - assumeRole(request: v1_service_pb.AssumeRoleRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - assumeRole(request: v1_service_pb.AssumeRoleRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - assumeRole(request: v1_service_pb.AssumeRoleRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - getAllKubes(request: v1_service_pb.GetAllKubesRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllKubesResponse) => void): grpc.ClientUnaryCall; - getAllKubes(request: v1_service_pb.GetAllKubesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllKubesResponse) => void): grpc.ClientUnaryCall; - getAllKubes(request: v1_service_pb.GetAllKubesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllKubesResponse) => void): grpc.ClientUnaryCall; - getKubes(request: v1_service_pb.GetKubesRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetKubesResponse) => void): grpc.ClientUnaryCall; - getKubes(request: v1_service_pb.GetKubesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetKubesResponse) => void): grpc.ClientUnaryCall; - getKubes(request: v1_service_pb.GetKubesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetKubesResponse) => void): grpc.ClientUnaryCall; - listApps(request: v1_service_pb.ListAppsRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListAppsResponse) => void): grpc.ClientUnaryCall; - listApps(request: v1_service_pb.ListAppsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListAppsResponse) => void): grpc.ClientUnaryCall; - listApps(request: v1_service_pb.ListAppsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListAppsResponse) => void): grpc.ClientUnaryCall; - addCluster(request: v1_service_pb.AddClusterRequest, callback: (error: grpc.ServiceError | null, response: v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; - addCluster(request: v1_service_pb.AddClusterRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; - addCluster(request: v1_service_pb.AddClusterRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; - removeCluster(request: v1_service_pb.RemoveClusterRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - removeCluster(request: v1_service_pb.RemoveClusterRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - removeCluster(request: v1_service_pb.RemoveClusterRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - listGateways(request: v1_service_pb.ListGatewaysRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListGatewaysResponse) => void): grpc.ClientUnaryCall; - listGateways(request: v1_service_pb.ListGatewaysRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListGatewaysResponse) => void): grpc.ClientUnaryCall; - listGateways(request: v1_service_pb.ListGatewaysRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListGatewaysResponse) => void): grpc.ClientUnaryCall; - createGateway(request: v1_service_pb.CreateGatewayRequest, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - createGateway(request: v1_service_pb.CreateGatewayRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - createGateway(request: v1_service_pb.CreateGatewayRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - removeGateway(request: v1_service_pb.RemoveGatewayRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - removeGateway(request: v1_service_pb.RemoveGatewayRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - removeGateway(request: v1_service_pb.RemoveGatewayRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - restartGateway(request: v1_service_pb.RestartGatewayRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - restartGateway(request: v1_service_pb.RestartGatewayRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - restartGateway(request: v1_service_pb.RestartGatewayRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - setGatewayTargetSubresourceName(request: v1_service_pb.SetGatewayTargetSubresourceNameRequest, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - setGatewayTargetSubresourceName(request: v1_service_pb.SetGatewayTargetSubresourceNameRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - setGatewayTargetSubresourceName(request: v1_service_pb.SetGatewayTargetSubresourceNameRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - setGatewayLocalPort(request: v1_service_pb.SetGatewayLocalPortRequest, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - setGatewayLocalPort(request: v1_service_pb.SetGatewayLocalPortRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - setGatewayLocalPort(request: v1_service_pb.SetGatewayLocalPortRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - getAuthSettings(request: v1_service_pb.GetAuthSettingsRequest, callback: (error: grpc.ServiceError | null, response: v1_auth_settings_pb.AuthSettings) => void): grpc.ClientUnaryCall; - getAuthSettings(request: v1_service_pb.GetAuthSettingsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_auth_settings_pb.AuthSettings) => void): grpc.ClientUnaryCall; - getAuthSettings(request: v1_service_pb.GetAuthSettingsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_auth_settings_pb.AuthSettings) => void): grpc.ClientUnaryCall; - getCluster(request: v1_service_pb.GetClusterRequest, callback: (error: grpc.ServiceError | null, response: v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; - getCluster(request: v1_service_pb.GetClusterRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; - getCluster(request: v1_service_pb.GetClusterRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; - login(request: v1_service_pb.LoginRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - login(request: v1_service_pb.LoginRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - login(request: v1_service_pb.LoginRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - loginPasswordless(): grpc.ClientDuplexStream; - loginPasswordless(options: Partial): grpc.ClientDuplexStream; - loginPasswordless(metadata: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; - logout(request: v1_service_pb.LogoutRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - logout(request: v1_service_pb.LogoutRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - logout(request: v1_service_pb.LogoutRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - transferFile(request: v1_service_pb.FileTransferRequest, options?: Partial): grpc.ClientReadableStream; - transferFile(request: v1_service_pb.FileTransferRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - reportUsageEvent(request: v1_usage_events_pb.ReportUsageEventRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - reportUsageEvent(request: v1_usage_events_pb.ReportUsageEventRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - reportUsageEvent(request: v1_usage_events_pb.ReportUsageEventRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; -} - -export class TerminalServiceClient extends grpc.Client implements ITerminalServiceClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - public updateTshdEventsServerAddress(request: v1_service_pb.UpdateTshdEventsServerAddressRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.UpdateTshdEventsServerAddressResponse) => void): grpc.ClientUnaryCall; - public updateTshdEventsServerAddress(request: v1_service_pb.UpdateTshdEventsServerAddressRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.UpdateTshdEventsServerAddressResponse) => void): grpc.ClientUnaryCall; - public updateTshdEventsServerAddress(request: v1_service_pb.UpdateTshdEventsServerAddressRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.UpdateTshdEventsServerAddressResponse) => void): grpc.ClientUnaryCall; - public listRootClusters(request: v1_service_pb.ListClustersRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; - public listRootClusters(request: v1_service_pb.ListClustersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; - public listRootClusters(request: v1_service_pb.ListClustersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; - public listLeafClusters(request: v1_service_pb.ListLeafClustersRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; - public listLeafClusters(request: v1_service_pb.ListLeafClustersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; - public listLeafClusters(request: v1_service_pb.ListLeafClustersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListClustersResponse) => void): grpc.ClientUnaryCall; - public getAllDatabases(request: v1_service_pb.GetAllDatabasesRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllDatabasesResponse) => void): grpc.ClientUnaryCall; - public getAllDatabases(request: v1_service_pb.GetAllDatabasesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllDatabasesResponse) => void): grpc.ClientUnaryCall; - public getAllDatabases(request: v1_service_pb.GetAllDatabasesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllDatabasesResponse) => void): grpc.ClientUnaryCall; - public getDatabases(request: v1_service_pb.GetDatabasesRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetDatabasesResponse) => void): grpc.ClientUnaryCall; - public getDatabases(request: v1_service_pb.GetDatabasesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetDatabasesResponse) => void): grpc.ClientUnaryCall; - public getDatabases(request: v1_service_pb.GetDatabasesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetDatabasesResponse) => void): grpc.ClientUnaryCall; - public listDatabaseUsers(request: v1_service_pb.ListDatabaseUsersRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListDatabaseUsersResponse) => void): grpc.ClientUnaryCall; - public listDatabaseUsers(request: v1_service_pb.ListDatabaseUsersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListDatabaseUsersResponse) => void): grpc.ClientUnaryCall; - public listDatabaseUsers(request: v1_service_pb.ListDatabaseUsersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListDatabaseUsersResponse) => void): grpc.ClientUnaryCall; - public getAllServers(request: v1_service_pb.GetAllServersRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllServersResponse) => void): grpc.ClientUnaryCall; - public getAllServers(request: v1_service_pb.GetAllServersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllServersResponse) => void): grpc.ClientUnaryCall; - public getAllServers(request: v1_service_pb.GetAllServersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllServersResponse) => void): grpc.ClientUnaryCall; - public getServers(request: v1_service_pb.GetServersRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetServersResponse) => void): grpc.ClientUnaryCall; - public getServers(request: v1_service_pb.GetServersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetServersResponse) => void): grpc.ClientUnaryCall; - public getServers(request: v1_service_pb.GetServersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetServersResponse) => void): grpc.ClientUnaryCall; - public getAccessRequests(request: v1_service_pb.GetAccessRequestsRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAccessRequestsResponse) => void): grpc.ClientUnaryCall; - public getAccessRequests(request: v1_service_pb.GetAccessRequestsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAccessRequestsResponse) => void): grpc.ClientUnaryCall; - public getAccessRequests(request: v1_service_pb.GetAccessRequestsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAccessRequestsResponse) => void): grpc.ClientUnaryCall; - public getAccessRequest(request: v1_service_pb.GetAccessRequestRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAccessRequestResponse) => void): grpc.ClientUnaryCall; - public getAccessRequest(request: v1_service_pb.GetAccessRequestRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAccessRequestResponse) => void): grpc.ClientUnaryCall; - public getAccessRequest(request: v1_service_pb.GetAccessRequestRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAccessRequestResponse) => void): grpc.ClientUnaryCall; - public deleteAccessRequest(request: v1_service_pb.DeleteAccessRequestRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public deleteAccessRequest(request: v1_service_pb.DeleteAccessRequestRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public deleteAccessRequest(request: v1_service_pb.DeleteAccessRequestRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public createAccessRequest(request: v1_service_pb.CreateAccessRequestRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.CreateAccessRequestResponse) => void): grpc.ClientUnaryCall; - public createAccessRequest(request: v1_service_pb.CreateAccessRequestRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.CreateAccessRequestResponse) => void): grpc.ClientUnaryCall; - public createAccessRequest(request: v1_service_pb.CreateAccessRequestRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.CreateAccessRequestResponse) => void): grpc.ClientUnaryCall; - public reviewAccessRequest(request: v1_service_pb.ReviewAccessRequestRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ReviewAccessRequestResponse) => void): grpc.ClientUnaryCall; - public reviewAccessRequest(request: v1_service_pb.ReviewAccessRequestRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ReviewAccessRequestResponse) => void): grpc.ClientUnaryCall; - public reviewAccessRequest(request: v1_service_pb.ReviewAccessRequestRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ReviewAccessRequestResponse) => void): grpc.ClientUnaryCall; - public getRequestableRoles(request: v1_service_pb.GetRequestableRolesRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetRequestableRolesResponse) => void): grpc.ClientUnaryCall; - public getRequestableRoles(request: v1_service_pb.GetRequestableRolesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetRequestableRolesResponse) => void): grpc.ClientUnaryCall; - public getRequestableRoles(request: v1_service_pb.GetRequestableRolesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetRequestableRolesResponse) => void): grpc.ClientUnaryCall; - public assumeRole(request: v1_service_pb.AssumeRoleRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public assumeRole(request: v1_service_pb.AssumeRoleRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public assumeRole(request: v1_service_pb.AssumeRoleRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public getAllKubes(request: v1_service_pb.GetAllKubesRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllKubesResponse) => void): grpc.ClientUnaryCall; - public getAllKubes(request: v1_service_pb.GetAllKubesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllKubesResponse) => void): grpc.ClientUnaryCall; - public getAllKubes(request: v1_service_pb.GetAllKubesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetAllKubesResponse) => void): grpc.ClientUnaryCall; - public getKubes(request: v1_service_pb.GetKubesRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetKubesResponse) => void): grpc.ClientUnaryCall; - public getKubes(request: v1_service_pb.GetKubesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetKubesResponse) => void): grpc.ClientUnaryCall; - public getKubes(request: v1_service_pb.GetKubesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.GetKubesResponse) => void): grpc.ClientUnaryCall; - public listApps(request: v1_service_pb.ListAppsRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListAppsResponse) => void): grpc.ClientUnaryCall; - public listApps(request: v1_service_pb.ListAppsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListAppsResponse) => void): grpc.ClientUnaryCall; - public listApps(request: v1_service_pb.ListAppsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListAppsResponse) => void): grpc.ClientUnaryCall; - public addCluster(request: v1_service_pb.AddClusterRequest, callback: (error: grpc.ServiceError | null, response: v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; - public addCluster(request: v1_service_pb.AddClusterRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; - public addCluster(request: v1_service_pb.AddClusterRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; - public removeCluster(request: v1_service_pb.RemoveClusterRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public removeCluster(request: v1_service_pb.RemoveClusterRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public removeCluster(request: v1_service_pb.RemoveClusterRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public listGateways(request: v1_service_pb.ListGatewaysRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListGatewaysResponse) => void): grpc.ClientUnaryCall; - public listGateways(request: v1_service_pb.ListGatewaysRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListGatewaysResponse) => void): grpc.ClientUnaryCall; - public listGateways(request: v1_service_pb.ListGatewaysRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.ListGatewaysResponse) => void): grpc.ClientUnaryCall; - public createGateway(request: v1_service_pb.CreateGatewayRequest, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - public createGateway(request: v1_service_pb.CreateGatewayRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - public createGateway(request: v1_service_pb.CreateGatewayRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - public removeGateway(request: v1_service_pb.RemoveGatewayRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public removeGateway(request: v1_service_pb.RemoveGatewayRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public removeGateway(request: v1_service_pb.RemoveGatewayRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public restartGateway(request: v1_service_pb.RestartGatewayRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public restartGateway(request: v1_service_pb.RestartGatewayRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public restartGateway(request: v1_service_pb.RestartGatewayRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public setGatewayTargetSubresourceName(request: v1_service_pb.SetGatewayTargetSubresourceNameRequest, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - public setGatewayTargetSubresourceName(request: v1_service_pb.SetGatewayTargetSubresourceNameRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - public setGatewayTargetSubresourceName(request: v1_service_pb.SetGatewayTargetSubresourceNameRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - public setGatewayLocalPort(request: v1_service_pb.SetGatewayLocalPortRequest, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - public setGatewayLocalPort(request: v1_service_pb.SetGatewayLocalPortRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - public setGatewayLocalPort(request: v1_service_pb.SetGatewayLocalPortRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_gateway_pb.Gateway) => void): grpc.ClientUnaryCall; - public getAuthSettings(request: v1_service_pb.GetAuthSettingsRequest, callback: (error: grpc.ServiceError | null, response: v1_auth_settings_pb.AuthSettings) => void): grpc.ClientUnaryCall; - public getAuthSettings(request: v1_service_pb.GetAuthSettingsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_auth_settings_pb.AuthSettings) => void): grpc.ClientUnaryCall; - public getAuthSettings(request: v1_service_pb.GetAuthSettingsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_auth_settings_pb.AuthSettings) => void): grpc.ClientUnaryCall; - public getCluster(request: v1_service_pb.GetClusterRequest, callback: (error: grpc.ServiceError | null, response: v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; - public getCluster(request: v1_service_pb.GetClusterRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; - public getCluster(request: v1_service_pb.GetClusterRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_cluster_pb.Cluster) => void): grpc.ClientUnaryCall; - public login(request: v1_service_pb.LoginRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public login(request: v1_service_pb.LoginRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public login(request: v1_service_pb.LoginRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public loginPasswordless(options?: Partial): grpc.ClientDuplexStream; - public loginPasswordless(metadata?: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; - public logout(request: v1_service_pb.LogoutRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public logout(request: v1_service_pb.LogoutRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public logout(request: v1_service_pb.LogoutRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public transferFile(request: v1_service_pb.FileTransferRequest, options?: Partial): grpc.ClientReadableStream; - public transferFile(request: v1_service_pb.FileTransferRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - public reportUsageEvent(request: v1_usage_events_pb.ReportUsageEventRequest, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public reportUsageEvent(request: v1_usage_events_pb.ReportUsageEventRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; - public reportUsageEvent(request: v1_usage_events_pb.ReportUsageEventRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_service_pb.EmptyResponse) => void): grpc.ClientUnaryCall; -} diff --git a/web/packages/teleterm/src/services/tshd/v1/service_grpc_pb.js b/web/packages/teleterm/src/services/tshd/v1/service_grpc_pb.js deleted file mode 100644 index a6c5ffffce471..0000000000000 --- a/web/packages/teleterm/src/services/tshd/v1/service_grpc_pb.js +++ /dev/null @@ -1,1065 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -// Original file comments: -// Copyright 2021 Gravitational, Inc -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -'use strict'; -var grpc = require('@grpc/grpc-js'); -var v1_service_pb = require('../v1/service_pb.js'); -var v1_access_request_pb = require('../v1/access_request_pb.js'); -var v1_app_pb = require('../v1/app_pb.js'); -var v1_auth_settings_pb = require('../v1/auth_settings_pb.js'); -var v1_cluster_pb = require('../v1/cluster_pb.js'); -var v1_database_pb = require('../v1/database_pb.js'); -var v1_gateway_pb = require('../v1/gateway_pb.js'); -var v1_kube_pb = require('../v1/kube_pb.js'); -var v1_server_pb = require('../v1/server_pb.js'); -var v1_usage_events_pb = require('../v1/usage_events_pb.js'); - -function serialize_teleport_terminal_v1_AddClusterRequest(arg) { - if (!(arg instanceof v1_service_pb.AddClusterRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.AddClusterRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_AddClusterRequest(buffer_arg) { - return v1_service_pb.AddClusterRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_AssumeRoleRequest(arg) { - if (!(arg instanceof v1_service_pb.AssumeRoleRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.AssumeRoleRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_AssumeRoleRequest(buffer_arg) { - return v1_service_pb.AssumeRoleRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_AuthSettings(arg) { - if (!(arg instanceof v1_auth_settings_pb.AuthSettings)) { - throw new Error('Expected argument of type teleport.terminal.v1.AuthSettings'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_AuthSettings(buffer_arg) { - return v1_auth_settings_pb.AuthSettings.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_Cluster(arg) { - if (!(arg instanceof v1_cluster_pb.Cluster)) { - throw new Error('Expected argument of type teleport.terminal.v1.Cluster'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_Cluster(buffer_arg) { - return v1_cluster_pb.Cluster.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_CreateAccessRequestRequest(arg) { - if (!(arg instanceof v1_service_pb.CreateAccessRequestRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.CreateAccessRequestRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_CreateAccessRequestRequest(buffer_arg) { - return v1_service_pb.CreateAccessRequestRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_CreateAccessRequestResponse(arg) { - if (!(arg instanceof v1_service_pb.CreateAccessRequestResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.CreateAccessRequestResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_CreateAccessRequestResponse(buffer_arg) { - return v1_service_pb.CreateAccessRequestResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_CreateGatewayRequest(arg) { - if (!(arg instanceof v1_service_pb.CreateGatewayRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.CreateGatewayRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_CreateGatewayRequest(buffer_arg) { - return v1_service_pb.CreateGatewayRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_DeleteAccessRequestRequest(arg) { - if (!(arg instanceof v1_service_pb.DeleteAccessRequestRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.DeleteAccessRequestRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_DeleteAccessRequestRequest(buffer_arg) { - return v1_service_pb.DeleteAccessRequestRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_EmptyResponse(arg) { - if (!(arg instanceof v1_service_pb.EmptyResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.EmptyResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_EmptyResponse(buffer_arg) { - return v1_service_pb.EmptyResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_FileTransferProgress(arg) { - if (!(arg instanceof v1_service_pb.FileTransferProgress)) { - throw new Error('Expected argument of type teleport.terminal.v1.FileTransferProgress'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_FileTransferProgress(buffer_arg) { - return v1_service_pb.FileTransferProgress.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_FileTransferRequest(arg) { - if (!(arg instanceof v1_service_pb.FileTransferRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.FileTransferRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_FileTransferRequest(buffer_arg) { - return v1_service_pb.FileTransferRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_Gateway(arg) { - if (!(arg instanceof v1_gateway_pb.Gateway)) { - throw new Error('Expected argument of type teleport.terminal.v1.Gateway'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_Gateway(buffer_arg) { - return v1_gateway_pb.Gateway.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetAccessRequestRequest(arg) { - if (!(arg instanceof v1_service_pb.GetAccessRequestRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetAccessRequestRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetAccessRequestRequest(buffer_arg) { - return v1_service_pb.GetAccessRequestRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetAccessRequestResponse(arg) { - if (!(arg instanceof v1_service_pb.GetAccessRequestResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetAccessRequestResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetAccessRequestResponse(buffer_arg) { - return v1_service_pb.GetAccessRequestResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetAccessRequestsRequest(arg) { - if (!(arg instanceof v1_service_pb.GetAccessRequestsRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetAccessRequestsRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetAccessRequestsRequest(buffer_arg) { - return v1_service_pb.GetAccessRequestsRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetAccessRequestsResponse(arg) { - if (!(arg instanceof v1_service_pb.GetAccessRequestsResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetAccessRequestsResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetAccessRequestsResponse(buffer_arg) { - return v1_service_pb.GetAccessRequestsResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetAllDatabasesRequest(arg) { - if (!(arg instanceof v1_service_pb.GetAllDatabasesRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetAllDatabasesRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetAllDatabasesRequest(buffer_arg) { - return v1_service_pb.GetAllDatabasesRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetAllDatabasesResponse(arg) { - if (!(arg instanceof v1_service_pb.GetAllDatabasesResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetAllDatabasesResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetAllDatabasesResponse(buffer_arg) { - return v1_service_pb.GetAllDatabasesResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetAllKubesRequest(arg) { - if (!(arg instanceof v1_service_pb.GetAllKubesRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetAllKubesRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetAllKubesRequest(buffer_arg) { - return v1_service_pb.GetAllKubesRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetAllKubesResponse(arg) { - if (!(arg instanceof v1_service_pb.GetAllKubesResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetAllKubesResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetAllKubesResponse(buffer_arg) { - return v1_service_pb.GetAllKubesResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetAllServersRequest(arg) { - if (!(arg instanceof v1_service_pb.GetAllServersRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetAllServersRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetAllServersRequest(buffer_arg) { - return v1_service_pb.GetAllServersRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetAllServersResponse(arg) { - if (!(arg instanceof v1_service_pb.GetAllServersResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetAllServersResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetAllServersResponse(buffer_arg) { - return v1_service_pb.GetAllServersResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetAuthSettingsRequest(arg) { - if (!(arg instanceof v1_service_pb.GetAuthSettingsRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetAuthSettingsRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetAuthSettingsRequest(buffer_arg) { - return v1_service_pb.GetAuthSettingsRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetClusterRequest(arg) { - if (!(arg instanceof v1_service_pb.GetClusterRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetClusterRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetClusterRequest(buffer_arg) { - return v1_service_pb.GetClusterRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetDatabasesRequest(arg) { - if (!(arg instanceof v1_service_pb.GetDatabasesRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetDatabasesRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetDatabasesRequest(buffer_arg) { - return v1_service_pb.GetDatabasesRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetDatabasesResponse(arg) { - if (!(arg instanceof v1_service_pb.GetDatabasesResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetDatabasesResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetDatabasesResponse(buffer_arg) { - return v1_service_pb.GetDatabasesResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetKubesRequest(arg) { - if (!(arg instanceof v1_service_pb.GetKubesRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetKubesRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetKubesRequest(buffer_arg) { - return v1_service_pb.GetKubesRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetKubesResponse(arg) { - if (!(arg instanceof v1_service_pb.GetKubesResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetKubesResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetKubesResponse(buffer_arg) { - return v1_service_pb.GetKubesResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetRequestableRolesRequest(arg) { - if (!(arg instanceof v1_service_pb.GetRequestableRolesRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetRequestableRolesRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetRequestableRolesRequest(buffer_arg) { - return v1_service_pb.GetRequestableRolesRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetRequestableRolesResponse(arg) { - if (!(arg instanceof v1_service_pb.GetRequestableRolesResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetRequestableRolesResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetRequestableRolesResponse(buffer_arg) { - return v1_service_pb.GetRequestableRolesResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetServersRequest(arg) { - if (!(arg instanceof v1_service_pb.GetServersRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetServersRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetServersRequest(buffer_arg) { - return v1_service_pb.GetServersRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_GetServersResponse(arg) { - if (!(arg instanceof v1_service_pb.GetServersResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.GetServersResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_GetServersResponse(buffer_arg) { - return v1_service_pb.GetServersResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_ListAppsRequest(arg) { - if (!(arg instanceof v1_service_pb.ListAppsRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.ListAppsRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_ListAppsRequest(buffer_arg) { - return v1_service_pb.ListAppsRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_ListAppsResponse(arg) { - if (!(arg instanceof v1_service_pb.ListAppsResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.ListAppsResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_ListAppsResponse(buffer_arg) { - return v1_service_pb.ListAppsResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_ListClustersRequest(arg) { - if (!(arg instanceof v1_service_pb.ListClustersRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.ListClustersRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_ListClustersRequest(buffer_arg) { - return v1_service_pb.ListClustersRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_ListClustersResponse(arg) { - if (!(arg instanceof v1_service_pb.ListClustersResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.ListClustersResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_ListClustersResponse(buffer_arg) { - return v1_service_pb.ListClustersResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_ListDatabaseUsersRequest(arg) { - if (!(arg instanceof v1_service_pb.ListDatabaseUsersRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.ListDatabaseUsersRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_ListDatabaseUsersRequest(buffer_arg) { - return v1_service_pb.ListDatabaseUsersRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_ListDatabaseUsersResponse(arg) { - if (!(arg instanceof v1_service_pb.ListDatabaseUsersResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.ListDatabaseUsersResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_ListDatabaseUsersResponse(buffer_arg) { - return v1_service_pb.ListDatabaseUsersResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_ListGatewaysRequest(arg) { - if (!(arg instanceof v1_service_pb.ListGatewaysRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.ListGatewaysRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_ListGatewaysRequest(buffer_arg) { - return v1_service_pb.ListGatewaysRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_ListGatewaysResponse(arg) { - if (!(arg instanceof v1_service_pb.ListGatewaysResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.ListGatewaysResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_ListGatewaysResponse(buffer_arg) { - return v1_service_pb.ListGatewaysResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_ListLeafClustersRequest(arg) { - if (!(arg instanceof v1_service_pb.ListLeafClustersRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.ListLeafClustersRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_ListLeafClustersRequest(buffer_arg) { - return v1_service_pb.ListLeafClustersRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_LoginPasswordlessRequest(arg) { - if (!(arg instanceof v1_service_pb.LoginPasswordlessRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.LoginPasswordlessRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_LoginPasswordlessRequest(buffer_arg) { - return v1_service_pb.LoginPasswordlessRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_LoginPasswordlessResponse(arg) { - if (!(arg instanceof v1_service_pb.LoginPasswordlessResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.LoginPasswordlessResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_LoginPasswordlessResponse(buffer_arg) { - return v1_service_pb.LoginPasswordlessResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_LoginRequest(arg) { - if (!(arg instanceof v1_service_pb.LoginRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.LoginRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_LoginRequest(buffer_arg) { - return v1_service_pb.LoginRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_LogoutRequest(arg) { - if (!(arg instanceof v1_service_pb.LogoutRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.LogoutRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_LogoutRequest(buffer_arg) { - return v1_service_pb.LogoutRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_RemoveClusterRequest(arg) { - if (!(arg instanceof v1_service_pb.RemoveClusterRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.RemoveClusterRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_RemoveClusterRequest(buffer_arg) { - return v1_service_pb.RemoveClusterRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_RemoveGatewayRequest(arg) { - if (!(arg instanceof v1_service_pb.RemoveGatewayRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.RemoveGatewayRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_RemoveGatewayRequest(buffer_arg) { - return v1_service_pb.RemoveGatewayRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_ReportUsageEventRequest(arg) { - if (!(arg instanceof v1_usage_events_pb.ReportUsageEventRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.ReportUsageEventRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_ReportUsageEventRequest(buffer_arg) { - return v1_usage_events_pb.ReportUsageEventRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_RestartGatewayRequest(arg) { - if (!(arg instanceof v1_service_pb.RestartGatewayRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.RestartGatewayRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_RestartGatewayRequest(buffer_arg) { - return v1_service_pb.RestartGatewayRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_ReviewAccessRequestRequest(arg) { - if (!(arg instanceof v1_service_pb.ReviewAccessRequestRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.ReviewAccessRequestRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_ReviewAccessRequestRequest(buffer_arg) { - return v1_service_pb.ReviewAccessRequestRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_ReviewAccessRequestResponse(arg) { - if (!(arg instanceof v1_service_pb.ReviewAccessRequestResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.ReviewAccessRequestResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_ReviewAccessRequestResponse(buffer_arg) { - return v1_service_pb.ReviewAccessRequestResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_SetGatewayLocalPortRequest(arg) { - if (!(arg instanceof v1_service_pb.SetGatewayLocalPortRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.SetGatewayLocalPortRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_SetGatewayLocalPortRequest(buffer_arg) { - return v1_service_pb.SetGatewayLocalPortRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_SetGatewayTargetSubresourceNameRequest(arg) { - if (!(arg instanceof v1_service_pb.SetGatewayTargetSubresourceNameRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_SetGatewayTargetSubresourceNameRequest(buffer_arg) { - return v1_service_pb.SetGatewayTargetSubresourceNameRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_UpdateTshdEventsServerAddressRequest(arg) { - if (!(arg instanceof v1_service_pb.UpdateTshdEventsServerAddressRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.UpdateTshdEventsServerAddressRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_UpdateTshdEventsServerAddressRequest(buffer_arg) { - return v1_service_pb.UpdateTshdEventsServerAddressRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_UpdateTshdEventsServerAddressResponse(arg) { - if (!(arg instanceof v1_service_pb.UpdateTshdEventsServerAddressResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.UpdateTshdEventsServerAddressResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_UpdateTshdEventsServerAddressResponse(buffer_arg) { - return v1_service_pb.UpdateTshdEventsServerAddressResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -// TerminalService describes Teleterm service -var TerminalServiceService = exports.TerminalServiceService = { - // UpdateTshdEventsServerAddress lets the Electron app update the address the tsh daemon is -// supposed to use when connecting to the tshd events gRPC service. This RPC needs to be made -// before any other from this service. -// -// The service is supposed to return a response from this call only after the client is ready. -updateTshdEventsServerAddress: { - path: '/teleport.terminal.v1.TerminalService/UpdateTshdEventsServerAddress', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.UpdateTshdEventsServerAddressRequest, - responseType: v1_service_pb.UpdateTshdEventsServerAddressResponse, - requestSerialize: serialize_teleport_terminal_v1_UpdateTshdEventsServerAddressRequest, - requestDeserialize: deserialize_teleport_terminal_v1_UpdateTshdEventsServerAddressRequest, - responseSerialize: serialize_teleport_terminal_v1_UpdateTshdEventsServerAddressResponse, - responseDeserialize: deserialize_teleport_terminal_v1_UpdateTshdEventsServerAddressResponse, - }, - // ListRootClusters lists root clusters -// Does not include detailed cluster information that would require a network request. -listRootClusters: { - path: '/teleport.terminal.v1.TerminalService/ListRootClusters', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.ListClustersRequest, - responseType: v1_service_pb.ListClustersResponse, - requestSerialize: serialize_teleport_terminal_v1_ListClustersRequest, - requestDeserialize: deserialize_teleport_terminal_v1_ListClustersRequest, - responseSerialize: serialize_teleport_terminal_v1_ListClustersResponse, - responseDeserialize: deserialize_teleport_terminal_v1_ListClustersResponse, - }, - // ListLeafClusters lists leaf clusters -// Does not include detailed cluster information that would require a network request. -listLeafClusters: { - path: '/teleport.terminal.v1.TerminalService/ListLeafClusters', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.ListLeafClustersRequest, - responseType: v1_service_pb.ListClustersResponse, - requestSerialize: serialize_teleport_terminal_v1_ListLeafClustersRequest, - requestDeserialize: deserialize_teleport_terminal_v1_ListLeafClustersRequest, - responseSerialize: serialize_teleport_terminal_v1_ListClustersResponse, - responseDeserialize: deserialize_teleport_terminal_v1_ListClustersResponse, - }, - // GetAllDatabases lists all databases without pagination -getAllDatabases: { - path: '/teleport.terminal.v1.TerminalService/GetAllDatabases', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.GetAllDatabasesRequest, - responseType: v1_service_pb.GetAllDatabasesResponse, - requestSerialize: serialize_teleport_terminal_v1_GetAllDatabasesRequest, - requestDeserialize: deserialize_teleport_terminal_v1_GetAllDatabasesRequest, - responseSerialize: serialize_teleport_terminal_v1_GetAllDatabasesResponse, - responseDeserialize: deserialize_teleport_terminal_v1_GetAllDatabasesResponse, - }, - // GetDatabases returns a filtered and paginated list of databases -getDatabases: { - path: '/teleport.terminal.v1.TerminalService/GetDatabases', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.GetDatabasesRequest, - responseType: v1_service_pb.GetDatabasesResponse, - requestSerialize: serialize_teleport_terminal_v1_GetDatabasesRequest, - requestDeserialize: deserialize_teleport_terminal_v1_GetDatabasesRequest, - responseSerialize: serialize_teleport_terminal_v1_GetDatabasesResponse, - responseDeserialize: deserialize_teleport_terminal_v1_GetDatabasesResponse, - }, - // ListDatabaseUsers lists allowed users for the given database based on the role set. -listDatabaseUsers: { - path: '/teleport.terminal.v1.TerminalService/ListDatabaseUsers', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.ListDatabaseUsersRequest, - responseType: v1_service_pb.ListDatabaseUsersResponse, - requestSerialize: serialize_teleport_terminal_v1_ListDatabaseUsersRequest, - requestDeserialize: deserialize_teleport_terminal_v1_ListDatabaseUsersRequest, - responseSerialize: serialize_teleport_terminal_v1_ListDatabaseUsersResponse, - responseDeserialize: deserialize_teleport_terminal_v1_ListDatabaseUsersResponse, - }, - // GetAllServers returns all servers -getAllServers: { - path: '/teleport.terminal.v1.TerminalService/GetAllServers', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.GetAllServersRequest, - responseType: v1_service_pb.GetAllServersResponse, - requestSerialize: serialize_teleport_terminal_v1_GetAllServersRequest, - requestDeserialize: deserialize_teleport_terminal_v1_GetAllServersRequest, - responseSerialize: serialize_teleport_terminal_v1_GetAllServersResponse, - responseDeserialize: deserialize_teleport_terminal_v1_GetAllServersResponse, - }, - // GetServers returns filtered, sorted, and paginated servers -getServers: { - path: '/teleport.terminal.v1.TerminalService/GetServers', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.GetServersRequest, - responseType: v1_service_pb.GetServersResponse, - requestSerialize: serialize_teleport_terminal_v1_GetServersRequest, - requestDeserialize: deserialize_teleport_terminal_v1_GetServersRequest, - responseSerialize: serialize_teleport_terminal_v1_GetServersResponse, - responseDeserialize: deserialize_teleport_terminal_v1_GetServersResponse, - }, - // GetAccessRequests lists filtered AccessRequests -getAccessRequests: { - path: '/teleport.terminal.v1.TerminalService/GetAccessRequests', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.GetAccessRequestsRequest, - responseType: v1_service_pb.GetAccessRequestsResponse, - requestSerialize: serialize_teleport_terminal_v1_GetAccessRequestsRequest, - requestDeserialize: deserialize_teleport_terminal_v1_GetAccessRequestsRequest, - responseSerialize: serialize_teleport_terminal_v1_GetAccessRequestsResponse, - responseDeserialize: deserialize_teleport_terminal_v1_GetAccessRequestsResponse, - }, - // GetAccessRequest retreives a single Access Request -getAccessRequest: { - path: '/teleport.terminal.v1.TerminalService/GetAccessRequest', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.GetAccessRequestRequest, - responseType: v1_service_pb.GetAccessRequestResponse, - requestSerialize: serialize_teleport_terminal_v1_GetAccessRequestRequest, - requestDeserialize: deserialize_teleport_terminal_v1_GetAccessRequestRequest, - responseSerialize: serialize_teleport_terminal_v1_GetAccessRequestResponse, - responseDeserialize: deserialize_teleport_terminal_v1_GetAccessRequestResponse, - }, - // DeleteAccessRequest deletes the access request by id -deleteAccessRequest: { - path: '/teleport.terminal.v1.TerminalService/DeleteAccessRequest', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.DeleteAccessRequestRequest, - responseType: v1_service_pb.EmptyResponse, - requestSerialize: serialize_teleport_terminal_v1_DeleteAccessRequestRequest, - requestDeserialize: deserialize_teleport_terminal_v1_DeleteAccessRequestRequest, - responseSerialize: serialize_teleport_terminal_v1_EmptyResponse, - responseDeserialize: deserialize_teleport_terminal_v1_EmptyResponse, - }, - // CreateAccessRequest creates an access request -createAccessRequest: { - path: '/teleport.terminal.v1.TerminalService/CreateAccessRequest', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.CreateAccessRequestRequest, - responseType: v1_service_pb.CreateAccessRequestResponse, - requestSerialize: serialize_teleport_terminal_v1_CreateAccessRequestRequest, - requestDeserialize: deserialize_teleport_terminal_v1_CreateAccessRequestRequest, - responseSerialize: serialize_teleport_terminal_v1_CreateAccessRequestResponse, - responseDeserialize: deserialize_teleport_terminal_v1_CreateAccessRequestResponse, - }, - // ReviewAccessRequest submits a review for an Access Request -reviewAccessRequest: { - path: '/teleport.terminal.v1.TerminalService/ReviewAccessRequest', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.ReviewAccessRequestRequest, - responseType: v1_service_pb.ReviewAccessRequestResponse, - requestSerialize: serialize_teleport_terminal_v1_ReviewAccessRequestRequest, - requestDeserialize: deserialize_teleport_terminal_v1_ReviewAccessRequestRequest, - responseSerialize: serialize_teleport_terminal_v1_ReviewAccessRequestResponse, - responseDeserialize: deserialize_teleport_terminal_v1_ReviewAccessRequestResponse, - }, - // GetRequestableRoles gets all requestable roles -getRequestableRoles: { - path: '/teleport.terminal.v1.TerminalService/GetRequestableRoles', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.GetRequestableRolesRequest, - responseType: v1_service_pb.GetRequestableRolesResponse, - requestSerialize: serialize_teleport_terminal_v1_GetRequestableRolesRequest, - requestDeserialize: deserialize_teleport_terminal_v1_GetRequestableRolesRequest, - responseSerialize: serialize_teleport_terminal_v1_GetRequestableRolesResponse, - responseDeserialize: deserialize_teleport_terminal_v1_GetRequestableRolesResponse, - }, - // AssumeRole assumes the role of the given access request -assumeRole: { - path: '/teleport.terminal.v1.TerminalService/AssumeRole', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.AssumeRoleRequest, - responseType: v1_service_pb.EmptyResponse, - requestSerialize: serialize_teleport_terminal_v1_AssumeRoleRequest, - requestDeserialize: deserialize_teleport_terminal_v1_AssumeRoleRequest, - responseSerialize: serialize_teleport_terminal_v1_EmptyResponse, - responseDeserialize: deserialize_teleport_terminal_v1_EmptyResponse, - }, - // GetAllKubes list all kubes -getAllKubes: { - path: '/teleport.terminal.v1.TerminalService/GetAllKubes', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.GetAllKubesRequest, - responseType: v1_service_pb.GetAllKubesResponse, - requestSerialize: serialize_teleport_terminal_v1_GetAllKubesRequest, - requestDeserialize: deserialize_teleport_terminal_v1_GetAllKubesRequest, - responseSerialize: serialize_teleport_terminal_v1_GetAllKubesResponse, - responseDeserialize: deserialize_teleport_terminal_v1_GetAllKubesResponse, - }, - // GetKubes returns filtered, sorted, and paginated kubes -getKubes: { - path: '/teleport.terminal.v1.TerminalService/GetKubes', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.GetKubesRequest, - responseType: v1_service_pb.GetKubesResponse, - requestSerialize: serialize_teleport_terminal_v1_GetKubesRequest, - requestDeserialize: deserialize_teleport_terminal_v1_GetKubesRequest, - responseSerialize: serialize_teleport_terminal_v1_GetKubesResponse, - responseDeserialize: deserialize_teleport_terminal_v1_GetKubesResponse, - }, - // ListApps list apps -listApps: { - path: '/teleport.terminal.v1.TerminalService/ListApps', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.ListAppsRequest, - responseType: v1_service_pb.ListAppsResponse, - requestSerialize: serialize_teleport_terminal_v1_ListAppsRequest, - requestDeserialize: deserialize_teleport_terminal_v1_ListAppsRequest, - responseSerialize: serialize_teleport_terminal_v1_ListAppsResponse, - responseDeserialize: deserialize_teleport_terminal_v1_ListAppsResponse, - }, - // AddCluster adds a cluster to profile -addCluster: { - path: '/teleport.terminal.v1.TerminalService/AddCluster', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.AddClusterRequest, - responseType: v1_cluster_pb.Cluster, - requestSerialize: serialize_teleport_terminal_v1_AddClusterRequest, - requestDeserialize: deserialize_teleport_terminal_v1_AddClusterRequest, - responseSerialize: serialize_teleport_terminal_v1_Cluster, - responseDeserialize: deserialize_teleport_terminal_v1_Cluster, - }, - // RemoveCluster removes a cluster from profile -removeCluster: { - path: '/teleport.terminal.v1.TerminalService/RemoveCluster', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.RemoveClusterRequest, - responseType: v1_service_pb.EmptyResponse, - requestSerialize: serialize_teleport_terminal_v1_RemoveClusterRequest, - requestDeserialize: deserialize_teleport_terminal_v1_RemoveClusterRequest, - responseSerialize: serialize_teleport_terminal_v1_EmptyResponse, - responseDeserialize: deserialize_teleport_terminal_v1_EmptyResponse, - }, - // ListGateways lists gateways -listGateways: { - path: '/teleport.terminal.v1.TerminalService/ListGateways', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.ListGatewaysRequest, - responseType: v1_service_pb.ListGatewaysResponse, - requestSerialize: serialize_teleport_terminal_v1_ListGatewaysRequest, - requestDeserialize: deserialize_teleport_terminal_v1_ListGatewaysRequest, - responseSerialize: serialize_teleport_terminal_v1_ListGatewaysResponse, - responseDeserialize: deserialize_teleport_terminal_v1_ListGatewaysResponse, - }, - // CreateGateway creates a gateway -createGateway: { - path: '/teleport.terminal.v1.TerminalService/CreateGateway', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.CreateGatewayRequest, - responseType: v1_gateway_pb.Gateway, - requestSerialize: serialize_teleport_terminal_v1_CreateGatewayRequest, - requestDeserialize: deserialize_teleport_terminal_v1_CreateGatewayRequest, - responseSerialize: serialize_teleport_terminal_v1_Gateway, - responseDeserialize: deserialize_teleport_terminal_v1_Gateway, - }, - // RemoveGateway removes a gateway -removeGateway: { - path: '/teleport.terminal.v1.TerminalService/RemoveGateway', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.RemoveGatewayRequest, - responseType: v1_service_pb.EmptyResponse, - requestSerialize: serialize_teleport_terminal_v1_RemoveGatewayRequest, - requestDeserialize: deserialize_teleport_terminal_v1_RemoveGatewayRequest, - responseSerialize: serialize_teleport_terminal_v1_EmptyResponse, - responseDeserialize: deserialize_teleport_terminal_v1_EmptyResponse, - }, - // RestartGateway stops a gateway and starts a new with identical parameters, keeping the -// original URI. A temporary workaround until it's possible to refresh certs in a running -// database proxy. -restartGateway: { - path: '/teleport.terminal.v1.TerminalService/RestartGateway', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.RestartGatewayRequest, - responseType: v1_service_pb.EmptyResponse, - requestSerialize: serialize_teleport_terminal_v1_RestartGatewayRequest, - requestDeserialize: deserialize_teleport_terminal_v1_RestartGatewayRequest, - responseSerialize: serialize_teleport_terminal_v1_EmptyResponse, - responseDeserialize: deserialize_teleport_terminal_v1_EmptyResponse, - }, - // SetGatewayTargetSubresourceName changes the TargetSubresourceName field of gateway.Gateway -// and returns the updated version of gateway.Gateway. -// -// In Connect this is used to update the db name of a db connection along with the CLI command. -setGatewayTargetSubresourceName: { - path: '/teleport.terminal.v1.TerminalService/SetGatewayTargetSubresourceName', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.SetGatewayTargetSubresourceNameRequest, - responseType: v1_gateway_pb.Gateway, - requestSerialize: serialize_teleport_terminal_v1_SetGatewayTargetSubresourceNameRequest, - requestDeserialize: deserialize_teleport_terminal_v1_SetGatewayTargetSubresourceNameRequest, - responseSerialize: serialize_teleport_terminal_v1_Gateway, - responseDeserialize: deserialize_teleport_terminal_v1_Gateway, - }, - // SetGatewayLocalPort starts a new gateway on the new port, stops the old gateway and then -// assigns the URI of the old gateway to the new one. It does so without fetching a new db cert. -setGatewayLocalPort: { - path: '/teleport.terminal.v1.TerminalService/SetGatewayLocalPort', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.SetGatewayLocalPortRequest, - responseType: v1_gateway_pb.Gateway, - requestSerialize: serialize_teleport_terminal_v1_SetGatewayLocalPortRequest, - requestDeserialize: deserialize_teleport_terminal_v1_SetGatewayLocalPortRequest, - responseSerialize: serialize_teleport_terminal_v1_Gateway, - responseDeserialize: deserialize_teleport_terminal_v1_Gateway, - }, - // GetAuthSettings returns cluster auth settigns -getAuthSettings: { - path: '/teleport.terminal.v1.TerminalService/GetAuthSettings', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.GetAuthSettingsRequest, - responseType: v1_auth_settings_pb.AuthSettings, - requestSerialize: serialize_teleport_terminal_v1_GetAuthSettingsRequest, - requestDeserialize: deserialize_teleport_terminal_v1_GetAuthSettingsRequest, - responseSerialize: serialize_teleport_terminal_v1_AuthSettings, - responseDeserialize: deserialize_teleport_terminal_v1_AuthSettings, - }, - // GetCluster returns cluster. Makes a network request and includes detailed -// information about enterprise features availabed on the connected auth server -getCluster: { - path: '/teleport.terminal.v1.TerminalService/GetCluster', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.GetClusterRequest, - responseType: v1_cluster_pb.Cluster, - requestSerialize: serialize_teleport_terminal_v1_GetClusterRequest, - requestDeserialize: deserialize_teleport_terminal_v1_GetClusterRequest, - responseSerialize: serialize_teleport_terminal_v1_Cluster, - responseDeserialize: deserialize_teleport_terminal_v1_Cluster, - }, - // Login logs in a user to a cluster -login: { - path: '/teleport.terminal.v1.TerminalService/Login', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.LoginRequest, - responseType: v1_service_pb.EmptyResponse, - requestSerialize: serialize_teleport_terminal_v1_LoginRequest, - requestDeserialize: deserialize_teleport_terminal_v1_LoginRequest, - responseSerialize: serialize_teleport_terminal_v1_EmptyResponse, - responseDeserialize: deserialize_teleport_terminal_v1_EmptyResponse, - }, - // LoginPasswordless logs in a user to a cluster passwordlessly. -// -// The RPC is streaming both ways and the message sequence example for hardware keys are: -// (-> means client-to-server, <- means server-to-client) -// -// Hardware keys: -// -> Init -// <- Send PasswordlessPrompt enum TAP to choose a device -// -> Receive TAP device response -// <- Send PasswordlessPrompt enum PIN -// -> Receive PIN response -// <- Send PasswordlessPrompt enum RETAP to confirm -// -> Receive RETAP device response -// <- Send list of credentials (e.g. usernames) associated with device -// -> Receive the index number associated with the selected credential in list -// <- End -loginPasswordless: { - path: '/teleport.terminal.v1.TerminalService/LoginPasswordless', - requestStream: true, - responseStream: true, - requestType: v1_service_pb.LoginPasswordlessRequest, - responseType: v1_service_pb.LoginPasswordlessResponse, - requestSerialize: serialize_teleport_terminal_v1_LoginPasswordlessRequest, - requestDeserialize: deserialize_teleport_terminal_v1_LoginPasswordlessRequest, - responseSerialize: serialize_teleport_terminal_v1_LoginPasswordlessResponse, - responseDeserialize: deserialize_teleport_terminal_v1_LoginPasswordlessResponse, - }, - // ClusterLogin logs out a user from cluster -logout: { - path: '/teleport.terminal.v1.TerminalService/Logout', - requestStream: false, - responseStream: false, - requestType: v1_service_pb.LogoutRequest, - responseType: v1_service_pb.EmptyResponse, - requestSerialize: serialize_teleport_terminal_v1_LogoutRequest, - requestDeserialize: deserialize_teleport_terminal_v1_LogoutRequest, - responseSerialize: serialize_teleport_terminal_v1_EmptyResponse, - responseDeserialize: deserialize_teleport_terminal_v1_EmptyResponse, - }, - // TransferFile sends a request to download/upload a file -transferFile: { - path: '/teleport.terminal.v1.TerminalService/TransferFile', - requestStream: false, - responseStream: true, - requestType: v1_service_pb.FileTransferRequest, - responseType: v1_service_pb.FileTransferProgress, - requestSerialize: serialize_teleport_terminal_v1_FileTransferRequest, - requestDeserialize: deserialize_teleport_terminal_v1_FileTransferRequest, - responseSerialize: serialize_teleport_terminal_v1_FileTransferProgress, - responseDeserialize: deserialize_teleport_terminal_v1_FileTransferProgress, - }, - // ReportUsageEvent allows to send usage events that are then anonymized and forwarded to prehog -reportUsageEvent: { - path: '/teleport.terminal.v1.TerminalService/ReportUsageEvent', - requestStream: false, - responseStream: false, - requestType: v1_usage_events_pb.ReportUsageEventRequest, - responseType: v1_service_pb.EmptyResponse, - requestSerialize: serialize_teleport_terminal_v1_ReportUsageEventRequest, - requestDeserialize: deserialize_teleport_terminal_v1_ReportUsageEventRequest, - responseSerialize: serialize_teleport_terminal_v1_EmptyResponse, - responseDeserialize: deserialize_teleport_terminal_v1_EmptyResponse, - }, -}; - -exports.TerminalServiceClient = grpc.makeGenericClientConstructor(TerminalServiceService); diff --git a/web/packages/teleterm/src/services/tshd/v1/service_pb.js b/web/packages/teleterm/src/services/tshd/v1/service_pb.js deleted file mode 100644 index a83d91680ef88..0000000000000 --- a/web/packages/teleterm/src/services/tshd/v1/service_pb.js +++ /dev/null @@ -1,11133 +0,0 @@ -// source: v1/service.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 || window || global || self || Function('return this')(); }).call(null); - -var v1_access_request_pb = require('../v1/access_request_pb.js'); -goog.object.extend(proto, v1_access_request_pb); -var v1_app_pb = require('../v1/app_pb.js'); -goog.object.extend(proto, v1_app_pb); -var v1_auth_settings_pb = require('../v1/auth_settings_pb.js'); -goog.object.extend(proto, v1_auth_settings_pb); -var v1_cluster_pb = require('../v1/cluster_pb.js'); -goog.object.extend(proto, v1_cluster_pb); -var v1_database_pb = require('../v1/database_pb.js'); -goog.object.extend(proto, v1_database_pb); -var v1_gateway_pb = require('../v1/gateway_pb.js'); -goog.object.extend(proto, v1_gateway_pb); -var v1_kube_pb = require('../v1/kube_pb.js'); -goog.object.extend(proto, v1_kube_pb); -var v1_server_pb = require('../v1/server_pb.js'); -goog.object.extend(proto, v1_server_pb); -var v1_usage_events_pb = require('../v1/usage_events_pb.js'); -goog.object.extend(proto, v1_usage_events_pb); -goog.exportSymbol('proto.teleport.terminal.v1.AddClusterRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.AssumeRoleRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.CreateAccessRequestRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.CreateAccessRequestResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.CreateGatewayRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.CredentialInfo', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.DeleteAccessRequestRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.EmptyResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.FileTransferDirection', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.FileTransferProgress', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.FileTransferRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetAccessRequestRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetAccessRequestResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetAccessRequestsRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetAccessRequestsResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetAllDatabasesRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetAllDatabasesResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetAllKubesRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetAllKubesResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetAllServersRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetAllServersResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetAuthSettingsRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetClusterRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetDatabasesRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetDatabasesResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetKubesRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetKubesResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetRequestableRolesRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetRequestableRolesResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetServersRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GetServersResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ListAppsRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ListAppsResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ListClustersRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ListClustersResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ListDatabaseUsersRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ListDatabaseUsersResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ListGatewaysRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ListGatewaysResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ListLeafClustersRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.LoginPasswordlessRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.LoginPasswordlessRequest.RequestCase', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.LoginPasswordlessResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.LoginRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.LoginRequest.LocalParams', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.LoginRequest.ParamsCase', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.LoginRequest.SsoParams', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.LogoutRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.PasswordlessPrompt', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.RemoveClusterRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.RemoveGatewayRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.RestartGatewayRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ReviewAccessRequestRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ReviewAccessRequestResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.SetGatewayLocalPortRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse', 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.teleport.terminal.v1.EmptyResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.EmptyResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.EmptyResponse.displayName = 'proto.teleport.terminal.v1.EmptyResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.RemoveClusterRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.RemoveClusterRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.RemoveClusterRequest.displayName = 'proto.teleport.terminal.v1.RemoveClusterRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.GetClusterRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.GetClusterRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.GetClusterRequest.displayName = 'proto.teleport.terminal.v1.GetClusterRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.LogoutRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.LogoutRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.LogoutRequest.displayName = 'proto.teleport.terminal.v1.LogoutRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.GetAccessRequestRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.GetAccessRequestRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.GetAccessRequestRequest.displayName = 'proto.teleport.terminal.v1.GetAccessRequestRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.GetAccessRequestsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.GetAccessRequestsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.GetAccessRequestsRequest.displayName = 'proto.teleport.terminal.v1.GetAccessRequestsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.GetAccessRequestResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.GetAccessRequestResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.GetAccessRequestResponse.displayName = 'proto.teleport.terminal.v1.GetAccessRequestResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.GetAccessRequestsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.GetAccessRequestsResponse.repeatedFields_, null); -}; -goog.inherits(proto.teleport.terminal.v1.GetAccessRequestsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.GetAccessRequestsResponse.displayName = 'proto.teleport.terminal.v1.GetAccessRequestsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.DeleteAccessRequestRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.DeleteAccessRequestRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.DeleteAccessRequestRequest.displayName = 'proto.teleport.terminal.v1.DeleteAccessRequestRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.CreateAccessRequestRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.CreateAccessRequestRequest.repeatedFields_, null); -}; -goog.inherits(proto.teleport.terminal.v1.CreateAccessRequestRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.CreateAccessRequestRequest.displayName = 'proto.teleport.terminal.v1.CreateAccessRequestRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.CreateAccessRequestResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.CreateAccessRequestResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.CreateAccessRequestResponse.displayName = 'proto.teleport.terminal.v1.CreateAccessRequestResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.AssumeRoleRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.AssumeRoleRequest.repeatedFields_, null); -}; -goog.inherits(proto.teleport.terminal.v1.AssumeRoleRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.AssumeRoleRequest.displayName = 'proto.teleport.terminal.v1.AssumeRoleRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.GetRequestableRolesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.GetRequestableRolesRequest.repeatedFields_, null); -}; -goog.inherits(proto.teleport.terminal.v1.GetRequestableRolesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.GetRequestableRolesRequest.displayName = 'proto.teleport.terminal.v1.GetRequestableRolesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.GetRequestableRolesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.GetRequestableRolesResponse.repeatedFields_, null); -}; -goog.inherits(proto.teleport.terminal.v1.GetRequestableRolesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.GetRequestableRolesResponse.displayName = 'proto.teleport.terminal.v1.GetRequestableRolesResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.ReviewAccessRequestRequest.repeatedFields_, null); -}; -goog.inherits(proto.teleport.terminal.v1.ReviewAccessRequestRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.ReviewAccessRequestRequest.displayName = 'proto.teleport.terminal.v1.ReviewAccessRequestRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.ReviewAccessRequestResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.ReviewAccessRequestResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.ReviewAccessRequestResponse.displayName = 'proto.teleport.terminal.v1.ReviewAccessRequestResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.CredentialInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.CredentialInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.CredentialInfo.displayName = 'proto.teleport.terminal.v1.CredentialInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.LoginPasswordlessResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.LoginPasswordlessResponse.repeatedFields_, null); -}; -goog.inherits(proto.teleport.terminal.v1.LoginPasswordlessResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.LoginPasswordlessResponse.displayName = 'proto.teleport.terminal.v1.LoginPasswordlessResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.teleport.terminal.v1.LoginPasswordlessRequest.oneofGroups_); -}; -goog.inherits(proto.teleport.terminal.v1.LoginPasswordlessRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.LoginPasswordlessRequest.displayName = 'proto.teleport.terminal.v1.LoginPasswordlessRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.displayName = 'proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.displayName = 'proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.displayName = 'proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.FileTransferRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.FileTransferRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.FileTransferRequest.displayName = 'proto.teleport.terminal.v1.FileTransferRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.FileTransferProgress = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.FileTransferProgress, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.FileTransferProgress.displayName = 'proto.teleport.terminal.v1.FileTransferProgress'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.LoginRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.teleport.terminal.v1.LoginRequest.oneofGroups_); -}; -goog.inherits(proto.teleport.terminal.v1.LoginRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.LoginRequest.displayName = 'proto.teleport.terminal.v1.LoginRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.LoginRequest.LocalParams = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.LoginRequest.LocalParams, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.LoginRequest.LocalParams.displayName = 'proto.teleport.terminal.v1.LoginRequest.LocalParams'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.LoginRequest.SsoParams = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.LoginRequest.SsoParams, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.LoginRequest.SsoParams.displayName = 'proto.teleport.terminal.v1.LoginRequest.SsoParams'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.AddClusterRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.AddClusterRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.AddClusterRequest.displayName = 'proto.teleport.terminal.v1.AddClusterRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.ListAppsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.ListAppsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.ListAppsRequest.displayName = 'proto.teleport.terminal.v1.ListAppsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.ListClustersRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.ListClustersRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.ListClustersRequest.displayName = 'proto.teleport.terminal.v1.ListClustersRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.ListClustersResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.ListClustersResponse.repeatedFields_, null); -}; -goog.inherits(proto.teleport.terminal.v1.ListClustersResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.ListClustersResponse.displayName = 'proto.teleport.terminal.v1.ListClustersResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.GetAllDatabasesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.GetAllDatabasesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.GetAllDatabasesRequest.displayName = 'proto.teleport.terminal.v1.GetAllDatabasesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.GetDatabasesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.GetDatabasesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.GetDatabasesRequest.displayName = 'proto.teleport.terminal.v1.GetDatabasesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.ListLeafClustersRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.ListLeafClustersRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.ListLeafClustersRequest.displayName = 'proto.teleport.terminal.v1.ListLeafClustersRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.GetAllDatabasesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.GetAllDatabasesResponse.repeatedFields_, null); -}; -goog.inherits(proto.teleport.terminal.v1.GetAllDatabasesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.GetAllDatabasesResponse.displayName = 'proto.teleport.terminal.v1.GetAllDatabasesResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.ListDatabaseUsersRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.ListDatabaseUsersRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.ListDatabaseUsersRequest.displayName = 'proto.teleport.terminal.v1.ListDatabaseUsersRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.ListDatabaseUsersResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.ListDatabaseUsersResponse.repeatedFields_, null); -}; -goog.inherits(proto.teleport.terminal.v1.ListDatabaseUsersResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.ListDatabaseUsersResponse.displayName = 'proto.teleport.terminal.v1.ListDatabaseUsersResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.CreateGatewayRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.CreateGatewayRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.CreateGatewayRequest.displayName = 'proto.teleport.terminal.v1.CreateGatewayRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.ListGatewaysRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.ListGatewaysRequest.repeatedFields_, null); -}; -goog.inherits(proto.teleport.terminal.v1.ListGatewaysRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.ListGatewaysRequest.displayName = 'proto.teleport.terminal.v1.ListGatewaysRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.ListGatewaysResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.ListGatewaysResponse.repeatedFields_, null); -}; -goog.inherits(proto.teleport.terminal.v1.ListGatewaysResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.ListGatewaysResponse.displayName = 'proto.teleport.terminal.v1.ListGatewaysResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.RemoveGatewayRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.RemoveGatewayRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.RemoveGatewayRequest.displayName = 'proto.teleport.terminal.v1.RemoveGatewayRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.RestartGatewayRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.RestartGatewayRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.RestartGatewayRequest.displayName = 'proto.teleport.terminal.v1.RestartGatewayRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.displayName = 'proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.SetGatewayLocalPortRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.SetGatewayLocalPortRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.SetGatewayLocalPortRequest.displayName = 'proto.teleport.terminal.v1.SetGatewayLocalPortRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.GetAllServersRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.GetAllServersRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.GetAllServersRequest.displayName = 'proto.teleport.terminal.v1.GetAllServersRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.GetAllServersResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.GetAllServersResponse.repeatedFields_, null); -}; -goog.inherits(proto.teleport.terminal.v1.GetAllServersResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.GetAllServersResponse.displayName = 'proto.teleport.terminal.v1.GetAllServersResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.GetServersRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.GetServersRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.GetServersRequest.displayName = 'proto.teleport.terminal.v1.GetServersRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.GetServersResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.GetServersResponse.repeatedFields_, null); -}; -goog.inherits(proto.teleport.terminal.v1.GetServersResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.GetServersResponse.displayName = 'proto.teleport.terminal.v1.GetServersResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.GetDatabasesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.GetDatabasesResponse.repeatedFields_, null); -}; -goog.inherits(proto.teleport.terminal.v1.GetDatabasesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.GetDatabasesResponse.displayName = 'proto.teleport.terminal.v1.GetDatabasesResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.GetAllKubesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.GetAllKubesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.GetAllKubesRequest.displayName = 'proto.teleport.terminal.v1.GetAllKubesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.GetAllKubesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.GetAllKubesResponse.repeatedFields_, null); -}; -goog.inherits(proto.teleport.terminal.v1.GetAllKubesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.GetAllKubesResponse.displayName = 'proto.teleport.terminal.v1.GetAllKubesResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.GetKubesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.GetKubesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.GetKubesRequest.displayName = 'proto.teleport.terminal.v1.GetKubesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.GetKubesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.GetKubesResponse.repeatedFields_, null); -}; -goog.inherits(proto.teleport.terminal.v1.GetKubesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.GetKubesResponse.displayName = 'proto.teleport.terminal.v1.GetKubesResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.ListAppsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.teleport.terminal.v1.ListAppsResponse.repeatedFields_, null); -}; -goog.inherits(proto.teleport.terminal.v1.ListAppsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.ListAppsResponse.displayName = 'proto.teleport.terminal.v1.ListAppsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.GetAuthSettingsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.GetAuthSettingsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.GetAuthSettingsRequest.displayName = 'proto.teleport.terminal.v1.GetAuthSettingsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.displayName = 'proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse.displayName = 'proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.EmptyResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.EmptyResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.EmptyResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.EmptyResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.EmptyResponse} - */ -proto.teleport.terminal.v1.EmptyResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.EmptyResponse; - return proto.teleport.terminal.v1.EmptyResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.EmptyResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.EmptyResponse} - */ -proto.teleport.terminal.v1.EmptyResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.EmptyResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.EmptyResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.EmptyResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.EmptyResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.RemoveClusterRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.RemoveClusterRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.RemoveClusterRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.RemoveClusterRequest.toObject = function(includeInstance, msg) { - var f, obj = { - clusterUri: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.RemoveClusterRequest} - */ -proto.teleport.terminal.v1.RemoveClusterRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.RemoveClusterRequest; - return proto.teleport.terminal.v1.RemoveClusterRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.RemoveClusterRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.RemoveClusterRequest} - */ -proto.teleport.terminal.v1.RemoveClusterRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClusterUri(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.RemoveClusterRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.RemoveClusterRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.RemoveClusterRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.RemoveClusterRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClusterUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string cluster_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.RemoveClusterRequest.prototype.getClusterUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.RemoveClusterRequest} returns this - */ -proto.teleport.terminal.v1.RemoveClusterRequest.prototype.setClusterUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.GetClusterRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetClusterRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetClusterRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetClusterRequest.toObject = function(includeInstance, msg) { - var f, obj = { - clusterUri: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetClusterRequest} - */ -proto.teleport.terminal.v1.GetClusterRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetClusterRequest; - return proto.teleport.terminal.v1.GetClusterRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetClusterRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetClusterRequest} - */ -proto.teleport.terminal.v1.GetClusterRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClusterUri(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.GetClusterRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetClusterRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetClusterRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetClusterRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClusterUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string cluster_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.GetClusterRequest.prototype.getClusterUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetClusterRequest} returns this - */ -proto.teleport.terminal.v1.GetClusterRequest.prototype.setClusterUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.LogoutRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.LogoutRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.LogoutRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.LogoutRequest.toObject = function(includeInstance, msg) { - var f, obj = { - clusterUri: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.LogoutRequest} - */ -proto.teleport.terminal.v1.LogoutRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.LogoutRequest; - return proto.teleport.terminal.v1.LogoutRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.LogoutRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.LogoutRequest} - */ -proto.teleport.terminal.v1.LogoutRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClusterUri(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.LogoutRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.LogoutRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.LogoutRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.LogoutRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClusterUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string cluster_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.LogoutRequest.prototype.getClusterUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.LogoutRequest} returns this - */ -proto.teleport.terminal.v1.LogoutRequest.prototype.setClusterUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.GetAccessRequestRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetAccessRequestRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetAccessRequestRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetAccessRequestRequest.toObject = function(includeInstance, msg) { - var f, obj = { - clusterUri: jspb.Message.getFieldWithDefault(msg, 1, ""), - accessRequestId: 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.teleport.terminal.v1.GetAccessRequestRequest} - */ -proto.teleport.terminal.v1.GetAccessRequestRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetAccessRequestRequest; - return proto.teleport.terminal.v1.GetAccessRequestRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetAccessRequestRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetAccessRequestRequest} - */ -proto.teleport.terminal.v1.GetAccessRequestRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClusterUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setAccessRequestId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.GetAccessRequestRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetAccessRequestRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetAccessRequestRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetAccessRequestRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClusterUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getAccessRequestId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string cluster_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.GetAccessRequestRequest.prototype.getClusterUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetAccessRequestRequest} returns this - */ -proto.teleport.terminal.v1.GetAccessRequestRequest.prototype.setClusterUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string access_request_id = 2; - * @return {string} - */ -proto.teleport.terminal.v1.GetAccessRequestRequest.prototype.getAccessRequestId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetAccessRequestRequest} returns this - */ -proto.teleport.terminal.v1.GetAccessRequestRequest.prototype.setAccessRequestId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.GetAccessRequestsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetAccessRequestsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetAccessRequestsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetAccessRequestsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - clusterUri: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetAccessRequestsRequest} - */ -proto.teleport.terminal.v1.GetAccessRequestsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetAccessRequestsRequest; - return proto.teleport.terminal.v1.GetAccessRequestsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetAccessRequestsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetAccessRequestsRequest} - */ -proto.teleport.terminal.v1.GetAccessRequestsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClusterUri(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.GetAccessRequestsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetAccessRequestsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetAccessRequestsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetAccessRequestsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClusterUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string cluster_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.GetAccessRequestsRequest.prototype.getClusterUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetAccessRequestsRequest} returns this - */ -proto.teleport.terminal.v1.GetAccessRequestsRequest.prototype.setClusterUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.GetAccessRequestResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetAccessRequestResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetAccessRequestResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetAccessRequestResponse.toObject = function(includeInstance, msg) { - var f, obj = { - request: (f = msg.getRequest()) && v1_access_request_pb.AccessRequest.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.teleport.terminal.v1.GetAccessRequestResponse} - */ -proto.teleport.terminal.v1.GetAccessRequestResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetAccessRequestResponse; - return proto.teleport.terminal.v1.GetAccessRequestResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetAccessRequestResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetAccessRequestResponse} - */ -proto.teleport.terminal.v1.GetAccessRequestResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new v1_access_request_pb.AccessRequest; - reader.readMessage(value,v1_access_request_pb.AccessRequest.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.GetAccessRequestResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetAccessRequestResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetAccessRequestResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetAccessRequestResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 1, - f, - v1_access_request_pb.AccessRequest.serializeBinaryToWriter - ); - } -}; - - -/** - * optional AccessRequest request = 1; - * @return {?proto.teleport.terminal.v1.AccessRequest} - */ -proto.teleport.terminal.v1.GetAccessRequestResponse.prototype.getRequest = function() { - return /** @type{?proto.teleport.terminal.v1.AccessRequest} */ ( - jspb.Message.getWrapperField(this, v1_access_request_pb.AccessRequest, 1)); -}; - - -/** - * @param {?proto.teleport.terminal.v1.AccessRequest|undefined} value - * @return {!proto.teleport.terminal.v1.GetAccessRequestResponse} returns this -*/ -proto.teleport.terminal.v1.GetAccessRequestResponse.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.GetAccessRequestResponse} returns this - */ -proto.teleport.terminal.v1.GetAccessRequestResponse.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.GetAccessRequestResponse.prototype.hasRequest = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.teleport.terminal.v1.GetAccessRequestsResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.GetAccessRequestsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetAccessRequestsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetAccessRequestsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetAccessRequestsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - requestsList: jspb.Message.toObjectList(msg.getRequestsList(), - v1_access_request_pb.AccessRequest.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.teleport.terminal.v1.GetAccessRequestsResponse} - */ -proto.teleport.terminal.v1.GetAccessRequestsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetAccessRequestsResponse; - return proto.teleport.terminal.v1.GetAccessRequestsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetAccessRequestsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetAccessRequestsResponse} - */ -proto.teleport.terminal.v1.GetAccessRequestsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new v1_access_request_pb.AccessRequest; - reader.readMessage(value,v1_access_request_pb.AccessRequest.deserializeBinaryFromReader); - msg.addRequests(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.GetAccessRequestsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetAccessRequestsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetAccessRequestsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetAccessRequestsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequestsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - v1_access_request_pb.AccessRequest.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated AccessRequest requests = 1; - * @return {!Array} - */ -proto.teleport.terminal.v1.GetAccessRequestsResponse.prototype.getRequestsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_access_request_pb.AccessRequest, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.GetAccessRequestsResponse} returns this -*/ -proto.teleport.terminal.v1.GetAccessRequestsResponse.prototype.setRequestsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.teleport.terminal.v1.AccessRequest=} opt_value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.AccessRequest} - */ -proto.teleport.terminal.v1.GetAccessRequestsResponse.prototype.addRequests = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.terminal.v1.AccessRequest, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.GetAccessRequestsResponse} returns this - */ -proto.teleport.terminal.v1.GetAccessRequestsResponse.prototype.clearRequestsList = function() { - return this.setRequestsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.DeleteAccessRequestRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.DeleteAccessRequestRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.DeleteAccessRequestRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.DeleteAccessRequestRequest.toObject = function(includeInstance, msg) { - var f, obj = { - rootClusterUri: jspb.Message.getFieldWithDefault(msg, 1, ""), - accessRequestId: 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.teleport.terminal.v1.DeleteAccessRequestRequest} - */ -proto.teleport.terminal.v1.DeleteAccessRequestRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.DeleteAccessRequestRequest; - return proto.teleport.terminal.v1.DeleteAccessRequestRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.DeleteAccessRequestRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.DeleteAccessRequestRequest} - */ -proto.teleport.terminal.v1.DeleteAccessRequestRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setRootClusterUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setAccessRequestId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.DeleteAccessRequestRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.DeleteAccessRequestRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.DeleteAccessRequestRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.DeleteAccessRequestRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRootClusterUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getAccessRequestId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string root_cluster_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.DeleteAccessRequestRequest.prototype.getRootClusterUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.DeleteAccessRequestRequest} returns this - */ -proto.teleport.terminal.v1.DeleteAccessRequestRequest.prototype.setRootClusterUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string access_request_id = 2; - * @return {string} - */ -proto.teleport.terminal.v1.DeleteAccessRequestRequest.prototype.getAccessRequestId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.DeleteAccessRequestRequest} returns this - */ -proto.teleport.terminal.v1.DeleteAccessRequestRequest.prototype.setAccessRequestId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.repeatedFields_ = [3,4,5]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.CreateAccessRequestRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.CreateAccessRequestRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.toObject = function(includeInstance, msg) { - var f, obj = { - rootClusterUri: jspb.Message.getFieldWithDefault(msg, 1, ""), - reason: jspb.Message.getFieldWithDefault(msg, 2, ""), - rolesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, - suggestedReviewersList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, - resourceIdsList: jspb.Message.toObjectList(msg.getResourceIdsList(), - v1_access_request_pb.ResourceID.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.teleport.terminal.v1.CreateAccessRequestRequest} - */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.CreateAccessRequestRequest; - return proto.teleport.terminal.v1.CreateAccessRequestRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.CreateAccessRequestRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.CreateAccessRequestRequest} - */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setRootClusterUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setReason(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addRoles(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addSuggestedReviewers(value); - break; - case 5: - var value = new v1_access_request_pb.ResourceID; - reader.readMessage(value,v1_access_request_pb.ResourceID.deserializeBinaryFromReader); - msg.addResourceIds(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.CreateAccessRequestRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.CreateAccessRequestRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRootClusterUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getReason(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getRolesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f - ); - } - f = message.getSuggestedReviewersList(); - if (f.length > 0) { - writer.writeRepeatedString( - 4, - f - ); - } - f = message.getResourceIdsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - v1_access_request_pb.ResourceID.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string root_cluster_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.getRootClusterUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.CreateAccessRequestRequest} returns this - */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.setRootClusterUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string reason = 2; - * @return {string} - */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.getReason = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.CreateAccessRequestRequest} returns this - */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.setReason = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated string roles = 3; - * @return {!Array} - */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.getRolesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.CreateAccessRequestRequest} returns this - */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.setRolesList = function(value) { - return jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.CreateAccessRequestRequest} returns this - */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.addRoles = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.CreateAccessRequestRequest} returns this - */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.clearRolesList = function() { - return this.setRolesList([]); -}; - - -/** - * repeated string suggested_reviewers = 4; - * @return {!Array} - */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.getSuggestedReviewersList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.CreateAccessRequestRequest} returns this - */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.setSuggestedReviewersList = function(value) { - return jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.CreateAccessRequestRequest} returns this - */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.addSuggestedReviewers = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.CreateAccessRequestRequest} returns this - */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.clearSuggestedReviewersList = function() { - return this.setSuggestedReviewersList([]); -}; - - -/** - * repeated ResourceID resource_ids = 5; - * @return {!Array} - */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.getResourceIdsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_access_request_pb.ResourceID, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.CreateAccessRequestRequest} returns this -*/ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.setResourceIdsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.teleport.terminal.v1.ResourceID=} opt_value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.ResourceID} - */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.addResourceIds = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.teleport.terminal.v1.ResourceID, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.CreateAccessRequestRequest} returns this - */ -proto.teleport.terminal.v1.CreateAccessRequestRequest.prototype.clearResourceIdsList = function() { - return this.setResourceIdsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.CreateAccessRequestResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.CreateAccessRequestResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.CreateAccessRequestResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.CreateAccessRequestResponse.toObject = function(includeInstance, msg) { - var f, obj = { - request: (f = msg.getRequest()) && v1_access_request_pb.AccessRequest.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.teleport.terminal.v1.CreateAccessRequestResponse} - */ -proto.teleport.terminal.v1.CreateAccessRequestResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.CreateAccessRequestResponse; - return proto.teleport.terminal.v1.CreateAccessRequestResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.CreateAccessRequestResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.CreateAccessRequestResponse} - */ -proto.teleport.terminal.v1.CreateAccessRequestResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new v1_access_request_pb.AccessRequest; - reader.readMessage(value,v1_access_request_pb.AccessRequest.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.CreateAccessRequestResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.CreateAccessRequestResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.CreateAccessRequestResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.CreateAccessRequestResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 1, - f, - v1_access_request_pb.AccessRequest.serializeBinaryToWriter - ); - } -}; - - -/** - * optional AccessRequest request = 1; - * @return {?proto.teleport.terminal.v1.AccessRequest} - */ -proto.teleport.terminal.v1.CreateAccessRequestResponse.prototype.getRequest = function() { - return /** @type{?proto.teleport.terminal.v1.AccessRequest} */ ( - jspb.Message.getWrapperField(this, v1_access_request_pb.AccessRequest, 1)); -}; - - -/** - * @param {?proto.teleport.terminal.v1.AccessRequest|undefined} value - * @return {!proto.teleport.terminal.v1.CreateAccessRequestResponse} returns this -*/ -proto.teleport.terminal.v1.CreateAccessRequestResponse.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.CreateAccessRequestResponse} returns this - */ -proto.teleport.terminal.v1.CreateAccessRequestResponse.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.CreateAccessRequestResponse.prototype.hasRequest = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.teleport.terminal.v1.AssumeRoleRequest.repeatedFields_ = [2,3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.AssumeRoleRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.AssumeRoleRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.AssumeRoleRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.AssumeRoleRequest.toObject = function(includeInstance, msg) { - var f, obj = { - rootClusterUri: jspb.Message.getFieldWithDefault(msg, 1, ""), - accessRequestIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - dropRequestIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == 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.teleport.terminal.v1.AssumeRoleRequest} - */ -proto.teleport.terminal.v1.AssumeRoleRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.AssumeRoleRequest; - return proto.teleport.terminal.v1.AssumeRoleRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.AssumeRoleRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.AssumeRoleRequest} - */ -proto.teleport.terminal.v1.AssumeRoleRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setRootClusterUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addAccessRequestIds(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addDropRequestIds(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.AssumeRoleRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.AssumeRoleRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.AssumeRoleRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.AssumeRoleRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRootClusterUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getAccessRequestIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } - f = message.getDropRequestIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f - ); - } -}; - - -/** - * optional string root_cluster_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.AssumeRoleRequest.prototype.getRootClusterUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.AssumeRoleRequest} returns this - */ -proto.teleport.terminal.v1.AssumeRoleRequest.prototype.setRootClusterUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated string access_request_ids = 2; - * @return {!Array} - */ -proto.teleport.terminal.v1.AssumeRoleRequest.prototype.getAccessRequestIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.AssumeRoleRequest} returns this - */ -proto.teleport.terminal.v1.AssumeRoleRequest.prototype.setAccessRequestIdsList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.AssumeRoleRequest} returns this - */ -proto.teleport.terminal.v1.AssumeRoleRequest.prototype.addAccessRequestIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.AssumeRoleRequest} returns this - */ -proto.teleport.terminal.v1.AssumeRoleRequest.prototype.clearAccessRequestIdsList = function() { - return this.setAccessRequestIdsList([]); -}; - - -/** - * repeated string drop_request_ids = 3; - * @return {!Array} - */ -proto.teleport.terminal.v1.AssumeRoleRequest.prototype.getDropRequestIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.AssumeRoleRequest} returns this - */ -proto.teleport.terminal.v1.AssumeRoleRequest.prototype.setDropRequestIdsList = function(value) { - return jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.AssumeRoleRequest} returns this - */ -proto.teleport.terminal.v1.AssumeRoleRequest.prototype.addDropRequestIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.AssumeRoleRequest} returns this - */ -proto.teleport.terminal.v1.AssumeRoleRequest.prototype.clearDropRequestIdsList = function() { - return this.setDropRequestIdsList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.teleport.terminal.v1.GetRequestableRolesRequest.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.GetRequestableRolesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetRequestableRolesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetRequestableRolesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetRequestableRolesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - clusterUri: jspb.Message.getFieldWithDefault(msg, 1, ""), - resourceIdsList: jspb.Message.toObjectList(msg.getResourceIdsList(), - v1_access_request_pb.ResourceID.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.teleport.terminal.v1.GetRequestableRolesRequest} - */ -proto.teleport.terminal.v1.GetRequestableRolesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetRequestableRolesRequest; - return proto.teleport.terminal.v1.GetRequestableRolesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetRequestableRolesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetRequestableRolesRequest} - */ -proto.teleport.terminal.v1.GetRequestableRolesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClusterUri(value); - break; - case 2: - var value = new v1_access_request_pb.ResourceID; - reader.readMessage(value,v1_access_request_pb.ResourceID.deserializeBinaryFromReader); - msg.addResourceIds(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.GetRequestableRolesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetRequestableRolesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetRequestableRolesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetRequestableRolesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClusterUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getResourceIdsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - v1_access_request_pb.ResourceID.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string cluster_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.GetRequestableRolesRequest.prototype.getClusterUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetRequestableRolesRequest} returns this - */ -proto.teleport.terminal.v1.GetRequestableRolesRequest.prototype.setClusterUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated ResourceID resource_ids = 2; - * @return {!Array} - */ -proto.teleport.terminal.v1.GetRequestableRolesRequest.prototype.getResourceIdsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_access_request_pb.ResourceID, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.GetRequestableRolesRequest} returns this -*/ -proto.teleport.terminal.v1.GetRequestableRolesRequest.prototype.setResourceIdsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.teleport.terminal.v1.ResourceID=} opt_value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.ResourceID} - */ -proto.teleport.terminal.v1.GetRequestableRolesRequest.prototype.addResourceIds = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.teleport.terminal.v1.ResourceID, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.GetRequestableRolesRequest} returns this - */ -proto.teleport.terminal.v1.GetRequestableRolesRequest.prototype.clearResourceIdsList = function() { - return this.setResourceIdsList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.repeatedFields_ = [1,2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetRequestableRolesResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetRequestableRolesResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.toObject = function(includeInstance, msg) { - var f, obj = { - rolesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, - applicableRolesList: (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.teleport.terminal.v1.GetRequestableRolesResponse} - */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetRequestableRolesResponse; - return proto.teleport.terminal.v1.GetRequestableRolesResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetRequestableRolesResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetRequestableRolesResponse} - */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.addRoles(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addApplicableRoles(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetRequestableRolesResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetRequestableRolesResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRolesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } - f = message.getApplicableRolesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } -}; - - -/** - * repeated string roles = 1; - * @return {!Array} - */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.prototype.getRolesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.GetRequestableRolesResponse} returns this - */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.prototype.setRolesList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.GetRequestableRolesResponse} returns this - */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.prototype.addRoles = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.GetRequestableRolesResponse} returns this - */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.prototype.clearRolesList = function() { - return this.setRolesList([]); -}; - - -/** - * repeated string applicable_roles = 2; - * @return {!Array} - */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.prototype.getApplicableRolesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.GetRequestableRolesResponse} returns this - */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.prototype.setApplicableRolesList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.GetRequestableRolesResponse} returns this - */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.prototype.addApplicableRoles = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.GetRequestableRolesResponse} returns this - */ -proto.teleport.terminal.v1.GetRequestableRolesResponse.prototype.clearApplicableRolesList = function() { - return this.setApplicableRolesList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ReviewAccessRequestRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ReviewAccessRequestRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.toObject = function(includeInstance, msg) { - var f, obj = { - rootClusterUri: jspb.Message.getFieldWithDefault(msg, 1, ""), - state: jspb.Message.getFieldWithDefault(msg, 2, ""), - reason: jspb.Message.getFieldWithDefault(msg, 3, ""), - rolesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, - accessRequestId: jspb.Message.getFieldWithDefault(msg, 5, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ReviewAccessRequestRequest} - */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ReviewAccessRequestRequest; - return proto.teleport.terminal.v1.ReviewAccessRequestRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ReviewAccessRequestRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ReviewAccessRequestRequest} - */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setRootClusterUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setState(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setReason(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addRoles(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setAccessRequestId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ReviewAccessRequestRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ReviewAccessRequestRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRootClusterUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getState(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getReason(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getRolesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 4, - f - ); - } - f = message.getAccessRequestId(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } -}; - - -/** - * optional string root_cluster_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.getRootClusterUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.ReviewAccessRequestRequest} returns this - */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.setRootClusterUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string state = 2; - * @return {string} - */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.getState = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.ReviewAccessRequestRequest} returns this - */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.setState = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string reason = 3; - * @return {string} - */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.getReason = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.ReviewAccessRequestRequest} returns this - */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.setReason = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * repeated string roles = 4; - * @return {!Array} - */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.getRolesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.ReviewAccessRequestRequest} returns this - */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.setRolesList = function(value) { - return jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.ReviewAccessRequestRequest} returns this - */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.addRoles = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.ReviewAccessRequestRequest} returns this - */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.clearRolesList = function() { - return this.setRolesList([]); -}; - - -/** - * optional string access_request_id = 5; - * @return {string} - */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.getAccessRequestId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.ReviewAccessRequestRequest} returns this - */ -proto.teleport.terminal.v1.ReviewAccessRequestRequest.prototype.setAccessRequestId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.ReviewAccessRequestResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ReviewAccessRequestResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ReviewAccessRequestResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ReviewAccessRequestResponse.toObject = function(includeInstance, msg) { - var f, obj = { - request: (f = msg.getRequest()) && v1_access_request_pb.AccessRequest.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.teleport.terminal.v1.ReviewAccessRequestResponse} - */ -proto.teleport.terminal.v1.ReviewAccessRequestResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ReviewAccessRequestResponse; - return proto.teleport.terminal.v1.ReviewAccessRequestResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ReviewAccessRequestResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ReviewAccessRequestResponse} - */ -proto.teleport.terminal.v1.ReviewAccessRequestResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new v1_access_request_pb.AccessRequest; - reader.readMessage(value,v1_access_request_pb.AccessRequest.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.ReviewAccessRequestResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ReviewAccessRequestResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ReviewAccessRequestResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ReviewAccessRequestResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 1, - f, - v1_access_request_pb.AccessRequest.serializeBinaryToWriter - ); - } -}; - - -/** - * optional AccessRequest request = 1; - * @return {?proto.teleport.terminal.v1.AccessRequest} - */ -proto.teleport.terminal.v1.ReviewAccessRequestResponse.prototype.getRequest = function() { - return /** @type{?proto.teleport.terminal.v1.AccessRequest} */ ( - jspb.Message.getWrapperField(this, v1_access_request_pb.AccessRequest, 1)); -}; - - -/** - * @param {?proto.teleport.terminal.v1.AccessRequest|undefined} value - * @return {!proto.teleport.terminal.v1.ReviewAccessRequestResponse} returns this -*/ -proto.teleport.terminal.v1.ReviewAccessRequestResponse.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ReviewAccessRequestResponse} returns this - */ -proto.teleport.terminal.v1.ReviewAccessRequestResponse.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.ReviewAccessRequestResponse.prototype.hasRequest = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.CredentialInfo.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.CredentialInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.CredentialInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.CredentialInfo.toObject = function(includeInstance, msg) { - var f, obj = { - username: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.CredentialInfo} - */ -proto.teleport.terminal.v1.CredentialInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.CredentialInfo; - return proto.teleport.terminal.v1.CredentialInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.CredentialInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.CredentialInfo} - */ -proto.teleport.terminal.v1.CredentialInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUsername(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.CredentialInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.CredentialInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.CredentialInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.CredentialInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUsername(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string username = 1; - * @return {string} - */ -proto.teleport.terminal.v1.CredentialInfo.prototype.getUsername = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.CredentialInfo} returns this - */ -proto.teleport.terminal.v1.CredentialInfo.prototype.setUsername = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.teleport.terminal.v1.LoginPasswordlessResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.LoginPasswordlessResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.LoginPasswordlessResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.LoginPasswordlessResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.LoginPasswordlessResponse.toObject = function(includeInstance, msg) { - var f, obj = { - prompt: jspb.Message.getFieldWithDefault(msg, 1, 0), - credentialsList: jspb.Message.toObjectList(msg.getCredentialsList(), - proto.teleport.terminal.v1.CredentialInfo.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.teleport.terminal.v1.LoginPasswordlessResponse} - */ -proto.teleport.terminal.v1.LoginPasswordlessResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.LoginPasswordlessResponse; - return proto.teleport.terminal.v1.LoginPasswordlessResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.LoginPasswordlessResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.LoginPasswordlessResponse} - */ -proto.teleport.terminal.v1.LoginPasswordlessResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.teleport.terminal.v1.PasswordlessPrompt} */ (reader.readEnum()); - msg.setPrompt(value); - break; - case 2: - var value = new proto.teleport.terminal.v1.CredentialInfo; - reader.readMessage(value,proto.teleport.terminal.v1.CredentialInfo.deserializeBinaryFromReader); - msg.addCredentials(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.LoginPasswordlessResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.LoginPasswordlessResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.LoginPasswordlessResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.LoginPasswordlessResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPrompt(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getCredentialsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.teleport.terminal.v1.CredentialInfo.serializeBinaryToWriter - ); - } -}; - - -/** - * optional PasswordlessPrompt prompt = 1; - * @return {!proto.teleport.terminal.v1.PasswordlessPrompt} - */ -proto.teleport.terminal.v1.LoginPasswordlessResponse.prototype.getPrompt = function() { - return /** @type {!proto.teleport.terminal.v1.PasswordlessPrompt} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.teleport.terminal.v1.PasswordlessPrompt} value - * @return {!proto.teleport.terminal.v1.LoginPasswordlessResponse} returns this - */ -proto.teleport.terminal.v1.LoginPasswordlessResponse.prototype.setPrompt = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * repeated CredentialInfo credentials = 2; - * @return {!Array} - */ -proto.teleport.terminal.v1.LoginPasswordlessResponse.prototype.getCredentialsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.teleport.terminal.v1.CredentialInfo, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.LoginPasswordlessResponse} returns this -*/ -proto.teleport.terminal.v1.LoginPasswordlessResponse.prototype.setCredentialsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.teleport.terminal.v1.CredentialInfo=} opt_value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.CredentialInfo} - */ -proto.teleport.terminal.v1.LoginPasswordlessResponse.prototype.addCredentials = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.teleport.terminal.v1.CredentialInfo, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.LoginPasswordlessResponse} returns this - */ -proto.teleport.terminal.v1.LoginPasswordlessResponse.prototype.clearCredentialsList = function() { - return this.setCredentialsList([]); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.oneofGroups_ = [[1,2,3]]; - -/** - * @enum {number} - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.RequestCase = { - REQUEST_NOT_SET: 0, - INIT: 1, - PIN: 2, - CREDENTIAL: 3 -}; - -/** - * @return {proto.teleport.terminal.v1.LoginPasswordlessRequest.RequestCase} - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.getRequestCase = function() { - return /** @type {proto.teleport.terminal.v1.LoginPasswordlessRequest.RequestCase} */(jspb.Message.computeOneofCase(this, proto.teleport.terminal.v1.LoginPasswordlessRequest.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.LoginPasswordlessRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.LoginPasswordlessRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.toObject = function(includeInstance, msg) { - var f, obj = { - init: (f = msg.getInit()) && proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.toObject(includeInstance, f), - pin: (f = msg.getPin()) && proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.toObject(includeInstance, f), - credential: (f = msg.getCredential()) && proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.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.teleport.terminal.v1.LoginPasswordlessRequest} - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.LoginPasswordlessRequest; - return proto.teleport.terminal.v1.LoginPasswordlessRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.LoginPasswordlessRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest} - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit; - reader.readMessage(value,proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.deserializeBinaryFromReader); - msg.setInit(value); - break; - case 2: - var value = new proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse; - reader.readMessage(value,proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.deserializeBinaryFromReader); - msg.setPin(value); - break; - case 3: - var value = new proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse; - reader.readMessage(value,proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.deserializeBinaryFromReader); - msg.setCredential(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.LoginPasswordlessRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.LoginPasswordlessRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getInit(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.serializeBinaryToWriter - ); - } - f = message.getPin(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.serializeBinaryToWriter - ); - } - f = message.getCredential(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.serializeBinaryToWriter - ); - } -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.toObject = function(includeInstance, msg) { - var f, obj = { - clusterUri: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit} - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit; - return proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit} - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClusterUri(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClusterUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string cluster_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.prototype.getClusterUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit} returns this - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit.prototype.setClusterUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.toObject = function(includeInstance, msg) { - var f, obj = { - pin: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse} - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse; - return proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse} - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPin(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPin(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string pin = 1; - * @return {string} - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.prototype.getPin = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse} returns this - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse.prototype.setPin = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.toObject = function(includeInstance, msg) { - var f, obj = { - index: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse} - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse; - return proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse} - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt64()); - msg.setIndex(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIndex(); - if (f !== 0) { - writer.writeInt64( - 1, - f - ); - } -}; - - -/** - * optional int64 index = 1; - * @return {number} - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.prototype.getIndex = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse} returns this - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse.prototype.setIndex = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional LoginPasswordlessRequestInit init = 1; - * @return {?proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit} - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.getInit = function() { - return /** @type{?proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit, 1)); -}; - - -/** - * @param {?proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessRequestInit|undefined} value - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest} returns this -*/ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.setInit = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.teleport.terminal.v1.LoginPasswordlessRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest} returns this - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.clearInit = function() { - return this.setInit(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.hasInit = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional LoginPasswordlessPINResponse pin = 2; - * @return {?proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse} - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.getPin = function() { - return /** @type{?proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse, 2)); -}; - - -/** - * @param {?proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessPINResponse|undefined} value - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest} returns this -*/ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.setPin = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.teleport.terminal.v1.LoginPasswordlessRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest} returns this - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.clearPin = function() { - return this.setPin(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.hasPin = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional LoginPasswordlessCredentialResponse credential = 3; - * @return {?proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse} - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.getCredential = function() { - return /** @type{?proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse, 3)); -}; - - -/** - * @param {?proto.teleport.terminal.v1.LoginPasswordlessRequest.LoginPasswordlessCredentialResponse|undefined} value - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest} returns this -*/ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.setCredential = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.teleport.terminal.v1.LoginPasswordlessRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.LoginPasswordlessRequest} returns this - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.clearCredential = function() { - return this.setCredential(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.LoginPasswordlessRequest.prototype.hasCredential = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.FileTransferRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.FileTransferRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.FileTransferRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.FileTransferRequest.toObject = function(includeInstance, msg) { - var f, obj = { - clusterUri: jspb.Message.getFieldWithDefault(msg, 1, ""), - login: jspb.Message.getFieldWithDefault(msg, 2, ""), - hostname: jspb.Message.getFieldWithDefault(msg, 3, ""), - source: jspb.Message.getFieldWithDefault(msg, 4, ""), - destination: jspb.Message.getFieldWithDefault(msg, 5, ""), - direction: jspb.Message.getFieldWithDefault(msg, 6, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.FileTransferRequest} - */ -proto.teleport.terminal.v1.FileTransferRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.FileTransferRequest; - return proto.teleport.terminal.v1.FileTransferRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.FileTransferRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.FileTransferRequest} - */ -proto.teleport.terminal.v1.FileTransferRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClusterUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setLogin(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setHostname(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setSource(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setDestination(value); - break; - case 6: - var value = /** @type {!proto.teleport.terminal.v1.FileTransferDirection} */ (reader.readEnum()); - msg.setDirection(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.FileTransferRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.FileTransferRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.FileTransferRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.FileTransferRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClusterUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getLogin(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getHostname(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getSource(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getDestination(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getDirection(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } -}; - - -/** - * optional string cluster_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.FileTransferRequest.prototype.getClusterUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.FileTransferRequest} returns this - */ -proto.teleport.terminal.v1.FileTransferRequest.prototype.setClusterUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string login = 2; - * @return {string} - */ -proto.teleport.terminal.v1.FileTransferRequest.prototype.getLogin = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.FileTransferRequest} returns this - */ -proto.teleport.terminal.v1.FileTransferRequest.prototype.setLogin = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string hostname = 3; - * @return {string} - */ -proto.teleport.terminal.v1.FileTransferRequest.prototype.getHostname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.FileTransferRequest} returns this - */ -proto.teleport.terminal.v1.FileTransferRequest.prototype.setHostname = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string source = 4; - * @return {string} - */ -proto.teleport.terminal.v1.FileTransferRequest.prototype.getSource = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.FileTransferRequest} returns this - */ -proto.teleport.terminal.v1.FileTransferRequest.prototype.setSource = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string destination = 5; - * @return {string} - */ -proto.teleport.terminal.v1.FileTransferRequest.prototype.getDestination = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.FileTransferRequest} returns this - */ -proto.teleport.terminal.v1.FileTransferRequest.prototype.setDestination = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional FileTransferDirection direction = 6; - * @return {!proto.teleport.terminal.v1.FileTransferDirection} - */ -proto.teleport.terminal.v1.FileTransferRequest.prototype.getDirection = function() { - return /** @type {!proto.teleport.terminal.v1.FileTransferDirection} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {!proto.teleport.terminal.v1.FileTransferDirection} value - * @return {!proto.teleport.terminal.v1.FileTransferRequest} returns this - */ -proto.teleport.terminal.v1.FileTransferRequest.prototype.setDirection = function(value) { - return jspb.Message.setProto3EnumField(this, 6, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.FileTransferProgress.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.FileTransferProgress.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.FileTransferProgress} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.FileTransferProgress.toObject = function(includeInstance, msg) { - var f, obj = { - percentage: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.FileTransferProgress} - */ -proto.teleport.terminal.v1.FileTransferProgress.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.FileTransferProgress; - return proto.teleport.terminal.v1.FileTransferProgress.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.FileTransferProgress} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.FileTransferProgress} - */ -proto.teleport.terminal.v1.FileTransferProgress.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPercentage(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.FileTransferProgress.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.FileTransferProgress.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.FileTransferProgress} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.FileTransferProgress.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPercentage(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } -}; - - -/** - * optional uint32 percentage = 1; - * @return {number} - */ -proto.teleport.terminal.v1.FileTransferProgress.prototype.getPercentage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.teleport.terminal.v1.FileTransferProgress} returns this - */ -proto.teleport.terminal.v1.FileTransferProgress.prototype.setPercentage = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.teleport.terminal.v1.LoginRequest.oneofGroups_ = [[2,3]]; - -/** - * @enum {number} - */ -proto.teleport.terminal.v1.LoginRequest.ParamsCase = { - PARAMS_NOT_SET: 0, - LOCAL: 2, - SSO: 3 -}; - -/** - * @return {proto.teleport.terminal.v1.LoginRequest.ParamsCase} - */ -proto.teleport.terminal.v1.LoginRequest.prototype.getParamsCase = function() { - return /** @type {proto.teleport.terminal.v1.LoginRequest.ParamsCase} */(jspb.Message.computeOneofCase(this, proto.teleport.terminal.v1.LoginRequest.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.LoginRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.LoginRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.LoginRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.LoginRequest.toObject = function(includeInstance, msg) { - var f, obj = { - clusterUri: jspb.Message.getFieldWithDefault(msg, 1, ""), - local: (f = msg.getLocal()) && proto.teleport.terminal.v1.LoginRequest.LocalParams.toObject(includeInstance, f), - sso: (f = msg.getSso()) && proto.teleport.terminal.v1.LoginRequest.SsoParams.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.teleport.terminal.v1.LoginRequest} - */ -proto.teleport.terminal.v1.LoginRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.LoginRequest; - return proto.teleport.terminal.v1.LoginRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.LoginRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.LoginRequest} - */ -proto.teleport.terminal.v1.LoginRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClusterUri(value); - break; - case 2: - var value = new proto.teleport.terminal.v1.LoginRequest.LocalParams; - reader.readMessage(value,proto.teleport.terminal.v1.LoginRequest.LocalParams.deserializeBinaryFromReader); - msg.setLocal(value); - break; - case 3: - var value = new proto.teleport.terminal.v1.LoginRequest.SsoParams; - reader.readMessage(value,proto.teleport.terminal.v1.LoginRequest.SsoParams.deserializeBinaryFromReader); - msg.setSso(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.LoginRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.LoginRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.LoginRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.LoginRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClusterUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getLocal(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.teleport.terminal.v1.LoginRequest.LocalParams.serializeBinaryToWriter - ); - } - f = message.getSso(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.teleport.terminal.v1.LoginRequest.SsoParams.serializeBinaryToWriter - ); - } -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.LoginRequest.LocalParams.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.LoginRequest.LocalParams.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.LoginRequest.LocalParams} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.LoginRequest.LocalParams.toObject = function(includeInstance, msg) { - var f, obj = { - user: jspb.Message.getFieldWithDefault(msg, 1, ""), - password: jspb.Message.getFieldWithDefault(msg, 2, ""), - token: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.LoginRequest.LocalParams} - */ -proto.teleport.terminal.v1.LoginRequest.LocalParams.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.LoginRequest.LocalParams; - return proto.teleport.terminal.v1.LoginRequest.LocalParams.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.LoginRequest.LocalParams} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.LoginRequest.LocalParams} - */ -proto.teleport.terminal.v1.LoginRequest.LocalParams.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUser(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPassword(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setToken(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.LoginRequest.LocalParams.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.LoginRequest.LocalParams.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.LoginRequest.LocalParams} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.LoginRequest.LocalParams.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUser(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPassword(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getToken(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string user = 1; - * @return {string} - */ -proto.teleport.terminal.v1.LoginRequest.LocalParams.prototype.getUser = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.LoginRequest.LocalParams} returns this - */ -proto.teleport.terminal.v1.LoginRequest.LocalParams.prototype.setUser = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string password = 2; - * @return {string} - */ -proto.teleport.terminal.v1.LoginRequest.LocalParams.prototype.getPassword = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.LoginRequest.LocalParams} returns this - */ -proto.teleport.terminal.v1.LoginRequest.LocalParams.prototype.setPassword = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string token = 3; - * @return {string} - */ -proto.teleport.terminal.v1.LoginRequest.LocalParams.prototype.getToken = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.LoginRequest.LocalParams} returns this - */ -proto.teleport.terminal.v1.LoginRequest.LocalParams.prototype.setToken = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.LoginRequest.SsoParams.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.LoginRequest.SsoParams.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.LoginRequest.SsoParams} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.LoginRequest.SsoParams.toObject = function(includeInstance, msg) { - var f, obj = { - providerType: jspb.Message.getFieldWithDefault(msg, 1, ""), - providerName: 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.teleport.terminal.v1.LoginRequest.SsoParams} - */ -proto.teleport.terminal.v1.LoginRequest.SsoParams.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.LoginRequest.SsoParams; - return proto.teleport.terminal.v1.LoginRequest.SsoParams.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.LoginRequest.SsoParams} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.LoginRequest.SsoParams} - */ -proto.teleport.terminal.v1.LoginRequest.SsoParams.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProviderType(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setProviderName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.LoginRequest.SsoParams.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.LoginRequest.SsoParams.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.LoginRequest.SsoParams} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.LoginRequest.SsoParams.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProviderType(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getProviderName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string provider_type = 1; - * @return {string} - */ -proto.teleport.terminal.v1.LoginRequest.SsoParams.prototype.getProviderType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.LoginRequest.SsoParams} returns this - */ -proto.teleport.terminal.v1.LoginRequest.SsoParams.prototype.setProviderType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string provider_name = 2; - * @return {string} - */ -proto.teleport.terminal.v1.LoginRequest.SsoParams.prototype.getProviderName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.LoginRequest.SsoParams} returns this - */ -proto.teleport.terminal.v1.LoginRequest.SsoParams.prototype.setProviderName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string cluster_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.LoginRequest.prototype.getClusterUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.LoginRequest} returns this - */ -proto.teleport.terminal.v1.LoginRequest.prototype.setClusterUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional LocalParams local = 2; - * @return {?proto.teleport.terminal.v1.LoginRequest.LocalParams} - */ -proto.teleport.terminal.v1.LoginRequest.prototype.getLocal = function() { - return /** @type{?proto.teleport.terminal.v1.LoginRequest.LocalParams} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.LoginRequest.LocalParams, 2)); -}; - - -/** - * @param {?proto.teleport.terminal.v1.LoginRequest.LocalParams|undefined} value - * @return {!proto.teleport.terminal.v1.LoginRequest} returns this -*/ -proto.teleport.terminal.v1.LoginRequest.prototype.setLocal = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.teleport.terminal.v1.LoginRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.LoginRequest} returns this - */ -proto.teleport.terminal.v1.LoginRequest.prototype.clearLocal = function() { - return this.setLocal(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.LoginRequest.prototype.hasLocal = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional SsoParams sso = 3; - * @return {?proto.teleport.terminal.v1.LoginRequest.SsoParams} - */ -proto.teleport.terminal.v1.LoginRequest.prototype.getSso = function() { - return /** @type{?proto.teleport.terminal.v1.LoginRequest.SsoParams} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.LoginRequest.SsoParams, 3)); -}; - - -/** - * @param {?proto.teleport.terminal.v1.LoginRequest.SsoParams|undefined} value - * @return {!proto.teleport.terminal.v1.LoginRequest} returns this -*/ -proto.teleport.terminal.v1.LoginRequest.prototype.setSso = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.teleport.terminal.v1.LoginRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.LoginRequest} returns this - */ -proto.teleport.terminal.v1.LoginRequest.prototype.clearSso = function() { - return this.setSso(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.LoginRequest.prototype.hasSso = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.AddClusterRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.AddClusterRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.AddClusterRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.AddClusterRequest.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.AddClusterRequest} - */ -proto.teleport.terminal.v1.AddClusterRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.AddClusterRequest; - return proto.teleport.terminal.v1.AddClusterRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.AddClusterRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.AddClusterRequest} - */ -proto.teleport.terminal.v1.AddClusterRequest.deserializeBinaryFromReader = function(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; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.AddClusterRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.AddClusterRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.AddClusterRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.AddClusterRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.teleport.terminal.v1.AddClusterRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.AddClusterRequest} returns this - */ -proto.teleport.terminal.v1.AddClusterRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.ListAppsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ListAppsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ListAppsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ListAppsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - clusterUri: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ListAppsRequest} - */ -proto.teleport.terminal.v1.ListAppsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ListAppsRequest; - return proto.teleport.terminal.v1.ListAppsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ListAppsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ListAppsRequest} - */ -proto.teleport.terminal.v1.ListAppsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClusterUri(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.ListAppsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ListAppsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ListAppsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ListAppsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClusterUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string cluster_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.ListAppsRequest.prototype.getClusterUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.ListAppsRequest} returns this - */ -proto.teleport.terminal.v1.ListAppsRequest.prototype.setClusterUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.ListClustersRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ListClustersRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ListClustersRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ListClustersRequest.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ListClustersRequest} - */ -proto.teleport.terminal.v1.ListClustersRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ListClustersRequest; - return proto.teleport.terminal.v1.ListClustersRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ListClustersRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ListClustersRequest} - */ -proto.teleport.terminal.v1.ListClustersRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.ListClustersRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ListClustersRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ListClustersRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ListClustersRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.teleport.terminal.v1.ListClustersResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.ListClustersResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ListClustersResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ListClustersResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ListClustersResponse.toObject = function(includeInstance, msg) { - var f, obj = { - clustersList: jspb.Message.toObjectList(msg.getClustersList(), - v1_cluster_pb.Cluster.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.teleport.terminal.v1.ListClustersResponse} - */ -proto.teleport.terminal.v1.ListClustersResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ListClustersResponse; - return proto.teleport.terminal.v1.ListClustersResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ListClustersResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ListClustersResponse} - */ -proto.teleport.terminal.v1.ListClustersResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new v1_cluster_pb.Cluster; - reader.readMessage(value,v1_cluster_pb.Cluster.deserializeBinaryFromReader); - msg.addClusters(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.ListClustersResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ListClustersResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ListClustersResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ListClustersResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClustersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - v1_cluster_pb.Cluster.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated Cluster clusters = 1; - * @return {!Array} - */ -proto.teleport.terminal.v1.ListClustersResponse.prototype.getClustersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_cluster_pb.Cluster, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.ListClustersResponse} returns this -*/ -proto.teleport.terminal.v1.ListClustersResponse.prototype.setClustersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.teleport.terminal.v1.Cluster=} opt_value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.Cluster} - */ -proto.teleport.terminal.v1.ListClustersResponse.prototype.addClusters = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.terminal.v1.Cluster, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.ListClustersResponse} returns this - */ -proto.teleport.terminal.v1.ListClustersResponse.prototype.clearClustersList = function() { - return this.setClustersList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.GetAllDatabasesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetAllDatabasesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetAllDatabasesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetAllDatabasesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - clusterUri: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetAllDatabasesRequest} - */ -proto.teleport.terminal.v1.GetAllDatabasesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetAllDatabasesRequest; - return proto.teleport.terminal.v1.GetAllDatabasesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetAllDatabasesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetAllDatabasesRequest} - */ -proto.teleport.terminal.v1.GetAllDatabasesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClusterUri(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.GetAllDatabasesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetAllDatabasesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetAllDatabasesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetAllDatabasesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClusterUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string cluster_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.GetAllDatabasesRequest.prototype.getClusterUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetAllDatabasesRequest} returns this - */ -proto.teleport.terminal.v1.GetAllDatabasesRequest.prototype.setClusterUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetDatabasesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetDatabasesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetDatabasesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - clusterUri: jspb.Message.getFieldWithDefault(msg, 1, ""), - limit: jspb.Message.getFieldWithDefault(msg, 2, 0), - startKey: jspb.Message.getFieldWithDefault(msg, 3, ""), - search: jspb.Message.getFieldWithDefault(msg, 4, ""), - query: jspb.Message.getFieldWithDefault(msg, 5, ""), - sortBy: jspb.Message.getFieldWithDefault(msg, 6, ""), - searchAsRoles: jspb.Message.getFieldWithDefault(msg, 7, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetDatabasesRequest} - */ -proto.teleport.terminal.v1.GetDatabasesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetDatabasesRequest; - return proto.teleport.terminal.v1.GetDatabasesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetDatabasesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetDatabasesRequest} - */ -proto.teleport.terminal.v1.GetDatabasesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClusterUri(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setLimit(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setStartKey(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setSearch(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setQuery(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setSortBy(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setSearchAsRoles(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetDatabasesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetDatabasesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetDatabasesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClusterUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getStartKey(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getSearch(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getQuery(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getSortBy(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getSearchAsRoles(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } -}; - - -/** - * optional string cluster_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.getClusterUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetDatabasesRequest} returns this - */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.setClusterUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional int32 limit = 2; - * @return {number} - */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.teleport.terminal.v1.GetDatabasesRequest} returns this - */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string start_key = 3; - * @return {string} - */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.getStartKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetDatabasesRequest} returns this - */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.setStartKey = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string search = 4; - * @return {string} - */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.getSearch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetDatabasesRequest} returns this - */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.setSearch = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string query = 5; - * @return {string} - */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.getQuery = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetDatabasesRequest} returns this - */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.setQuery = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string sort_by = 6; - * @return {string} - */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.getSortBy = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetDatabasesRequest} returns this - */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.setSortBy = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string search_as_roles = 7; - * @return {string} - */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.getSearchAsRoles = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetDatabasesRequest} returns this - */ -proto.teleport.terminal.v1.GetDatabasesRequest.prototype.setSearchAsRoles = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.ListLeafClustersRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ListLeafClustersRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ListLeafClustersRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ListLeafClustersRequest.toObject = function(includeInstance, msg) { - var f, obj = { - clusterUri: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ListLeafClustersRequest} - */ -proto.teleport.terminal.v1.ListLeafClustersRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ListLeafClustersRequest; - return proto.teleport.terminal.v1.ListLeafClustersRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ListLeafClustersRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ListLeafClustersRequest} - */ -proto.teleport.terminal.v1.ListLeafClustersRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClusterUri(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.ListLeafClustersRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ListLeafClustersRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ListLeafClustersRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ListLeafClustersRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClusterUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string cluster_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.ListLeafClustersRequest.prototype.getClusterUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.ListLeafClustersRequest} returns this - */ -proto.teleport.terminal.v1.ListLeafClustersRequest.prototype.setClusterUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.teleport.terminal.v1.GetAllDatabasesResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.GetAllDatabasesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetAllDatabasesResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetAllDatabasesResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetAllDatabasesResponse.toObject = function(includeInstance, msg) { - var f, obj = { - databasesList: jspb.Message.toObjectList(msg.getDatabasesList(), - v1_database_pb.Database.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.teleport.terminal.v1.GetAllDatabasesResponse} - */ -proto.teleport.terminal.v1.GetAllDatabasesResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetAllDatabasesResponse; - return proto.teleport.terminal.v1.GetAllDatabasesResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetAllDatabasesResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetAllDatabasesResponse} - */ -proto.teleport.terminal.v1.GetAllDatabasesResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new v1_database_pb.Database; - reader.readMessage(value,v1_database_pb.Database.deserializeBinaryFromReader); - msg.addDatabases(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.GetAllDatabasesResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetAllDatabasesResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetAllDatabasesResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetAllDatabasesResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDatabasesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - v1_database_pb.Database.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated Database databases = 1; - * @return {!Array} - */ -proto.teleport.terminal.v1.GetAllDatabasesResponse.prototype.getDatabasesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_database_pb.Database, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.GetAllDatabasesResponse} returns this -*/ -proto.teleport.terminal.v1.GetAllDatabasesResponse.prototype.setDatabasesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.teleport.terminal.v1.Database=} opt_value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.Database} - */ -proto.teleport.terminal.v1.GetAllDatabasesResponse.prototype.addDatabases = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.terminal.v1.Database, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.GetAllDatabasesResponse} returns this - */ -proto.teleport.terminal.v1.GetAllDatabasesResponse.prototype.clearDatabasesList = function() { - return this.setDatabasesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.ListDatabaseUsersRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ListDatabaseUsersRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ListDatabaseUsersRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ListDatabaseUsersRequest.toObject = function(includeInstance, msg) { - var f, obj = { - dbUri: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ListDatabaseUsersRequest} - */ -proto.teleport.terminal.v1.ListDatabaseUsersRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ListDatabaseUsersRequest; - return proto.teleport.terminal.v1.ListDatabaseUsersRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ListDatabaseUsersRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ListDatabaseUsersRequest} - */ -proto.teleport.terminal.v1.ListDatabaseUsersRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDbUri(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.ListDatabaseUsersRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ListDatabaseUsersRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ListDatabaseUsersRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ListDatabaseUsersRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDbUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string db_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.ListDatabaseUsersRequest.prototype.getDbUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.ListDatabaseUsersRequest} returns this - */ -proto.teleport.terminal.v1.ListDatabaseUsersRequest.prototype.setDbUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.teleport.terminal.v1.ListDatabaseUsersResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.ListDatabaseUsersResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ListDatabaseUsersResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ListDatabaseUsersResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ListDatabaseUsersResponse.toObject = function(includeInstance, msg) { - var f, obj = { - usersList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ListDatabaseUsersResponse} - */ -proto.teleport.terminal.v1.ListDatabaseUsersResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ListDatabaseUsersResponse; - return proto.teleport.terminal.v1.ListDatabaseUsersResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ListDatabaseUsersResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ListDatabaseUsersResponse} - */ -proto.teleport.terminal.v1.ListDatabaseUsersResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.addUsers(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.ListDatabaseUsersResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ListDatabaseUsersResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ListDatabaseUsersResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ListDatabaseUsersResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUsersList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } -}; - - -/** - * repeated string users = 1; - * @return {!Array} - */ -proto.teleport.terminal.v1.ListDatabaseUsersResponse.prototype.getUsersList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.ListDatabaseUsersResponse} returns this - */ -proto.teleport.terminal.v1.ListDatabaseUsersResponse.prototype.setUsersList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.ListDatabaseUsersResponse} returns this - */ -proto.teleport.terminal.v1.ListDatabaseUsersResponse.prototype.addUsers = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.ListDatabaseUsersResponse} returns this - */ -proto.teleport.terminal.v1.ListDatabaseUsersResponse.prototype.clearUsersList = function() { - return this.setUsersList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.CreateGatewayRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.CreateGatewayRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.CreateGatewayRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.CreateGatewayRequest.toObject = function(includeInstance, msg) { - var f, obj = { - targetUri: jspb.Message.getFieldWithDefault(msg, 1, ""), - targetUser: jspb.Message.getFieldWithDefault(msg, 2, ""), - localPort: jspb.Message.getFieldWithDefault(msg, 3, ""), - targetSubresourceName: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.CreateGatewayRequest} - */ -proto.teleport.terminal.v1.CreateGatewayRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.CreateGatewayRequest; - return proto.teleport.terminal.v1.CreateGatewayRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.CreateGatewayRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.CreateGatewayRequest} - */ -proto.teleport.terminal.v1.CreateGatewayRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setTargetUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTargetUser(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setLocalPort(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setTargetSubresourceName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.CreateGatewayRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.CreateGatewayRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.CreateGatewayRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.CreateGatewayRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTargetUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTargetUser(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getLocalPort(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getTargetSubresourceName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional string target_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.CreateGatewayRequest.prototype.getTargetUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.CreateGatewayRequest} returns this - */ -proto.teleport.terminal.v1.CreateGatewayRequest.prototype.setTargetUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string target_user = 2; - * @return {string} - */ -proto.teleport.terminal.v1.CreateGatewayRequest.prototype.getTargetUser = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.CreateGatewayRequest} returns this - */ -proto.teleport.terminal.v1.CreateGatewayRequest.prototype.setTargetUser = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string local_port = 3; - * @return {string} - */ -proto.teleport.terminal.v1.CreateGatewayRequest.prototype.getLocalPort = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.CreateGatewayRequest} returns this - */ -proto.teleport.terminal.v1.CreateGatewayRequest.prototype.setLocalPort = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string target_subresource_name = 4; - * @return {string} - */ -proto.teleport.terminal.v1.CreateGatewayRequest.prototype.getTargetSubresourceName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.CreateGatewayRequest} returns this - */ -proto.teleport.terminal.v1.CreateGatewayRequest.prototype.setTargetSubresourceName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.teleport.terminal.v1.ListGatewaysRequest.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.ListGatewaysRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ListGatewaysRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ListGatewaysRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ListGatewaysRequest.toObject = function(includeInstance, msg) { - var f, obj = { - clusterIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ListGatewaysRequest} - */ -proto.teleport.terminal.v1.ListGatewaysRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ListGatewaysRequest; - return proto.teleport.terminal.v1.ListGatewaysRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ListGatewaysRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ListGatewaysRequest} - */ -proto.teleport.terminal.v1.ListGatewaysRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.addClusterIds(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.ListGatewaysRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ListGatewaysRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ListGatewaysRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ListGatewaysRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClusterIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } -}; - - -/** - * repeated string cluster_ids = 1; - * @return {!Array} - */ -proto.teleport.terminal.v1.ListGatewaysRequest.prototype.getClusterIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.ListGatewaysRequest} returns this - */ -proto.teleport.terminal.v1.ListGatewaysRequest.prototype.setClusterIdsList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.ListGatewaysRequest} returns this - */ -proto.teleport.terminal.v1.ListGatewaysRequest.prototype.addClusterIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.ListGatewaysRequest} returns this - */ -proto.teleport.terminal.v1.ListGatewaysRequest.prototype.clearClusterIdsList = function() { - return this.setClusterIdsList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.teleport.terminal.v1.ListGatewaysResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.ListGatewaysResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ListGatewaysResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ListGatewaysResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ListGatewaysResponse.toObject = function(includeInstance, msg) { - var f, obj = { - gatewaysList: jspb.Message.toObjectList(msg.getGatewaysList(), - v1_gateway_pb.Gateway.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.teleport.terminal.v1.ListGatewaysResponse} - */ -proto.teleport.terminal.v1.ListGatewaysResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ListGatewaysResponse; - return proto.teleport.terminal.v1.ListGatewaysResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ListGatewaysResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ListGatewaysResponse} - */ -proto.teleport.terminal.v1.ListGatewaysResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new v1_gateway_pb.Gateway; - reader.readMessage(value,v1_gateway_pb.Gateway.deserializeBinaryFromReader); - msg.addGateways(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.ListGatewaysResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ListGatewaysResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ListGatewaysResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ListGatewaysResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewaysList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - v1_gateway_pb.Gateway.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated Gateway gateways = 1; - * @return {!Array} - */ -proto.teleport.terminal.v1.ListGatewaysResponse.prototype.getGatewaysList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_gateway_pb.Gateway, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.ListGatewaysResponse} returns this -*/ -proto.teleport.terminal.v1.ListGatewaysResponse.prototype.setGatewaysList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.teleport.terminal.v1.Gateway=} opt_value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.Gateway} - */ -proto.teleport.terminal.v1.ListGatewaysResponse.prototype.addGateways = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.terminal.v1.Gateway, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.ListGatewaysResponse} returns this - */ -proto.teleport.terminal.v1.ListGatewaysResponse.prototype.clearGatewaysList = function() { - return this.setGatewaysList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.RemoveGatewayRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.RemoveGatewayRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.RemoveGatewayRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.RemoveGatewayRequest.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayUri: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.RemoveGatewayRequest} - */ -proto.teleport.terminal.v1.RemoveGatewayRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.RemoveGatewayRequest; - return proto.teleport.terminal.v1.RemoveGatewayRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.RemoveGatewayRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.RemoveGatewayRequest} - */ -proto.teleport.terminal.v1.RemoveGatewayRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayUri(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.RemoveGatewayRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.RemoveGatewayRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.RemoveGatewayRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.RemoveGatewayRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string gateway_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.RemoveGatewayRequest.prototype.getGatewayUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.RemoveGatewayRequest} returns this - */ -proto.teleport.terminal.v1.RemoveGatewayRequest.prototype.setGatewayUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.RestartGatewayRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.RestartGatewayRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.RestartGatewayRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.RestartGatewayRequest.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayUri: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.RestartGatewayRequest} - */ -proto.teleport.terminal.v1.RestartGatewayRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.RestartGatewayRequest; - return proto.teleport.terminal.v1.RestartGatewayRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.RestartGatewayRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.RestartGatewayRequest} - */ -proto.teleport.terminal.v1.RestartGatewayRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayUri(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.RestartGatewayRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.RestartGatewayRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.RestartGatewayRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.RestartGatewayRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string gateway_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.RestartGatewayRequest.prototype.getGatewayUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.RestartGatewayRequest} returns this - */ -proto.teleport.terminal.v1.RestartGatewayRequest.prototype.setGatewayUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayUri: jspb.Message.getFieldWithDefault(msg, 1, ""), - targetSubresourceName: 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.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest} - */ -proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest; - return proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest} - */ -proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTargetSubresourceName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTargetSubresourceName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string gateway_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.prototype.getGatewayUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest} returns this - */ -proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.prototype.setGatewayUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string target_subresource_name = 2; - * @return {string} - */ -proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.prototype.getTargetSubresourceName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest} returns this - */ -proto.teleport.terminal.v1.SetGatewayTargetSubresourceNameRequest.prototype.setTargetSubresourceName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.SetGatewayLocalPortRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.SetGatewayLocalPortRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.SetGatewayLocalPortRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.SetGatewayLocalPortRequest.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayUri: jspb.Message.getFieldWithDefault(msg, 1, ""), - localPort: 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.teleport.terminal.v1.SetGatewayLocalPortRequest} - */ -proto.teleport.terminal.v1.SetGatewayLocalPortRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.SetGatewayLocalPortRequest; - return proto.teleport.terminal.v1.SetGatewayLocalPortRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.SetGatewayLocalPortRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.SetGatewayLocalPortRequest} - */ -proto.teleport.terminal.v1.SetGatewayLocalPortRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setLocalPort(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.SetGatewayLocalPortRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.SetGatewayLocalPortRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.SetGatewayLocalPortRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.SetGatewayLocalPortRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getLocalPort(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string gateway_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.SetGatewayLocalPortRequest.prototype.getGatewayUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.SetGatewayLocalPortRequest} returns this - */ -proto.teleport.terminal.v1.SetGatewayLocalPortRequest.prototype.setGatewayUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string local_port = 2; - * @return {string} - */ -proto.teleport.terminal.v1.SetGatewayLocalPortRequest.prototype.getLocalPort = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.SetGatewayLocalPortRequest} returns this - */ -proto.teleport.terminal.v1.SetGatewayLocalPortRequest.prototype.setLocalPort = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.GetAllServersRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetAllServersRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetAllServersRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetAllServersRequest.toObject = function(includeInstance, msg) { - var f, obj = { - clusterUri: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetAllServersRequest} - */ -proto.teleport.terminal.v1.GetAllServersRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetAllServersRequest; - return proto.teleport.terminal.v1.GetAllServersRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetAllServersRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetAllServersRequest} - */ -proto.teleport.terminal.v1.GetAllServersRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClusterUri(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.GetAllServersRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetAllServersRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetAllServersRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetAllServersRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClusterUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string cluster_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.GetAllServersRequest.prototype.getClusterUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetAllServersRequest} returns this - */ -proto.teleport.terminal.v1.GetAllServersRequest.prototype.setClusterUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.teleport.terminal.v1.GetAllServersResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.GetAllServersResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetAllServersResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetAllServersResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetAllServersResponse.toObject = function(includeInstance, msg) { - var f, obj = { - serversList: jspb.Message.toObjectList(msg.getServersList(), - v1_server_pb.Server.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.teleport.terminal.v1.GetAllServersResponse} - */ -proto.teleport.terminal.v1.GetAllServersResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetAllServersResponse; - return proto.teleport.terminal.v1.GetAllServersResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetAllServersResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetAllServersResponse} - */ -proto.teleport.terminal.v1.GetAllServersResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new v1_server_pb.Server; - reader.readMessage(value,v1_server_pb.Server.deserializeBinaryFromReader); - msg.addServers(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.GetAllServersResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetAllServersResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetAllServersResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetAllServersResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getServersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - v1_server_pb.Server.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated Server servers = 1; - * @return {!Array} - */ -proto.teleport.terminal.v1.GetAllServersResponse.prototype.getServersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_server_pb.Server, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.GetAllServersResponse} returns this -*/ -proto.teleport.terminal.v1.GetAllServersResponse.prototype.setServersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.teleport.terminal.v1.Server=} opt_value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.Server} - */ -proto.teleport.terminal.v1.GetAllServersResponse.prototype.addServers = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.terminal.v1.Server, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.GetAllServersResponse} returns this - */ -proto.teleport.terminal.v1.GetAllServersResponse.prototype.clearServersList = function() { - return this.setServersList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.GetServersRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetServersRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetServersRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetServersRequest.toObject = function(includeInstance, msg) { - var f, obj = { - clusterUri: jspb.Message.getFieldWithDefault(msg, 1, ""), - limit: jspb.Message.getFieldWithDefault(msg, 2, 0), - startKey: jspb.Message.getFieldWithDefault(msg, 3, ""), - search: jspb.Message.getFieldWithDefault(msg, 4, ""), - query: jspb.Message.getFieldWithDefault(msg, 5, ""), - sortBy: jspb.Message.getFieldWithDefault(msg, 6, ""), - searchAsRoles: jspb.Message.getFieldWithDefault(msg, 7, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetServersRequest} - */ -proto.teleport.terminal.v1.GetServersRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetServersRequest; - return proto.teleport.terminal.v1.GetServersRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetServersRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetServersRequest} - */ -proto.teleport.terminal.v1.GetServersRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClusterUri(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setLimit(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setStartKey(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setSearch(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setQuery(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setSortBy(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setSearchAsRoles(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.GetServersRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetServersRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetServersRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetServersRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClusterUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getStartKey(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getSearch(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getQuery(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getSortBy(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getSearchAsRoles(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } -}; - - -/** - * optional string cluster_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.GetServersRequest.prototype.getClusterUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetServersRequest} returns this - */ -proto.teleport.terminal.v1.GetServersRequest.prototype.setClusterUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional int32 limit = 2; - * @return {number} - */ -proto.teleport.terminal.v1.GetServersRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.teleport.terminal.v1.GetServersRequest} returns this - */ -proto.teleport.terminal.v1.GetServersRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string start_key = 3; - * @return {string} - */ -proto.teleport.terminal.v1.GetServersRequest.prototype.getStartKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetServersRequest} returns this - */ -proto.teleport.terminal.v1.GetServersRequest.prototype.setStartKey = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string search = 4; - * @return {string} - */ -proto.teleport.terminal.v1.GetServersRequest.prototype.getSearch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetServersRequest} returns this - */ -proto.teleport.terminal.v1.GetServersRequest.prototype.setSearch = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string query = 5; - * @return {string} - */ -proto.teleport.terminal.v1.GetServersRequest.prototype.getQuery = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetServersRequest} returns this - */ -proto.teleport.terminal.v1.GetServersRequest.prototype.setQuery = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string sort_by = 6; - * @return {string} - */ -proto.teleport.terminal.v1.GetServersRequest.prototype.getSortBy = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetServersRequest} returns this - */ -proto.teleport.terminal.v1.GetServersRequest.prototype.setSortBy = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string search_as_roles = 7; - * @return {string} - */ -proto.teleport.terminal.v1.GetServersRequest.prototype.getSearchAsRoles = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetServersRequest} returns this - */ -proto.teleport.terminal.v1.GetServersRequest.prototype.setSearchAsRoles = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.teleport.terminal.v1.GetServersResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.GetServersResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetServersResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetServersResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetServersResponse.toObject = function(includeInstance, msg) { - var f, obj = { - agentsList: jspb.Message.toObjectList(msg.getAgentsList(), - v1_server_pb.Server.toObject, includeInstance), - totalCount: jspb.Message.getFieldWithDefault(msg, 2, 0), - startKey: 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.teleport.terminal.v1.GetServersResponse} - */ -proto.teleport.terminal.v1.GetServersResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetServersResponse; - return proto.teleport.terminal.v1.GetServersResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetServersResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetServersResponse} - */ -proto.teleport.terminal.v1.GetServersResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new v1_server_pb.Server; - reader.readMessage(value,v1_server_pb.Server.deserializeBinaryFromReader); - msg.addAgents(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setTotalCount(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setStartKey(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.GetServersResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetServersResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetServersResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetServersResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAgentsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - v1_server_pb.Server.serializeBinaryToWriter - ); - } - f = message.getTotalCount(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getStartKey(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * repeated Server agents = 1; - * @return {!Array} - */ -proto.teleport.terminal.v1.GetServersResponse.prototype.getAgentsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_server_pb.Server, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.GetServersResponse} returns this -*/ -proto.teleport.terminal.v1.GetServersResponse.prototype.setAgentsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.teleport.terminal.v1.Server=} opt_value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.Server} - */ -proto.teleport.terminal.v1.GetServersResponse.prototype.addAgents = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.terminal.v1.Server, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.GetServersResponse} returns this - */ -proto.teleport.terminal.v1.GetServersResponse.prototype.clearAgentsList = function() { - return this.setAgentsList([]); -}; - - -/** - * optional int32 total_count = 2; - * @return {number} - */ -proto.teleport.terminal.v1.GetServersResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.teleport.terminal.v1.GetServersResponse} returns this - */ -proto.teleport.terminal.v1.GetServersResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string start_key = 3; - * @return {string} - */ -proto.teleport.terminal.v1.GetServersResponse.prototype.getStartKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetServersResponse} returns this - */ -proto.teleport.terminal.v1.GetServersResponse.prototype.setStartKey = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.teleport.terminal.v1.GetDatabasesResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.GetDatabasesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetDatabasesResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetDatabasesResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetDatabasesResponse.toObject = function(includeInstance, msg) { - var f, obj = { - agentsList: jspb.Message.toObjectList(msg.getAgentsList(), - v1_database_pb.Database.toObject, includeInstance), - totalCount: jspb.Message.getFieldWithDefault(msg, 2, 0), - startKey: 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.teleport.terminal.v1.GetDatabasesResponse} - */ -proto.teleport.terminal.v1.GetDatabasesResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetDatabasesResponse; - return proto.teleport.terminal.v1.GetDatabasesResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetDatabasesResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetDatabasesResponse} - */ -proto.teleport.terminal.v1.GetDatabasesResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new v1_database_pb.Database; - reader.readMessage(value,v1_database_pb.Database.deserializeBinaryFromReader); - msg.addAgents(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setTotalCount(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setStartKey(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.GetDatabasesResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetDatabasesResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetDatabasesResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetDatabasesResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAgentsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - v1_database_pb.Database.serializeBinaryToWriter - ); - } - f = message.getTotalCount(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getStartKey(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * repeated Database agents = 1; - * @return {!Array} - */ -proto.teleport.terminal.v1.GetDatabasesResponse.prototype.getAgentsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_database_pb.Database, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.GetDatabasesResponse} returns this -*/ -proto.teleport.terminal.v1.GetDatabasesResponse.prototype.setAgentsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.teleport.terminal.v1.Database=} opt_value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.Database} - */ -proto.teleport.terminal.v1.GetDatabasesResponse.prototype.addAgents = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.terminal.v1.Database, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.GetDatabasesResponse} returns this - */ -proto.teleport.terminal.v1.GetDatabasesResponse.prototype.clearAgentsList = function() { - return this.setAgentsList([]); -}; - - -/** - * optional int32 total_count = 2; - * @return {number} - */ -proto.teleport.terminal.v1.GetDatabasesResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.teleport.terminal.v1.GetDatabasesResponse} returns this - */ -proto.teleport.terminal.v1.GetDatabasesResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string start_key = 3; - * @return {string} - */ -proto.teleport.terminal.v1.GetDatabasesResponse.prototype.getStartKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetDatabasesResponse} returns this - */ -proto.teleport.terminal.v1.GetDatabasesResponse.prototype.setStartKey = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.GetAllKubesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetAllKubesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetAllKubesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetAllKubesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - clusterUri: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetAllKubesRequest} - */ -proto.teleport.terminal.v1.GetAllKubesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetAllKubesRequest; - return proto.teleport.terminal.v1.GetAllKubesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetAllKubesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetAllKubesRequest} - */ -proto.teleport.terminal.v1.GetAllKubesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClusterUri(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.GetAllKubesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetAllKubesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetAllKubesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetAllKubesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClusterUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string cluster_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.GetAllKubesRequest.prototype.getClusterUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetAllKubesRequest} returns this - */ -proto.teleport.terminal.v1.GetAllKubesRequest.prototype.setClusterUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.teleport.terminal.v1.GetAllKubesResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.GetAllKubesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetAllKubesResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetAllKubesResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetAllKubesResponse.toObject = function(includeInstance, msg) { - var f, obj = { - kubesList: jspb.Message.toObjectList(msg.getKubesList(), - v1_kube_pb.Kube.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.teleport.terminal.v1.GetAllKubesResponse} - */ -proto.teleport.terminal.v1.GetAllKubesResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetAllKubesResponse; - return proto.teleport.terminal.v1.GetAllKubesResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetAllKubesResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetAllKubesResponse} - */ -proto.teleport.terminal.v1.GetAllKubesResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new v1_kube_pb.Kube; - reader.readMessage(value,v1_kube_pb.Kube.deserializeBinaryFromReader); - msg.addKubes(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.GetAllKubesResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetAllKubesResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetAllKubesResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetAllKubesResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKubesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - v1_kube_pb.Kube.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated Kube kubes = 1; - * @return {!Array} - */ -proto.teleport.terminal.v1.GetAllKubesResponse.prototype.getKubesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_kube_pb.Kube, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.GetAllKubesResponse} returns this -*/ -proto.teleport.terminal.v1.GetAllKubesResponse.prototype.setKubesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.teleport.terminal.v1.Kube=} opt_value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.Kube} - */ -proto.teleport.terminal.v1.GetAllKubesResponse.prototype.addKubes = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.terminal.v1.Kube, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.GetAllKubesResponse} returns this - */ -proto.teleport.terminal.v1.GetAllKubesResponse.prototype.clearKubesList = function() { - return this.setKubesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetKubesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetKubesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetKubesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - clusterUri: jspb.Message.getFieldWithDefault(msg, 1, ""), - limit: jspb.Message.getFieldWithDefault(msg, 2, 0), - startKey: jspb.Message.getFieldWithDefault(msg, 3, ""), - search: jspb.Message.getFieldWithDefault(msg, 4, ""), - query: jspb.Message.getFieldWithDefault(msg, 5, ""), - sortBy: jspb.Message.getFieldWithDefault(msg, 6, ""), - searchAsRoles: jspb.Message.getFieldWithDefault(msg, 7, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetKubesRequest} - */ -proto.teleport.terminal.v1.GetKubesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetKubesRequest; - return proto.teleport.terminal.v1.GetKubesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetKubesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetKubesRequest} - */ -proto.teleport.terminal.v1.GetKubesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClusterUri(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setLimit(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setStartKey(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setSearch(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setQuery(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setSortBy(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setSearchAsRoles(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetKubesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetKubesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetKubesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClusterUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getStartKey(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getSearch(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getQuery(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getSortBy(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getSearchAsRoles(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } -}; - - -/** - * optional string cluster_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.getClusterUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetKubesRequest} returns this - */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.setClusterUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional int32 limit = 2; - * @return {number} - */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.teleport.terminal.v1.GetKubesRequest} returns this - */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string start_key = 3; - * @return {string} - */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.getStartKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetKubesRequest} returns this - */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.setStartKey = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string search = 4; - * @return {string} - */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.getSearch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetKubesRequest} returns this - */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.setSearch = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string query = 5; - * @return {string} - */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.getQuery = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetKubesRequest} returns this - */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.setQuery = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string sort_by = 6; - * @return {string} - */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.getSortBy = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetKubesRequest} returns this - */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.setSortBy = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string search_as_roles = 7; - * @return {string} - */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.getSearchAsRoles = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetKubesRequest} returns this - */ -proto.teleport.terminal.v1.GetKubesRequest.prototype.setSearchAsRoles = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.teleport.terminal.v1.GetKubesResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.GetKubesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetKubesResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetKubesResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetKubesResponse.toObject = function(includeInstance, msg) { - var f, obj = { - agentsList: jspb.Message.toObjectList(msg.getAgentsList(), - v1_kube_pb.Kube.toObject, includeInstance), - totalCount: jspb.Message.getFieldWithDefault(msg, 2, 0), - startKey: 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.teleport.terminal.v1.GetKubesResponse} - */ -proto.teleport.terminal.v1.GetKubesResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetKubesResponse; - return proto.teleport.terminal.v1.GetKubesResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetKubesResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetKubesResponse} - */ -proto.teleport.terminal.v1.GetKubesResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new v1_kube_pb.Kube; - reader.readMessage(value,v1_kube_pb.Kube.deserializeBinaryFromReader); - msg.addAgents(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setTotalCount(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setStartKey(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.GetKubesResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetKubesResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetKubesResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetKubesResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAgentsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - v1_kube_pb.Kube.serializeBinaryToWriter - ); - } - f = message.getTotalCount(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getStartKey(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * repeated Kube agents = 1; - * @return {!Array} - */ -proto.teleport.terminal.v1.GetKubesResponse.prototype.getAgentsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_kube_pb.Kube, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.GetKubesResponse} returns this -*/ -proto.teleport.terminal.v1.GetKubesResponse.prototype.setAgentsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.teleport.terminal.v1.Kube=} opt_value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.Kube} - */ -proto.teleport.terminal.v1.GetKubesResponse.prototype.addAgents = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.terminal.v1.Kube, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.GetKubesResponse} returns this - */ -proto.teleport.terminal.v1.GetKubesResponse.prototype.clearAgentsList = function() { - return this.setAgentsList([]); -}; - - -/** - * optional int32 total_count = 2; - * @return {number} - */ -proto.teleport.terminal.v1.GetKubesResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.teleport.terminal.v1.GetKubesResponse} returns this - */ -proto.teleport.terminal.v1.GetKubesResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string start_key = 3; - * @return {string} - */ -proto.teleport.terminal.v1.GetKubesResponse.prototype.getStartKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetKubesResponse} returns this - */ -proto.teleport.terminal.v1.GetKubesResponse.prototype.setStartKey = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.teleport.terminal.v1.ListAppsResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.ListAppsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ListAppsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ListAppsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ListAppsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - appsList: jspb.Message.toObjectList(msg.getAppsList(), - v1_app_pb.App.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.teleport.terminal.v1.ListAppsResponse} - */ -proto.teleport.terminal.v1.ListAppsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ListAppsResponse; - return proto.teleport.terminal.v1.ListAppsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ListAppsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ListAppsResponse} - */ -proto.teleport.terminal.v1.ListAppsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new v1_app_pb.App; - reader.readMessage(value,v1_app_pb.App.deserializeBinaryFromReader); - msg.addApps(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.ListAppsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ListAppsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ListAppsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ListAppsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAppsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - v1_app_pb.App.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated App apps = 1; - * @return {!Array} - */ -proto.teleport.terminal.v1.ListAppsResponse.prototype.getAppsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, v1_app_pb.App, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.teleport.terminal.v1.ListAppsResponse} returns this -*/ -proto.teleport.terminal.v1.ListAppsResponse.prototype.setAppsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.teleport.terminal.v1.App=} opt_value - * @param {number=} opt_index - * @return {!proto.teleport.terminal.v1.App} - */ -proto.teleport.terminal.v1.ListAppsResponse.prototype.addApps = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.teleport.terminal.v1.App, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.teleport.terminal.v1.ListAppsResponse} returns this - */ -proto.teleport.terminal.v1.ListAppsResponse.prototype.clearAppsList = function() { - return this.setAppsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.GetAuthSettingsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GetAuthSettingsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GetAuthSettingsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetAuthSettingsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - clusterUri: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.GetAuthSettingsRequest} - */ -proto.teleport.terminal.v1.GetAuthSettingsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GetAuthSettingsRequest; - return proto.teleport.terminal.v1.GetAuthSettingsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GetAuthSettingsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GetAuthSettingsRequest} - */ -proto.teleport.terminal.v1.GetAuthSettingsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClusterUri(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.GetAuthSettingsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GetAuthSettingsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GetAuthSettingsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GetAuthSettingsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClusterUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string cluster_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.GetAuthSettingsRequest.prototype.getClusterUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GetAuthSettingsRequest} returns this - */ -proto.teleport.terminal.v1.GetAuthSettingsRequest.prototype.setClusterUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.toObject = function(includeInstance, msg) { - var f, obj = { - address: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest} - */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest; - return proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest} - */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setAddress(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAddress(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string address = 1; - * @return {string} - */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.prototype.getAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest} returns this - */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressRequest.prototype.setAddress = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse} - */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse; - return proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse} - */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.UpdateTshdEventsServerAddressResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - -/** - * @enum {number} - */ -proto.teleport.terminal.v1.PasswordlessPrompt = { - PASSWORDLESS_PROMPT_UNSPECIFIED: 0, - PASSWORDLESS_PROMPT_PIN: 1, - PASSWORDLESS_PROMPT_TAP: 2, - PASSWORDLESS_PROMPT_CREDENTIAL: 3 -}; - -/** - * @enum {number} - */ -proto.teleport.terminal.v1.FileTransferDirection = { - FILE_TRANSFER_DIRECTION_UNSPECIFIED: 0, - FILE_TRANSFER_DIRECTION_DOWNLOAD: 1, - FILE_TRANSFER_DIRECTION_UPLOAD: 2 -}; - -goog.object.extend(exports, proto.teleport.terminal.v1); diff --git a/web/packages/teleterm/src/services/tshd/v1/tshd_events_service_grpc_pb.d.ts b/web/packages/teleterm/src/services/tshd/v1/tshd_events_service_grpc_pb.d.ts deleted file mode 100644 index 6f2f5780f2009..0000000000000 --- a/web/packages/teleterm/src/services/tshd/v1/tshd_events_service_grpc_pb.d.ts +++ /dev/null @@ -1,58 +0,0 @@ -// package: teleport.terminal.v1 -// file: v1/tshd_events_service.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "grpc"; -import * as v1_tshd_events_service_pb from "../v1/tshd_events_service_pb"; - -interface ITshdEventsServiceService extends grpc.ServiceDefinition { - relogin: ITshdEventsServiceService_IRelogin; - sendNotification: ITshdEventsServiceService_ISendNotification; -} - -interface ITshdEventsServiceService_IRelogin extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TshdEventsService/Relogin"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ITshdEventsServiceService_ISendNotification extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.TshdEventsService/SendNotification"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const TshdEventsServiceService: ITshdEventsServiceService; - -export interface ITshdEventsServiceServer { - relogin: grpc.handleUnaryCall; - sendNotification: grpc.handleUnaryCall; -} - -export interface ITshdEventsServiceClient { - relogin(request: v1_tshd_events_service_pb.ReloginRequest, callback: (error: grpc.ServiceError | null, response: v1_tshd_events_service_pb.ReloginResponse) => void): grpc.ClientUnaryCall; - relogin(request: v1_tshd_events_service_pb.ReloginRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_tshd_events_service_pb.ReloginResponse) => void): grpc.ClientUnaryCall; - relogin(request: v1_tshd_events_service_pb.ReloginRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_tshd_events_service_pb.ReloginResponse) => void): grpc.ClientUnaryCall; - sendNotification(request: v1_tshd_events_service_pb.SendNotificationRequest, callback: (error: grpc.ServiceError | null, response: v1_tshd_events_service_pb.SendNotificationResponse) => void): grpc.ClientUnaryCall; - sendNotification(request: v1_tshd_events_service_pb.SendNotificationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_tshd_events_service_pb.SendNotificationResponse) => void): grpc.ClientUnaryCall; - sendNotification(request: v1_tshd_events_service_pb.SendNotificationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_tshd_events_service_pb.SendNotificationResponse) => void): grpc.ClientUnaryCall; -} - -export class TshdEventsServiceClient extends grpc.Client implements ITshdEventsServiceClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - public relogin(request: v1_tshd_events_service_pb.ReloginRequest, callback: (error: grpc.ServiceError | null, response: v1_tshd_events_service_pb.ReloginResponse) => void): grpc.ClientUnaryCall; - public relogin(request: v1_tshd_events_service_pb.ReloginRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_tshd_events_service_pb.ReloginResponse) => void): grpc.ClientUnaryCall; - public relogin(request: v1_tshd_events_service_pb.ReloginRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_tshd_events_service_pb.ReloginResponse) => void): grpc.ClientUnaryCall; - public sendNotification(request: v1_tshd_events_service_pb.SendNotificationRequest, callback: (error: grpc.ServiceError | null, response: v1_tshd_events_service_pb.SendNotificationResponse) => void): grpc.ClientUnaryCall; - public sendNotification(request: v1_tshd_events_service_pb.SendNotificationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_tshd_events_service_pb.SendNotificationResponse) => void): grpc.ClientUnaryCall; - public sendNotification(request: v1_tshd_events_service_pb.SendNotificationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_tshd_events_service_pb.SendNotificationResponse) => void): grpc.ClientUnaryCall; -} diff --git a/web/packages/teleterm/src/services/tshd/v1/tshd_events_service_grpc_pb.js b/web/packages/teleterm/src/services/tshd/v1/tshd_events_service_grpc_pb.js deleted file mode 100644 index 9ef264c208979..0000000000000 --- a/web/packages/teleterm/src/services/tshd/v1/tshd_events_service_grpc_pb.js +++ /dev/null @@ -1,99 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -// Original file comments: -// Copyright 2022 Gravitational, Inc -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -'use strict'; -var grpc = require('@grpc/grpc-js'); -var v1_tshd_events_service_pb = require('../v1/tshd_events_service_pb.js'); - -function serialize_teleport_terminal_v1_ReloginRequest(arg) { - if (!(arg instanceof v1_tshd_events_service_pb.ReloginRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.ReloginRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_ReloginRequest(buffer_arg) { - return v1_tshd_events_service_pb.ReloginRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_ReloginResponse(arg) { - if (!(arg instanceof v1_tshd_events_service_pb.ReloginResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.ReloginResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_ReloginResponse(buffer_arg) { - return v1_tshd_events_service_pb.ReloginResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_SendNotificationRequest(arg) { - if (!(arg instanceof v1_tshd_events_service_pb.SendNotificationRequest)) { - throw new Error('Expected argument of type teleport.terminal.v1.SendNotificationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_SendNotificationRequest(buffer_arg) { - return v1_tshd_events_service_pb.SendNotificationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_teleport_terminal_v1_SendNotificationResponse(arg) { - if (!(arg instanceof v1_tshd_events_service_pb.SendNotificationResponse)) { - throw new Error('Expected argument of type teleport.terminal.v1.SendNotificationResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_teleport_terminal_v1_SendNotificationResponse(buffer_arg) { - return v1_tshd_events_service_pb.SendNotificationResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -// TshdEventsService is served by the Electron app. The tsh daemon calls this service to notify the -// app about actions that happen outside of the app itself. -var TshdEventsServiceService = exports.TshdEventsServiceService = { - // Relogin makes the Electron app display a login modal for the specific root cluster. The request -// returns a response after the relogin procedure has been successfully finished. -relogin: { - path: '/teleport.terminal.v1.TshdEventsService/Relogin', - requestStream: false, - responseStream: false, - requestType: v1_tshd_events_service_pb.ReloginRequest, - responseType: v1_tshd_events_service_pb.ReloginResponse, - requestSerialize: serialize_teleport_terminal_v1_ReloginRequest, - requestDeserialize: deserialize_teleport_terminal_v1_ReloginRequest, - responseSerialize: serialize_teleport_terminal_v1_ReloginResponse, - responseDeserialize: deserialize_teleport_terminal_v1_ReloginResponse, - }, - // SendNotification causes the Electron app to display a notification in the UI. The request -// accepts a specific message rather than a generic string so that the Electron is in control as -// to what message is displayed and how exactly it looks. -sendNotification: { - path: '/teleport.terminal.v1.TshdEventsService/SendNotification', - requestStream: false, - responseStream: false, - requestType: v1_tshd_events_service_pb.SendNotificationRequest, - responseType: v1_tshd_events_service_pb.SendNotificationResponse, - requestSerialize: serialize_teleport_terminal_v1_SendNotificationRequest, - requestDeserialize: deserialize_teleport_terminal_v1_SendNotificationRequest, - responseSerialize: serialize_teleport_terminal_v1_SendNotificationResponse, - responseDeserialize: deserialize_teleport_terminal_v1_SendNotificationResponse, - }, -}; - -exports.TshdEventsServiceClient = grpc.makeGenericClientConstructor(TshdEventsServiceService); diff --git a/web/packages/teleterm/src/services/tshd/v1/tshd_events_service_pb.d.ts b/web/packages/teleterm/src/services/tshd/v1/tshd_events_service_pb.d.ts deleted file mode 100644 index 1c1f59330ddf6..0000000000000 --- a/web/packages/teleterm/src/services/tshd/v1/tshd_events_service_pb.d.ts +++ /dev/null @@ -1,167 +0,0 @@ -// package: teleport.terminal.v1 -// file: v1/tshd_events_service.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; - -export class ReloginRequest extends jspb.Message { - getRootClusterUri(): string; - setRootClusterUri(value: string): ReloginRequest; - - - hasGatewayCertExpired(): boolean; - clearGatewayCertExpired(): void; - getGatewayCertExpired(): GatewayCertExpired | undefined; - setGatewayCertExpired(value?: GatewayCertExpired): ReloginRequest; - - - getReasonCase(): ReloginRequest.ReasonCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ReloginRequest.AsObject; - static toObject(includeInstance: boolean, msg: ReloginRequest): ReloginRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ReloginRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ReloginRequest; - static deserializeBinaryFromReader(message: ReloginRequest, reader: jspb.BinaryReader): ReloginRequest; -} - -export namespace ReloginRequest { - export type AsObject = { - rootClusterUri: string, - gatewayCertExpired?: GatewayCertExpired.AsObject, - } - - export enum ReasonCase { - REASON_NOT_SET = 0, - - GATEWAY_CERT_EXPIRED = 2, - - } - -} - -export class GatewayCertExpired extends jspb.Message { - getGatewayUri(): string; - setGatewayUri(value: string): GatewayCertExpired; - - getTargetUri(): string; - setTargetUri(value: string): GatewayCertExpired; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GatewayCertExpired.AsObject; - static toObject(includeInstance: boolean, msg: GatewayCertExpired): GatewayCertExpired.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GatewayCertExpired, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GatewayCertExpired; - static deserializeBinaryFromReader(message: GatewayCertExpired, reader: jspb.BinaryReader): GatewayCertExpired; -} - -export namespace GatewayCertExpired { - export type AsObject = { - gatewayUri: string, - targetUri: string, - } -} - -export class ReloginResponse extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ReloginResponse.AsObject; - static toObject(includeInstance: boolean, msg: ReloginResponse): ReloginResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ReloginResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ReloginResponse; - static deserializeBinaryFromReader(message: ReloginResponse, reader: jspb.BinaryReader): ReloginResponse; -} - -export namespace ReloginResponse { - export type AsObject = { - } -} - -export class SendNotificationRequest extends jspb.Message { - - hasCannotProxyGatewayConnection(): boolean; - clearCannotProxyGatewayConnection(): void; - getCannotProxyGatewayConnection(): CannotProxyGatewayConnection | undefined; - setCannotProxyGatewayConnection(value?: CannotProxyGatewayConnection): SendNotificationRequest; - - - getSubjectCase(): SendNotificationRequest.SubjectCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SendNotificationRequest.AsObject; - static toObject(includeInstance: boolean, msg: SendNotificationRequest): SendNotificationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SendNotificationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SendNotificationRequest; - static deserializeBinaryFromReader(message: SendNotificationRequest, reader: jspb.BinaryReader): SendNotificationRequest; -} - -export namespace SendNotificationRequest { - export type AsObject = { - cannotProxyGatewayConnection?: CannotProxyGatewayConnection.AsObject, - } - - export enum SubjectCase { - SUBJECT_NOT_SET = 0, - - CANNOT_PROXY_GATEWAY_CONNECTION = 1, - - } - -} - -export class CannotProxyGatewayConnection extends jspb.Message { - getGatewayUri(): string; - setGatewayUri(value: string): CannotProxyGatewayConnection; - - getTargetUri(): string; - setTargetUri(value: string): CannotProxyGatewayConnection; - - getError(): string; - setError(value: string): CannotProxyGatewayConnection; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CannotProxyGatewayConnection.AsObject; - static toObject(includeInstance: boolean, msg: CannotProxyGatewayConnection): CannotProxyGatewayConnection.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CannotProxyGatewayConnection, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CannotProxyGatewayConnection; - static deserializeBinaryFromReader(message: CannotProxyGatewayConnection, reader: jspb.BinaryReader): CannotProxyGatewayConnection; -} - -export namespace CannotProxyGatewayConnection { - export type AsObject = { - gatewayUri: string, - targetUri: string, - error: string, - } -} - -export class SendNotificationResponse extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SendNotificationResponse.AsObject; - static toObject(includeInstance: boolean, msg: SendNotificationResponse): SendNotificationResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SendNotificationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SendNotificationResponse; - static deserializeBinaryFromReader(message: SendNotificationResponse, reader: jspb.BinaryReader): SendNotificationResponse; -} - -export namespace SendNotificationResponse { - export type AsObject = { - } -} diff --git a/web/packages/teleterm/src/services/tshd/v1/tshd_events_service_pb.js b/web/packages/teleterm/src/services/tshd/v1/tshd_events_service_pb.js deleted file mode 100644 index 972ae81ea18e7..0000000000000 --- a/web/packages/teleterm/src/services/tshd/v1/tshd_events_service_pb.js +++ /dev/null @@ -1,1086 +0,0 @@ -// source: v1/tshd_events_service.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 || window || global || self || Function('return this')(); }).call(null); - -goog.exportSymbol('proto.teleport.terminal.v1.CannotProxyGatewayConnection', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.GatewayCertExpired', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ReloginRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ReloginRequest.ReasonCase', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.ReloginResponse', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.SendNotificationRequest', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.SendNotificationRequest.SubjectCase', null, global); -goog.exportSymbol('proto.teleport.terminal.v1.SendNotificationResponse', 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.teleport.terminal.v1.ReloginRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.teleport.terminal.v1.ReloginRequest.oneofGroups_); -}; -goog.inherits(proto.teleport.terminal.v1.ReloginRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.ReloginRequest.displayName = 'proto.teleport.terminal.v1.ReloginRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.GatewayCertExpired = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.GatewayCertExpired, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.GatewayCertExpired.displayName = 'proto.teleport.terminal.v1.GatewayCertExpired'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.ReloginResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.ReloginResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.ReloginResponse.displayName = 'proto.teleport.terminal.v1.ReloginResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.SendNotificationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.teleport.terminal.v1.SendNotificationRequest.oneofGroups_); -}; -goog.inherits(proto.teleport.terminal.v1.SendNotificationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.SendNotificationRequest.displayName = 'proto.teleport.terminal.v1.SendNotificationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.CannotProxyGatewayConnection = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.CannotProxyGatewayConnection, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.CannotProxyGatewayConnection.displayName = 'proto.teleport.terminal.v1.CannotProxyGatewayConnection'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.teleport.terminal.v1.SendNotificationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.SendNotificationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.SendNotificationResponse.displayName = 'proto.teleport.terminal.v1.SendNotificationResponse'; -} - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.teleport.terminal.v1.ReloginRequest.oneofGroups_ = [[2]]; - -/** - * @enum {number} - */ -proto.teleport.terminal.v1.ReloginRequest.ReasonCase = { - REASON_NOT_SET: 0, - GATEWAY_CERT_EXPIRED: 2 -}; - -/** - * @return {proto.teleport.terminal.v1.ReloginRequest.ReasonCase} - */ -proto.teleport.terminal.v1.ReloginRequest.prototype.getReasonCase = function() { - return /** @type {proto.teleport.terminal.v1.ReloginRequest.ReasonCase} */(jspb.Message.computeOneofCase(this, proto.teleport.terminal.v1.ReloginRequest.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.ReloginRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ReloginRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ReloginRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ReloginRequest.toObject = function(includeInstance, msg) { - var f, obj = { - rootClusterUri: jspb.Message.getFieldWithDefault(msg, 1, ""), - gatewayCertExpired: (f = msg.getGatewayCertExpired()) && proto.teleport.terminal.v1.GatewayCertExpired.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.teleport.terminal.v1.ReloginRequest} - */ -proto.teleport.terminal.v1.ReloginRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ReloginRequest; - return proto.teleport.terminal.v1.ReloginRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ReloginRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ReloginRequest} - */ -proto.teleport.terminal.v1.ReloginRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setRootClusterUri(value); - break; - case 2: - var value = new proto.teleport.terminal.v1.GatewayCertExpired; - reader.readMessage(value,proto.teleport.terminal.v1.GatewayCertExpired.deserializeBinaryFromReader); - msg.setGatewayCertExpired(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.ReloginRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ReloginRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ReloginRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ReloginRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRootClusterUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getGatewayCertExpired(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.teleport.terminal.v1.GatewayCertExpired.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string root_cluster_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.ReloginRequest.prototype.getRootClusterUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.ReloginRequest} returns this - */ -proto.teleport.terminal.v1.ReloginRequest.prototype.setRootClusterUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional GatewayCertExpired gateway_cert_expired = 2; - * @return {?proto.teleport.terminal.v1.GatewayCertExpired} - */ -proto.teleport.terminal.v1.ReloginRequest.prototype.getGatewayCertExpired = function() { - return /** @type{?proto.teleport.terminal.v1.GatewayCertExpired} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.GatewayCertExpired, 2)); -}; - - -/** - * @param {?proto.teleport.terminal.v1.GatewayCertExpired|undefined} value - * @return {!proto.teleport.terminal.v1.ReloginRequest} returns this -*/ -proto.teleport.terminal.v1.ReloginRequest.prototype.setGatewayCertExpired = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.teleport.terminal.v1.ReloginRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ReloginRequest} returns this - */ -proto.teleport.terminal.v1.ReloginRequest.prototype.clearGatewayCertExpired = function() { - return this.setGatewayCertExpired(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.ReloginRequest.prototype.hasGatewayCertExpired = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.GatewayCertExpired.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.GatewayCertExpired.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.GatewayCertExpired} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GatewayCertExpired.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayUri: jspb.Message.getFieldWithDefault(msg, 1, ""), - targetUri: 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.teleport.terminal.v1.GatewayCertExpired} - */ -proto.teleport.terminal.v1.GatewayCertExpired.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.GatewayCertExpired; - return proto.teleport.terminal.v1.GatewayCertExpired.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.GatewayCertExpired} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.GatewayCertExpired} - */ -proto.teleport.terminal.v1.GatewayCertExpired.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTargetUri(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.GatewayCertExpired.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.GatewayCertExpired.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.GatewayCertExpired} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.GatewayCertExpired.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTargetUri(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string gateway_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.GatewayCertExpired.prototype.getGatewayUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GatewayCertExpired} returns this - */ -proto.teleport.terminal.v1.GatewayCertExpired.prototype.setGatewayUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string target_uri = 2; - * @return {string} - */ -proto.teleport.terminal.v1.GatewayCertExpired.prototype.getTargetUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.GatewayCertExpired} returns this - */ -proto.teleport.terminal.v1.GatewayCertExpired.prototype.setTargetUri = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.ReloginResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ReloginResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ReloginResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ReloginResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.ReloginResponse} - */ -proto.teleport.terminal.v1.ReloginResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ReloginResponse; - return proto.teleport.terminal.v1.ReloginResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ReloginResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ReloginResponse} - */ -proto.teleport.terminal.v1.ReloginResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.ReloginResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ReloginResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ReloginResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ReloginResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.teleport.terminal.v1.SendNotificationRequest.oneofGroups_ = [[1]]; - -/** - * @enum {number} - */ -proto.teleport.terminal.v1.SendNotificationRequest.SubjectCase = { - SUBJECT_NOT_SET: 0, - CANNOT_PROXY_GATEWAY_CONNECTION: 1 -}; - -/** - * @return {proto.teleport.terminal.v1.SendNotificationRequest.SubjectCase} - */ -proto.teleport.terminal.v1.SendNotificationRequest.prototype.getSubjectCase = function() { - return /** @type {proto.teleport.terminal.v1.SendNotificationRequest.SubjectCase} */(jspb.Message.computeOneofCase(this, proto.teleport.terminal.v1.SendNotificationRequest.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.SendNotificationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.SendNotificationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.SendNotificationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.SendNotificationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - cannotProxyGatewayConnection: (f = msg.getCannotProxyGatewayConnection()) && proto.teleport.terminal.v1.CannotProxyGatewayConnection.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.teleport.terminal.v1.SendNotificationRequest} - */ -proto.teleport.terminal.v1.SendNotificationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.SendNotificationRequest; - return proto.teleport.terminal.v1.SendNotificationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.SendNotificationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.SendNotificationRequest} - */ -proto.teleport.terminal.v1.SendNotificationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.teleport.terminal.v1.CannotProxyGatewayConnection; - reader.readMessage(value,proto.teleport.terminal.v1.CannotProxyGatewayConnection.deserializeBinaryFromReader); - msg.setCannotProxyGatewayConnection(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.SendNotificationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.SendNotificationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.SendNotificationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.SendNotificationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCannotProxyGatewayConnection(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.teleport.terminal.v1.CannotProxyGatewayConnection.serializeBinaryToWriter - ); - } -}; - - -/** - * optional CannotProxyGatewayConnection cannot_proxy_gateway_connection = 1; - * @return {?proto.teleport.terminal.v1.CannotProxyGatewayConnection} - */ -proto.teleport.terminal.v1.SendNotificationRequest.prototype.getCannotProxyGatewayConnection = function() { - return /** @type{?proto.teleport.terminal.v1.CannotProxyGatewayConnection} */ ( - jspb.Message.getWrapperField(this, proto.teleport.terminal.v1.CannotProxyGatewayConnection, 1)); -}; - - -/** - * @param {?proto.teleport.terminal.v1.CannotProxyGatewayConnection|undefined} value - * @return {!proto.teleport.terminal.v1.SendNotificationRequest} returns this -*/ -proto.teleport.terminal.v1.SendNotificationRequest.prototype.setCannotProxyGatewayConnection = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.teleport.terminal.v1.SendNotificationRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.SendNotificationRequest} returns this - */ -proto.teleport.terminal.v1.SendNotificationRequest.prototype.clearCannotProxyGatewayConnection = function() { - return this.setCannotProxyGatewayConnection(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.SendNotificationRequest.prototype.hasCannotProxyGatewayConnection = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.CannotProxyGatewayConnection.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.CannotProxyGatewayConnection.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.CannotProxyGatewayConnection} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.CannotProxyGatewayConnection.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayUri: jspb.Message.getFieldWithDefault(msg, 1, ""), - targetUri: jspb.Message.getFieldWithDefault(msg, 2, ""), - error: 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.teleport.terminal.v1.CannotProxyGatewayConnection} - */ -proto.teleport.terminal.v1.CannotProxyGatewayConnection.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.CannotProxyGatewayConnection; - return proto.teleport.terminal.v1.CannotProxyGatewayConnection.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.CannotProxyGatewayConnection} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.CannotProxyGatewayConnection} - */ -proto.teleport.terminal.v1.CannotProxyGatewayConnection.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTargetUri(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setError(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.CannotProxyGatewayConnection.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.CannotProxyGatewayConnection.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.CannotProxyGatewayConnection} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.CannotProxyGatewayConnection.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTargetUri(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getError(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string gateway_uri = 1; - * @return {string} - */ -proto.teleport.terminal.v1.CannotProxyGatewayConnection.prototype.getGatewayUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.CannotProxyGatewayConnection} returns this - */ -proto.teleport.terminal.v1.CannotProxyGatewayConnection.prototype.setGatewayUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string target_uri = 2; - * @return {string} - */ -proto.teleport.terminal.v1.CannotProxyGatewayConnection.prototype.getTargetUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.CannotProxyGatewayConnection} returns this - */ -proto.teleport.terminal.v1.CannotProxyGatewayConnection.prototype.setTargetUri = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string error = 3; - * @return {string} - */ -proto.teleport.terminal.v1.CannotProxyGatewayConnection.prototype.getError = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.CannotProxyGatewayConnection} returns this - */ -proto.teleport.terminal.v1.CannotProxyGatewayConnection.prototype.setError = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.SendNotificationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.SendNotificationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.SendNotificationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.SendNotificationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.teleport.terminal.v1.SendNotificationResponse} - */ -proto.teleport.terminal.v1.SendNotificationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.SendNotificationResponse; - return proto.teleport.terminal.v1.SendNotificationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.SendNotificationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.SendNotificationResponse} - */ -proto.teleport.terminal.v1.SendNotificationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.SendNotificationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.SendNotificationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.SendNotificationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.SendNotificationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - -goog.object.extend(exports, proto.teleport.terminal.v1); diff --git a/web/packages/teleterm/src/services/tshd/v1/usage_events_grpc_pb.d.ts b/web/packages/teleterm/src/services/tshd/v1/usage_events_grpc_pb.d.ts deleted file mode 100644 index 1022d2c19c4f1..0000000000000 --- a/web/packages/teleterm/src/services/tshd/v1/usage_events_grpc_pb.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -// package: teleport.terminal.v1 -// file: v1/usage_events.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "grpc"; -import * as v1_usage_events_pb from "../v1/usage_events_pb"; - -interface IUsageEventsServiceService extends grpc.ServiceDefinition { - reportEvent: IUsageEventsServiceService_IReportEvent; -} - -interface IUsageEventsServiceService_IReportEvent extends grpc.MethodDefinition { - path: "/teleport.terminal.v1.UsageEventsService/ReportEvent"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const UsageEventsServiceService: IUsageEventsServiceService; - -export interface IUsageEventsServiceServer { - reportEvent: grpc.handleUnaryCall; -} - -export interface IUsageEventsServiceClient { - reportEvent(request: v1_usage_events_pb.ReportEventRequest, callback: (error: grpc.ServiceError | null, response: v1_usage_events_pb.EventReportedResponse) => void): grpc.ClientUnaryCall; - reportEvent(request: v1_usage_events_pb.ReportEventRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_usage_events_pb.EventReportedResponse) => void): grpc.ClientUnaryCall; - reportEvent(request: v1_usage_events_pb.ReportEventRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_usage_events_pb.EventReportedResponse) => void): grpc.ClientUnaryCall; -} - -export class UsageEventsServiceClient extends grpc.Client implements IUsageEventsServiceClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - public reportEvent(request: v1_usage_events_pb.ReportEventRequest, callback: (error: grpc.ServiceError | null, response: v1_usage_events_pb.EventReportedResponse) => void): grpc.ClientUnaryCall; - public reportEvent(request: v1_usage_events_pb.ReportEventRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_usage_events_pb.EventReportedResponse) => void): grpc.ClientUnaryCall; - public reportEvent(request: v1_usage_events_pb.ReportEventRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_usage_events_pb.EventReportedResponse) => void): grpc.ClientUnaryCall; -} diff --git a/web/packages/teleterm/src/services/tshd/v1/usage_events_grpc_pb.js b/web/packages/teleterm/src/services/tshd/v1/usage_events_grpc_pb.js deleted file mode 100644 index 97b3a2461dbea..0000000000000 --- a/web/packages/teleterm/src/services/tshd/v1/usage_events_grpc_pb.js +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/web/packages/teleterm/src/services/tshd/v1/usage_events_pb.js b/web/packages/teleterm/src/services/tshd/v1/usage_events_pb.js deleted file mode 100644 index 992b9da796fe0..0000000000000 --- a/web/packages/teleterm/src/services/tshd/v1/usage_events_pb.js +++ /dev/null @@ -1,223 +0,0 @@ -// source: v1/usage_events.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 || window || global || self || Function('return this')(); }).call(null); - -var prehog_v1alpha_connect_pb = require('../prehog/v1alpha/connect_pb.js'); -goog.object.extend(proto, prehog_v1alpha_connect_pb); -goog.exportSymbol('proto.teleport.terminal.v1.ReportUsageEventRequest', 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.teleport.terminal.v1.ReportUsageEventRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.teleport.terminal.v1.ReportUsageEventRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.teleport.terminal.v1.ReportUsageEventRequest.displayName = 'proto.teleport.terminal.v1.ReportUsageEventRequest'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.teleport.terminal.v1.ReportUsageEventRequest.prototype.toObject = function(opt_includeInstance) { - return proto.teleport.terminal.v1.ReportUsageEventRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.teleport.terminal.v1.ReportUsageEventRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ReportUsageEventRequest.toObject = function(includeInstance, msg) { - var f, obj = { - authClusterId: jspb.Message.getFieldWithDefault(msg, 1, ""), - prehogReq: (f = msg.getPrehogReq()) && prehog_v1alpha_connect_pb.SubmitConnectEventRequest.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.teleport.terminal.v1.ReportUsageEventRequest} - */ -proto.teleport.terminal.v1.ReportUsageEventRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.teleport.terminal.v1.ReportUsageEventRequest; - return proto.teleport.terminal.v1.ReportUsageEventRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.teleport.terminal.v1.ReportUsageEventRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.teleport.terminal.v1.ReportUsageEventRequest} - */ -proto.teleport.terminal.v1.ReportUsageEventRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setAuthClusterId(value); - break; - case 2: - var value = new prehog_v1alpha_connect_pb.SubmitConnectEventRequest; - reader.readMessage(value,prehog_v1alpha_connect_pb.SubmitConnectEventRequest.deserializeBinaryFromReader); - msg.setPrehogReq(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.teleport.terminal.v1.ReportUsageEventRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.teleport.terminal.v1.ReportUsageEventRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.teleport.terminal.v1.ReportUsageEventRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.teleport.terminal.v1.ReportUsageEventRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAuthClusterId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPrehogReq(); - if (f != null) { - writer.writeMessage( - 2, - f, - prehog_v1alpha_connect_pb.SubmitConnectEventRequest.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string auth_cluster_id = 1; - * @return {string} - */ -proto.teleport.terminal.v1.ReportUsageEventRequest.prototype.getAuthClusterId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.teleport.terminal.v1.ReportUsageEventRequest} returns this - */ -proto.teleport.terminal.v1.ReportUsageEventRequest.prototype.setAuthClusterId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional prehog.v1alpha.SubmitConnectEventRequest prehog_req = 2; - * @return {?proto.prehog.v1alpha.SubmitConnectEventRequest} - */ -proto.teleport.terminal.v1.ReportUsageEventRequest.prototype.getPrehogReq = function() { - return /** @type{?proto.prehog.v1alpha.SubmitConnectEventRequest} */ ( - jspb.Message.getWrapperField(this, prehog_v1alpha_connect_pb.SubmitConnectEventRequest, 2)); -}; - - -/** - * @param {?proto.prehog.v1alpha.SubmitConnectEventRequest|undefined} value - * @return {!proto.teleport.terminal.v1.ReportUsageEventRequest} returns this -*/ -proto.teleport.terminal.v1.ReportUsageEventRequest.prototype.setPrehogReq = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.teleport.terminal.v1.ReportUsageEventRequest} returns this - */ -proto.teleport.terminal.v1.ReportUsageEventRequest.prototype.clearPrehogReq = function() { - return this.setPrehogReq(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.teleport.terminal.v1.ReportUsageEventRequest.prototype.hasPrehogReq = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -goog.object.extend(exports, proto.teleport.terminal.v1); diff --git a/web/packages/teleterm/src/services/tshdEvents/index.ts b/web/packages/teleterm/src/services/tshdEvents/index.ts index 9446d8e414a65..4dc1d535453f5 100644 --- a/web/packages/teleterm/src/services/tshdEvents/index.ts +++ b/web/packages/teleterm/src/services/tshdEvents/index.ts @@ -1,8 +1,8 @@ import Emittery from 'emittery'; import * as grpc from '@grpc/grpc-js'; +import * as api from 'gen-proto-js/teleport/lib/teleterm/v1/tshd_events_service_pb'; +import * as apiService from 'gen-proto-js/teleport/lib/teleterm/v1/tshd_events_service_grpc_pb'; -import * as api from 'teleterm/services/tshd/v1/tshd_events_service_pb'; -import * as apiService from 'teleterm/services/tshd/v1/tshd_events_service_grpc_pb'; import * as uri from 'teleterm/ui/uri'; import Logger from 'teleterm/logger'; import { SubscribeToTshdEvent } from 'teleterm/types'; diff --git a/web/packages/teleterm/src/types.ts b/web/packages/teleterm/src/types.ts index 0ff32a3bfb0ab..a4ae3c1cc815a 100644 --- a/web/packages/teleterm/src/types.ts +++ b/web/packages/teleterm/src/types.ts @@ -1,9 +1,10 @@ +import { ITshdEventsServiceServer } from 'gen-proto-js/teleport/lib/teleterm/v1/tshd_events_service_grpc_pb'; + import { TshClient } from 'teleterm/services/tshd/types'; import { PtyServiceClient } from 'teleterm/services/pty'; import { RuntimeSettings, MainProcessClient } from 'teleterm/mainProcess/types'; import { FileStorage } from 'teleterm/services/fileStorage'; import { Logger, LoggerService } from 'teleterm/services/logger/types'; -import { ITshdEventsServiceServer } from 'teleterm/services/tshd/v1/tshd_events_service_grpc_pb'; export { Logger, diff --git a/web/packages/teleterm/src/ui/DocumentTerminal/useTshFileTransferHandlers.ts b/web/packages/teleterm/src/ui/DocumentTerminal/useTshFileTransferHandlers.ts index 75561369132f6..573ff7c624df8 100644 --- a/web/packages/teleterm/src/ui/DocumentTerminal/useTshFileTransferHandlers.ts +++ b/web/packages/teleterm/src/ui/DocumentTerminal/useTshFileTransferHandlers.ts @@ -4,7 +4,7 @@ import { } from 'shared/components/FileTransfer'; import { routing, ServerUri } from 'teleterm/ui/uri'; -import { FileTransferDirection } from 'teleterm/services/tshd/v1/service_pb'; +import { FileTransferDirection } from 'teleterm/services/tshd/types'; import { retryWithRelogin } from 'teleterm/ui/utils'; import { useAppContext } from 'teleterm/ui/appContextProvider'; import { IAppContext } from 'teleterm/ui/types'; diff --git a/web/packages/teleterm/src/ui/services/fileTransferClient/fileTransferService.ts b/web/packages/teleterm/src/ui/services/fileTransferClient/fileTransferService.ts index 299bac81df068..a5501fa2bb210 100644 --- a/web/packages/teleterm/src/ui/services/fileTransferClient/fileTransferService.ts +++ b/web/packages/teleterm/src/ui/services/fileTransferClient/fileTransferService.ts @@ -1,8 +1,11 @@ import { FileTransferListeners } from 'shared/components/FileTransfer'; -import { FileTransferRequest, TshClient } from 'teleterm/services/tshd/types'; +import { + FileTransferDirection, + FileTransferRequest, + TshClient, +} from 'teleterm/services/tshd/types'; import { UsageService } from 'teleterm/ui/services/usage'; -import { FileTransferDirection } from 'teleterm/services/tshd/v1/service_pb'; export class FileTransferService { constructor(