From 1ab2a7595219562325c9f9a1f7e9be49869bcf5d Mon Sep 17 00:00:00 2001 From: Robert Choi Date: Tue, 10 Aug 2021 01:13:15 +0000 Subject: [PATCH 1/5] add python binding and rename proto package to share it among multiple languages --- Makefile | 4 +- README.md | 14 +- go.mod | 2 +- go.sum | 13 +- protos/cluster_lcm.proto | 4 +- protos/common.proto | 4 +- protos/contract.proto | 4 +- protos/info.proto | 6 +- {pbgo => tks_pb}/cluster_lcm.pb.go | 141 +- {pbgo => tks_pb}/cluster_lcm_grpc.pb.go | 20 +- {pbgo => tks_pb}/common.pb.go | 406 +++--- {pbgo => tks_pb}/contract.pb.go | 485 ++++--- {pbgo => tks_pb}/contract_grpc.pb.go | 32 +- {pbgo => tks_pb}/info.pb.go | 652 +++++---- {pbgo => tks_pb}/info_grpc.pb.go | 84 +- .../mock/mock_cluster_lcm_grpc.pb.go | 0 .../mock/mock_contract_grpc.pb.go | 0 {pbgo => tks_pb}/mock/mock_info_grpc.pb.go | 35 + tks_pb_python/cluster_lcm_pb2.py | 293 ++++ tks_pb_python/cluster_lcm_pb2_grpc.py | 173 +++ tks_pb_python/common_pb2.py | 980 +++++++++++++ tks_pb_python/common_pb2_grpc.py | 4 + tks_pb_python/contract_pb2.py | 1029 +++++++++++++ tks_pb_python/contract_pb2_grpc.py | 274 ++++ tks_pb_python/info_pb2.py | 1293 +++++++++++++++++ tks_pb_python/info_pb2_grpc.py | 746 ++++++++++ 26 files changed, 5771 insertions(+), 927 deletions(-) rename {pbgo => tks_pb}/cluster_lcm.pb.go (62%) rename {pbgo => tks_pb}/cluster_lcm_grpc.pb.go (93%) rename {pbgo => tks_pb}/common.pb.go (64%) rename {pbgo => tks_pb}/contract.pb.go (65%) rename {pbgo => tks_pb}/contract_grpc.pb.go (92%) rename {pbgo => tks_pb}/info.pb.go (61%) rename {pbgo => tks_pb}/info_grpc.pb.go (92%) rename {pbgo => tks_pb}/mock/mock_cluster_lcm_grpc.pb.go (100%) rename {pbgo => tks_pb}/mock/mock_contract_grpc.pb.go (100%) rename {pbgo => tks_pb}/mock/mock_info_grpc.pb.go (96%) create mode 100644 tks_pb_python/cluster_lcm_pb2.py create mode 100644 tks_pb_python/cluster_lcm_pb2_grpc.py create mode 100644 tks_pb_python/common_pb2.py create mode 100644 tks_pb_python/common_pb2_grpc.py create mode 100644 tks_pb_python/contract_pb2.py create mode 100644 tks_pb_python/contract_pb2_grpc.py create mode 100644 tks_pb_python/info_pb2.py create mode 100644 tks_pb_python/info_pb2_grpc.py diff --git a/Makefile b/Makefile index 16a81d0..3af9e2a 100644 --- a/Makefile +++ b/Makefile @@ -27,8 +27,8 @@ $(PROTOC_GEN_GO): go get -u github.com/golang/protobuf/protoc-gen-go generate: protos | $(PROTOC_GEN_GO) $(PROTOC) - protoc --proto_path=protos --go_out=pbgo --go_opt=paths=source_relative \ - --go-grpc_out=pbgo --go-grpc_opt=paths=source_relative \ + protoc --proto_path=protos --go_out=tks_pb --go_opt=paths=source_relative \ + --go-grpc_out=tks_pb --go-grpc_opt=paths=source_relative \ protos/*.proto # This is a "phony" target - an alias for the above command, so "make build" diff --git a/README.md b/README.md index 46a7802..02251c0 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,18 @@ If there are no errors, `.pb.go` files would be generated in `pbgo/` directory. ```console $ make build go get -u github.com/golang/protobuf/protoc-gen-go -protoc --proto_path=protos --go_out=pbgo --go_opt=paths=source_relative protos/*.proto +protoc --proto_path=protos --go_out=tks_pb --go_opt=paths=source_relative protos/*.proto -$ ls pbgo +$ ls tks_pb common.pb.go contract.pb.go ``` + +### Generate python binding for grpc client +You can generate python binding using following command. +```console +$ pip3 install grpcio grpcio-tools +$ python3 -m grpc_tools.protoc -I./protos --python_out=./tks_pb_python --grpc_python_out=./tks_pb_python protos/*.proto + +$ ls tks_pb_python +cluster_lcm_pb2.py cluster_lcm_pb2_grpc.py ... contract_pb2.py contract_pb2_grpc.py info_pb2.py info_pb2_grpc.py +``` diff --git a/go.mod b/go.mod index 091e2fe..26de3bb 100644 --- a/go.mod +++ b/go.mod @@ -7,5 +7,5 @@ require ( github.com/golang/protobuf v1.5.2 google.golang.org/grpc v1.38.0 // indirect google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0 // indirect - google.golang.org/protobuf v1.27.1 + google.golang.org/protobuf v1.26.0 ) diff --git a/go.sum b/go.sum index 01deeaf..d00d510 100644 --- a/go.sum +++ b/go.sum @@ -10,8 +10,6 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.m github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.5.0 h1:jlYHihg//f7RRwuPfptm04yp4s7O6Kw8EZiVYIGcH0g= -github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= @@ -45,16 +43,14 @@ golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.2 h1:Gz96sIWK3OalVv/I/qNygP42zyoKp3xptRVCWRFEBvo= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859 h1:R/3boaszxrf1GEUWTVDzSKVwLmSJpwZ1yqXm8j0v2QI= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 h1:4nGaVu0QrbjT/AK2PRLuQfQuh6DJve+pELhqTdAj3x0= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -63,15 +59,14 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d h1:+R4KGOnez64A81RvjARKc4UT5/tI9ujCIVX+P5KiHuI= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007 h1:gG67DSER+11cZvqIMb8S8bt0vZtiN6xWYARwirrOSfE= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -79,11 +74,9 @@ golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3 golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.1.1 h1:wGiQel/hW0NnEkJUk8lbzkX2gFJU6PFxf1v5OlCfuOs= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -99,8 +92,6 @@ google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQ google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.38.0 h1:/9BgsAsa5nWe26HqOlvlgJnqBuktYOLCgjCPqsa56W0= google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= -google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0 h1:M1YKkFIboKNieVO5DLUEVzQfGwJD30Nv2jfUgzb5UcE= -google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= diff --git a/protos/cluster_lcm.proto b/protos/cluster_lcm.proto index df39b8c..42d263c 100644 --- a/protos/cluster_lcm.proto +++ b/protos/cluster_lcm.proto @@ -3,11 +3,11 @@ */ syntax = "proto3"; -package pbgo; +package tks_pb; import "common.proto"; -option go_package = "github.com/openinfradev/tks-proto/pbgo"; +option go_package = "github.com/sktelecom/tks-proto/tks_pb"; // ClusterLcmService is a service to manage cluster's document. service ClusterLcmService { diff --git a/protos/common.proto b/protos/common.proto index 6c23736..8ce9926 100644 --- a/protos/common.proto +++ b/protos/common.proto @@ -3,11 +3,11 @@ when communicating between TKS services. */ syntax = "proto3"; -package pbgo; +package tks_pb; import "google/protobuf/timestamp.proto"; -option go_package = "github.com/openinfradev/tks-proto/pbgo"; +option go_package = "github.com/sktelecom/tks-proto/tks_pb"; // Code is a response code for gRpc request. enum Code { diff --git a/protos/contract.proto b/protos/contract.proto index 81e7b3e..17ad737 100644 --- a/protos/contract.proto +++ b/protos/contract.proto @@ -3,12 +3,12 @@ */ syntax = "proto3"; -package pbgo; +package tks_pb; import "common.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "github.com/openinfradev/tks-proto/pbgo"; +option go_package = "github.com/sktelecom/tks-proto/tks_pb"; // ContractService is a service to manage contract's document. service ContractService { diff --git a/protos/info.proto b/protos/info.proto index 0246da3..3a8b9f5 100644 --- a/protos/info.proto +++ b/protos/info.proto @@ -3,12 +3,12 @@ */ syntax = "proto3"; -package pbgo; +package tks_pb; import "common.proto"; import "google/protobuf/empty.proto"; -option go_package = "github.com/openinfradev/tks-proto/pbgo"; +option go_package = "github.com/sktelecom/tks-proto/tks_pb"; // ClusterInfoService is a service to manage cluster info document. service ClusterInfoService { @@ -211,7 +211,7 @@ message UpdateAppGroupStatusRequest { AppGroupStatus status = 2; } -// UpdateAppRequest updates an information of application such as endpoints. +// UpdateAppRequest updates information of application such as endpoints. message UpdateAppRequest { // app_group_id is the application group id. string app_group_id = 1; diff --git a/pbgo/cluster_lcm.pb.go b/tks_pb/cluster_lcm.pb.go similarity index 62% rename from pbgo/cluster_lcm.pb.go rename to tks_pb/cluster_lcm.pb.go index a86c50b..b6d4f80 100644 --- a/pbgo/cluster_lcm.pb.go +++ b/tks_pb/cluster_lcm.pb.go @@ -7,7 +7,7 @@ // protoc v3.17.3 // source: cluster_lcm.proto -package pbgo +package tks_pb import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -277,58 +277,59 @@ var File_cluster_lcm_proto protoreflect.FileDescriptor var file_cluster_lcm_proto_rawDesc = []byte{ 0x0a, 0x11, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x6c, 0x63, 0x6d, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x70, 0x62, 0x67, 0x6f, 0x1a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, - 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x89, 0x01, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, - 0x64, 0x12, 0x15, 0x0a, 0x06, 0x63, 0x73, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x63, 0x73, 0x70, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x04, - 0x63, 0x6f, 0x6e, 0x66, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x67, - 0x6f, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x52, 0x04, 0x63, - 0x6f, 0x6e, 0x66, 0x22, 0x86, 0x01, 0x0a, 0x13, 0x53, 0x63, 0x61, 0x6c, 0x65, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x61, - 0x73, 0x74, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x0e, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x72, 0x65, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x77, 0x6f, - 0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x22, 0x48, 0x0a, 0x17, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2d, 0x0a, 0x0a, 0x61, 0x70, 0x70, 0x5f, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, - 0x67, 0x6f, 0x2e, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x09, 0x61, 0x70, 0x70, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x22, 0x5e, 0x0a, 0x19, 0x55, 0x6e, 0x69, 0x6e, 0x73, 0x74, - 0x61, 0x6c, 0x6c, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, - 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x70, 0x70, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x49, 0x64, 0x73, 0x32, 0xaf, 0x02, 0x0a, 0x11, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x4c, 0x63, 0x6d, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x40, 0x0a, 0x0d, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1a, 0x2e, - 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x70, 0x62, 0x67, 0x6f, - 0x2e, 0x49, 0x44, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x41, - 0x0a, 0x0c, 0x53, 0x63, 0x61, 0x6c, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x19, - 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x53, 0x63, 0x61, 0x6c, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x67, 0x6f, - 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x46, 0x0a, 0x10, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x41, 0x70, 0x70, 0x47, - 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x49, 0x6e, 0x73, + 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x1a, 0x0c, 0x63, 0x6f, 0x6d, + 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8b, 0x01, 0x0a, 0x14, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, + 0x74, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x63, 0x73, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x73, 0x70, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x27, + 0x0a, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, + 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, + 0x66, 0x52, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x22, 0x86, 0x01, 0x0a, 0x13, 0x53, 0x63, 0x61, 0x6c, + 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x27, + 0x0a, 0x0f, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x52, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x77, 0x6f, 0x72, 0x6b, 0x65, + 0x72, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, + 0x22, 0x4a, 0x0a, 0x17, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x41, 0x70, 0x70, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x0a, 0x61, + 0x70, 0x70, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x10, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x52, 0x09, 0x61, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x22, 0x5e, 0x0a, 0x19, + 0x55, 0x6e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x70, 0x70, 0x5f, + 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x0b, 0x61, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x73, 0x32, 0xbf, 0x02, 0x0a, + 0x11, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4c, 0x63, 0x6d, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x12, 0x1c, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x13, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x49, 0x44, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x0c, 0x53, 0x63, 0x61, 0x6c, + 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, + 0x62, 0x2e, 0x53, 0x63, 0x61, 0x6c, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x53, + 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x4a, 0x0a, 0x10, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, + 0x75, 0x70, 0x73, 0x12, 0x1f, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x49, 0x44, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x12, 0x55, 0x6e, 0x69, - 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, - 0x1f, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, - 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x28, 0x5a, 0x26, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x69, 0x6e, 0x66, 0x72, 0x61, - 0x64, 0x65, 0x76, 0x2f, 0x74, 0x6b, 0x73, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x62, - 0x67, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x49, 0x44, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x12, 0x55, + 0x6e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x73, 0x12, 0x21, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x73, + 0x74, 0x61, 0x6c, 0x6c, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x53, 0x69, + 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x27, + 0x5a, 0x25, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6b, 0x74, + 0x65, 0x6c, 0x65, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x6b, 0x73, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2f, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -345,26 +346,26 @@ func file_cluster_lcm_proto_rawDescGZIP() []byte { var file_cluster_lcm_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_cluster_lcm_proto_goTypes = []interface{}{ - (*CreateClusterRequest)(nil), // 0: pbgo.CreateClusterRequest - (*ScaleClusterRequest)(nil), // 1: pbgo.ScaleClusterRequest - (*InstallAppGroupsRequest)(nil), // 2: pbgo.InstallAppGroupsRequest - (*UninstallAppGroupsRequest)(nil), // 3: pbgo.UninstallAppGroupsRequest - (*ClusterConf)(nil), // 4: pbgo.ClusterConf - (*AppGroup)(nil), // 5: pbgo.AppGroup - (*IDsResponse)(nil), // 6: pbgo.IDsResponse - (*SimpleResponse)(nil), // 7: pbgo.SimpleResponse + (*CreateClusterRequest)(nil), // 0: tks_pb.CreateClusterRequest + (*ScaleClusterRequest)(nil), // 1: tks_pb.ScaleClusterRequest + (*InstallAppGroupsRequest)(nil), // 2: tks_pb.InstallAppGroupsRequest + (*UninstallAppGroupsRequest)(nil), // 3: tks_pb.UninstallAppGroupsRequest + (*ClusterConf)(nil), // 4: tks_pb.ClusterConf + (*AppGroup)(nil), // 5: tks_pb.AppGroup + (*IDsResponse)(nil), // 6: tks_pb.IDsResponse + (*SimpleResponse)(nil), // 7: tks_pb.SimpleResponse } var file_cluster_lcm_proto_depIdxs = []int32{ - 4, // 0: pbgo.CreateClusterRequest.conf:type_name -> pbgo.ClusterConf - 5, // 1: pbgo.InstallAppGroupsRequest.app_groups:type_name -> pbgo.AppGroup - 0, // 2: pbgo.ClusterLcmService.CreateCluster:input_type -> pbgo.CreateClusterRequest - 1, // 3: pbgo.ClusterLcmService.ScaleCluster:input_type -> pbgo.ScaleClusterRequest - 2, // 4: pbgo.ClusterLcmService.InstallAppGroups:input_type -> pbgo.InstallAppGroupsRequest - 3, // 5: pbgo.ClusterLcmService.UninstallAppGroups:input_type -> pbgo.UninstallAppGroupsRequest - 6, // 6: pbgo.ClusterLcmService.CreateCluster:output_type -> pbgo.IDsResponse - 7, // 7: pbgo.ClusterLcmService.ScaleCluster:output_type -> pbgo.SimpleResponse - 6, // 8: pbgo.ClusterLcmService.InstallAppGroups:output_type -> pbgo.IDsResponse - 7, // 9: pbgo.ClusterLcmService.UninstallAppGroups:output_type -> pbgo.SimpleResponse + 4, // 0: tks_pb.CreateClusterRequest.conf:type_name -> tks_pb.ClusterConf + 5, // 1: tks_pb.InstallAppGroupsRequest.app_groups:type_name -> tks_pb.AppGroup + 0, // 2: tks_pb.ClusterLcmService.CreateCluster:input_type -> tks_pb.CreateClusterRequest + 1, // 3: tks_pb.ClusterLcmService.ScaleCluster:input_type -> tks_pb.ScaleClusterRequest + 2, // 4: tks_pb.ClusterLcmService.InstallAppGroups:input_type -> tks_pb.InstallAppGroupsRequest + 3, // 5: tks_pb.ClusterLcmService.UninstallAppGroups:input_type -> tks_pb.UninstallAppGroupsRequest + 6, // 6: tks_pb.ClusterLcmService.CreateCluster:output_type -> tks_pb.IDsResponse + 7, // 7: tks_pb.ClusterLcmService.ScaleCluster:output_type -> tks_pb.SimpleResponse + 6, // 8: tks_pb.ClusterLcmService.InstallAppGroups:output_type -> tks_pb.IDsResponse + 7, // 9: tks_pb.ClusterLcmService.UninstallAppGroups:output_type -> tks_pb.SimpleResponse 6, // [6:10] is the sub-list for method output_type 2, // [2:6] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name diff --git a/pbgo/cluster_lcm_grpc.pb.go b/tks_pb/cluster_lcm_grpc.pb.go similarity index 93% rename from pbgo/cluster_lcm_grpc.pb.go rename to tks_pb/cluster_lcm_grpc.pb.go index fd0ce97..c996759 100644 --- a/pbgo/cluster_lcm_grpc.pb.go +++ b/tks_pb/cluster_lcm_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. -package pbgo +package tks_pb import ( context "context" @@ -38,7 +38,7 @@ func NewClusterLcmServiceClient(cc grpc.ClientConnInterface) ClusterLcmServiceCl func (c *clusterLcmServiceClient) CreateCluster(ctx context.Context, in *CreateClusterRequest, opts ...grpc.CallOption) (*IDsResponse, error) { out := new(IDsResponse) - err := c.cc.Invoke(ctx, "/pbgo.ClusterLcmService/CreateCluster", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.ClusterLcmService/CreateCluster", in, out, opts...) if err != nil { return nil, err } @@ -47,7 +47,7 @@ func (c *clusterLcmServiceClient) CreateCluster(ctx context.Context, in *CreateC func (c *clusterLcmServiceClient) ScaleCluster(ctx context.Context, in *ScaleClusterRequest, opts ...grpc.CallOption) (*SimpleResponse, error) { out := new(SimpleResponse) - err := c.cc.Invoke(ctx, "/pbgo.ClusterLcmService/ScaleCluster", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.ClusterLcmService/ScaleCluster", in, out, opts...) if err != nil { return nil, err } @@ -56,7 +56,7 @@ func (c *clusterLcmServiceClient) ScaleCluster(ctx context.Context, in *ScaleClu func (c *clusterLcmServiceClient) InstallAppGroups(ctx context.Context, in *InstallAppGroupsRequest, opts ...grpc.CallOption) (*IDsResponse, error) { out := new(IDsResponse) - err := c.cc.Invoke(ctx, "/pbgo.ClusterLcmService/InstallAppGroups", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.ClusterLcmService/InstallAppGroups", in, out, opts...) if err != nil { return nil, err } @@ -65,7 +65,7 @@ func (c *clusterLcmServiceClient) InstallAppGroups(ctx context.Context, in *Inst func (c *clusterLcmServiceClient) UninstallAppGroups(ctx context.Context, in *UninstallAppGroupsRequest, opts ...grpc.CallOption) (*SimpleResponse, error) { out := new(SimpleResponse) - err := c.cc.Invoke(ctx, "/pbgo.ClusterLcmService/UninstallAppGroups", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.ClusterLcmService/UninstallAppGroups", in, out, opts...) if err != nil { return nil, err } @@ -126,7 +126,7 @@ func _ClusterLcmService_CreateCluster_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.ClusterLcmService/CreateCluster", + FullMethod: "/tks_pb.ClusterLcmService/CreateCluster", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ClusterLcmServiceServer).CreateCluster(ctx, req.(*CreateClusterRequest)) @@ -144,7 +144,7 @@ func _ClusterLcmService_ScaleCluster_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.ClusterLcmService/ScaleCluster", + FullMethod: "/tks_pb.ClusterLcmService/ScaleCluster", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ClusterLcmServiceServer).ScaleCluster(ctx, req.(*ScaleClusterRequest)) @@ -162,7 +162,7 @@ func _ClusterLcmService_InstallAppGroups_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.ClusterLcmService/InstallAppGroups", + FullMethod: "/tks_pb.ClusterLcmService/InstallAppGroups", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ClusterLcmServiceServer).InstallAppGroups(ctx, req.(*InstallAppGroupsRequest)) @@ -180,7 +180,7 @@ func _ClusterLcmService_UninstallAppGroups_Handler(srv interface{}, ctx context. } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.ClusterLcmService/UninstallAppGroups", + FullMethod: "/tks_pb.ClusterLcmService/UninstallAppGroups", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ClusterLcmServiceServer).UninstallAppGroups(ctx, req.(*UninstallAppGroupsRequest)) @@ -192,7 +192,7 @@ func _ClusterLcmService_UninstallAppGroups_Handler(srv interface{}, ctx context. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var ClusterLcmService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "pbgo.ClusterLcmService", + ServiceName: "tks_pb.ClusterLcmService", HandlerType: (*ClusterLcmServiceServer)(nil), Methods: []grpc.MethodDesc{ { diff --git a/pbgo/common.pb.go b/tks_pb/common.pb.go similarity index 64% rename from pbgo/common.pb.go rename to tks_pb/common.pb.go index a07bdfc..f308f80 100644 --- a/pbgo/common.pb.go +++ b/tks_pb/common.pb.go @@ -8,7 +8,7 @@ // protoc v3.17.3 // source: common.proto -package pbgo +package tks_pb import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -416,11 +416,11 @@ type AppGroup struct { // app_group_name is a human-readable name. AppGroupName string `protobuf:"bytes,2,opt,name=app_group_name,json=appGroupName,proto3" json:"app_group_name,omitempty"` // type (LMA/SERVICE_MESH) - Type AppGroupType `protobuf:"varint,3,opt,name=type,proto3,enum=pbgo.AppGroupType" json:"type,omitempty"` + Type AppGroupType `protobuf:"varint,3,opt,name=type,proto3,enum=tks_pb.AppGroupType" json:"type,omitempty"` // cluster_id is a cluster ID to install application. ClusterId string `protobuf:"bytes,4,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` // a status of the application eg) Installing/Running/Error - Status AppGroupStatus `protobuf:"varint,5,opt,name=status,proto3,enum=pbgo.AppGroupStatus" json:"status,omitempty"` + Status AppGroupStatus `protobuf:"varint,5,opt,name=status,proto3,enum=tks_pb.AppGroupStatus" json:"status,omitempty"` // external_lable is the label used for globally unique identification ExternalLabel string `protobuf:"bytes,6,opt,name=external_label,json=externalLabel,proto3" json:"external_label,omitempty"` // created_at is a creatioin timestamp for the application @@ -526,7 +526,7 @@ type Application struct { //id for the application AppId string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` // type (Prometheus/Grafana/...) - Type AppType `protobuf:"varint,2,opt,name=type,proto3,enum=pbgo.AppType" json:"type,omitempty"` + Type AppType `protobuf:"varint,2,opt,name=type,proto3,enum=tks_pb.AppType" json:"type,omitempty"` // app_group_id is an applicagion group ID. AppGroupId string `protobuf:"bytes,3,opt,name=app_group_id,json=appGroupId,proto3" json:"app_group_id,omitempty"` // endpoint is a endpoint string. @@ -635,7 +635,7 @@ type Cluster struct { // updated_at is a timestamp for the trigger of status change UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // status is a status of the cluste eg) Installing/Running/Error - Status ClusterStatus `protobuf:"varint,5,opt,name=status,proto3,enum=pbgo.ClusterStatus" json:"status,omitempty"` + Status ClusterStatus `protobuf:"varint,5,opt,name=status,proto3,enum=tks_pb.ClusterStatus" json:"status,omitempty"` // contract_id is a contract ID. ContractId string `protobuf:"bytes,6,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` // csp_id is an ID of CSPInfo. @@ -909,7 +909,7 @@ type SimpleResponse struct { unknownFields protoimpl.UnknownFields // code is a response code. - Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=pbgo.Code" json:"code,omitempty"` + Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=tks_pb.Code" json:"code,omitempty"` // error is a detailed error message. Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` } @@ -967,7 +967,7 @@ type IDsResponse struct { unknownFields protoimpl.UnknownFields // code is a response code. - Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=pbgo.Code" json:"code,omitempty"` + Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=tks_pb.Code" json:"code,omitempty"` // error is a detailed error message. Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // ids is a array of ids @@ -1034,7 +1034,7 @@ type IDResponse struct { unknownFields protoimpl.UnknownFields // code is a response code. - Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=pbgo.Code" json:"code,omitempty"` + Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=tks_pb.Code" json:"code,omitempty"` // error is a detailed error message. Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // id is a id @@ -1097,168 +1097,170 @@ func (x *IDResponse) GetId() string { var File_common_proto protoreflect.FileDescriptor var file_common_proto_rawDesc = []byte{ - 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, - 0x70, 0x62, 0x67, 0x6f, 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, 0x19, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x10, - 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, - 0x22, 0xe4, 0x02, 0x0a, 0x08, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x20, 0x0a, - 0x0c, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, - 0x24, 0x0a, 0x0e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x41, 0x70, 0x70, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, - 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x70, - 0x62, 0x67, 0x6f, 0x2e, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x78, - 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0d, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x4c, 0x61, 0x62, 0x65, - 0x6c, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 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, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, - 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 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, 0x09, 0x75, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x97, 0x02, 0x0a, 0x0b, 0x41, 0x70, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x15, 0x0a, 0x06, 0x61, 0x70, 0x70, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x21, - 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x70, - 0x62, 0x67, 0x6f, 0x2e, 0x41, 0x70, 0x70, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, - 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, - 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, - 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x39, 0x0a, 0x0a, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 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, 0x09, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x64, 0x5f, 0x61, 0x74, 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, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, - 0x74, 0x22, 0xfe, 0x02, 0x0a, 0x07, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, - 0x03, 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, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, - 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 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, 0x09, 0x75, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x43, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, - 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, - 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x63, 0x73, 0x70, 0x5f, 0x69, 0x64, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x73, 0x70, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x04, - 0x63, 0x6f, 0x6e, 0x66, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x67, - 0x6f, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x52, 0x04, 0x63, - 0x6f, 0x6e, 0x66, 0x12, 0x2d, 0x0a, 0x0a, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, - 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x41, - 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x09, 0x61, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x6b, 0x75, 0x62, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6b, 0x75, 0x62, 0x65, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x22, 0x9e, 0x02, 0x0a, 0x0b, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, - 0x6e, 0x66, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x66, 0x6c, 0x61, - 0x76, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6d, 0x61, 0x73, 0x74, 0x65, - 0x72, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x61, 0x73, 0x74, 0x65, - 0x72, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x0e, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, - 0x12, 0x28, 0x0a, 0x10, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x5f, - 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x6d, 0x61, 0x73, 0x74, - 0x65, 0x72, 0x52, 0x6f, 0x6f, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x77, 0x6f, - 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x72, 0x12, - 0x27, 0x0a, 0x0f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, - 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x77, 0x6f, 0x72, 0x6b, - 0x65, 0x72, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x6f, 0x6f, 0x74, 0x53, 0x69, - 0x7a, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6b, 0x38, 0x73, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6b, 0x38, 0x73, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x22, 0x1b, 0x0a, 0x09, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x22, 0x53, 0x0a, 0x0e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, - 0x64, 0x65, 0x12, 0x21, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, - 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x62, 0x0a, 0x0b, 0x49, 0x44, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, - 0x63, 0x6f, 0x64, 0x65, 0x12, 0x21, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, - 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x03, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22, 0x5f, 0x0a, 0x0a, 0x49, 0x44, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x43, 0x6f, 0x64, - 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x21, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x45, 0x72, - 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x2a, 0xb4, 0x02, 0x0a, 0x04, 0x43, - 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x4f, 0x4b, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, - 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x41, 0x4e, 0x43, 0x45, - 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, - 0x4e, 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x41, - 0x52, 0x47, 0x55, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x45, 0x41, - 0x44, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x45, 0x58, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x04, - 0x12, 0x0d, 0x0a, 0x09, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x05, 0x12, - 0x12, 0x0a, 0x0e, 0x41, 0x4c, 0x52, 0x45, 0x41, 0x44, 0x59, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, - 0x53, 0x10, 0x06, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, - 0x4e, 0x5f, 0x44, 0x45, 0x4e, 0x49, 0x45, 0x44, 0x10, 0x07, 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x4e, - 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x45, 0x44, 0x10, 0x10, 0x12, - 0x16, 0x0a, 0x12, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x45, 0x58, 0x48, 0x41, - 0x55, 0x53, 0x54, 0x45, 0x44, 0x10, 0x08, 0x12, 0x17, 0x0a, 0x13, 0x46, 0x41, 0x49, 0x4c, 0x45, - 0x44, 0x5f, 0x50, 0x52, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x09, - 0x12, 0x0b, 0x0a, 0x07, 0x41, 0x42, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x0a, 0x12, 0x10, 0x0a, - 0x0c, 0x4f, 0x55, 0x54, 0x5f, 0x4f, 0x46, 0x5f, 0x52, 0x41, 0x4e, 0x47, 0x45, 0x10, 0x0b, 0x12, - 0x11, 0x0a, 0x0d, 0x55, 0x4e, 0x49, 0x4d, 0x50, 0x4c, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x45, 0x44, - 0x10, 0x0c, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x10, 0x0d, - 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x41, 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x4c, 0x45, 0x10, - 0x0e, 0x2a, 0xa0, 0x01, 0x0a, 0x0e, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x12, 0x19, 0x0a, 0x15, 0x41, 0x50, 0x50, 0x5f, 0x47, 0x52, 0x4f, 0x55, - 0x50, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, - 0x18, 0x0a, 0x14, 0x41, 0x50, 0x50, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x49, 0x4e, 0x53, - 0x54, 0x41, 0x4c, 0x4c, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x50, 0x50, - 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, - 0x12, 0x16, 0x0a, 0x12, 0x41, 0x50, 0x50, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x44, 0x45, - 0x4c, 0x45, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x50, 0x50, 0x5f, - 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x05, 0x12, - 0x13, 0x0a, 0x0f, 0x41, 0x50, 0x50, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x45, 0x52, 0x52, - 0x4f, 0x52, 0x10, 0x06, 0x2a, 0x63, 0x0a, 0x0d, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, - 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4c, - 0x4c, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, - 0x47, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x49, 0x4e, 0x47, 0x10, - 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x05, 0x12, 0x09, - 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x06, 0x2a, 0xb5, 0x01, 0x0a, 0x07, 0x41, 0x70, - 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x45, 0x50, 0x5f, 0x55, 0x4e, 0x53, 0x50, - 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x54, 0x48, 0x41, - 0x4e, 0x4f, 0x53, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x50, 0x52, 0x4f, 0x4d, 0x45, 0x54, 0x48, - 0x45, 0x55, 0x53, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x47, 0x52, 0x41, 0x46, 0x41, 0x4e, 0x41, - 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x4b, 0x49, 0x41, 0x4c, 0x49, 0x10, 0x04, 0x12, 0x0a, 0x0a, - 0x06, 0x4b, 0x49, 0x42, 0x41, 0x4e, 0x41, 0x10, 0x05, 0x12, 0x10, 0x0a, 0x0c, 0x45, 0x4c, 0x41, - 0x53, 0x54, 0x49, 0x43, 0x53, 0x45, 0x52, 0x43, 0x48, 0x10, 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x43, - 0x4c, 0x4f, 0x55, 0x44, 0x5f, 0x43, 0x4f, 0x4e, 0x53, 0x4f, 0x4c, 0x45, 0x10, 0x07, 0x12, 0x0b, - 0x0a, 0x07, 0x48, 0x4f, 0x52, 0x49, 0x5a, 0x4f, 0x4e, 0x10, 0x08, 0x12, 0x0a, 0x0a, 0x06, 0x4a, - 0x41, 0x45, 0x47, 0x45, 0x52, 0x10, 0x09, 0x12, 0x18, 0x0a, 0x14, 0x4b, 0x55, 0x42, 0x45, 0x52, - 0x4e, 0x45, 0x54, 0x45, 0x53, 0x5f, 0x44, 0x41, 0x53, 0x48, 0x42, 0x4f, 0x41, 0x52, 0x44, 0x10, - 0x0a, 0x2a, 0x43, 0x0a, 0x0c, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x50, 0x50, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, - 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4c, - 0x4d, 0x41, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, - 0x4d, 0x45, 0x53, 0x48, 0x10, 0x02, 0x42, 0x28, 0x5a, 0x26, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x64, 0x65, - 0x76, 0x2f, 0x74, 0x6b, 0x73, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x62, 0x67, 0x6f, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, + 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 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, 0x19, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, + 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, + 0x73, 0x67, 0x22, 0xe8, 0x02, 0x0a, 0x08, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, + 0x20, 0x0a, 0x0c, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, + 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x70, 0x70, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x41, + 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, + 0x12, 0x2e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x16, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, + 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x6c, 0x61, 0x62, + 0x65, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, + 0x61, 0x6c, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x61, 0x74, 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, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, + 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, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x99, 0x02, + 0x0a, 0x0b, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x15, 0x0a, + 0x06, 0x61, 0x70, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, + 0x70, 0x70, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x0f, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x41, 0x70, 0x70, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x61, 0x70, 0x70, + 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x61, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x65, + 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, + 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, + 0x74, 0x18, 0x06, 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, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, + 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 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, 0x09, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x84, 0x03, 0x0a, 0x07, 0x43, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 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, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, + 0x61, 0x74, 0x18, 0x04, 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, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, + 0x2d, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x15, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, + 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, + 0x15, 0x0a, 0x06, 0x63, 0x73, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x63, 0x73, 0x70, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x52, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x12, + 0x2f, 0x0a, 0x0a, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x09, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x41, 0x70, 0x70, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x09, 0x61, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, + 0x12, 0x1e, 0x0a, 0x0a, 0x6b, 0x75, 0x62, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x0a, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6b, 0x75, 0x62, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x22, 0x9e, 0x02, 0x0a, 0x0b, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, + 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x66, 0x6c, 0x61, 0x76, 0x6f, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x46, + 0x6c, 0x61, 0x76, 0x6f, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, + 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, + 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x28, + 0x0a, 0x10, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x73, 0x69, + 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, + 0x52, 0x6f, 0x6f, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, + 0x65, 0x72, 0x5f, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x72, 0x12, 0x27, 0x0a, + 0x0f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, + 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x6f, 0x6f, 0x74, 0x53, 0x69, 0x7a, 0x65, + 0x12, 0x1f, 0x0a, 0x0b, 0x6b, 0x38, 0x73, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6b, 0x38, 0x73, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x22, 0x1b, 0x0a, 0x09, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x57, + 0x0a, 0x0e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x20, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, + 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, + 0x64, 0x65, 0x12, 0x23, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, + 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x66, 0x0a, 0x0b, 0x49, 0x44, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x6f, + 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, + 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x10, 0x0a, + 0x03, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22, + 0x63, 0x0a, 0x0a, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, + 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x74, 0x6b, + 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, + 0x23, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, + 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x2a, 0xb4, 0x02, 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, + 0x0e, 0x4f, 0x4b, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, + 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x01, + 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x02, 0x12, 0x14, 0x0a, + 0x10, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x41, 0x52, 0x47, 0x55, 0x4d, 0x45, 0x4e, + 0x54, 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x45, 0x41, 0x44, 0x4c, 0x49, 0x4e, 0x45, 0x5f, + 0x45, 0x58, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x04, 0x12, 0x0d, 0x0a, 0x09, 0x4e, 0x4f, + 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x05, 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x4c, 0x52, + 0x45, 0x41, 0x44, 0x59, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x53, 0x10, 0x06, 0x12, 0x15, 0x0a, + 0x11, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x45, 0x4e, 0x49, + 0x45, 0x44, 0x10, 0x07, 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x4e, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, + 0x54, 0x49, 0x43, 0x41, 0x54, 0x45, 0x44, 0x10, 0x10, 0x12, 0x16, 0x0a, 0x12, 0x52, 0x45, 0x53, + 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x45, 0x58, 0x48, 0x41, 0x55, 0x53, 0x54, 0x45, 0x44, 0x10, + 0x08, 0x12, 0x17, 0x0a, 0x13, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x50, 0x52, 0x45, 0x43, + 0x4f, 0x4e, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x09, 0x12, 0x0b, 0x0a, 0x07, 0x41, 0x42, + 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x0a, 0x12, 0x10, 0x0a, 0x0c, 0x4f, 0x55, 0x54, 0x5f, 0x4f, + 0x46, 0x5f, 0x52, 0x41, 0x4e, 0x47, 0x45, 0x10, 0x0b, 0x12, 0x11, 0x0a, 0x0d, 0x55, 0x4e, 0x49, + 0x4d, 0x50, 0x4c, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x45, 0x44, 0x10, 0x0c, 0x12, 0x0c, 0x0a, 0x08, + 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x10, 0x0d, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, + 0x41, 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x0e, 0x2a, 0xa0, 0x01, 0x0a, 0x0e, + 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x19, + 0x0a, 0x15, 0x41, 0x50, 0x50, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x55, 0x4e, 0x53, 0x50, + 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x50, 0x50, + 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4c, 0x4c, 0x49, 0x4e, + 0x47, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x50, 0x50, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, + 0x5f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x50, + 0x50, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x49, 0x4e, 0x47, + 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x50, 0x50, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, + 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x05, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x50, 0x50, + 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x06, 0x2a, 0x63, + 0x0a, 0x0d, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, + 0x12, 0x0e, 0x0a, 0x0a, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4c, 0x4c, 0x49, 0x4e, 0x47, 0x10, 0x01, + 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0c, 0x0a, + 0x08, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x44, + 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x05, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, + 0x52, 0x10, 0x06, 0x2a, 0xb5, 0x01, 0x0a, 0x07, 0x41, 0x70, 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x12, 0x0a, 0x0e, 0x45, 0x50, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, + 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x54, 0x48, 0x41, 0x4e, 0x4f, 0x53, 0x10, 0x01, 0x12, + 0x0e, 0x0a, 0x0a, 0x50, 0x52, 0x4f, 0x4d, 0x45, 0x54, 0x48, 0x45, 0x55, 0x53, 0x10, 0x02, 0x12, + 0x0b, 0x0a, 0x07, 0x47, 0x52, 0x41, 0x46, 0x41, 0x4e, 0x41, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, + 0x4b, 0x49, 0x41, 0x4c, 0x49, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x4b, 0x49, 0x42, 0x41, 0x4e, + 0x41, 0x10, 0x05, 0x12, 0x10, 0x0a, 0x0c, 0x45, 0x4c, 0x41, 0x53, 0x54, 0x49, 0x43, 0x53, 0x45, + 0x52, 0x43, 0x48, 0x10, 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x4c, 0x4f, 0x55, 0x44, 0x5f, 0x43, + 0x4f, 0x4e, 0x53, 0x4f, 0x4c, 0x45, 0x10, 0x07, 0x12, 0x0b, 0x0a, 0x07, 0x48, 0x4f, 0x52, 0x49, + 0x5a, 0x4f, 0x4e, 0x10, 0x08, 0x12, 0x0a, 0x0a, 0x06, 0x4a, 0x41, 0x45, 0x47, 0x45, 0x52, 0x10, + 0x09, 0x12, 0x18, 0x0a, 0x14, 0x4b, 0x55, 0x42, 0x45, 0x52, 0x4e, 0x45, 0x54, 0x45, 0x53, 0x5f, + 0x44, 0x41, 0x53, 0x48, 0x42, 0x4f, 0x41, 0x52, 0x44, 0x10, 0x0a, 0x2a, 0x43, 0x0a, 0x0c, 0x41, + 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x14, 0x41, + 0x50, 0x50, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, + 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4c, 0x4d, 0x41, 0x10, 0x01, 0x12, 0x10, + 0x0a, 0x0c, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x4d, 0x45, 0x53, 0x48, 0x10, 0x02, + 0x42, 0x27, 0x5a, 0x25, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, + 0x6b, 0x74, 0x65, 0x6c, 0x65, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x6b, 0x73, 0x2d, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( @@ -1276,41 +1278,41 @@ func file_common_proto_rawDescGZIP() []byte { var file_common_proto_enumTypes = make([]protoimpl.EnumInfo, 5) var file_common_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_common_proto_goTypes = []interface{}{ - (Code)(0), // 0: pbgo.Code - (AppGroupStatus)(0), // 1: pbgo.AppGroupStatus - (ClusterStatus)(0), // 2: pbgo.ClusterStatus - (AppType)(0), // 3: pbgo.AppType - (AppGroupType)(0), // 4: pbgo.AppGroupType - (*Error)(nil), // 5: pbgo.Error - (*AppGroup)(nil), // 6: pbgo.AppGroup - (*Application)(nil), // 7: pbgo.Application - (*Cluster)(nil), // 8: pbgo.Cluster - (*ClusterConf)(nil), // 9: pbgo.ClusterConf - (*IDRequest)(nil), // 10: pbgo.IDRequest - (*SimpleResponse)(nil), // 11: pbgo.SimpleResponse - (*IDsResponse)(nil), // 12: pbgo.IDsResponse - (*IDResponse)(nil), // 13: pbgo.IDResponse + (Code)(0), // 0: tks_pb.Code + (AppGroupStatus)(0), // 1: tks_pb.AppGroupStatus + (ClusterStatus)(0), // 2: tks_pb.ClusterStatus + (AppType)(0), // 3: tks_pb.AppType + (AppGroupType)(0), // 4: tks_pb.AppGroupType + (*Error)(nil), // 5: tks_pb.Error + (*AppGroup)(nil), // 6: tks_pb.AppGroup + (*Application)(nil), // 7: tks_pb.Application + (*Cluster)(nil), // 8: tks_pb.Cluster + (*ClusterConf)(nil), // 9: tks_pb.ClusterConf + (*IDRequest)(nil), // 10: tks_pb.IDRequest + (*SimpleResponse)(nil), // 11: tks_pb.SimpleResponse + (*IDsResponse)(nil), // 12: tks_pb.IDsResponse + (*IDResponse)(nil), // 13: tks_pb.IDResponse (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp } var file_common_proto_depIdxs = []int32{ - 4, // 0: pbgo.AppGroup.type:type_name -> pbgo.AppGroupType - 1, // 1: pbgo.AppGroup.status:type_name -> pbgo.AppGroupStatus - 14, // 2: pbgo.AppGroup.created_at:type_name -> google.protobuf.Timestamp - 14, // 3: pbgo.AppGroup.updated_at:type_name -> google.protobuf.Timestamp - 3, // 4: pbgo.Application.type:type_name -> pbgo.AppType - 14, // 5: pbgo.Application.created_at:type_name -> google.protobuf.Timestamp - 14, // 6: pbgo.Application.updated_at:type_name -> google.protobuf.Timestamp - 14, // 7: pbgo.Cluster.created_at:type_name -> google.protobuf.Timestamp - 14, // 8: pbgo.Cluster.updated_at:type_name -> google.protobuf.Timestamp - 2, // 9: pbgo.Cluster.status:type_name -> pbgo.ClusterStatus - 9, // 10: pbgo.Cluster.conf:type_name -> pbgo.ClusterConf - 6, // 11: pbgo.Cluster.app_groups:type_name -> pbgo.AppGroup - 0, // 12: pbgo.SimpleResponse.code:type_name -> pbgo.Code - 5, // 13: pbgo.SimpleResponse.error:type_name -> pbgo.Error - 0, // 14: pbgo.IDsResponse.code:type_name -> pbgo.Code - 5, // 15: pbgo.IDsResponse.error:type_name -> pbgo.Error - 0, // 16: pbgo.IDResponse.code:type_name -> pbgo.Code - 5, // 17: pbgo.IDResponse.error:type_name -> pbgo.Error + 4, // 0: tks_pb.AppGroup.type:type_name -> tks_pb.AppGroupType + 1, // 1: tks_pb.AppGroup.status:type_name -> tks_pb.AppGroupStatus + 14, // 2: tks_pb.AppGroup.created_at:type_name -> google.protobuf.Timestamp + 14, // 3: tks_pb.AppGroup.updated_at:type_name -> google.protobuf.Timestamp + 3, // 4: tks_pb.Application.type:type_name -> tks_pb.AppType + 14, // 5: tks_pb.Application.created_at:type_name -> google.protobuf.Timestamp + 14, // 6: tks_pb.Application.updated_at:type_name -> google.protobuf.Timestamp + 14, // 7: tks_pb.Cluster.created_at:type_name -> google.protobuf.Timestamp + 14, // 8: tks_pb.Cluster.updated_at:type_name -> google.protobuf.Timestamp + 2, // 9: tks_pb.Cluster.status:type_name -> tks_pb.ClusterStatus + 9, // 10: tks_pb.Cluster.conf:type_name -> tks_pb.ClusterConf + 6, // 11: tks_pb.Cluster.app_groups:type_name -> tks_pb.AppGroup + 0, // 12: tks_pb.SimpleResponse.code:type_name -> tks_pb.Code + 5, // 13: tks_pb.SimpleResponse.error:type_name -> tks_pb.Error + 0, // 14: tks_pb.IDsResponse.code:type_name -> tks_pb.Code + 5, // 15: tks_pb.IDsResponse.error:type_name -> tks_pb.Error + 0, // 16: tks_pb.IDResponse.code:type_name -> tks_pb.Code + 5, // 17: tks_pb.IDResponse.error:type_name -> tks_pb.Error 18, // [18:18] is the sub-list for method output_type 18, // [18:18] is the sub-list for method input_type 18, // [18:18] is the sub-list for extension type_name diff --git a/pbgo/contract.pb.go b/tks_pb/contract.pb.go similarity index 65% rename from pbgo/contract.pb.go rename to tks_pb/contract.pb.go index 3604824..5712382 100644 --- a/pbgo/contract.pb.go +++ b/tks_pb/contract.pb.go @@ -7,7 +7,7 @@ // protoc v3.17.3 // source: contract.proto -package pbgo +package tks_pb import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -118,7 +118,7 @@ type CreateContractResponse struct { unknownFields protoimpl.UnknownFields // code is a response code. - Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=pbgo.Code" json:"code,omitempty"` + Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=tks_pb.Code" json:"code,omitempty"` // error is a detailed error message. Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // csp_id is a global unique ID created by the info service. @@ -348,7 +348,7 @@ type UpdateQuotaResponse struct { unknownFields protoimpl.UnknownFields // code is a response code. - Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=pbgo.Code" json:"code,omitempty"` + Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=tks_pb.Code" json:"code,omitempty"` // error is a detailed error message. Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contract_id is a global unique ID created by CBP @@ -496,7 +496,7 @@ type UpdateServicesResponse struct { unknownFields protoimpl.UnknownFields // code is a response code. - Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=pbgo.Code" json:"code,omitempty"` + Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=tks_pb.Code" json:"code,omitempty"` // error is a detailed error message. Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contract_id is a global unique ID created by CBP @@ -631,7 +631,7 @@ type GetContractResponse struct { unknownFields protoimpl.UnknownFields // code is a response code. - Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=pbgo.Code" json:"code,omitempty"` + Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=tks_pb.Code" json:"code,omitempty"` // error is a detailed error message. Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contract is a contract information. @@ -842,7 +842,7 @@ type GetContractsResponse struct { unknownFields protoimpl.UnknownFields // code is a response code. - Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=pbgo.Code" json:"code,omitempty"` + Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=tks_pb.Code" json:"code,omitempty"` // error is a detailed error message. Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contracts is a list of contracts. @@ -960,7 +960,7 @@ type GetQuotaResponse struct { unknownFields protoimpl.UnknownFields // code is a response code. - Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=pbgo.Code" json:"code,omitempty"` + Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=tks_pb.Code" json:"code,omitempty"` // error is a detailed error message. Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // quota is a resource quota for cpu, memory, storage and so on. @@ -1078,7 +1078,7 @@ type GetAvailableServicesResponse struct { unknownFields protoimpl.UnknownFields // code is a response code. - Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=pbgo.Code" json:"code,omitempty"` + Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=tks_pb.Code" json:"code,omitempty"` // error is a detailed error message. Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // availavle_services is a list of services constomer purchased. @@ -1142,186 +1142,191 @@ var File_contract_proto protoreflect.FileDescriptor var file_contract_proto_rawDesc = []byte{ 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x04, 0x70, 0x62, 0x67, 0x6f, 0x1a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 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, 0xd0, 0x01, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x6f, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x05, 0x71, 0x75, 0x6f, 0x74, - 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x43, - 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x05, 0x71, 0x75, - 0x6f, 0x74, 0x61, 0x12, 0x2d, 0x0a, 0x12, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, - 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x11, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x73, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x73, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, - 0x08, 0x63, 0x73, 0x70, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x63, 0x73, 0x70, 0x41, 0x75, 0x74, 0x68, 0x22, 0x93, 0x01, 0x0a, 0x16, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, - 0x6f, 0x64, 0x65, 0x12, 0x21, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, - 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x15, 0x0a, 0x06, 0x63, 0x73, 0x70, 0x5f, 0x69, 0x64, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x73, 0x70, 0x49, 0x64, 0x12, 0x1f, 0x0a, - 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x22, 0x93, - 0x01, 0x0a, 0x0d, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, - 0x12, 0x10, 0x0a, 0x03, 0x63, 0x70, 0x75, 0x18, 0x01, 0x20, 0x01, 0x28, 0x12, 0x52, 0x03, 0x63, - 0x70, 0x75, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x12, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6c, - 0x6f, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x12, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, - 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x73, 0x73, 0x64, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x12, 0x52, 0x08, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x73, 0x64, 0x12, 0x0e, 0x0a, - 0x02, 0x66, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x12, 0x52, 0x02, 0x66, 0x73, 0x12, 0x15, 0x0a, - 0x06, 0x66, 0x73, 0x5f, 0x73, 0x73, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x12, 0x52, 0x05, 0x66, - 0x73, 0x53, 0x73, 0x64, 0x22, 0x60, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x51, 0x75, - 0x6f, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, - 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x29, 0x0a, 0x05, 0x71, - 0x75, 0x6f, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x62, 0x67, - 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, - 0x05, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x22, 0xe7, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, - 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x70, - 0x62, 0x67, 0x6f, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x21, - 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, - 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, - 0x49, 0x64, 0x12, 0x32, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x71, 0x75, 0x6f, 0x74, 0x61, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x43, 0x6f, + 0x12, 0x06, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x1a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 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, 0xd2, 0x01, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6f, 0x6e, 0x74, + 0x72, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2b, 0x0a, 0x05, 0x71, 0x75, + 0x6f, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6b, 0x73, 0x5f, + 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, + 0x52, 0x05, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x12, 0x2d, 0x0a, 0x12, 0x61, 0x76, 0x61, 0x69, 0x6c, + 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x11, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x73, 0x70, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x73, 0x70, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x73, 0x70, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x73, 0x70, 0x41, 0x75, 0x74, 0x68, 0x22, 0x97, 0x01, 0x0a, + 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x43, + 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x05, 0x65, 0x72, 0x72, + 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, + 0x62, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x15, + 0x0a, 0x06, 0x63, 0x73, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x63, 0x73, 0x70, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, + 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, + 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x22, 0x93, 0x01, 0x0a, 0x0d, 0x43, 0x6f, 0x6e, 0x74, 0x72, + 0x61, 0x63, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x70, 0x75, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x12, 0x52, 0x03, 0x63, 0x70, 0x75, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, + 0x6d, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x12, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x6f, + 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x12, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x5f, 0x73, 0x73, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x12, 0x52, 0x08, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x53, 0x73, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x66, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x12, 0x52, 0x02, 0x66, 0x73, 0x12, 0x15, 0x0a, 0x06, 0x66, 0x73, 0x5f, 0x73, 0x73, 0x64, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x12, 0x52, 0x05, 0x66, 0x73, 0x53, 0x73, 0x64, 0x22, 0x62, 0x0a, 0x12, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, + 0x74, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x05, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6e, 0x74, + 0x72, 0x61, 0x63, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x05, 0x71, 0x75, 0x6f, 0x74, 0x61, + 0x22, 0xef, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x51, 0x75, 0x6f, 0x74, 0x61, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, + 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x05, 0x65, 0x72, + 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x6b, 0x73, 0x5f, + 0x70, 0x62, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, + 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, + 0x12, 0x34, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x09, 0x70, 0x72, 0x65, - 0x76, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x12, 0x38, 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, - 0x74, 0x5f, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, - 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x51, 0x75, 0x6f, - 0x74, 0x61, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, - 0x22, 0x67, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x2d, 0x0a, 0x12, 0x61, 0x76, - 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, - 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x22, 0xcc, 0x01, 0x0a, 0x16, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, - 0x63, 0x6f, 0x64, 0x65, 0x12, 0x21, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, - 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, - 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, - 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x65, 0x76, - 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x0c, 0x70, 0x72, 0x65, 0x76, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x29, 0x0a, - 0x10, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x22, 0x35, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x43, - 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, - 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x22, - 0x84, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x43, 0x6f, 0x64, - 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x21, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x45, 0x72, - 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2a, 0x0a, 0x08, 0x63, 0x6f, - 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, - 0x62, 0x67, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x08, 0x63, 0x6f, - 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x22, 0xbb, 0x02, 0x0a, 0x08, 0x43, 0x6f, 0x6e, 0x74, 0x72, - 0x61, 0x63, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x6f, - 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6f, - 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x29, 0x0a, - 0x05, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, - 0x62, 0x67, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x51, 0x75, 0x6f, 0x74, - 0x61, 0x52, 0x05, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x12, 0x2d, 0x0a, 0x12, 0x61, 0x76, 0x61, 0x69, - 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x04, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x15, 0x0a, 0x06, 0x63, 0x73, 0x70, 0x5f, 0x69, - 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x73, 0x70, 0x49, 0x64, 0x12, 0x39, - 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 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, 0x09, - 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 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, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x64, 0x41, 0x74, 0x22, 0x15, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, - 0x61, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x87, 0x01, 0x0a, 0x14, - 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, - 0x63, 0x6f, 0x64, 0x65, 0x12, 0x21, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, - 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x72, - 0x61, 0x63, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x67, - 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x73, 0x22, 0x32, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x51, 0x75, 0x6f, 0x74, - 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, - 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x22, 0x80, 0x01, 0x0a, 0x10, 0x47, 0x65, - 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, - 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x70, - 0x62, 0x67, 0x6f, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x21, - 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, - 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x12, 0x29, 0x0a, 0x05, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x13, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, - 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x05, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x22, 0x3e, 0x0a, 0x1b, - 0x47, 0x65, 0x74, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, + 0x76, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x12, 0x3a, 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, + 0x74, 0x5f, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, + 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x51, + 0x75, 0x6f, 0x74, 0x61, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x51, 0x75, 0x6f, + 0x74, 0x61, 0x22, 0x67, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x22, 0x95, 0x01, 0x0a, - 0x1c, 0x47, 0x65, 0x74, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, - 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x70, 0x62, - 0x67, 0x6f, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x21, 0x0a, - 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, - 0x62, 0x67, 0x6f, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, - 0x12, 0x32, 0x0a, 0x15, 0x61, 0x76, 0x61, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x70, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x13, 0x61, 0x76, 0x61, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x41, 0x70, 0x70, 0x73, 0x32, 0xa2, 0x04, 0x0a, 0x0f, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, - 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4d, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x67, - 0x6f, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x44, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x51, 0x75, - 0x6f, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, - 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, - 0x1b, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, - 0x62, 0x67, 0x6f, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x44, 0x0a, 0x0b, - 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x18, 0x2e, 0x70, 0x62, - 0x67, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x47, 0x65, 0x74, - 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x47, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, - 0x74, 0x73, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, - 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3b, 0x0a, 0x08, 0x47, - 0x65, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x12, 0x15, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x47, - 0x65, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, - 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5f, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x41, - 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, - 0x12, 0x21, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x76, 0x61, 0x69, 0x6c, - 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x76, + 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x2d, 0x0a, 0x12, + 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, + 0x62, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x22, 0xd0, 0x01, 0x0a, 0x16, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x6f, + 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, + 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1f, 0x0a, + 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x23, + 0x0a, 0x0d, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, + 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x65, 0x76, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x73, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x63, + 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x22, 0x35, + 0x0a, 0x12, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, + 0x61, 0x63, 0x74, 0x49, 0x64, 0x22, 0x8a, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, + 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, + 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x74, 0x6b, + 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, + 0x23, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, + 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2c, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, + 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, + 0x63, 0x74, 0x22, 0xbd, 0x02, 0x0a, 0x08, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, + 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, + 0x63, 0x74, 0x6f, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, + 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, + 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x05, 0x71, 0x75, 0x6f, + 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, + 0x62, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, + 0x05, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x12, 0x2d, 0x0a, 0x12, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, + 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x11, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x15, 0x0a, 0x06, 0x63, 0x73, 0x70, 0x5f, 0x69, 0x64, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x73, 0x70, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x0a, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 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, 0x09, 0x75, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x61, 0x74, 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, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x41, 0x74, 0x22, 0x15, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, + 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x8d, 0x01, 0x0a, 0x14, 0x47, 0x65, + 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x20, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x0c, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, + 0x63, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x45, 0x72, 0x72, + 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x09, 0x63, 0x6f, 0x6e, + 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, + 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x09, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x22, 0x32, 0x0a, 0x0f, 0x47, 0x65, 0x74, + 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x22, 0x86, 0x01, + 0x0a, 0x10, 0x47, 0x65, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x20, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x0c, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, + 0x63, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x45, 0x72, 0x72, + 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2b, 0x0a, 0x05, 0x71, 0x75, 0x6f, + 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, + 0x62, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, + 0x05, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x22, 0x3e, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x41, 0x76, 0x61, + 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, + 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, + 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x22, 0x99, 0x01, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x28, 0x5a, 0x26, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x69, 0x6e, 0x66, 0x72, - 0x61, 0x64, 0x65, 0x76, 0x2f, 0x74, 0x6b, 0x73, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, - 0x62, 0x67, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x43, + 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x05, 0x65, 0x72, 0x72, + 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, + 0x62, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x32, + 0x0a, 0x15, 0x61, 0x76, 0x61, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x5f, 0x61, 0x70, 0x70, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x13, 0x61, + 0x76, 0x61, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x70, + 0x70, 0x73, 0x32, 0xbe, 0x04, 0x0a, 0x0f, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x51, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x1d, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, + 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, + 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x48, 0x0a, 0x0b, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x12, 0x1a, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, + 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x1d, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x48, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, + 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x1a, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x47, + 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1b, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, + 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x4b, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, + 0x12, 0x1b, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, + 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, + 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, + 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3f, 0x0a, + 0x08, 0x47, 0x65, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x12, 0x17, 0x2e, 0x74, 0x6b, 0x73, 0x5f, + 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x51, + 0x75, 0x6f, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x63, + 0x0a, 0x14, 0x47, 0x65, 0x74, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, + 0x47, 0x65, 0x74, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x74, 0x6b, + 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, + 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x42, 0x27, 0x5a, 0x25, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x73, 0x6b, 0x74, 0x65, 0x6c, 0x65, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x6b, 0x73, 0x2d, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1338,65 +1343,65 @@ func file_contract_proto_rawDescGZIP() []byte { var file_contract_proto_msgTypes = make([]protoimpl.MessageInfo, 16) var file_contract_proto_goTypes = []interface{}{ - (*CreateContractRequest)(nil), // 0: pbgo.CreateContractRequest - (*CreateContractResponse)(nil), // 1: pbgo.CreateContractResponse - (*ContractQuota)(nil), // 2: pbgo.ContractQuota - (*UpdateQuotaRequest)(nil), // 3: pbgo.UpdateQuotaRequest - (*UpdateQuotaResponse)(nil), // 4: pbgo.UpdateQuotaResponse - (*UpdateServicesRequest)(nil), // 5: pbgo.UpdateServicesRequest - (*UpdateServicesResponse)(nil), // 6: pbgo.UpdateServicesResponse - (*GetContractRequest)(nil), // 7: pbgo.GetContractRequest - (*GetContractResponse)(nil), // 8: pbgo.GetContractResponse - (*Contract)(nil), // 9: pbgo.Contract - (*GetContractsRequest)(nil), // 10: pbgo.GetContractsRequest - (*GetContractsResponse)(nil), // 11: pbgo.GetContractsResponse - (*GetQuotaRequest)(nil), // 12: pbgo.GetQuotaRequest - (*GetQuotaResponse)(nil), // 13: pbgo.GetQuotaResponse - (*GetAvailableServicesRequest)(nil), // 14: pbgo.GetAvailableServicesRequest - (*GetAvailableServicesResponse)(nil), // 15: pbgo.GetAvailableServicesResponse - (Code)(0), // 16: pbgo.Code - (*Error)(nil), // 17: pbgo.Error + (*CreateContractRequest)(nil), // 0: tks_pb.CreateContractRequest + (*CreateContractResponse)(nil), // 1: tks_pb.CreateContractResponse + (*ContractQuota)(nil), // 2: tks_pb.ContractQuota + (*UpdateQuotaRequest)(nil), // 3: tks_pb.UpdateQuotaRequest + (*UpdateQuotaResponse)(nil), // 4: tks_pb.UpdateQuotaResponse + (*UpdateServicesRequest)(nil), // 5: tks_pb.UpdateServicesRequest + (*UpdateServicesResponse)(nil), // 6: tks_pb.UpdateServicesResponse + (*GetContractRequest)(nil), // 7: tks_pb.GetContractRequest + (*GetContractResponse)(nil), // 8: tks_pb.GetContractResponse + (*Contract)(nil), // 9: tks_pb.Contract + (*GetContractsRequest)(nil), // 10: tks_pb.GetContractsRequest + (*GetContractsResponse)(nil), // 11: tks_pb.GetContractsResponse + (*GetQuotaRequest)(nil), // 12: tks_pb.GetQuotaRequest + (*GetQuotaResponse)(nil), // 13: tks_pb.GetQuotaResponse + (*GetAvailableServicesRequest)(nil), // 14: tks_pb.GetAvailableServicesRequest + (*GetAvailableServicesResponse)(nil), // 15: tks_pb.GetAvailableServicesResponse + (Code)(0), // 16: tks_pb.Code + (*Error)(nil), // 17: tks_pb.Error (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp } var file_contract_proto_depIdxs = []int32{ - 2, // 0: pbgo.CreateContractRequest.quota:type_name -> pbgo.ContractQuota - 16, // 1: pbgo.CreateContractResponse.code:type_name -> pbgo.Code - 17, // 2: pbgo.CreateContractResponse.error:type_name -> pbgo.Error - 2, // 3: pbgo.UpdateQuotaRequest.quota:type_name -> pbgo.ContractQuota - 16, // 4: pbgo.UpdateQuotaResponse.code:type_name -> pbgo.Code - 17, // 5: pbgo.UpdateQuotaResponse.error:type_name -> pbgo.Error - 2, // 6: pbgo.UpdateQuotaResponse.prev_quota:type_name -> pbgo.ContractQuota - 2, // 7: pbgo.UpdateQuotaResponse.current_quota:type_name -> pbgo.ContractQuota - 16, // 8: pbgo.UpdateServicesResponse.code:type_name -> pbgo.Code - 17, // 9: pbgo.UpdateServicesResponse.error:type_name -> pbgo.Error - 16, // 10: pbgo.GetContractResponse.code:type_name -> pbgo.Code - 17, // 11: pbgo.GetContractResponse.error:type_name -> pbgo.Error - 9, // 12: pbgo.GetContractResponse.contract:type_name -> pbgo.Contract - 2, // 13: pbgo.Contract.quota:type_name -> pbgo.ContractQuota - 18, // 14: pbgo.Contract.updated_at:type_name -> google.protobuf.Timestamp - 18, // 15: pbgo.Contract.created_at:type_name -> google.protobuf.Timestamp - 16, // 16: pbgo.GetContractsResponse.code:type_name -> pbgo.Code - 17, // 17: pbgo.GetContractsResponse.error:type_name -> pbgo.Error - 9, // 18: pbgo.GetContractsResponse.contracts:type_name -> pbgo.Contract - 16, // 19: pbgo.GetQuotaResponse.code:type_name -> pbgo.Code - 17, // 20: pbgo.GetQuotaResponse.error:type_name -> pbgo.Error - 2, // 21: pbgo.GetQuotaResponse.quota:type_name -> pbgo.ContractQuota - 16, // 22: pbgo.GetAvailableServicesResponse.code:type_name -> pbgo.Code - 17, // 23: pbgo.GetAvailableServicesResponse.error:type_name -> pbgo.Error - 0, // 24: pbgo.ContractService.CreateContract:input_type -> pbgo.CreateContractRequest - 3, // 25: pbgo.ContractService.UpdateQuota:input_type -> pbgo.UpdateQuotaRequest - 5, // 26: pbgo.ContractService.UpdateServices:input_type -> pbgo.UpdateServicesRequest - 7, // 27: pbgo.ContractService.GetContract:input_type -> pbgo.GetContractRequest - 10, // 28: pbgo.ContractService.GetContracts:input_type -> pbgo.GetContractsRequest - 12, // 29: pbgo.ContractService.GetQuota:input_type -> pbgo.GetQuotaRequest - 14, // 30: pbgo.ContractService.GetAvailableServices:input_type -> pbgo.GetAvailableServicesRequest - 1, // 31: pbgo.ContractService.CreateContract:output_type -> pbgo.CreateContractResponse - 4, // 32: pbgo.ContractService.UpdateQuota:output_type -> pbgo.UpdateQuotaResponse - 6, // 33: pbgo.ContractService.UpdateServices:output_type -> pbgo.UpdateServicesResponse - 8, // 34: pbgo.ContractService.GetContract:output_type -> pbgo.GetContractResponse - 11, // 35: pbgo.ContractService.GetContracts:output_type -> pbgo.GetContractsResponse - 13, // 36: pbgo.ContractService.GetQuota:output_type -> pbgo.GetQuotaResponse - 15, // 37: pbgo.ContractService.GetAvailableServices:output_type -> pbgo.GetAvailableServicesResponse + 2, // 0: tks_pb.CreateContractRequest.quota:type_name -> tks_pb.ContractQuota + 16, // 1: tks_pb.CreateContractResponse.code:type_name -> tks_pb.Code + 17, // 2: tks_pb.CreateContractResponse.error:type_name -> tks_pb.Error + 2, // 3: tks_pb.UpdateQuotaRequest.quota:type_name -> tks_pb.ContractQuota + 16, // 4: tks_pb.UpdateQuotaResponse.code:type_name -> tks_pb.Code + 17, // 5: tks_pb.UpdateQuotaResponse.error:type_name -> tks_pb.Error + 2, // 6: tks_pb.UpdateQuotaResponse.prev_quota:type_name -> tks_pb.ContractQuota + 2, // 7: tks_pb.UpdateQuotaResponse.current_quota:type_name -> tks_pb.ContractQuota + 16, // 8: tks_pb.UpdateServicesResponse.code:type_name -> tks_pb.Code + 17, // 9: tks_pb.UpdateServicesResponse.error:type_name -> tks_pb.Error + 16, // 10: tks_pb.GetContractResponse.code:type_name -> tks_pb.Code + 17, // 11: tks_pb.GetContractResponse.error:type_name -> tks_pb.Error + 9, // 12: tks_pb.GetContractResponse.contract:type_name -> tks_pb.Contract + 2, // 13: tks_pb.Contract.quota:type_name -> tks_pb.ContractQuota + 18, // 14: tks_pb.Contract.updated_at:type_name -> google.protobuf.Timestamp + 18, // 15: tks_pb.Contract.created_at:type_name -> google.protobuf.Timestamp + 16, // 16: tks_pb.GetContractsResponse.code:type_name -> tks_pb.Code + 17, // 17: tks_pb.GetContractsResponse.error:type_name -> tks_pb.Error + 9, // 18: tks_pb.GetContractsResponse.contracts:type_name -> tks_pb.Contract + 16, // 19: tks_pb.GetQuotaResponse.code:type_name -> tks_pb.Code + 17, // 20: tks_pb.GetQuotaResponse.error:type_name -> tks_pb.Error + 2, // 21: tks_pb.GetQuotaResponse.quota:type_name -> tks_pb.ContractQuota + 16, // 22: tks_pb.GetAvailableServicesResponse.code:type_name -> tks_pb.Code + 17, // 23: tks_pb.GetAvailableServicesResponse.error:type_name -> tks_pb.Error + 0, // 24: tks_pb.ContractService.CreateContract:input_type -> tks_pb.CreateContractRequest + 3, // 25: tks_pb.ContractService.UpdateQuota:input_type -> tks_pb.UpdateQuotaRequest + 5, // 26: tks_pb.ContractService.UpdateServices:input_type -> tks_pb.UpdateServicesRequest + 7, // 27: tks_pb.ContractService.GetContract:input_type -> tks_pb.GetContractRequest + 10, // 28: tks_pb.ContractService.GetContracts:input_type -> tks_pb.GetContractsRequest + 12, // 29: tks_pb.ContractService.GetQuota:input_type -> tks_pb.GetQuotaRequest + 14, // 30: tks_pb.ContractService.GetAvailableServices:input_type -> tks_pb.GetAvailableServicesRequest + 1, // 31: tks_pb.ContractService.CreateContract:output_type -> tks_pb.CreateContractResponse + 4, // 32: tks_pb.ContractService.UpdateQuota:output_type -> tks_pb.UpdateQuotaResponse + 6, // 33: tks_pb.ContractService.UpdateServices:output_type -> tks_pb.UpdateServicesResponse + 8, // 34: tks_pb.ContractService.GetContract:output_type -> tks_pb.GetContractResponse + 11, // 35: tks_pb.ContractService.GetContracts:output_type -> tks_pb.GetContractsResponse + 13, // 36: tks_pb.ContractService.GetQuota:output_type -> tks_pb.GetQuotaResponse + 15, // 37: tks_pb.ContractService.GetAvailableServices:output_type -> tks_pb.GetAvailableServicesResponse 31, // [31:38] is the sub-list for method output_type 24, // [24:31] is the sub-list for method input_type 24, // [24:24] is the sub-list for extension type_name diff --git a/pbgo/contract_grpc.pb.go b/tks_pb/contract_grpc.pb.go similarity index 92% rename from pbgo/contract_grpc.pb.go rename to tks_pb/contract_grpc.pb.go index 8cafa5d..fcf9db9 100644 --- a/pbgo/contract_grpc.pb.go +++ b/tks_pb/contract_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. -package pbgo +package tks_pb import ( context "context" @@ -44,7 +44,7 @@ func NewContractServiceClient(cc grpc.ClientConnInterface) ContractServiceClient func (c *contractServiceClient) CreateContract(ctx context.Context, in *CreateContractRequest, opts ...grpc.CallOption) (*CreateContractResponse, error) { out := new(CreateContractResponse) - err := c.cc.Invoke(ctx, "/pbgo.ContractService/CreateContract", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.ContractService/CreateContract", in, out, opts...) if err != nil { return nil, err } @@ -53,7 +53,7 @@ func (c *contractServiceClient) CreateContract(ctx context.Context, in *CreateCo func (c *contractServiceClient) UpdateQuota(ctx context.Context, in *UpdateQuotaRequest, opts ...grpc.CallOption) (*UpdateQuotaResponse, error) { out := new(UpdateQuotaResponse) - err := c.cc.Invoke(ctx, "/pbgo.ContractService/UpdateQuota", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.ContractService/UpdateQuota", in, out, opts...) if err != nil { return nil, err } @@ -62,7 +62,7 @@ func (c *contractServiceClient) UpdateQuota(ctx context.Context, in *UpdateQuota func (c *contractServiceClient) UpdateServices(ctx context.Context, in *UpdateServicesRequest, opts ...grpc.CallOption) (*UpdateServicesResponse, error) { out := new(UpdateServicesResponse) - err := c.cc.Invoke(ctx, "/pbgo.ContractService/UpdateServices", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.ContractService/UpdateServices", in, out, opts...) if err != nil { return nil, err } @@ -71,7 +71,7 @@ func (c *contractServiceClient) UpdateServices(ctx context.Context, in *UpdateSe func (c *contractServiceClient) GetContract(ctx context.Context, in *GetContractRequest, opts ...grpc.CallOption) (*GetContractResponse, error) { out := new(GetContractResponse) - err := c.cc.Invoke(ctx, "/pbgo.ContractService/GetContract", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.ContractService/GetContract", in, out, opts...) if err != nil { return nil, err } @@ -80,7 +80,7 @@ func (c *contractServiceClient) GetContract(ctx context.Context, in *GetContract func (c *contractServiceClient) GetContracts(ctx context.Context, in *GetContractsRequest, opts ...grpc.CallOption) (*GetContractsResponse, error) { out := new(GetContractsResponse) - err := c.cc.Invoke(ctx, "/pbgo.ContractService/GetContracts", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.ContractService/GetContracts", in, out, opts...) if err != nil { return nil, err } @@ -89,7 +89,7 @@ func (c *contractServiceClient) GetContracts(ctx context.Context, in *GetContrac func (c *contractServiceClient) GetQuota(ctx context.Context, in *GetQuotaRequest, opts ...grpc.CallOption) (*GetQuotaResponse, error) { out := new(GetQuotaResponse) - err := c.cc.Invoke(ctx, "/pbgo.ContractService/GetQuota", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.ContractService/GetQuota", in, out, opts...) if err != nil { return nil, err } @@ -98,7 +98,7 @@ func (c *contractServiceClient) GetQuota(ctx context.Context, in *GetQuotaReques func (c *contractServiceClient) GetAvailableServices(ctx context.Context, in *GetAvailableServicesRequest, opts ...grpc.CallOption) (*GetAvailableServicesResponse, error) { out := new(GetAvailableServicesResponse) - err := c.cc.Invoke(ctx, "/pbgo.ContractService/GetAvailableServices", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.ContractService/GetAvailableServices", in, out, opts...) if err != nil { return nil, err } @@ -174,7 +174,7 @@ func _ContractService_CreateContract_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.ContractService/CreateContract", + FullMethod: "/tks_pb.ContractService/CreateContract", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ContractServiceServer).CreateContract(ctx, req.(*CreateContractRequest)) @@ -192,7 +192,7 @@ func _ContractService_UpdateQuota_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.ContractService/UpdateQuota", + FullMethod: "/tks_pb.ContractService/UpdateQuota", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ContractServiceServer).UpdateQuota(ctx, req.(*UpdateQuotaRequest)) @@ -210,7 +210,7 @@ func _ContractService_UpdateServices_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.ContractService/UpdateServices", + FullMethod: "/tks_pb.ContractService/UpdateServices", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ContractServiceServer).UpdateServices(ctx, req.(*UpdateServicesRequest)) @@ -228,7 +228,7 @@ func _ContractService_GetContract_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.ContractService/GetContract", + FullMethod: "/tks_pb.ContractService/GetContract", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ContractServiceServer).GetContract(ctx, req.(*GetContractRequest)) @@ -246,7 +246,7 @@ func _ContractService_GetContracts_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.ContractService/GetContracts", + FullMethod: "/tks_pb.ContractService/GetContracts", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ContractServiceServer).GetContracts(ctx, req.(*GetContractsRequest)) @@ -264,7 +264,7 @@ func _ContractService_GetQuota_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.ContractService/GetQuota", + FullMethod: "/tks_pb.ContractService/GetQuota", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ContractServiceServer).GetQuota(ctx, req.(*GetQuotaRequest)) @@ -282,7 +282,7 @@ func _ContractService_GetAvailableServices_Handler(srv interface{}, ctx context. } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.ContractService/GetAvailableServices", + FullMethod: "/tks_pb.ContractService/GetAvailableServices", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ContractServiceServer).GetAvailableServices(ctx, req.(*GetAvailableServicesRequest)) @@ -294,7 +294,7 @@ func _ContractService_GetAvailableServices_Handler(srv interface{}, ctx context. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var ContractService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "pbgo.ContractService", + ServiceName: "tks_pb.ContractService", HandlerType: (*ContractServiceServer)(nil), Methods: []grpc.MethodDesc{ { diff --git a/pbgo/info.pb.go b/tks_pb/info.pb.go similarity index 61% rename from pbgo/info.pb.go rename to tks_pb/info.pb.go index ab47295..c433cc8 100644 --- a/pbgo/info.pb.go +++ b/tks_pb/info.pb.go @@ -7,7 +7,7 @@ // protoc v3.17.3 // source: info.proto -package pbgo +package tks_pb import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -99,7 +99,7 @@ type GetCSPAuthResponse struct { unknownFields protoimpl.UnknownFields // code is a response code. - Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=pbgo.Code" json:"code,omitempty"` + Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=tks_pb.Code" json:"code,omitempty"` // error is a detailed error message. Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // auth is an authentication info stiringified in JSON. @@ -408,7 +408,7 @@ type GetClusterResponse struct { unknownFields protoimpl.UnknownFields // code is a response code. - Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=pbgo.Code" json:"code,omitempty"` + Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=tks_pb.Code" json:"code,omitempty"` // error is a detailed error message. Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // cluster is info for the cluster @@ -533,7 +533,7 @@ type GetClustersResponse struct { unknownFields protoimpl.UnknownFields // code is a response code. - Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=pbgo.Code" json:"code,omitempty"` + Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=tks_pb.Code" json:"code,omitempty"` // error is a detailed error message. Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // cluster is info. for the cluster @@ -602,7 +602,7 @@ type UpdateClusterStatusRequest struct { // cluster_id is a cluster ID ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` // status is the clusterstatus to be changed - Status ClusterStatus `protobuf:"varint,2,opt,name=status,proto3,enum=pbgo.ClusterStatus" json:"status,omitempty"` + Status ClusterStatus `protobuf:"varint,2,opt,name=status,proto3,enum=tks_pb.ClusterStatus" json:"status,omitempty"` } func (x *UpdateClusterStatusRequest) Reset() { @@ -767,7 +767,7 @@ type GetAppGroupsRequest struct { // app_name is a name of the application AppGroupName string `protobuf:"bytes,1,opt,name=app_group_name,json=appGroupName,proto3" json:"app_group_name,omitempty"` // app_type is a type of the application - Type AppGroupType `protobuf:"varint,2,opt,name=type,proto3,enum=pbgo.AppGroupType" json:"type,omitempty"` + Type AppGroupType `protobuf:"varint,2,opt,name=type,proto3,enum=tks_pb.AppGroupType" json:"type,omitempty"` } func (x *GetAppGroupsRequest) Reset() { @@ -872,7 +872,7 @@ type GetAppGroupResponse struct { unknownFields protoimpl.UnknownFields // code is a response code. - Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=pbgo.Code" json:"code,omitempty"` + Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=tks_pb.Code" json:"code,omitempty"` // error is a detailed error message. Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // app_group is an application group @@ -939,7 +939,7 @@ type GetAppGroupsResponse struct { unknownFields protoimpl.UnknownFields // code is a response code. - Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=pbgo.Code" json:"code,omitempty"` + Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=tks_pb.Code" json:"code,omitempty"` // error is a detailed error message. Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // app_groups is an array of applications @@ -1008,7 +1008,7 @@ type UpdateAppGroupStatusRequest struct { // app_group_id is the application group id to change the status AppGroupId string `protobuf:"bytes,1,opt,name=app_group_id,json=appGroupId,proto3" json:"app_group_id,omitempty"` // status is a AppStatus of the application - Status AppGroupStatus `protobuf:"varint,2,opt,name=status,proto3,enum=pbgo.AppGroupStatus" json:"status,omitempty"` + Status AppGroupStatus `protobuf:"varint,2,opt,name=status,proto3,enum=tks_pb.AppGroupStatus" json:"status,omitempty"` } func (x *UpdateAppGroupStatusRequest) Reset() { @@ -1057,7 +1057,7 @@ func (x *UpdateAppGroupStatusRequest) GetStatus() AppGroupStatus { return AppGroupStatus_APP_GROUP_UNSPECIFIED } -// UpdateAppRequest updates an information of application such as endpoints. +// UpdateAppRequest updates information of application such as endpoints. type UpdateAppRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1066,7 +1066,7 @@ type UpdateAppRequest struct { // app_group_id is the application group id. AppGroupId string `protobuf:"bytes,1,opt,name=app_group_id,json=appGroupId,proto3" json:"app_group_id,omitempty"` // app_type is a type of the application - AppType AppType `protobuf:"varint,2,opt,name=app_type,json=appType,proto3,enum=pbgo.AppType" json:"app_type,omitempty"` + AppType AppType `protobuf:"varint,2,opt,name=app_type,json=appType,proto3,enum=tks_pb.AppType" json:"app_type,omitempty"` // endpoints is an endpoint string. Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // metadata is an unstructured metadata for application. @@ -1142,7 +1142,7 @@ type GetAppsRequest struct { // app_group_id is a name of the application AppGroupId string `protobuf:"bytes,1,opt,name=app_group_id,json=appGroupId,proto3" json:"app_group_id,omitempty"` // app_type is a type of the application - Type AppType `protobuf:"varint,2,opt,name=type,proto3,enum=pbgo.AppType" json:"type,omitempty"` + Type AppType `protobuf:"varint,2,opt,name=type,proto3,enum=tks_pb.AppType" json:"type,omitempty"` } func (x *GetAppsRequest) Reset() { @@ -1198,7 +1198,7 @@ type GetAppsResponse struct { unknownFields protoimpl.UnknownFields // code is a response code. - Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=pbgo.Code" json:"code,omitempty"` + Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=tks_pb.Code" json:"code,omitempty"` // error is a detailed error message. Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // app_groups is an array of applications @@ -1261,229 +1261,237 @@ func (x *GetAppsResponse) GetApps() []*Application { var File_info_proto protoreflect.FileDescriptor var file_info_proto_rawDesc = []byte{ - 0x0a, 0x0a, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x70, 0x62, - 0x67, 0x6f, 0x1a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x66, 0x0a, - 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x53, 0x50, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, + 0x0a, 0x0a, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x74, 0x6b, + 0x73, 0x5f, 0x70, 0x62, 0x1a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0x66, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x53, 0x50, 0x49, 0x6e, 0x66, 0x6f, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, + 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x73, 0x70, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x73, 0x70, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x61, 0x75, 0x74, 0x68, 0x22, 0x6f, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x43, 0x53, + 0x50, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, + 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x74, 0x6b, + 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, + 0x23, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, + 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x61, 0x75, 0x74, 0x68, 0x22, 0x41, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x43, 0x53, 0x50, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x15, 0x0a, 0x06, 0x63, 0x73, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x63, 0x73, 0x70, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x75, 0x74, 0x68, 0x22, 0x8c, 0x01, 0x0a, 0x15, + 0x41, 0x64, 0x64, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x73, 0x70, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x73, 0x70, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x61, 0x75, 0x74, 0x68, 0x22, 0x6b, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x43, 0x53, 0x50, 0x41, - 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x04, 0x63, - 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x67, 0x6f, - 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x21, 0x0a, 0x05, 0x65, - 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x67, - 0x6f, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x12, - 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x75, - 0x74, 0x68, 0x22, 0x41, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x53, 0x50, 0x41, - 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x63, 0x73, - 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x73, 0x70, 0x49, - 0x64, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x61, 0x75, 0x74, 0x68, 0x22, 0x8a, 0x01, 0x0a, 0x15, 0x41, 0x64, 0x64, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, - 0x12, 0x15, 0x0a, 0x06, 0x63, 0x73, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x63, 0x73, 0x70, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x04, 0x63, - 0x6f, 0x6e, 0x66, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x67, 0x6f, - 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x52, 0x04, 0x63, 0x6f, - 0x6e, 0x66, 0x22, 0x60, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, - 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x25, 0x0a, - 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, - 0x67, 0x6f, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x52, 0x04, - 0x63, 0x6f, 0x6e, 0x66, 0x22, 0x32, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, 0x80, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x1e, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, - 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, - 0x21, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, - 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, - 0x6f, 0x72, 0x12, 0x27, 0x0a, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x63, 0x73, 0x70, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x73, 0x70, 0x49, 0x64, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x27, 0x0a, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x13, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x43, 0x6f, 0x6e, 0x66, 0x52, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x22, 0x62, 0x0a, 0x18, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x52, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x22, 0x32, + 0x0a, 0x11, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x49, 0x64, 0x22, 0x86, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x04, 0x63, 0x6f, 0x64, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, + 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x05, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x6b, 0x73, + 0x5f, 0x70, 0x62, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, + 0x12, 0x29, 0x0a, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x22, 0x4c, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x63, 0x73, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x73, 0x70, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, - 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x22, 0x83, 0x01, 0x0a, 0x13, 0x47, 0x65, + 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x22, 0x89, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x1e, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x0a, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, - 0x65, 0x12, 0x21, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, - 0x72, 0x72, 0x6f, 0x72, 0x12, 0x29, 0x0a, 0x08, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x08, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x22, - 0x68, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, - 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x70, - 0x62, 0x67, 0x6f, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x63, 0x0a, 0x15, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, - 0x64, 0x12, 0x2b, 0x0a, 0x09, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x41, 0x70, 0x70, 0x47, - 0x72, 0x6f, 0x75, 0x70, 0x52, 0x08, 0x61, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x39, - 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x65, 0x12, 0x20, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x0c, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, + 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x45, 0x72, 0x72, 0x6f, + 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2b, 0x0a, 0x08, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x6b, 0x73, + 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x08, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x73, 0x22, 0x6a, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x49, 0x64, 0x12, 0x2d, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x22, 0x65, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x70, 0x70, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2d, 0x0a, 0x09, 0x61, 0x70, 0x70, + 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, + 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x08, + 0x61, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x39, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x20, 0x0a, 0x0c, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x49, 0x64, 0x22, 0x65, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, + 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x61, 0x70, + 0x70, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0c, 0x61, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x28, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, + 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x36, 0x0a, 0x12, 0x47, 0x65, + 0x74, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x20, 0x0a, 0x0c, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x49, 0x64, 0x22, 0x8b, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, + 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x04, 0x63, 0x6f, + 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, + 0x62, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x05, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x6b, + 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x12, 0x2d, 0x0a, 0x09, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x41, 0x70, + 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x08, 0x61, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x22, 0x8e, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x04, 0x63, 0x6f, 0x64, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, + 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x05, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x6b, 0x73, + 0x5f, 0x70, 0x62, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, + 0x12, 0x2f, 0x0a, 0x0a, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x03, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x41, 0x70, + 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x09, 0x61, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x73, 0x22, 0x6f, 0x0a, 0x1b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x70, 0x70, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x20, 0x0a, 0x0c, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x41, 0x70, 0x70, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x22, 0x98, 0x01, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x70, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0c, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, - 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x22, 0x63, 0x0a, 0x13, 0x47, 0x65, 0x74, - 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x24, 0x0a, 0x0e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x70, 0x70, 0x47, 0x72, 0x6f, - 0x75, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x41, 0x70, 0x70, 0x47, - 0x72, 0x6f, 0x75, 0x70, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x36, - 0x0a, 0x12, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0c, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x70, 0x47, - 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x22, 0x85, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, 0x70, - 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, - 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x70, - 0x62, 0x67, 0x6f, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x21, - 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, - 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x12, 0x2b, 0x0a, 0x09, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x41, 0x70, 0x70, 0x47, - 0x72, 0x6f, 0x75, 0x70, 0x52, 0x08, 0x61, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x88, - 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x43, 0x6f, 0x64, - 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x21, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x45, 0x72, - 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2d, 0x0a, 0x0a, 0x61, 0x70, - 0x70, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, - 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x09, - 0x61, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x22, 0x6d, 0x0a, 0x1b, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0c, 0x61, 0x70, 0x70, 0x5f, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, - 0x61, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x70, 0x62, 0x67, - 0x6f, 0x2e, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x96, 0x01, 0x0a, 0x10, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x41, 0x70, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, - 0x0c, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, - 0x28, 0x0a, 0x08, 0x61, 0x70, 0x70, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x41, 0x70, 0x70, 0x54, 0x79, 0x70, 0x65, - 0x52, 0x07, 0x61, 0x70, 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, - 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, - 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x22, 0x55, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0c, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x70, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x41, 0x70, 0x70, 0x54, 0x79, - 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x7b, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, - 0x70, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x04, 0x63, - 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x67, 0x6f, - 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x21, 0x0a, 0x05, 0x65, - 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x67, - 0x6f, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x25, - 0x0a, 0x04, 0x61, 0x70, 0x70, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, - 0x62, 0x67, 0x6f, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x04, 0x61, 0x70, 0x70, 0x73, 0x32, 0xfe, 0x02, 0x0a, 0x12, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x41, 0x0a, 0x0e, - 0x41, 0x64, 0x64, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1b, - 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x70, 0x62, - 0x67, 0x6f, 0x2e, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x4b, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x43, 0x6f, 0x6e, 0x66, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x53, 0x69, 0x6d, 0x70, - 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x0a, - 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x67, - 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x44, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x12, 0x18, - 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, - 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x2e, 0x70, - 0x62, 0x67, 0x6f, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, - 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x32, 0xca, 0x02, 0x0a, 0x0e, 0x43, 0x73, 0x70, 0x49, 0x6e, - 0x66, 0x6f, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x43, 0x53, 0x50, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x67, - 0x6f, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x53, 0x50, 0x49, 0x6e, 0x66, 0x6f, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x49, 0x44, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x38, 0x0a, 0x09, 0x47, 0x65, - 0x74, 0x43, 0x53, 0x50, 0x49, 0x44, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, - 0x11, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x49, 0x44, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x3d, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x43, 0x53, 0x50, 0x49, 0x44, - 0x73, 0x42, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x44, 0x12, 0x0f, 0x2e, - 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, - 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x49, 0x44, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x53, 0x50, - 0x41, 0x75, 0x74, 0x68, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x43, 0x53, 0x50, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x43, - 0x53, 0x50, 0x41, 0x75, 0x74, 0x68, 0x12, 0x0f, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x49, 0x44, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x47, - 0x65, 0x74, 0x43, 0x53, 0x50, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x32, 0xfe, 0x04, 0x0a, 0x0e, 0x41, 0x70, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x41, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x49, 0x44, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x48, 0x0a, 0x17, 0x47, 0x65, 0x74, - 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x49, 0x44, 0x12, 0x0f, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x49, 0x44, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x47, 0x65, 0x74, + 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x08, 0x61, 0x70, 0x70, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0f, 0x2e, 0x74, 0x6b, + 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x41, 0x70, 0x70, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x61, 0x70, + 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, + 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x57, 0x0a, + 0x0e, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x20, 0x0a, 0x0c, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, + 0x64, 0x12, 0x23, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x0f, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x41, 0x70, 0x70, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x81, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x70, + 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x04, 0x63, 0x6f, + 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, + 0x62, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x05, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x6b, + 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x12, 0x27, 0x0a, 0x04, 0x61, 0x70, 0x70, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x13, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x61, 0x70, 0x70, 0x73, 0x32, 0x92, 0x03, 0x0a, 0x12, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x12, 0x45, 0x0a, 0x0e, 0x41, 0x64, 0x64, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, + 0x6e, 0x66, 0x6f, 0x12, 0x1d, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x41, 0x64, 0x64, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x49, 0x44, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x12, 0x20, 0x2e, + 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x16, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x0a, 0x47, 0x65, 0x74, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x19, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, + 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x48, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x12, + 0x1a, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x74, 0x6b, + 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x53, 0x0a, 0x13, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x22, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x53, + 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x32, + 0xdc, 0x02, 0x0a, 0x0e, 0x43, 0x73, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x12, 0x43, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x53, 0x50, 0x49, + 0x6e, 0x66, 0x6f, 0x12, 0x1c, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x43, 0x53, 0x50, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x12, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x49, 0x44, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3a, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x43, 0x53, + 0x50, 0x49, 0x44, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x13, 0x2e, 0x74, + 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x49, 0x44, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x43, 0x53, 0x50, 0x49, 0x44, 0x73, + 0x42, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x44, 0x12, 0x11, 0x2e, 0x74, + 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x13, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x49, 0x44, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x43, 0x53, 0x50, 0x41, 0x75, 0x74, 0x68, 0x12, 0x1c, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, + 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x53, 0x50, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x53, + 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x3d, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x43, 0x53, 0x50, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x2e, + 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1a, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x53, 0x50, + 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x32, 0xa2, + 0x05, 0x0a, 0x0e, 0x41, 0x70, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x12, 0x45, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x70, 0x70, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x12, 0x1d, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x49, 0x44, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x41, + 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x49, 0x44, 0x12, 0x11, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x49, 0x44, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, + 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x1b, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, + 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, - 0x75, 0x70, 0x73, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x70, - 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, - 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x44, 0x0a, 0x0b, - 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x18, 0x2e, 0x70, 0x62, - 0x67, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x47, 0x65, 0x74, - 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x51, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x70, 0x70, 0x47, - 0x72, 0x6f, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x67, - 0x6f, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, - 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, - 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x53, 0x69, 0x6d, 0x70, - 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x13, - 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x73, 0x42, 0x79, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x49, 0x44, 0x12, 0x0f, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x49, 0x44, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x41, - 0x70, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x38, 0x0a, - 0x07, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x73, 0x12, 0x14, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, - 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, - 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3b, 0x0a, 0x09, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x41, 0x70, 0x70, 0x12, 0x16, 0x2e, 0x70, 0x62, 0x67, 0x6f, 0x2e, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x41, 0x70, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, - 0x62, 0x67, 0x6f, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x42, 0x28, 0x5a, 0x26, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x64, 0x65, 0x76, 0x2f, - 0x74, 0x6b, 0x73, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x62, 0x67, 0x6f, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x22, 0x00, 0x12, 0x48, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, + 0x75, 0x70, 0x12, 0x1a, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x41, + 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, + 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x55, 0x0a, + 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x23, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x74, 0x6b, 0x73, + 0x5f, 0x70, 0x62, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x49, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x70, + 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1d, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x53, + 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x43, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x73, 0x42, 0x79, 0x41, 0x70, 0x70, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x49, 0x44, 0x12, 0x11, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, + 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x74, 0x6b, 0x73, 0x5f, + 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x73, 0x12, + 0x16, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, + 0x2e, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x09, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x70, 0x70, 0x12, + 0x18, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, + 0x70, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x74, 0x6b, 0x73, 0x5f, + 0x70, 0x62, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x42, 0x27, 0x5a, 0x25, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x73, 0x6b, 0x74, 0x65, 0x6c, 0x65, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x6b, 0x73, 0x2d, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1500,106 +1508,106 @@ func file_info_proto_rawDescGZIP() []byte { var file_info_proto_msgTypes = make([]protoimpl.MessageInfo, 20) var file_info_proto_goTypes = []interface{}{ - (*CreateCSPInfoRequest)(nil), // 0: pbgo.CreateCSPInfoRequest - (*GetCSPAuthResponse)(nil), // 1: pbgo.GetCSPAuthResponse - (*UpdateCSPAuthRequest)(nil), // 2: pbgo.UpdateCSPAuthRequest - (*AddClusterInfoRequest)(nil), // 3: pbgo.AddClusterInfoRequest - (*UpdateClusterConfRequest)(nil), // 4: pbgo.UpdateClusterConfRequest - (*GetClusterRequest)(nil), // 5: pbgo.GetClusterRequest - (*GetClusterResponse)(nil), // 6: pbgo.GetClusterResponse - (*GetClustersRequest)(nil), // 7: pbgo.GetClustersRequest - (*GetClustersResponse)(nil), // 8: pbgo.GetClustersResponse - (*UpdateClusterStatusRequest)(nil), // 9: pbgo.UpdateClusterStatusRequest - (*CreateAppGroupRequest)(nil), // 10: pbgo.CreateAppGroupRequest - (*DeleteAppGroupRequest)(nil), // 11: pbgo.DeleteAppGroupRequest - (*GetAppGroupsRequest)(nil), // 12: pbgo.GetAppGroupsRequest - (*GetAppGroupRequest)(nil), // 13: pbgo.GetAppGroupRequest - (*GetAppGroupResponse)(nil), // 14: pbgo.GetAppGroupResponse - (*GetAppGroupsResponse)(nil), // 15: pbgo.GetAppGroupsResponse - (*UpdateAppGroupStatusRequest)(nil), // 16: pbgo.UpdateAppGroupStatusRequest - (*UpdateAppRequest)(nil), // 17: pbgo.UpdateAppRequest - (*GetAppsRequest)(nil), // 18: pbgo.GetAppsRequest - (*GetAppsResponse)(nil), // 19: pbgo.GetAppsResponse - (Code)(0), // 20: pbgo.Code - (*Error)(nil), // 21: pbgo.Error - (*ClusterConf)(nil), // 22: pbgo.ClusterConf - (*Cluster)(nil), // 23: pbgo.Cluster - (ClusterStatus)(0), // 24: pbgo.ClusterStatus - (*AppGroup)(nil), // 25: pbgo.AppGroup - (AppGroupType)(0), // 26: pbgo.AppGroupType - (AppGroupStatus)(0), // 27: pbgo.AppGroupStatus - (AppType)(0), // 28: pbgo.AppType - (*Application)(nil), // 29: pbgo.Application + (*CreateCSPInfoRequest)(nil), // 0: tks_pb.CreateCSPInfoRequest + (*GetCSPAuthResponse)(nil), // 1: tks_pb.GetCSPAuthResponse + (*UpdateCSPAuthRequest)(nil), // 2: tks_pb.UpdateCSPAuthRequest + (*AddClusterInfoRequest)(nil), // 3: tks_pb.AddClusterInfoRequest + (*UpdateClusterConfRequest)(nil), // 4: tks_pb.UpdateClusterConfRequest + (*GetClusterRequest)(nil), // 5: tks_pb.GetClusterRequest + (*GetClusterResponse)(nil), // 6: tks_pb.GetClusterResponse + (*GetClustersRequest)(nil), // 7: tks_pb.GetClustersRequest + (*GetClustersResponse)(nil), // 8: tks_pb.GetClustersResponse + (*UpdateClusterStatusRequest)(nil), // 9: tks_pb.UpdateClusterStatusRequest + (*CreateAppGroupRequest)(nil), // 10: tks_pb.CreateAppGroupRequest + (*DeleteAppGroupRequest)(nil), // 11: tks_pb.DeleteAppGroupRequest + (*GetAppGroupsRequest)(nil), // 12: tks_pb.GetAppGroupsRequest + (*GetAppGroupRequest)(nil), // 13: tks_pb.GetAppGroupRequest + (*GetAppGroupResponse)(nil), // 14: tks_pb.GetAppGroupResponse + (*GetAppGroupsResponse)(nil), // 15: tks_pb.GetAppGroupsResponse + (*UpdateAppGroupStatusRequest)(nil), // 16: tks_pb.UpdateAppGroupStatusRequest + (*UpdateAppRequest)(nil), // 17: tks_pb.UpdateAppRequest + (*GetAppsRequest)(nil), // 18: tks_pb.GetAppsRequest + (*GetAppsResponse)(nil), // 19: tks_pb.GetAppsResponse + (Code)(0), // 20: tks_pb.Code + (*Error)(nil), // 21: tks_pb.Error + (*ClusterConf)(nil), // 22: tks_pb.ClusterConf + (*Cluster)(nil), // 23: tks_pb.Cluster + (ClusterStatus)(0), // 24: tks_pb.ClusterStatus + (*AppGroup)(nil), // 25: tks_pb.AppGroup + (AppGroupType)(0), // 26: tks_pb.AppGroupType + (AppGroupStatus)(0), // 27: tks_pb.AppGroupStatus + (AppType)(0), // 28: tks_pb.AppType + (*Application)(nil), // 29: tks_pb.Application (*emptypb.Empty)(nil), // 30: google.protobuf.Empty - (*IDRequest)(nil), // 31: pbgo.IDRequest - (*IDResponse)(nil), // 32: pbgo.IDResponse - (*SimpleResponse)(nil), // 33: pbgo.SimpleResponse - (*IDsResponse)(nil), // 34: pbgo.IDsResponse + (*IDRequest)(nil), // 31: tks_pb.IDRequest + (*IDResponse)(nil), // 32: tks_pb.IDResponse + (*SimpleResponse)(nil), // 33: tks_pb.SimpleResponse + (*IDsResponse)(nil), // 34: tks_pb.IDsResponse } var file_info_proto_depIdxs = []int32{ - 20, // 0: pbgo.GetCSPAuthResponse.code:type_name -> pbgo.Code - 21, // 1: pbgo.GetCSPAuthResponse.error:type_name -> pbgo.Error - 22, // 2: pbgo.AddClusterInfoRequest.conf:type_name -> pbgo.ClusterConf - 22, // 3: pbgo.UpdateClusterConfRequest.conf:type_name -> pbgo.ClusterConf - 20, // 4: pbgo.GetClusterResponse.code:type_name -> pbgo.Code - 21, // 5: pbgo.GetClusterResponse.error:type_name -> pbgo.Error - 23, // 6: pbgo.GetClusterResponse.cluster:type_name -> pbgo.Cluster - 20, // 7: pbgo.GetClustersResponse.code:type_name -> pbgo.Code - 21, // 8: pbgo.GetClustersResponse.error:type_name -> pbgo.Error - 23, // 9: pbgo.GetClustersResponse.clusters:type_name -> pbgo.Cluster - 24, // 10: pbgo.UpdateClusterStatusRequest.status:type_name -> pbgo.ClusterStatus - 25, // 11: pbgo.CreateAppGroupRequest.app_group:type_name -> pbgo.AppGroup - 26, // 12: pbgo.GetAppGroupsRequest.type:type_name -> pbgo.AppGroupType - 20, // 13: pbgo.GetAppGroupResponse.code:type_name -> pbgo.Code - 21, // 14: pbgo.GetAppGroupResponse.error:type_name -> pbgo.Error - 25, // 15: pbgo.GetAppGroupResponse.app_group:type_name -> pbgo.AppGroup - 20, // 16: pbgo.GetAppGroupsResponse.code:type_name -> pbgo.Code - 21, // 17: pbgo.GetAppGroupsResponse.error:type_name -> pbgo.Error - 25, // 18: pbgo.GetAppGroupsResponse.app_groups:type_name -> pbgo.AppGroup - 27, // 19: pbgo.UpdateAppGroupStatusRequest.status:type_name -> pbgo.AppGroupStatus - 28, // 20: pbgo.UpdateAppRequest.app_type:type_name -> pbgo.AppType - 28, // 21: pbgo.GetAppsRequest.type:type_name -> pbgo.AppType - 20, // 22: pbgo.GetAppsResponse.code:type_name -> pbgo.Code - 21, // 23: pbgo.GetAppsResponse.error:type_name -> pbgo.Error - 29, // 24: pbgo.GetAppsResponse.apps:type_name -> pbgo.Application - 3, // 25: pbgo.ClusterInfoService.AddClusterInfo:input_type -> pbgo.AddClusterInfoRequest - 4, // 26: pbgo.ClusterInfoService.UpdateClusterConf:input_type -> pbgo.UpdateClusterConfRequest - 5, // 27: pbgo.ClusterInfoService.GetCluster:input_type -> pbgo.GetClusterRequest - 7, // 28: pbgo.ClusterInfoService.GetClusters:input_type -> pbgo.GetClustersRequest - 9, // 29: pbgo.ClusterInfoService.UpdateClusterStatus:input_type -> pbgo.UpdateClusterStatusRequest - 0, // 30: pbgo.CspInfoService.CreateCSPInfo:input_type -> pbgo.CreateCSPInfoRequest - 30, // 31: pbgo.CspInfoService.GetCSPIDs:input_type -> google.protobuf.Empty - 31, // 32: pbgo.CspInfoService.GetCSPIDsByContractID:input_type -> pbgo.IDRequest - 2, // 33: pbgo.CspInfoService.UpdateCSPAuth:input_type -> pbgo.UpdateCSPAuthRequest - 31, // 34: pbgo.CspInfoService.GetCSPAuth:input_type -> pbgo.IDRequest - 10, // 35: pbgo.AppInfoService.CreateAppGroup:input_type -> pbgo.CreateAppGroupRequest - 31, // 36: pbgo.AppInfoService.GetAppGroupsByClusterID:input_type -> pbgo.IDRequest - 12, // 37: pbgo.AppInfoService.GetAppGroups:input_type -> pbgo.GetAppGroupsRequest - 13, // 38: pbgo.AppInfoService.GetAppGroup:input_type -> pbgo.GetAppGroupRequest - 16, // 39: pbgo.AppInfoService.UpdateAppGroupStatus:input_type -> pbgo.UpdateAppGroupStatusRequest - 11, // 40: pbgo.AppInfoService.DeleteAppGroup:input_type -> pbgo.DeleteAppGroupRequest - 31, // 41: pbgo.AppInfoService.GetAppsByAppGroupID:input_type -> pbgo.IDRequest - 18, // 42: pbgo.AppInfoService.GetApps:input_type -> pbgo.GetAppsRequest - 17, // 43: pbgo.AppInfoService.UpdateApp:input_type -> pbgo.UpdateAppRequest - 32, // 44: pbgo.ClusterInfoService.AddClusterInfo:output_type -> pbgo.IDResponse - 33, // 45: pbgo.ClusterInfoService.UpdateClusterConf:output_type -> pbgo.SimpleResponse - 6, // 46: pbgo.ClusterInfoService.GetCluster:output_type -> pbgo.GetClusterResponse - 8, // 47: pbgo.ClusterInfoService.GetClusters:output_type -> pbgo.GetClustersResponse - 33, // 48: pbgo.ClusterInfoService.UpdateClusterStatus:output_type -> pbgo.SimpleResponse - 32, // 49: pbgo.CspInfoService.CreateCSPInfo:output_type -> pbgo.IDResponse - 34, // 50: pbgo.CspInfoService.GetCSPIDs:output_type -> pbgo.IDsResponse - 34, // 51: pbgo.CspInfoService.GetCSPIDsByContractID:output_type -> pbgo.IDsResponse - 33, // 52: pbgo.CspInfoService.UpdateCSPAuth:output_type -> pbgo.SimpleResponse - 1, // 53: pbgo.CspInfoService.GetCSPAuth:output_type -> pbgo.GetCSPAuthResponse - 32, // 54: pbgo.AppInfoService.CreateAppGroup:output_type -> pbgo.IDResponse - 15, // 55: pbgo.AppInfoService.GetAppGroupsByClusterID:output_type -> pbgo.GetAppGroupsResponse - 15, // 56: pbgo.AppInfoService.GetAppGroups:output_type -> pbgo.GetAppGroupsResponse - 14, // 57: pbgo.AppInfoService.GetAppGroup:output_type -> pbgo.GetAppGroupResponse - 33, // 58: pbgo.AppInfoService.UpdateAppGroupStatus:output_type -> pbgo.SimpleResponse - 33, // 59: pbgo.AppInfoService.DeleteAppGroup:output_type -> pbgo.SimpleResponse - 19, // 60: pbgo.AppInfoService.GetAppsByAppGroupID:output_type -> pbgo.GetAppsResponse - 19, // 61: pbgo.AppInfoService.GetApps:output_type -> pbgo.GetAppsResponse - 33, // 62: pbgo.AppInfoService.UpdateApp:output_type -> pbgo.SimpleResponse + 20, // 0: tks_pb.GetCSPAuthResponse.code:type_name -> tks_pb.Code + 21, // 1: tks_pb.GetCSPAuthResponse.error:type_name -> tks_pb.Error + 22, // 2: tks_pb.AddClusterInfoRequest.conf:type_name -> tks_pb.ClusterConf + 22, // 3: tks_pb.UpdateClusterConfRequest.conf:type_name -> tks_pb.ClusterConf + 20, // 4: tks_pb.GetClusterResponse.code:type_name -> tks_pb.Code + 21, // 5: tks_pb.GetClusterResponse.error:type_name -> tks_pb.Error + 23, // 6: tks_pb.GetClusterResponse.cluster:type_name -> tks_pb.Cluster + 20, // 7: tks_pb.GetClustersResponse.code:type_name -> tks_pb.Code + 21, // 8: tks_pb.GetClustersResponse.error:type_name -> tks_pb.Error + 23, // 9: tks_pb.GetClustersResponse.clusters:type_name -> tks_pb.Cluster + 24, // 10: tks_pb.UpdateClusterStatusRequest.status:type_name -> tks_pb.ClusterStatus + 25, // 11: tks_pb.CreateAppGroupRequest.app_group:type_name -> tks_pb.AppGroup + 26, // 12: tks_pb.GetAppGroupsRequest.type:type_name -> tks_pb.AppGroupType + 20, // 13: tks_pb.GetAppGroupResponse.code:type_name -> tks_pb.Code + 21, // 14: tks_pb.GetAppGroupResponse.error:type_name -> tks_pb.Error + 25, // 15: tks_pb.GetAppGroupResponse.app_group:type_name -> tks_pb.AppGroup + 20, // 16: tks_pb.GetAppGroupsResponse.code:type_name -> tks_pb.Code + 21, // 17: tks_pb.GetAppGroupsResponse.error:type_name -> tks_pb.Error + 25, // 18: tks_pb.GetAppGroupsResponse.app_groups:type_name -> tks_pb.AppGroup + 27, // 19: tks_pb.UpdateAppGroupStatusRequest.status:type_name -> tks_pb.AppGroupStatus + 28, // 20: tks_pb.UpdateAppRequest.app_type:type_name -> tks_pb.AppType + 28, // 21: tks_pb.GetAppsRequest.type:type_name -> tks_pb.AppType + 20, // 22: tks_pb.GetAppsResponse.code:type_name -> tks_pb.Code + 21, // 23: tks_pb.GetAppsResponse.error:type_name -> tks_pb.Error + 29, // 24: tks_pb.GetAppsResponse.apps:type_name -> tks_pb.Application + 3, // 25: tks_pb.ClusterInfoService.AddClusterInfo:input_type -> tks_pb.AddClusterInfoRequest + 4, // 26: tks_pb.ClusterInfoService.UpdateClusterConf:input_type -> tks_pb.UpdateClusterConfRequest + 5, // 27: tks_pb.ClusterInfoService.GetCluster:input_type -> tks_pb.GetClusterRequest + 7, // 28: tks_pb.ClusterInfoService.GetClusters:input_type -> tks_pb.GetClustersRequest + 9, // 29: tks_pb.ClusterInfoService.UpdateClusterStatus:input_type -> tks_pb.UpdateClusterStatusRequest + 0, // 30: tks_pb.CspInfoService.CreateCSPInfo:input_type -> tks_pb.CreateCSPInfoRequest + 30, // 31: tks_pb.CspInfoService.GetCSPIDs:input_type -> google.protobuf.Empty + 31, // 32: tks_pb.CspInfoService.GetCSPIDsByContractID:input_type -> tks_pb.IDRequest + 2, // 33: tks_pb.CspInfoService.UpdateCSPAuth:input_type -> tks_pb.UpdateCSPAuthRequest + 31, // 34: tks_pb.CspInfoService.GetCSPAuth:input_type -> tks_pb.IDRequest + 10, // 35: tks_pb.AppInfoService.CreateAppGroup:input_type -> tks_pb.CreateAppGroupRequest + 31, // 36: tks_pb.AppInfoService.GetAppGroupsByClusterID:input_type -> tks_pb.IDRequest + 12, // 37: tks_pb.AppInfoService.GetAppGroups:input_type -> tks_pb.GetAppGroupsRequest + 13, // 38: tks_pb.AppInfoService.GetAppGroup:input_type -> tks_pb.GetAppGroupRequest + 16, // 39: tks_pb.AppInfoService.UpdateAppGroupStatus:input_type -> tks_pb.UpdateAppGroupStatusRequest + 11, // 40: tks_pb.AppInfoService.DeleteAppGroup:input_type -> tks_pb.DeleteAppGroupRequest + 31, // 41: tks_pb.AppInfoService.GetAppsByAppGroupID:input_type -> tks_pb.IDRequest + 18, // 42: tks_pb.AppInfoService.GetApps:input_type -> tks_pb.GetAppsRequest + 17, // 43: tks_pb.AppInfoService.UpdateApp:input_type -> tks_pb.UpdateAppRequest + 32, // 44: tks_pb.ClusterInfoService.AddClusterInfo:output_type -> tks_pb.IDResponse + 33, // 45: tks_pb.ClusterInfoService.UpdateClusterConf:output_type -> tks_pb.SimpleResponse + 6, // 46: tks_pb.ClusterInfoService.GetCluster:output_type -> tks_pb.GetClusterResponse + 8, // 47: tks_pb.ClusterInfoService.GetClusters:output_type -> tks_pb.GetClustersResponse + 33, // 48: tks_pb.ClusterInfoService.UpdateClusterStatus:output_type -> tks_pb.SimpleResponse + 32, // 49: tks_pb.CspInfoService.CreateCSPInfo:output_type -> tks_pb.IDResponse + 34, // 50: tks_pb.CspInfoService.GetCSPIDs:output_type -> tks_pb.IDsResponse + 34, // 51: tks_pb.CspInfoService.GetCSPIDsByContractID:output_type -> tks_pb.IDsResponse + 33, // 52: tks_pb.CspInfoService.UpdateCSPAuth:output_type -> tks_pb.SimpleResponse + 1, // 53: tks_pb.CspInfoService.GetCSPAuth:output_type -> tks_pb.GetCSPAuthResponse + 32, // 54: tks_pb.AppInfoService.CreateAppGroup:output_type -> tks_pb.IDResponse + 15, // 55: tks_pb.AppInfoService.GetAppGroupsByClusterID:output_type -> tks_pb.GetAppGroupsResponse + 15, // 56: tks_pb.AppInfoService.GetAppGroups:output_type -> tks_pb.GetAppGroupsResponse + 14, // 57: tks_pb.AppInfoService.GetAppGroup:output_type -> tks_pb.GetAppGroupResponse + 33, // 58: tks_pb.AppInfoService.UpdateAppGroupStatus:output_type -> tks_pb.SimpleResponse + 33, // 59: tks_pb.AppInfoService.DeleteAppGroup:output_type -> tks_pb.SimpleResponse + 19, // 60: tks_pb.AppInfoService.GetAppsByAppGroupID:output_type -> tks_pb.GetAppsResponse + 19, // 61: tks_pb.AppInfoService.GetApps:output_type -> tks_pb.GetAppsResponse + 33, // 62: tks_pb.AppInfoService.UpdateApp:output_type -> tks_pb.SimpleResponse 44, // [44:63] is the sub-list for method output_type 25, // [25:44] is the sub-list for method input_type 25, // [25:25] is the sub-list for extension type_name diff --git a/pbgo/info_grpc.pb.go b/tks_pb/info_grpc.pb.go similarity index 92% rename from pbgo/info_grpc.pb.go rename to tks_pb/info_grpc.pb.go index 5702148..a2c2d27 100644 --- a/pbgo/info_grpc.pb.go +++ b/tks_pb/info_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. -package pbgo +package tks_pb import ( context "context" @@ -41,7 +41,7 @@ func NewClusterInfoServiceClient(cc grpc.ClientConnInterface) ClusterInfoService func (c *clusterInfoServiceClient) AddClusterInfo(ctx context.Context, in *AddClusterInfoRequest, opts ...grpc.CallOption) (*IDResponse, error) { out := new(IDResponse) - err := c.cc.Invoke(ctx, "/pbgo.ClusterInfoService/AddClusterInfo", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.ClusterInfoService/AddClusterInfo", in, out, opts...) if err != nil { return nil, err } @@ -50,7 +50,7 @@ func (c *clusterInfoServiceClient) AddClusterInfo(ctx context.Context, in *AddCl func (c *clusterInfoServiceClient) UpdateClusterConf(ctx context.Context, in *UpdateClusterConfRequest, opts ...grpc.CallOption) (*SimpleResponse, error) { out := new(SimpleResponse) - err := c.cc.Invoke(ctx, "/pbgo.ClusterInfoService/UpdateClusterConf", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.ClusterInfoService/UpdateClusterConf", in, out, opts...) if err != nil { return nil, err } @@ -59,7 +59,7 @@ func (c *clusterInfoServiceClient) UpdateClusterConf(ctx context.Context, in *Up func (c *clusterInfoServiceClient) GetCluster(ctx context.Context, in *GetClusterRequest, opts ...grpc.CallOption) (*GetClusterResponse, error) { out := new(GetClusterResponse) - err := c.cc.Invoke(ctx, "/pbgo.ClusterInfoService/GetCluster", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.ClusterInfoService/GetCluster", in, out, opts...) if err != nil { return nil, err } @@ -68,7 +68,7 @@ func (c *clusterInfoServiceClient) GetCluster(ctx context.Context, in *GetCluste func (c *clusterInfoServiceClient) GetClusters(ctx context.Context, in *GetClustersRequest, opts ...grpc.CallOption) (*GetClustersResponse, error) { out := new(GetClustersResponse) - err := c.cc.Invoke(ctx, "/pbgo.ClusterInfoService/GetClusters", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.ClusterInfoService/GetClusters", in, out, opts...) if err != nil { return nil, err } @@ -77,7 +77,7 @@ func (c *clusterInfoServiceClient) GetClusters(ctx context.Context, in *GetClust func (c *clusterInfoServiceClient) UpdateClusterStatus(ctx context.Context, in *UpdateClusterStatusRequest, opts ...grpc.CallOption) (*SimpleResponse, error) { out := new(SimpleResponse) - err := c.cc.Invoke(ctx, "/pbgo.ClusterInfoService/UpdateClusterStatus", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.ClusterInfoService/UpdateClusterStatus", in, out, opts...) if err != nil { return nil, err } @@ -143,7 +143,7 @@ func _ClusterInfoService_AddClusterInfo_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.ClusterInfoService/AddClusterInfo", + FullMethod: "/tks_pb.ClusterInfoService/AddClusterInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ClusterInfoServiceServer).AddClusterInfo(ctx, req.(*AddClusterInfoRequest)) @@ -161,7 +161,7 @@ func _ClusterInfoService_UpdateClusterConf_Handler(srv interface{}, ctx context. } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.ClusterInfoService/UpdateClusterConf", + FullMethod: "/tks_pb.ClusterInfoService/UpdateClusterConf", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ClusterInfoServiceServer).UpdateClusterConf(ctx, req.(*UpdateClusterConfRequest)) @@ -179,7 +179,7 @@ func _ClusterInfoService_GetCluster_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.ClusterInfoService/GetCluster", + FullMethod: "/tks_pb.ClusterInfoService/GetCluster", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ClusterInfoServiceServer).GetCluster(ctx, req.(*GetClusterRequest)) @@ -197,7 +197,7 @@ func _ClusterInfoService_GetClusters_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.ClusterInfoService/GetClusters", + FullMethod: "/tks_pb.ClusterInfoService/GetClusters", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ClusterInfoServiceServer).GetClusters(ctx, req.(*GetClustersRequest)) @@ -215,7 +215,7 @@ func _ClusterInfoService_UpdateClusterStatus_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.ClusterInfoService/UpdateClusterStatus", + FullMethod: "/tks_pb.ClusterInfoService/UpdateClusterStatus", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ClusterInfoServiceServer).UpdateClusterStatus(ctx, req.(*UpdateClusterStatusRequest)) @@ -227,7 +227,7 @@ func _ClusterInfoService_UpdateClusterStatus_Handler(srv interface{}, ctx contex // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var ClusterInfoService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "pbgo.ClusterInfoService", + ServiceName: "tks_pb.ClusterInfoService", HandlerType: (*ClusterInfoServiceServer)(nil), Methods: []grpc.MethodDesc{ { @@ -281,7 +281,7 @@ func NewCspInfoServiceClient(cc grpc.ClientConnInterface) CspInfoServiceClient { func (c *cspInfoServiceClient) CreateCSPInfo(ctx context.Context, in *CreateCSPInfoRequest, opts ...grpc.CallOption) (*IDResponse, error) { out := new(IDResponse) - err := c.cc.Invoke(ctx, "/pbgo.CspInfoService/CreateCSPInfo", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.CspInfoService/CreateCSPInfo", in, out, opts...) if err != nil { return nil, err } @@ -290,7 +290,7 @@ func (c *cspInfoServiceClient) CreateCSPInfo(ctx context.Context, in *CreateCSPI func (c *cspInfoServiceClient) GetCSPIDs(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*IDsResponse, error) { out := new(IDsResponse) - err := c.cc.Invoke(ctx, "/pbgo.CspInfoService/GetCSPIDs", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.CspInfoService/GetCSPIDs", in, out, opts...) if err != nil { return nil, err } @@ -299,7 +299,7 @@ func (c *cspInfoServiceClient) GetCSPIDs(ctx context.Context, in *emptypb.Empty, func (c *cspInfoServiceClient) GetCSPIDsByContractID(ctx context.Context, in *IDRequest, opts ...grpc.CallOption) (*IDsResponse, error) { out := new(IDsResponse) - err := c.cc.Invoke(ctx, "/pbgo.CspInfoService/GetCSPIDsByContractID", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.CspInfoService/GetCSPIDsByContractID", in, out, opts...) if err != nil { return nil, err } @@ -308,7 +308,7 @@ func (c *cspInfoServiceClient) GetCSPIDsByContractID(ctx context.Context, in *ID func (c *cspInfoServiceClient) UpdateCSPAuth(ctx context.Context, in *UpdateCSPAuthRequest, opts ...grpc.CallOption) (*SimpleResponse, error) { out := new(SimpleResponse) - err := c.cc.Invoke(ctx, "/pbgo.CspInfoService/UpdateCSPAuth", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.CspInfoService/UpdateCSPAuth", in, out, opts...) if err != nil { return nil, err } @@ -317,7 +317,7 @@ func (c *cspInfoServiceClient) UpdateCSPAuth(ctx context.Context, in *UpdateCSPA func (c *cspInfoServiceClient) GetCSPAuth(ctx context.Context, in *IDRequest, opts ...grpc.CallOption) (*GetCSPAuthResponse, error) { out := new(GetCSPAuthResponse) - err := c.cc.Invoke(ctx, "/pbgo.CspInfoService/GetCSPAuth", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.CspInfoService/GetCSPAuth", in, out, opts...) if err != nil { return nil, err } @@ -383,7 +383,7 @@ func _CspInfoService_CreateCSPInfo_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.CspInfoService/CreateCSPInfo", + FullMethod: "/tks_pb.CspInfoService/CreateCSPInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CspInfoServiceServer).CreateCSPInfo(ctx, req.(*CreateCSPInfoRequest)) @@ -401,7 +401,7 @@ func _CspInfoService_GetCSPIDs_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.CspInfoService/GetCSPIDs", + FullMethod: "/tks_pb.CspInfoService/GetCSPIDs", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CspInfoServiceServer).GetCSPIDs(ctx, req.(*emptypb.Empty)) @@ -419,7 +419,7 @@ func _CspInfoService_GetCSPIDsByContractID_Handler(srv interface{}, ctx context. } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.CspInfoService/GetCSPIDsByContractID", + FullMethod: "/tks_pb.CspInfoService/GetCSPIDsByContractID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CspInfoServiceServer).GetCSPIDsByContractID(ctx, req.(*IDRequest)) @@ -437,7 +437,7 @@ func _CspInfoService_UpdateCSPAuth_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.CspInfoService/UpdateCSPAuth", + FullMethod: "/tks_pb.CspInfoService/UpdateCSPAuth", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CspInfoServiceServer).UpdateCSPAuth(ctx, req.(*UpdateCSPAuthRequest)) @@ -455,7 +455,7 @@ func _CspInfoService_GetCSPAuth_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.CspInfoService/GetCSPAuth", + FullMethod: "/tks_pb.CspInfoService/GetCSPAuth", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CspInfoServiceServer).GetCSPAuth(ctx, req.(*IDRequest)) @@ -467,7 +467,7 @@ func _CspInfoService_GetCSPAuth_Handler(srv interface{}, ctx context.Context, de // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var CspInfoService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "pbgo.CspInfoService", + ServiceName: "tks_pb.CspInfoService", HandlerType: (*CspInfoServiceServer)(nil), Methods: []grpc.MethodDesc{ { @@ -529,7 +529,7 @@ func NewAppInfoServiceClient(cc grpc.ClientConnInterface) AppInfoServiceClient { func (c *appInfoServiceClient) CreateAppGroup(ctx context.Context, in *CreateAppGroupRequest, opts ...grpc.CallOption) (*IDResponse, error) { out := new(IDResponse) - err := c.cc.Invoke(ctx, "/pbgo.AppInfoService/CreateAppGroup", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.AppInfoService/CreateAppGroup", in, out, opts...) if err != nil { return nil, err } @@ -538,7 +538,7 @@ func (c *appInfoServiceClient) CreateAppGroup(ctx context.Context, in *CreateApp func (c *appInfoServiceClient) GetAppGroupsByClusterID(ctx context.Context, in *IDRequest, opts ...grpc.CallOption) (*GetAppGroupsResponse, error) { out := new(GetAppGroupsResponse) - err := c.cc.Invoke(ctx, "/pbgo.AppInfoService/GetAppGroupsByClusterID", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.AppInfoService/GetAppGroupsByClusterID", in, out, opts...) if err != nil { return nil, err } @@ -547,7 +547,7 @@ func (c *appInfoServiceClient) GetAppGroupsByClusterID(ctx context.Context, in * func (c *appInfoServiceClient) GetAppGroups(ctx context.Context, in *GetAppGroupsRequest, opts ...grpc.CallOption) (*GetAppGroupsResponse, error) { out := new(GetAppGroupsResponse) - err := c.cc.Invoke(ctx, "/pbgo.AppInfoService/GetAppGroups", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.AppInfoService/GetAppGroups", in, out, opts...) if err != nil { return nil, err } @@ -556,7 +556,7 @@ func (c *appInfoServiceClient) GetAppGroups(ctx context.Context, in *GetAppGroup func (c *appInfoServiceClient) GetAppGroup(ctx context.Context, in *GetAppGroupRequest, opts ...grpc.CallOption) (*GetAppGroupResponse, error) { out := new(GetAppGroupResponse) - err := c.cc.Invoke(ctx, "/pbgo.AppInfoService/GetAppGroup", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.AppInfoService/GetAppGroup", in, out, opts...) if err != nil { return nil, err } @@ -565,7 +565,7 @@ func (c *appInfoServiceClient) GetAppGroup(ctx context.Context, in *GetAppGroupR func (c *appInfoServiceClient) UpdateAppGroupStatus(ctx context.Context, in *UpdateAppGroupStatusRequest, opts ...grpc.CallOption) (*SimpleResponse, error) { out := new(SimpleResponse) - err := c.cc.Invoke(ctx, "/pbgo.AppInfoService/UpdateAppGroupStatus", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.AppInfoService/UpdateAppGroupStatus", in, out, opts...) if err != nil { return nil, err } @@ -574,7 +574,7 @@ func (c *appInfoServiceClient) UpdateAppGroupStatus(ctx context.Context, in *Upd func (c *appInfoServiceClient) DeleteAppGroup(ctx context.Context, in *DeleteAppGroupRequest, opts ...grpc.CallOption) (*SimpleResponse, error) { out := new(SimpleResponse) - err := c.cc.Invoke(ctx, "/pbgo.AppInfoService/DeleteAppGroup", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.AppInfoService/DeleteAppGroup", in, out, opts...) if err != nil { return nil, err } @@ -583,7 +583,7 @@ func (c *appInfoServiceClient) DeleteAppGroup(ctx context.Context, in *DeleteApp func (c *appInfoServiceClient) GetAppsByAppGroupID(ctx context.Context, in *IDRequest, opts ...grpc.CallOption) (*GetAppsResponse, error) { out := new(GetAppsResponse) - err := c.cc.Invoke(ctx, "/pbgo.AppInfoService/GetAppsByAppGroupID", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.AppInfoService/GetAppsByAppGroupID", in, out, opts...) if err != nil { return nil, err } @@ -592,7 +592,7 @@ func (c *appInfoServiceClient) GetAppsByAppGroupID(ctx context.Context, in *IDRe func (c *appInfoServiceClient) GetApps(ctx context.Context, in *GetAppsRequest, opts ...grpc.CallOption) (*GetAppsResponse, error) { out := new(GetAppsResponse) - err := c.cc.Invoke(ctx, "/pbgo.AppInfoService/GetApps", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.AppInfoService/GetApps", in, out, opts...) if err != nil { return nil, err } @@ -601,7 +601,7 @@ func (c *appInfoServiceClient) GetApps(ctx context.Context, in *GetAppsRequest, func (c *appInfoServiceClient) UpdateApp(ctx context.Context, in *UpdateAppRequest, opts ...grpc.CallOption) (*SimpleResponse, error) { out := new(SimpleResponse) - err := c.cc.Invoke(ctx, "/pbgo.AppInfoService/UpdateApp", in, out, opts...) + err := c.cc.Invoke(ctx, "/tks_pb.AppInfoService/UpdateApp", in, out, opts...) if err != nil { return nil, err } @@ -687,7 +687,7 @@ func _AppInfoService_CreateAppGroup_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.AppInfoService/CreateAppGroup", + FullMethod: "/tks_pb.AppInfoService/CreateAppGroup", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AppInfoServiceServer).CreateAppGroup(ctx, req.(*CreateAppGroupRequest)) @@ -705,7 +705,7 @@ func _AppInfoService_GetAppGroupsByClusterID_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.AppInfoService/GetAppGroupsByClusterID", + FullMethod: "/tks_pb.AppInfoService/GetAppGroupsByClusterID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AppInfoServiceServer).GetAppGroupsByClusterID(ctx, req.(*IDRequest)) @@ -723,7 +723,7 @@ func _AppInfoService_GetAppGroups_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.AppInfoService/GetAppGroups", + FullMethod: "/tks_pb.AppInfoService/GetAppGroups", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AppInfoServiceServer).GetAppGroups(ctx, req.(*GetAppGroupsRequest)) @@ -741,7 +741,7 @@ func _AppInfoService_GetAppGroup_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.AppInfoService/GetAppGroup", + FullMethod: "/tks_pb.AppInfoService/GetAppGroup", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AppInfoServiceServer).GetAppGroup(ctx, req.(*GetAppGroupRequest)) @@ -759,7 +759,7 @@ func _AppInfoService_UpdateAppGroupStatus_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.AppInfoService/UpdateAppGroupStatus", + FullMethod: "/tks_pb.AppInfoService/UpdateAppGroupStatus", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AppInfoServiceServer).UpdateAppGroupStatus(ctx, req.(*UpdateAppGroupStatusRequest)) @@ -777,7 +777,7 @@ func _AppInfoService_DeleteAppGroup_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.AppInfoService/DeleteAppGroup", + FullMethod: "/tks_pb.AppInfoService/DeleteAppGroup", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AppInfoServiceServer).DeleteAppGroup(ctx, req.(*DeleteAppGroupRequest)) @@ -795,7 +795,7 @@ func _AppInfoService_GetAppsByAppGroupID_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.AppInfoService/GetAppsByAppGroupID", + FullMethod: "/tks_pb.AppInfoService/GetAppsByAppGroupID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AppInfoServiceServer).GetAppsByAppGroupID(ctx, req.(*IDRequest)) @@ -813,7 +813,7 @@ func _AppInfoService_GetApps_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.AppInfoService/GetApps", + FullMethod: "/tks_pb.AppInfoService/GetApps", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AppInfoServiceServer).GetApps(ctx, req.(*GetAppsRequest)) @@ -831,7 +831,7 @@ func _AppInfoService_UpdateApp_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pbgo.AppInfoService/UpdateApp", + FullMethod: "/tks_pb.AppInfoService/UpdateApp", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AppInfoServiceServer).UpdateApp(ctx, req.(*UpdateAppRequest)) @@ -843,7 +843,7 @@ func _AppInfoService_UpdateApp_Handler(srv interface{}, ctx context.Context, dec // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var AppInfoService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "pbgo.AppInfoService", + ServiceName: "tks_pb.AppInfoService", HandlerType: (*AppInfoServiceServer)(nil), Methods: []grpc.MethodDesc{ { diff --git a/pbgo/mock/mock_cluster_lcm_grpc.pb.go b/tks_pb/mock/mock_cluster_lcm_grpc.pb.go similarity index 100% rename from pbgo/mock/mock_cluster_lcm_grpc.pb.go rename to tks_pb/mock/mock_cluster_lcm_grpc.pb.go diff --git a/pbgo/mock/mock_contract_grpc.pb.go b/tks_pb/mock/mock_contract_grpc.pb.go similarity index 100% rename from pbgo/mock/mock_contract_grpc.pb.go rename to tks_pb/mock/mock_contract_grpc.pb.go diff --git a/pbgo/mock/mock_info_grpc.pb.go b/tks_pb/mock/mock_info_grpc.pb.go similarity index 96% rename from pbgo/mock/mock_info_grpc.pb.go rename to tks_pb/mock/mock_info_grpc.pb.go index b9543e3..ab48fcd 100644 --- a/pbgo/mock/mock_info_grpc.pb.go +++ b/tks_pb/mock/mock_info_grpc.pb.go @@ -593,6 +593,26 @@ func (mr *MockAppInfoServiceClientMockRecorder) CreateAppGroup(ctx, in interface return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAppGroup", reflect.TypeOf((*MockAppInfoServiceClient)(nil).CreateAppGroup), varargs...) } +// DeleteApp mocks base method. +func (m *MockAppInfoServiceClient) DeleteApp(ctx context.Context, in *pbgo.DeleteAppRequest, opts ...grpc.CallOption) (*pbgo.SimpleResponse, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, in} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteApp", varargs...) + ret0, _ := ret[0].(*pbgo.SimpleResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteApp indicates an expected call of DeleteApp. +func (mr *MockAppInfoServiceClientMockRecorder) DeleteApp(ctx, in interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, in}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteApp", reflect.TypeOf((*MockAppInfoServiceClient)(nil).DeleteApp), varargs...) +} + // DeleteAppGroup mocks base method. func (m *MockAppInfoServiceClient) DeleteAppGroup(ctx context.Context, in *pbgo.DeleteAppGroupRequest, opts ...grpc.CallOption) (*pbgo.SimpleResponse, error) { m.ctrl.T.Helper() @@ -791,6 +811,21 @@ func (mr *MockAppInfoServiceServerMockRecorder) CreateAppGroup(arg0, arg1 interf return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAppGroup", reflect.TypeOf((*MockAppInfoServiceServer)(nil).CreateAppGroup), arg0, arg1) } +// DeleteApp mocks base method. +func (m *MockAppInfoServiceServer) DeleteApp(arg0 context.Context, arg1 *pbgo.DeleteAppRequest) (*pbgo.SimpleResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteApp", arg0, arg1) + ret0, _ := ret[0].(*pbgo.SimpleResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteApp indicates an expected call of DeleteApp. +func (mr *MockAppInfoServiceServerMockRecorder) DeleteApp(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteApp", reflect.TypeOf((*MockAppInfoServiceServer)(nil).DeleteApp), arg0, arg1) +} + // DeleteAppGroup mocks base method. func (m *MockAppInfoServiceServer) DeleteAppGroup(arg0 context.Context, arg1 *pbgo.DeleteAppGroupRequest) (*pbgo.SimpleResponse, error) { m.ctrl.T.Helper() diff --git a/tks_pb_python/cluster_lcm_pb2.py b/tks_pb_python/cluster_lcm_pb2.py new file mode 100644 index 0000000..2ecd804 --- /dev/null +++ b/tks_pb_python/cluster_lcm_pb2.py @@ -0,0 +1,293 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cluster_lcm.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +import common_pb2 as common__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='cluster_lcm.proto', + package='tks_pb', + syntax='proto3', + serialized_options=b'Z%github.com/sktelecom/tks-proto/tks_pb', + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n\x11\x63luster_lcm.proto\x12\x06tks_pb\x1a\x0c\x63ommon.proto\"l\n\x14\x43reateClusterRequest\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\x12\x0e\n\x06\x63sp_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12!\n\x04\x63onf\x18\x04 \x01(\x0b\x32\x13.tks_pb.ClusterConf\"[\n\x13ScaleClusterRequest\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12\x17\n\x0fmaster_replicas\x18\x02 \x01(\x05\x12\x17\n\x0fworker_replicas\x18\x03 \x01(\x05\"?\n\x17InstallAppGroupsRequest\x12$\n\napp_groups\x18\x01 \x03(\x0b\x32\x10.tks_pb.AppGroup\"F\n\x19UninstallAppGroupsRequest\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12\x15\n\rapp_group_ids\x18\x02 \x03(\t2\xbf\x02\n\x11\x43lusterLcmService\x12\x44\n\rCreateCluster\x12\x1c.tks_pb.CreateClusterRequest\x1a\x13.tks_pb.IDsResponse\"\x00\x12\x45\n\x0cScaleCluster\x12\x1b.tks_pb.ScaleClusterRequest\x1a\x16.tks_pb.SimpleResponse\"\x00\x12J\n\x10InstallAppGroups\x12\x1f.tks_pb.InstallAppGroupsRequest\x1a\x13.tks_pb.IDsResponse\"\x00\x12Q\n\x12UninstallAppGroups\x12!.tks_pb.UninstallAppGroupsRequest\x1a\x16.tks_pb.SimpleResponse\"\x00\x42\'Z%github.com/sktelecom/tks-proto/tks_pbb\x06proto3' + , + dependencies=[common__pb2.DESCRIPTOR,]) + + + + +_CREATECLUSTERREQUEST = _descriptor.Descriptor( + name='CreateClusterRequest', + full_name='tks_pb.CreateClusterRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='contract_id', full_name='tks_pb.CreateClusterRequest.contract_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='csp_id', full_name='tks_pb.CreateClusterRequest.csp_id', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='name', full_name='tks_pb.CreateClusterRequest.name', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='conf', full_name='tks_pb.CreateClusterRequest.conf', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=43, + serialized_end=151, +) + + +_SCALECLUSTERREQUEST = _descriptor.Descriptor( + name='ScaleClusterRequest', + full_name='tks_pb.ScaleClusterRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='cluster_id', full_name='tks_pb.ScaleClusterRequest.cluster_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='master_replicas', full_name='tks_pb.ScaleClusterRequest.master_replicas', index=1, + number=2, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='worker_replicas', full_name='tks_pb.ScaleClusterRequest.worker_replicas', index=2, + number=3, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=153, + serialized_end=244, +) + + +_INSTALLAPPGROUPSREQUEST = _descriptor.Descriptor( + name='InstallAppGroupsRequest', + full_name='tks_pb.InstallAppGroupsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='app_groups', full_name='tks_pb.InstallAppGroupsRequest.app_groups', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=246, + serialized_end=309, +) + + +_UNINSTALLAPPGROUPSREQUEST = _descriptor.Descriptor( + name='UninstallAppGroupsRequest', + full_name='tks_pb.UninstallAppGroupsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='cluster_id', full_name='tks_pb.UninstallAppGroupsRequest.cluster_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='app_group_ids', full_name='tks_pb.UninstallAppGroupsRequest.app_group_ids', index=1, + number=2, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=311, + serialized_end=381, +) + +_CREATECLUSTERREQUEST.fields_by_name['conf'].message_type = common__pb2._CLUSTERCONF +_INSTALLAPPGROUPSREQUEST.fields_by_name['app_groups'].message_type = common__pb2._APPGROUP +DESCRIPTOR.message_types_by_name['CreateClusterRequest'] = _CREATECLUSTERREQUEST +DESCRIPTOR.message_types_by_name['ScaleClusterRequest'] = _SCALECLUSTERREQUEST +DESCRIPTOR.message_types_by_name['InstallAppGroupsRequest'] = _INSTALLAPPGROUPSREQUEST +DESCRIPTOR.message_types_by_name['UninstallAppGroupsRequest'] = _UNINSTALLAPPGROUPSREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CreateClusterRequest = _reflection.GeneratedProtocolMessageType('CreateClusterRequest', (_message.Message,), { + 'DESCRIPTOR' : _CREATECLUSTERREQUEST, + '__module__' : 'cluster_lcm_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.CreateClusterRequest) + }) +_sym_db.RegisterMessage(CreateClusterRequest) + +ScaleClusterRequest = _reflection.GeneratedProtocolMessageType('ScaleClusterRequest', (_message.Message,), { + 'DESCRIPTOR' : _SCALECLUSTERREQUEST, + '__module__' : 'cluster_lcm_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.ScaleClusterRequest) + }) +_sym_db.RegisterMessage(ScaleClusterRequest) + +InstallAppGroupsRequest = _reflection.GeneratedProtocolMessageType('InstallAppGroupsRequest', (_message.Message,), { + 'DESCRIPTOR' : _INSTALLAPPGROUPSREQUEST, + '__module__' : 'cluster_lcm_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.InstallAppGroupsRequest) + }) +_sym_db.RegisterMessage(InstallAppGroupsRequest) + +UninstallAppGroupsRequest = _reflection.GeneratedProtocolMessageType('UninstallAppGroupsRequest', (_message.Message,), { + 'DESCRIPTOR' : _UNINSTALLAPPGROUPSREQUEST, + '__module__' : 'cluster_lcm_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.UninstallAppGroupsRequest) + }) +_sym_db.RegisterMessage(UninstallAppGroupsRequest) + + +DESCRIPTOR._options = None + +_CLUSTERLCMSERVICE = _descriptor.ServiceDescriptor( + name='ClusterLcmService', + full_name='tks_pb.ClusterLcmService', + file=DESCRIPTOR, + index=0, + serialized_options=None, + create_key=_descriptor._internal_create_key, + serialized_start=384, + serialized_end=703, + methods=[ + _descriptor.MethodDescriptor( + name='CreateCluster', + full_name='tks_pb.ClusterLcmService.CreateCluster', + index=0, + containing_service=None, + input_type=_CREATECLUSTERREQUEST, + output_type=common__pb2._IDSRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='ScaleCluster', + full_name='tks_pb.ClusterLcmService.ScaleCluster', + index=1, + containing_service=None, + input_type=_SCALECLUSTERREQUEST, + output_type=common__pb2._SIMPLERESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='InstallAppGroups', + full_name='tks_pb.ClusterLcmService.InstallAppGroups', + index=2, + containing_service=None, + input_type=_INSTALLAPPGROUPSREQUEST, + output_type=common__pb2._IDSRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='UninstallAppGroups', + full_name='tks_pb.ClusterLcmService.UninstallAppGroups', + index=3, + containing_service=None, + input_type=_UNINSTALLAPPGROUPSREQUEST, + output_type=common__pb2._SIMPLERESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), +]) +_sym_db.RegisterServiceDescriptor(_CLUSTERLCMSERVICE) + +DESCRIPTOR.services_by_name['ClusterLcmService'] = _CLUSTERLCMSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/tks_pb_python/cluster_lcm_pb2_grpc.py b/tks_pb_python/cluster_lcm_pb2_grpc.py new file mode 100644 index 0000000..06bbec5 --- /dev/null +++ b/tks_pb_python/cluster_lcm_pb2_grpc.py @@ -0,0 +1,173 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +import cluster_lcm_pb2 as cluster__lcm__pb2 +import common_pb2 as common__pb2 + + +class ClusterLcmServiceStub(object): + """ClusterLcmService is a service to manage cluster's document. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateCluster = channel.unary_unary( + '/tks_pb.ClusterLcmService/CreateCluster', + request_serializer=cluster__lcm__pb2.CreateClusterRequest.SerializeToString, + response_deserializer=common__pb2.IDsResponse.FromString, + ) + self.ScaleCluster = channel.unary_unary( + '/tks_pb.ClusterLcmService/ScaleCluster', + request_serializer=cluster__lcm__pb2.ScaleClusterRequest.SerializeToString, + response_deserializer=common__pb2.SimpleResponse.FromString, + ) + self.InstallAppGroups = channel.unary_unary( + '/tks_pb.ClusterLcmService/InstallAppGroups', + request_serializer=cluster__lcm__pb2.InstallAppGroupsRequest.SerializeToString, + response_deserializer=common__pb2.IDsResponse.FromString, + ) + self.UninstallAppGroups = channel.unary_unary( + '/tks_pb.ClusterLcmService/UninstallAppGroups', + request_serializer=cluster__lcm__pb2.UninstallAppGroupsRequest.SerializeToString, + response_deserializer=common__pb2.SimpleResponse.FromString, + ) + + +class ClusterLcmServiceServicer(object): + """ClusterLcmService is a service to manage cluster's document. + """ + + def CreateCluster(self, request, context): + """CreateCluster creates a Kubernetes cluster and returns cluster id + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ScaleCluster(self, request, context): + """ScaleCluster scales the Kubernetes cluster + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def InstallAppGroups(self, request, context): + """InstallAppGroups install app groups, return a array of app group id + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UninstallAppGroups(self, request, context): + """UninstallAppGroups uninstall app groups. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ClusterLcmServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateCluster': grpc.unary_unary_rpc_method_handler( + servicer.CreateCluster, + request_deserializer=cluster__lcm__pb2.CreateClusterRequest.FromString, + response_serializer=common__pb2.IDsResponse.SerializeToString, + ), + 'ScaleCluster': grpc.unary_unary_rpc_method_handler( + servicer.ScaleCluster, + request_deserializer=cluster__lcm__pb2.ScaleClusterRequest.FromString, + response_serializer=common__pb2.SimpleResponse.SerializeToString, + ), + 'InstallAppGroups': grpc.unary_unary_rpc_method_handler( + servicer.InstallAppGroups, + request_deserializer=cluster__lcm__pb2.InstallAppGroupsRequest.FromString, + response_serializer=common__pb2.IDsResponse.SerializeToString, + ), + 'UninstallAppGroups': grpc.unary_unary_rpc_method_handler( + servicer.UninstallAppGroups, + request_deserializer=cluster__lcm__pb2.UninstallAppGroupsRequest.FromString, + response_serializer=common__pb2.SimpleResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'tks_pb.ClusterLcmService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class ClusterLcmService(object): + """ClusterLcmService is a service to manage cluster's document. + """ + + @staticmethod + def CreateCluster(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.ClusterLcmService/CreateCluster', + cluster__lcm__pb2.CreateClusterRequest.SerializeToString, + common__pb2.IDsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ScaleCluster(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.ClusterLcmService/ScaleCluster', + cluster__lcm__pb2.ScaleClusterRequest.SerializeToString, + common__pb2.SimpleResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def InstallAppGroups(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.ClusterLcmService/InstallAppGroups', + cluster__lcm__pb2.InstallAppGroupsRequest.SerializeToString, + common__pb2.IDsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UninstallAppGroups(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.ClusterLcmService/UninstallAppGroups', + cluster__lcm__pb2.UninstallAppGroupsRequest.SerializeToString, + common__pb2.SimpleResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/tks_pb_python/common_pb2.py b/tks_pb_python/common_pb2.py new file mode 100644 index 0000000..51bdd04 --- /dev/null +++ b/tks_pb_python/common_pb2.py @@ -0,0 +1,980 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: common.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='common.proto', + package='tks_pb', + syntax='proto3', + serialized_options=b'Z%github.com/sktelecom/tks-proto/tks_pb', + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n\x0c\x63ommon.proto\x12\x06tks_pb\x1a\x1fgoogle/protobuf/timestamp.proto\"\x14\n\x05\x45rror\x12\x0b\n\x03msg\x18\x01 \x01(\t\"\x90\x02\n\x08\x41ppGroup\x12\x14\n\x0c\x61pp_group_id\x18\x01 \x01(\t\x12\x16\n\x0e\x61pp_group_name\x18\x02 \x01(\t\x12\"\n\x04type\x18\x03 \x01(\x0e\x32\x14.tks_pb.AppGroupType\x12\x12\n\ncluster_id\x18\x04 \x01(\t\x12&\n\x06status\x18\x05 \x01(\x0e\x32\x16.tks_pb.AppGroupStatus\x12\x16\n\x0e\x65xternal_label\x18\x06 \x01(\t\x12.\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xd6\x01\n\x0b\x41pplication\x12\x0e\n\x06\x61pp_id\x18\x01 \x01(\t\x12\x1d\n\x04type\x18\x02 \x01(\x0e\x32\x0f.tks_pb.AppType\x12\x14\n\x0c\x61pp_group_id\x18\x03 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x04 \x01(\t\x12\x10\n\x08metadata\x18\x05 \x01(\t\x12.\n\ncreated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xac\x02\n\x07\x43luster\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12.\n\ncreated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12%\n\x06status\x18\x05 \x01(\x0e\x32\x15.tks_pb.ClusterStatus\x12\x13\n\x0b\x63ontract_id\x18\x06 \x01(\t\x12\x0e\n\x06\x63sp_id\x18\x07 \x01(\t\x12!\n\x04\x63onf\x18\x08 \x01(\x0b\x32\x13.tks_pb.ClusterConf\x12$\n\napp_groups\x18\t \x03(\x0b\x32\x10.tks_pb.AppGroup\x12\x12\n\nkubeconfig\x18\n \x01(\t\"\xb6\x01\n\x0b\x43lusterConf\x12\x15\n\rmaster_flavor\x18\x01 \x01(\t\x12\x17\n\x0fmaster_replicas\x18\x02 \x01(\x05\x12\x18\n\x10master_root_size\x18\x03 \x01(\x03\x12\x15\n\rworker_flavor\x18\x04 \x01(\t\x12\x17\n\x0fworker_replicas\x18\x05 \x01(\x05\x12\x18\n\x10worker_root_size\x18\x06 \x01(\x03\x12\x13\n\x0bk8s_version\x18\x07 \x01(\t\"\x17\n\tIDRequest\x12\n\n\x02id\x18\x01 \x01(\t\"J\n\x0eSimpleResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\"T\n\x0bIDsResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12\x0b\n\x03ids\x18\x03 \x03(\t\"R\n\nIDResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12\n\n\x02id\x18\x03 \x01(\t*\xb4\x02\n\x04\x43ode\x12\x12\n\x0eOK_UNSPECIFIED\x10\x00\x12\r\n\tCANCELLED\x10\x01\x12\x0b\n\x07UNKNOWN\x10\x02\x12\x14\n\x10INVALID_ARGUMENT\x10\x03\x12\x15\n\x11\x44\x45\x41\x44LINE_EXCEEDED\x10\x04\x12\r\n\tNOT_FOUND\x10\x05\x12\x12\n\x0e\x41LREADY_EXISTS\x10\x06\x12\x15\n\x11PERMISSION_DENIED\x10\x07\x12\x13\n\x0fUNAUTHENTICATED\x10\x10\x12\x16\n\x12RESOURCE_EXHAUSTED\x10\x08\x12\x17\n\x13\x46\x41ILED_PRECONDITION\x10\t\x12\x0b\n\x07\x41\x42ORTED\x10\n\x12\x10\n\x0cOUT_OF_RANGE\x10\x0b\x12\x11\n\rUNIMPLEMENTED\x10\x0c\x12\x0c\n\x08INTERNAL\x10\r\x12\x0f\n\x0bUNAVAILABLE\x10\x0e*\xa0\x01\n\x0e\x41ppGroupStatus\x12\x19\n\x15\x41PP_GROUP_UNSPECIFIED\x10\x00\x12\x18\n\x14\x41PP_GROUP_INSTALLING\x10\x01\x12\x15\n\x11\x41PP_GROUP_RUNNING\x10\x02\x12\x16\n\x12\x41PP_GROUP_DELETING\x10\x04\x12\x15\n\x11\x41PP_GROUP_DELETED\x10\x05\x12\x13\n\x0f\x41PP_GROUP_ERROR\x10\x06*c\n\rClusterStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0e\n\nINSTALLING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0b\n\x07\x44\x45LETED\x10\x05\x12\t\n\x05\x45RROR\x10\x06*\xb5\x01\n\x07\x41ppType\x12\x12\n\x0e\x45P_UNSPECIFIED\x10\x00\x12\n\n\x06THANOS\x10\x01\x12\x0e\n\nPROMETHEUS\x10\x02\x12\x0b\n\x07GRAFANA\x10\x03\x12\t\n\x05KIALI\x10\x04\x12\n\n\x06KIBANA\x10\x05\x12\x10\n\x0c\x45LASTICSERCH\x10\x06\x12\x11\n\rCLOUD_CONSOLE\x10\x07\x12\x0b\n\x07HORIZON\x10\x08\x12\n\n\x06JAEGER\x10\t\x12\x18\n\x14KUBERNETES_DASHBOARD\x10\n*C\n\x0c\x41ppGroupType\x12\x18\n\x14\x41PP_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03LMA\x10\x01\x12\x10\n\x0cSERVICE_MESH\x10\x02\x42\'Z%github.com/sktelecom/tks-proto/tks_pbb\x06proto3' + , + dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) + +_CODE = _descriptor.EnumDescriptor( + name='Code', + full_name='tks_pb.Code', + filename=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + values=[ + _descriptor.EnumValueDescriptor( + name='OK_UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='CANCELLED', index=1, number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=2, number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='INVALID_ARGUMENT', index=3, number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='DEADLINE_EXCEEDED', index=4, number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='NOT_FOUND', index=5, number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='ALREADY_EXISTS', index=6, number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='PERMISSION_DENIED', index=7, number=7, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='UNAUTHENTICATED', index=8, number=16, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='RESOURCE_EXHAUSTED', index=9, number=8, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='FAILED_PRECONDITION', index=10, number=9, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='ABORTED', index=11, number=10, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='OUT_OF_RANGE', index=12, number=11, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='UNIMPLEMENTED', index=13, number=12, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='INTERNAL', index=14, number=13, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='UNAVAILABLE', index=15, number=14, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + ], + containing_type=None, + serialized_options=None, + serialized_start=1331, + serialized_end=1639, +) +_sym_db.RegisterEnumDescriptor(_CODE) + +Code = enum_type_wrapper.EnumTypeWrapper(_CODE) +_APPGROUPSTATUS = _descriptor.EnumDescriptor( + name='AppGroupStatus', + full_name='tks_pb.AppGroupStatus', + filename=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + values=[ + _descriptor.EnumValueDescriptor( + name='APP_GROUP_UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='APP_GROUP_INSTALLING', index=1, number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='APP_GROUP_RUNNING', index=2, number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='APP_GROUP_DELETING', index=3, number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='APP_GROUP_DELETED', index=4, number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='APP_GROUP_ERROR', index=5, number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + ], + containing_type=None, + serialized_options=None, + serialized_start=1642, + serialized_end=1802, +) +_sym_db.RegisterEnumDescriptor(_APPGROUPSTATUS) + +AppGroupStatus = enum_type_wrapper.EnumTypeWrapper(_APPGROUPSTATUS) +_CLUSTERSTATUS = _descriptor.EnumDescriptor( + name='ClusterStatus', + full_name='tks_pb.ClusterStatus', + filename=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='INSTALLING', index=1, number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='RUNNING', index=2, number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='DELETING', index=3, number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='DELETED', index=4, number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='ERROR', index=5, number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + ], + containing_type=None, + serialized_options=None, + serialized_start=1804, + serialized_end=1903, +) +_sym_db.RegisterEnumDescriptor(_CLUSTERSTATUS) + +ClusterStatus = enum_type_wrapper.EnumTypeWrapper(_CLUSTERSTATUS) +_APPTYPE = _descriptor.EnumDescriptor( + name='AppType', + full_name='tks_pb.AppType', + filename=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + values=[ + _descriptor.EnumValueDescriptor( + name='EP_UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='THANOS', index=1, number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='PROMETHEUS', index=2, number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='GRAFANA', index=3, number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='KIALI', index=4, number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='KIBANA', index=5, number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='ELASTICSERCH', index=6, number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='CLOUD_CONSOLE', index=7, number=7, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='HORIZON', index=8, number=8, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='JAEGER', index=9, number=9, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='KUBERNETES_DASHBOARD', index=10, number=10, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + ], + containing_type=None, + serialized_options=None, + serialized_start=1906, + serialized_end=2087, +) +_sym_db.RegisterEnumDescriptor(_APPTYPE) + +AppType = enum_type_wrapper.EnumTypeWrapper(_APPTYPE) +_APPGROUPTYPE = _descriptor.EnumDescriptor( + name='AppGroupType', + full_name='tks_pb.AppGroupType', + filename=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + values=[ + _descriptor.EnumValueDescriptor( + name='APP_TYPE_UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='LMA', index=1, number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='SERVICE_MESH', index=2, number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + ], + containing_type=None, + serialized_options=None, + serialized_start=2089, + serialized_end=2156, +) +_sym_db.RegisterEnumDescriptor(_APPGROUPTYPE) + +AppGroupType = enum_type_wrapper.EnumTypeWrapper(_APPGROUPTYPE) +OK_UNSPECIFIED = 0 +CANCELLED = 1 +UNKNOWN = 2 +INVALID_ARGUMENT = 3 +DEADLINE_EXCEEDED = 4 +NOT_FOUND = 5 +ALREADY_EXISTS = 6 +PERMISSION_DENIED = 7 +UNAUTHENTICATED = 16 +RESOURCE_EXHAUSTED = 8 +FAILED_PRECONDITION = 9 +ABORTED = 10 +OUT_OF_RANGE = 11 +UNIMPLEMENTED = 12 +INTERNAL = 13 +UNAVAILABLE = 14 +APP_GROUP_UNSPECIFIED = 0 +APP_GROUP_INSTALLING = 1 +APP_GROUP_RUNNING = 2 +APP_GROUP_DELETING = 4 +APP_GROUP_DELETED = 5 +APP_GROUP_ERROR = 6 +UNSPECIFIED = 0 +INSTALLING = 1 +RUNNING = 2 +DELETING = 4 +DELETED = 5 +ERROR = 6 +EP_UNSPECIFIED = 0 +THANOS = 1 +PROMETHEUS = 2 +GRAFANA = 3 +KIALI = 4 +KIBANA = 5 +ELASTICSERCH = 6 +CLOUD_CONSOLE = 7 +HORIZON = 8 +JAEGER = 9 +KUBERNETES_DASHBOARD = 10 +APP_TYPE_UNSPECIFIED = 0 +LMA = 1 +SERVICE_MESH = 2 + + + +_ERROR = _descriptor.Descriptor( + name='Error', + full_name='tks_pb.Error', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='msg', full_name='tks_pb.Error.msg', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=57, + serialized_end=77, +) + + +_APPGROUP = _descriptor.Descriptor( + name='AppGroup', + full_name='tks_pb.AppGroup', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='app_group_id', full_name='tks_pb.AppGroup.app_group_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='app_group_name', full_name='tks_pb.AppGroup.app_group_name', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='type', full_name='tks_pb.AppGroup.type', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='cluster_id', full_name='tks_pb.AppGroup.cluster_id', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='status', full_name='tks_pb.AppGroup.status', index=4, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='external_label', full_name='tks_pb.AppGroup.external_label', index=5, + number=6, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='created_at', full_name='tks_pb.AppGroup.created_at', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='updated_at', full_name='tks_pb.AppGroup.updated_at', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=80, + serialized_end=352, +) + + +_APPLICATION = _descriptor.Descriptor( + name='Application', + full_name='tks_pb.Application', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='app_id', full_name='tks_pb.Application.app_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='type', full_name='tks_pb.Application.type', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='app_group_id', full_name='tks_pb.Application.app_group_id', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='endpoint', full_name='tks_pb.Application.endpoint', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='metadata', full_name='tks_pb.Application.metadata', index=4, + number=5, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='created_at', full_name='tks_pb.Application.created_at', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='updated_at', full_name='tks_pb.Application.updated_at', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=355, + serialized_end=569, +) + + +_CLUSTER = _descriptor.Descriptor( + name='Cluster', + full_name='tks_pb.Cluster', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='tks_pb.Cluster.id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='name', full_name='tks_pb.Cluster.name', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='created_at', full_name='tks_pb.Cluster.created_at', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='updated_at', full_name='tks_pb.Cluster.updated_at', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='status', full_name='tks_pb.Cluster.status', index=4, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='contract_id', full_name='tks_pb.Cluster.contract_id', index=5, + number=6, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='csp_id', full_name='tks_pb.Cluster.csp_id', index=6, + number=7, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='conf', full_name='tks_pb.Cluster.conf', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='app_groups', full_name='tks_pb.Cluster.app_groups', index=8, + number=9, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='kubeconfig', full_name='tks_pb.Cluster.kubeconfig', index=9, + number=10, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=572, + serialized_end=872, +) + + +_CLUSTERCONF = _descriptor.Descriptor( + name='ClusterConf', + full_name='tks_pb.ClusterConf', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='master_flavor', full_name='tks_pb.ClusterConf.master_flavor', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='master_replicas', full_name='tks_pb.ClusterConf.master_replicas', index=1, + number=2, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='master_root_size', full_name='tks_pb.ClusterConf.master_root_size', index=2, + number=3, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='worker_flavor', full_name='tks_pb.ClusterConf.worker_flavor', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='worker_replicas', full_name='tks_pb.ClusterConf.worker_replicas', index=4, + number=5, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='worker_root_size', full_name='tks_pb.ClusterConf.worker_root_size', index=5, + number=6, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='k8s_version', full_name='tks_pb.ClusterConf.k8s_version', index=6, + number=7, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=875, + serialized_end=1057, +) + + +_IDREQUEST = _descriptor.Descriptor( + name='IDRequest', + full_name='tks_pb.IDRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='tks_pb.IDRequest.id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1059, + serialized_end=1082, +) + + +_SIMPLERESPONSE = _descriptor.Descriptor( + name='SimpleResponse', + full_name='tks_pb.SimpleResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='code', full_name='tks_pb.SimpleResponse.code', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='error', full_name='tks_pb.SimpleResponse.error', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1084, + serialized_end=1158, +) + + +_IDSRESPONSE = _descriptor.Descriptor( + name='IDsResponse', + full_name='tks_pb.IDsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='code', full_name='tks_pb.IDsResponse.code', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='error', full_name='tks_pb.IDsResponse.error', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='ids', full_name='tks_pb.IDsResponse.ids', index=2, + number=3, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1160, + serialized_end=1244, +) + + +_IDRESPONSE = _descriptor.Descriptor( + name='IDResponse', + full_name='tks_pb.IDResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='code', full_name='tks_pb.IDResponse.code', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='error', full_name='tks_pb.IDResponse.error', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='id', full_name='tks_pb.IDResponse.id', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1246, + serialized_end=1328, +) + +_APPGROUP.fields_by_name['type'].enum_type = _APPGROUPTYPE +_APPGROUP.fields_by_name['status'].enum_type = _APPGROUPSTATUS +_APPGROUP.fields_by_name['created_at'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_APPGROUP.fields_by_name['updated_at'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_APPLICATION.fields_by_name['type'].enum_type = _APPTYPE +_APPLICATION.fields_by_name['created_at'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_APPLICATION.fields_by_name['updated_at'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_CLUSTER.fields_by_name['created_at'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_CLUSTER.fields_by_name['updated_at'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_CLUSTER.fields_by_name['status'].enum_type = _CLUSTERSTATUS +_CLUSTER.fields_by_name['conf'].message_type = _CLUSTERCONF +_CLUSTER.fields_by_name['app_groups'].message_type = _APPGROUP +_SIMPLERESPONSE.fields_by_name['code'].enum_type = _CODE +_SIMPLERESPONSE.fields_by_name['error'].message_type = _ERROR +_IDSRESPONSE.fields_by_name['code'].enum_type = _CODE +_IDSRESPONSE.fields_by_name['error'].message_type = _ERROR +_IDRESPONSE.fields_by_name['code'].enum_type = _CODE +_IDRESPONSE.fields_by_name['error'].message_type = _ERROR +DESCRIPTOR.message_types_by_name['Error'] = _ERROR +DESCRIPTOR.message_types_by_name['AppGroup'] = _APPGROUP +DESCRIPTOR.message_types_by_name['Application'] = _APPLICATION +DESCRIPTOR.message_types_by_name['Cluster'] = _CLUSTER +DESCRIPTOR.message_types_by_name['ClusterConf'] = _CLUSTERCONF +DESCRIPTOR.message_types_by_name['IDRequest'] = _IDREQUEST +DESCRIPTOR.message_types_by_name['SimpleResponse'] = _SIMPLERESPONSE +DESCRIPTOR.message_types_by_name['IDsResponse'] = _IDSRESPONSE +DESCRIPTOR.message_types_by_name['IDResponse'] = _IDRESPONSE +DESCRIPTOR.enum_types_by_name['Code'] = _CODE +DESCRIPTOR.enum_types_by_name['AppGroupStatus'] = _APPGROUPSTATUS +DESCRIPTOR.enum_types_by_name['ClusterStatus'] = _CLUSTERSTATUS +DESCRIPTOR.enum_types_by_name['AppType'] = _APPTYPE +DESCRIPTOR.enum_types_by_name['AppGroupType'] = _APPGROUPTYPE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Error = _reflection.GeneratedProtocolMessageType('Error', (_message.Message,), { + 'DESCRIPTOR' : _ERROR, + '__module__' : 'common_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.Error) + }) +_sym_db.RegisterMessage(Error) + +AppGroup = _reflection.GeneratedProtocolMessageType('AppGroup', (_message.Message,), { + 'DESCRIPTOR' : _APPGROUP, + '__module__' : 'common_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.AppGroup) + }) +_sym_db.RegisterMessage(AppGroup) + +Application = _reflection.GeneratedProtocolMessageType('Application', (_message.Message,), { + 'DESCRIPTOR' : _APPLICATION, + '__module__' : 'common_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.Application) + }) +_sym_db.RegisterMessage(Application) + +Cluster = _reflection.GeneratedProtocolMessageType('Cluster', (_message.Message,), { + 'DESCRIPTOR' : _CLUSTER, + '__module__' : 'common_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.Cluster) + }) +_sym_db.RegisterMessage(Cluster) + +ClusterConf = _reflection.GeneratedProtocolMessageType('ClusterConf', (_message.Message,), { + 'DESCRIPTOR' : _CLUSTERCONF, + '__module__' : 'common_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.ClusterConf) + }) +_sym_db.RegisterMessage(ClusterConf) + +IDRequest = _reflection.GeneratedProtocolMessageType('IDRequest', (_message.Message,), { + 'DESCRIPTOR' : _IDREQUEST, + '__module__' : 'common_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.IDRequest) + }) +_sym_db.RegisterMessage(IDRequest) + +SimpleResponse = _reflection.GeneratedProtocolMessageType('SimpleResponse', (_message.Message,), { + 'DESCRIPTOR' : _SIMPLERESPONSE, + '__module__' : 'common_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.SimpleResponse) + }) +_sym_db.RegisterMessage(SimpleResponse) + +IDsResponse = _reflection.GeneratedProtocolMessageType('IDsResponse', (_message.Message,), { + 'DESCRIPTOR' : _IDSRESPONSE, + '__module__' : 'common_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.IDsResponse) + }) +_sym_db.RegisterMessage(IDsResponse) + +IDResponse = _reflection.GeneratedProtocolMessageType('IDResponse', (_message.Message,), { + 'DESCRIPTOR' : _IDRESPONSE, + '__module__' : 'common_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.IDResponse) + }) +_sym_db.RegisterMessage(IDResponse) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/tks_pb_python/common_pb2_grpc.py b/tks_pb_python/common_pb2_grpc.py new file mode 100644 index 0000000..2daafff --- /dev/null +++ b/tks_pb_python/common_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/tks_pb_python/contract_pb2.py b/tks_pb_python/contract_pb2.py new file mode 100644 index 0000000..8f554f2 --- /dev/null +++ b/tks_pb_python/contract_pb2.py @@ -0,0 +1,1029 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: contract.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +import common_pb2 as common__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='contract.proto', + package='tks_pb', + syntax='proto3', + serialized_options=b'Z%github.com/sktelecom/tks-proto/tks_pb', + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n\x0e\x63ontract.proto\x12\x06tks_pb\x1a\x0c\x63ommon.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x96\x01\n\x15\x43reateContractRequest\x12\x17\n\x0f\x63ontractor_name\x18\x01 \x01(\t\x12$\n\x05quota\x18\x02 \x01(\x0b\x32\x15.tks_pb.ContractQuota\x12\x1a\n\x12\x61vailable_services\x18\x03 \x03(\t\x12\x10\n\x08\x63sp_name\x18\x04 \x01(\t\x12\x10\n\x08\x63sp_auth\x18\x05 \x01(\t\"w\n\x16\x43reateContractResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12\x0e\n\x06\x63sp_id\x18\x03 \x01(\t\x12\x13\n\x0b\x63ontract_id\x18\x04 \x01(\t\"j\n\rContractQuota\x12\x0b\n\x03\x63pu\x18\x01 \x01(\x12\x12\x0e\n\x06memory\x18\x02 \x01(\x12\x12\r\n\x05\x62lock\x18\x03 \x01(\x12\x12\x11\n\tblock_ssd\x18\x04 \x01(\x12\x12\n\n\x02\x66s\x18\x05 \x01(\x12\x12\x0e\n\x06\x66s_ssd\x18\x06 \x01(\x12\"O\n\x12UpdateQuotaRequest\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\x12$\n\x05quota\x18\x02 \x01(\x0b\x32\x15.tks_pb.ContractQuota\"\xbd\x01\n\x13UpdateQuotaResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12\x13\n\x0b\x63ontract_id\x18\x03 \x01(\t\x12)\n\nprev_quota\x18\x04 \x01(\x0b\x32\x15.tks_pb.ContractQuota\x12,\n\rcurrent_quota\x18\x05 \x01(\x0b\x32\x15.tks_pb.ContractQuota\"H\n\x15UpdateServicesRequest\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\x12\x1a\n\x12\x61vailable_services\x18\x02 \x03(\t\"\x98\x01\n\x16UpdateServicesResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12\x13\n\x0b\x63ontract_id\x18\x03 \x01(\t\x12\x15\n\rprev_services\x18\x04 \x03(\t\x12\x18\n\x10\x63urrent_services\x18\x05 \x03(\t\")\n\x12GetContractRequest\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\"s\n\x13GetContractResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12\"\n\x08\x63ontract\x18\x03 \x01(\x0b\x32\x10.tks_pb.Contract\"\xea\x01\n\x08\x43ontract\x12\x17\n\x0f\x63ontractor_name\x18\x01 \x01(\t\x12\x13\n\x0b\x63ontract_id\x18\x02 \x01(\t\x12$\n\x05quota\x18\x03 \x01(\x0b\x32\x15.tks_pb.ContractQuota\x12\x1a\n\x12\x61vailable_services\x18\x04 \x03(\t\x12\x0e\n\x06\x63sp_id\x18\x05 \x01(\t\x12.\n\nupdated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x15\n\x13GetContractsRequest\"u\n\x14GetContractsResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12#\n\tcontracts\x18\x03 \x03(\x0b\x32\x10.tks_pb.Contract\"&\n\x0fGetQuotaRequest\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\"r\n\x10GetQuotaResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12$\n\x05quota\x18\x03 \x01(\x0b\x32\x15.tks_pb.ContractQuota\"2\n\x1bGetAvailableServicesRequest\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\"w\n\x1cGetAvailableServicesResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12\x1d\n\x15\x61vaiable_service_apps\x18\x03 \x03(\t2\xbe\x04\n\x0f\x43ontractService\x12Q\n\x0e\x43reateContract\x12\x1d.tks_pb.CreateContractRequest\x1a\x1e.tks_pb.CreateContractResponse\"\x00\x12H\n\x0bUpdateQuota\x12\x1a.tks_pb.UpdateQuotaRequest\x1a\x1b.tks_pb.UpdateQuotaResponse\"\x00\x12Q\n\x0eUpdateServices\x12\x1d.tks_pb.UpdateServicesRequest\x1a\x1e.tks_pb.UpdateServicesResponse\"\x00\x12H\n\x0bGetContract\x12\x1a.tks_pb.GetContractRequest\x1a\x1b.tks_pb.GetContractResponse\"\x00\x12K\n\x0cGetContracts\x12\x1b.tks_pb.GetContractsRequest\x1a\x1c.tks_pb.GetContractsResponse\"\x00\x12?\n\x08GetQuota\x12\x17.tks_pb.GetQuotaRequest\x1a\x18.tks_pb.GetQuotaResponse\"\x00\x12\x63\n\x14GetAvailableServices\x12#.tks_pb.GetAvailableServicesRequest\x1a$.tks_pb.GetAvailableServicesResponse\"\x00\x42\'Z%github.com/sktelecom/tks-proto/tks_pbb\x06proto3' + , + dependencies=[common__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) + + + + +_CREATECONTRACTREQUEST = _descriptor.Descriptor( + name='CreateContractRequest', + full_name='tks_pb.CreateContractRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='contractor_name', full_name='tks_pb.CreateContractRequest.contractor_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='quota', full_name='tks_pb.CreateContractRequest.quota', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='available_services', full_name='tks_pb.CreateContractRequest.available_services', index=2, + number=3, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='csp_name', full_name='tks_pb.CreateContractRequest.csp_name', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='csp_auth', full_name='tks_pb.CreateContractRequest.csp_auth', index=4, + number=5, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=74, + serialized_end=224, +) + + +_CREATECONTRACTRESPONSE = _descriptor.Descriptor( + name='CreateContractResponse', + full_name='tks_pb.CreateContractResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='code', full_name='tks_pb.CreateContractResponse.code', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='error', full_name='tks_pb.CreateContractResponse.error', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='csp_id', full_name='tks_pb.CreateContractResponse.csp_id', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='contract_id', full_name='tks_pb.CreateContractResponse.contract_id', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=226, + serialized_end=345, +) + + +_CONTRACTQUOTA = _descriptor.Descriptor( + name='ContractQuota', + full_name='tks_pb.ContractQuota', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='cpu', full_name='tks_pb.ContractQuota.cpu', index=0, + number=1, type=18, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='memory', full_name='tks_pb.ContractQuota.memory', index=1, + number=2, type=18, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='block', full_name='tks_pb.ContractQuota.block', index=2, + number=3, type=18, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='block_ssd', full_name='tks_pb.ContractQuota.block_ssd', index=3, + number=4, type=18, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='fs', full_name='tks_pb.ContractQuota.fs', index=4, + number=5, type=18, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='fs_ssd', full_name='tks_pb.ContractQuota.fs_ssd', index=5, + number=6, type=18, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=347, + serialized_end=453, +) + + +_UPDATEQUOTAREQUEST = _descriptor.Descriptor( + name='UpdateQuotaRequest', + full_name='tks_pb.UpdateQuotaRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='contract_id', full_name='tks_pb.UpdateQuotaRequest.contract_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='quota', full_name='tks_pb.UpdateQuotaRequest.quota', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=455, + serialized_end=534, +) + + +_UPDATEQUOTARESPONSE = _descriptor.Descriptor( + name='UpdateQuotaResponse', + full_name='tks_pb.UpdateQuotaResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='code', full_name='tks_pb.UpdateQuotaResponse.code', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='error', full_name='tks_pb.UpdateQuotaResponse.error', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='contract_id', full_name='tks_pb.UpdateQuotaResponse.contract_id', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='prev_quota', full_name='tks_pb.UpdateQuotaResponse.prev_quota', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='current_quota', full_name='tks_pb.UpdateQuotaResponse.current_quota', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=537, + serialized_end=726, +) + + +_UPDATESERVICESREQUEST = _descriptor.Descriptor( + name='UpdateServicesRequest', + full_name='tks_pb.UpdateServicesRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='contract_id', full_name='tks_pb.UpdateServicesRequest.contract_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='available_services', full_name='tks_pb.UpdateServicesRequest.available_services', index=1, + number=2, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=728, + serialized_end=800, +) + + +_UPDATESERVICESRESPONSE = _descriptor.Descriptor( + name='UpdateServicesResponse', + full_name='tks_pb.UpdateServicesResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='code', full_name='tks_pb.UpdateServicesResponse.code', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='error', full_name='tks_pb.UpdateServicesResponse.error', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='contract_id', full_name='tks_pb.UpdateServicesResponse.contract_id', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='prev_services', full_name='tks_pb.UpdateServicesResponse.prev_services', index=3, + number=4, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='current_services', full_name='tks_pb.UpdateServicesResponse.current_services', index=4, + number=5, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=803, + serialized_end=955, +) + + +_GETCONTRACTREQUEST = _descriptor.Descriptor( + name='GetContractRequest', + full_name='tks_pb.GetContractRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='contract_id', full_name='tks_pb.GetContractRequest.contract_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=957, + serialized_end=998, +) + + +_GETCONTRACTRESPONSE = _descriptor.Descriptor( + name='GetContractResponse', + full_name='tks_pb.GetContractResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='code', full_name='tks_pb.GetContractResponse.code', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='error', full_name='tks_pb.GetContractResponse.error', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='contract', full_name='tks_pb.GetContractResponse.contract', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1000, + serialized_end=1115, +) + + +_CONTRACT = _descriptor.Descriptor( + name='Contract', + full_name='tks_pb.Contract', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='contractor_name', full_name='tks_pb.Contract.contractor_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='contract_id', full_name='tks_pb.Contract.contract_id', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='quota', full_name='tks_pb.Contract.quota', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='available_services', full_name='tks_pb.Contract.available_services', index=3, + number=4, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='csp_id', full_name='tks_pb.Contract.csp_id', index=4, + number=5, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='updated_at', full_name='tks_pb.Contract.updated_at', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='created_at', full_name='tks_pb.Contract.created_at', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1118, + serialized_end=1352, +) + + +_GETCONTRACTSREQUEST = _descriptor.Descriptor( + name='GetContractsRequest', + full_name='tks_pb.GetContractsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1354, + serialized_end=1375, +) + + +_GETCONTRACTSRESPONSE = _descriptor.Descriptor( + name='GetContractsResponse', + full_name='tks_pb.GetContractsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='code', full_name='tks_pb.GetContractsResponse.code', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='error', full_name='tks_pb.GetContractsResponse.error', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='contracts', full_name='tks_pb.GetContractsResponse.contracts', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1377, + serialized_end=1494, +) + + +_GETQUOTAREQUEST = _descriptor.Descriptor( + name='GetQuotaRequest', + full_name='tks_pb.GetQuotaRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='contract_id', full_name='tks_pb.GetQuotaRequest.contract_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1496, + serialized_end=1534, +) + + +_GETQUOTARESPONSE = _descriptor.Descriptor( + name='GetQuotaResponse', + full_name='tks_pb.GetQuotaResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='code', full_name='tks_pb.GetQuotaResponse.code', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='error', full_name='tks_pb.GetQuotaResponse.error', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='quota', full_name='tks_pb.GetQuotaResponse.quota', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1536, + serialized_end=1650, +) + + +_GETAVAILABLESERVICESREQUEST = _descriptor.Descriptor( + name='GetAvailableServicesRequest', + full_name='tks_pb.GetAvailableServicesRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='contract_id', full_name='tks_pb.GetAvailableServicesRequest.contract_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1652, + serialized_end=1702, +) + + +_GETAVAILABLESERVICESRESPONSE = _descriptor.Descriptor( + name='GetAvailableServicesResponse', + full_name='tks_pb.GetAvailableServicesResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='code', full_name='tks_pb.GetAvailableServicesResponse.code', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='error', full_name='tks_pb.GetAvailableServicesResponse.error', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='avaiable_service_apps', full_name='tks_pb.GetAvailableServicesResponse.avaiable_service_apps', index=2, + number=3, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1704, + serialized_end=1823, +) + +_CREATECONTRACTREQUEST.fields_by_name['quota'].message_type = _CONTRACTQUOTA +_CREATECONTRACTRESPONSE.fields_by_name['code'].enum_type = common__pb2._CODE +_CREATECONTRACTRESPONSE.fields_by_name['error'].message_type = common__pb2._ERROR +_UPDATEQUOTAREQUEST.fields_by_name['quota'].message_type = _CONTRACTQUOTA +_UPDATEQUOTARESPONSE.fields_by_name['code'].enum_type = common__pb2._CODE +_UPDATEQUOTARESPONSE.fields_by_name['error'].message_type = common__pb2._ERROR +_UPDATEQUOTARESPONSE.fields_by_name['prev_quota'].message_type = _CONTRACTQUOTA +_UPDATEQUOTARESPONSE.fields_by_name['current_quota'].message_type = _CONTRACTQUOTA +_UPDATESERVICESRESPONSE.fields_by_name['code'].enum_type = common__pb2._CODE +_UPDATESERVICESRESPONSE.fields_by_name['error'].message_type = common__pb2._ERROR +_GETCONTRACTRESPONSE.fields_by_name['code'].enum_type = common__pb2._CODE +_GETCONTRACTRESPONSE.fields_by_name['error'].message_type = common__pb2._ERROR +_GETCONTRACTRESPONSE.fields_by_name['contract'].message_type = _CONTRACT +_CONTRACT.fields_by_name['quota'].message_type = _CONTRACTQUOTA +_CONTRACT.fields_by_name['updated_at'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_CONTRACT.fields_by_name['created_at'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_GETCONTRACTSRESPONSE.fields_by_name['code'].enum_type = common__pb2._CODE +_GETCONTRACTSRESPONSE.fields_by_name['error'].message_type = common__pb2._ERROR +_GETCONTRACTSRESPONSE.fields_by_name['contracts'].message_type = _CONTRACT +_GETQUOTARESPONSE.fields_by_name['code'].enum_type = common__pb2._CODE +_GETQUOTARESPONSE.fields_by_name['error'].message_type = common__pb2._ERROR +_GETQUOTARESPONSE.fields_by_name['quota'].message_type = _CONTRACTQUOTA +_GETAVAILABLESERVICESRESPONSE.fields_by_name['code'].enum_type = common__pb2._CODE +_GETAVAILABLESERVICESRESPONSE.fields_by_name['error'].message_type = common__pb2._ERROR +DESCRIPTOR.message_types_by_name['CreateContractRequest'] = _CREATECONTRACTREQUEST +DESCRIPTOR.message_types_by_name['CreateContractResponse'] = _CREATECONTRACTRESPONSE +DESCRIPTOR.message_types_by_name['ContractQuota'] = _CONTRACTQUOTA +DESCRIPTOR.message_types_by_name['UpdateQuotaRequest'] = _UPDATEQUOTAREQUEST +DESCRIPTOR.message_types_by_name['UpdateQuotaResponse'] = _UPDATEQUOTARESPONSE +DESCRIPTOR.message_types_by_name['UpdateServicesRequest'] = _UPDATESERVICESREQUEST +DESCRIPTOR.message_types_by_name['UpdateServicesResponse'] = _UPDATESERVICESRESPONSE +DESCRIPTOR.message_types_by_name['GetContractRequest'] = _GETCONTRACTREQUEST +DESCRIPTOR.message_types_by_name['GetContractResponse'] = _GETCONTRACTRESPONSE +DESCRIPTOR.message_types_by_name['Contract'] = _CONTRACT +DESCRIPTOR.message_types_by_name['GetContractsRequest'] = _GETCONTRACTSREQUEST +DESCRIPTOR.message_types_by_name['GetContractsResponse'] = _GETCONTRACTSRESPONSE +DESCRIPTOR.message_types_by_name['GetQuotaRequest'] = _GETQUOTAREQUEST +DESCRIPTOR.message_types_by_name['GetQuotaResponse'] = _GETQUOTARESPONSE +DESCRIPTOR.message_types_by_name['GetAvailableServicesRequest'] = _GETAVAILABLESERVICESREQUEST +DESCRIPTOR.message_types_by_name['GetAvailableServicesResponse'] = _GETAVAILABLESERVICESRESPONSE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CreateContractRequest = _reflection.GeneratedProtocolMessageType('CreateContractRequest', (_message.Message,), { + 'DESCRIPTOR' : _CREATECONTRACTREQUEST, + '__module__' : 'contract_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.CreateContractRequest) + }) +_sym_db.RegisterMessage(CreateContractRequest) + +CreateContractResponse = _reflection.GeneratedProtocolMessageType('CreateContractResponse', (_message.Message,), { + 'DESCRIPTOR' : _CREATECONTRACTRESPONSE, + '__module__' : 'contract_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.CreateContractResponse) + }) +_sym_db.RegisterMessage(CreateContractResponse) + +ContractQuota = _reflection.GeneratedProtocolMessageType('ContractQuota', (_message.Message,), { + 'DESCRIPTOR' : _CONTRACTQUOTA, + '__module__' : 'contract_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.ContractQuota) + }) +_sym_db.RegisterMessage(ContractQuota) + +UpdateQuotaRequest = _reflection.GeneratedProtocolMessageType('UpdateQuotaRequest', (_message.Message,), { + 'DESCRIPTOR' : _UPDATEQUOTAREQUEST, + '__module__' : 'contract_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.UpdateQuotaRequest) + }) +_sym_db.RegisterMessage(UpdateQuotaRequest) + +UpdateQuotaResponse = _reflection.GeneratedProtocolMessageType('UpdateQuotaResponse', (_message.Message,), { + 'DESCRIPTOR' : _UPDATEQUOTARESPONSE, + '__module__' : 'contract_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.UpdateQuotaResponse) + }) +_sym_db.RegisterMessage(UpdateQuotaResponse) + +UpdateServicesRequest = _reflection.GeneratedProtocolMessageType('UpdateServicesRequest', (_message.Message,), { + 'DESCRIPTOR' : _UPDATESERVICESREQUEST, + '__module__' : 'contract_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.UpdateServicesRequest) + }) +_sym_db.RegisterMessage(UpdateServicesRequest) + +UpdateServicesResponse = _reflection.GeneratedProtocolMessageType('UpdateServicesResponse', (_message.Message,), { + 'DESCRIPTOR' : _UPDATESERVICESRESPONSE, + '__module__' : 'contract_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.UpdateServicesResponse) + }) +_sym_db.RegisterMessage(UpdateServicesResponse) + +GetContractRequest = _reflection.GeneratedProtocolMessageType('GetContractRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETCONTRACTREQUEST, + '__module__' : 'contract_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.GetContractRequest) + }) +_sym_db.RegisterMessage(GetContractRequest) + +GetContractResponse = _reflection.GeneratedProtocolMessageType('GetContractResponse', (_message.Message,), { + 'DESCRIPTOR' : _GETCONTRACTRESPONSE, + '__module__' : 'contract_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.GetContractResponse) + }) +_sym_db.RegisterMessage(GetContractResponse) + +Contract = _reflection.GeneratedProtocolMessageType('Contract', (_message.Message,), { + 'DESCRIPTOR' : _CONTRACT, + '__module__' : 'contract_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.Contract) + }) +_sym_db.RegisterMessage(Contract) + +GetContractsRequest = _reflection.GeneratedProtocolMessageType('GetContractsRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETCONTRACTSREQUEST, + '__module__' : 'contract_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.GetContractsRequest) + }) +_sym_db.RegisterMessage(GetContractsRequest) + +GetContractsResponse = _reflection.GeneratedProtocolMessageType('GetContractsResponse', (_message.Message,), { + 'DESCRIPTOR' : _GETCONTRACTSRESPONSE, + '__module__' : 'contract_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.GetContractsResponse) + }) +_sym_db.RegisterMessage(GetContractsResponse) + +GetQuotaRequest = _reflection.GeneratedProtocolMessageType('GetQuotaRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETQUOTAREQUEST, + '__module__' : 'contract_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.GetQuotaRequest) + }) +_sym_db.RegisterMessage(GetQuotaRequest) + +GetQuotaResponse = _reflection.GeneratedProtocolMessageType('GetQuotaResponse', (_message.Message,), { + 'DESCRIPTOR' : _GETQUOTARESPONSE, + '__module__' : 'contract_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.GetQuotaResponse) + }) +_sym_db.RegisterMessage(GetQuotaResponse) + +GetAvailableServicesRequest = _reflection.GeneratedProtocolMessageType('GetAvailableServicesRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETAVAILABLESERVICESREQUEST, + '__module__' : 'contract_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.GetAvailableServicesRequest) + }) +_sym_db.RegisterMessage(GetAvailableServicesRequest) + +GetAvailableServicesResponse = _reflection.GeneratedProtocolMessageType('GetAvailableServicesResponse', (_message.Message,), { + 'DESCRIPTOR' : _GETAVAILABLESERVICESRESPONSE, + '__module__' : 'contract_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.GetAvailableServicesResponse) + }) +_sym_db.RegisterMessage(GetAvailableServicesResponse) + + +DESCRIPTOR._options = None + +_CONTRACTSERVICE = _descriptor.ServiceDescriptor( + name='ContractService', + full_name='tks_pb.ContractService', + file=DESCRIPTOR, + index=0, + serialized_options=None, + create_key=_descriptor._internal_create_key, + serialized_start=1826, + serialized_end=2400, + methods=[ + _descriptor.MethodDescriptor( + name='CreateContract', + full_name='tks_pb.ContractService.CreateContract', + index=0, + containing_service=None, + input_type=_CREATECONTRACTREQUEST, + output_type=_CREATECONTRACTRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='UpdateQuota', + full_name='tks_pb.ContractService.UpdateQuota', + index=1, + containing_service=None, + input_type=_UPDATEQUOTAREQUEST, + output_type=_UPDATEQUOTARESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='UpdateServices', + full_name='tks_pb.ContractService.UpdateServices', + index=2, + containing_service=None, + input_type=_UPDATESERVICESREQUEST, + output_type=_UPDATESERVICESRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='GetContract', + full_name='tks_pb.ContractService.GetContract', + index=3, + containing_service=None, + input_type=_GETCONTRACTREQUEST, + output_type=_GETCONTRACTRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='GetContracts', + full_name='tks_pb.ContractService.GetContracts', + index=4, + containing_service=None, + input_type=_GETCONTRACTSREQUEST, + output_type=_GETCONTRACTSRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='GetQuota', + full_name='tks_pb.ContractService.GetQuota', + index=5, + containing_service=None, + input_type=_GETQUOTAREQUEST, + output_type=_GETQUOTARESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='GetAvailableServices', + full_name='tks_pb.ContractService.GetAvailableServices', + index=6, + containing_service=None, + input_type=_GETAVAILABLESERVICESREQUEST, + output_type=_GETAVAILABLESERVICESRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), +]) +_sym_db.RegisterServiceDescriptor(_CONTRACTSERVICE) + +DESCRIPTOR.services_by_name['ContractService'] = _CONTRACTSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/tks_pb_python/contract_pb2_grpc.py b/tks_pb_python/contract_pb2_grpc.py new file mode 100644 index 0000000..d269b73 --- /dev/null +++ b/tks_pb_python/contract_pb2_grpc.py @@ -0,0 +1,274 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +import contract_pb2 as contract__pb2 + + +class ContractServiceStub(object): + """ContractService is a service to manage contract's document. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateContract = channel.unary_unary( + '/tks_pb.ContractService/CreateContract', + request_serializer=contract__pb2.CreateContractRequest.SerializeToString, + response_deserializer=contract__pb2.CreateContractResponse.FromString, + ) + self.UpdateQuota = channel.unary_unary( + '/tks_pb.ContractService/UpdateQuota', + request_serializer=contract__pb2.UpdateQuotaRequest.SerializeToString, + response_deserializer=contract__pb2.UpdateQuotaResponse.FromString, + ) + self.UpdateServices = channel.unary_unary( + '/tks_pb.ContractService/UpdateServices', + request_serializer=contract__pb2.UpdateServicesRequest.SerializeToString, + response_deserializer=contract__pb2.UpdateServicesResponse.FromString, + ) + self.GetContract = channel.unary_unary( + '/tks_pb.ContractService/GetContract', + request_serializer=contract__pb2.GetContractRequest.SerializeToString, + response_deserializer=contract__pb2.GetContractResponse.FromString, + ) + self.GetContracts = channel.unary_unary( + '/tks_pb.ContractService/GetContracts', + request_serializer=contract__pb2.GetContractsRequest.SerializeToString, + response_deserializer=contract__pb2.GetContractsResponse.FromString, + ) + self.GetQuota = channel.unary_unary( + '/tks_pb.ContractService/GetQuota', + request_serializer=contract__pb2.GetQuotaRequest.SerializeToString, + response_deserializer=contract__pb2.GetQuotaResponse.FromString, + ) + self.GetAvailableServices = channel.unary_unary( + '/tks_pb.ContractService/GetAvailableServices', + request_serializer=contract__pb2.GetAvailableServicesRequest.SerializeToString, + response_deserializer=contract__pb2.GetAvailableServicesResponse.FromString, + ) + + +class ContractServiceServicer(object): + """ContractService is a service to manage contract's document. + """ + + def CreateContract(self, request, context): + """CreateContract creates new contract. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateQuota(self, request, context): + """UpdateQuota updates quota of the contract. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateServices(self, request, context): + """UpdateServices updates list of available services of the contract. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetContract(self, request, context): + """GetContract returns a contract if exists. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetContracts(self, request, context): + """Getcontracts return a list of contract. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetQuota(self, request, context): + """GetQuota returns a quota for the contract. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAvailableServices(self, request, context): + """GetAvailableServices returns list of available services for the contract. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ContractServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateContract': grpc.unary_unary_rpc_method_handler( + servicer.CreateContract, + request_deserializer=contract__pb2.CreateContractRequest.FromString, + response_serializer=contract__pb2.CreateContractResponse.SerializeToString, + ), + 'UpdateQuota': grpc.unary_unary_rpc_method_handler( + servicer.UpdateQuota, + request_deserializer=contract__pb2.UpdateQuotaRequest.FromString, + response_serializer=contract__pb2.UpdateQuotaResponse.SerializeToString, + ), + 'UpdateServices': grpc.unary_unary_rpc_method_handler( + servicer.UpdateServices, + request_deserializer=contract__pb2.UpdateServicesRequest.FromString, + response_serializer=contract__pb2.UpdateServicesResponse.SerializeToString, + ), + 'GetContract': grpc.unary_unary_rpc_method_handler( + servicer.GetContract, + request_deserializer=contract__pb2.GetContractRequest.FromString, + response_serializer=contract__pb2.GetContractResponse.SerializeToString, + ), + 'GetContracts': grpc.unary_unary_rpc_method_handler( + servicer.GetContracts, + request_deserializer=contract__pb2.GetContractsRequest.FromString, + response_serializer=contract__pb2.GetContractsResponse.SerializeToString, + ), + 'GetQuota': grpc.unary_unary_rpc_method_handler( + servicer.GetQuota, + request_deserializer=contract__pb2.GetQuotaRequest.FromString, + response_serializer=contract__pb2.GetQuotaResponse.SerializeToString, + ), + 'GetAvailableServices': grpc.unary_unary_rpc_method_handler( + servicer.GetAvailableServices, + request_deserializer=contract__pb2.GetAvailableServicesRequest.FromString, + response_serializer=contract__pb2.GetAvailableServicesResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'tks_pb.ContractService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class ContractService(object): + """ContractService is a service to manage contract's document. + """ + + @staticmethod + def CreateContract(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.ContractService/CreateContract', + contract__pb2.CreateContractRequest.SerializeToString, + contract__pb2.CreateContractResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateQuota(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.ContractService/UpdateQuota', + contract__pb2.UpdateQuotaRequest.SerializeToString, + contract__pb2.UpdateQuotaResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateServices(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.ContractService/UpdateServices', + contract__pb2.UpdateServicesRequest.SerializeToString, + contract__pb2.UpdateServicesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetContract(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.ContractService/GetContract', + contract__pb2.GetContractRequest.SerializeToString, + contract__pb2.GetContractResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetContracts(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.ContractService/GetContracts', + contract__pb2.GetContractsRequest.SerializeToString, + contract__pb2.GetContractsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetQuota(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.ContractService/GetQuota', + contract__pb2.GetQuotaRequest.SerializeToString, + contract__pb2.GetQuotaResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAvailableServices(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.ContractService/GetAvailableServices', + contract__pb2.GetAvailableServicesRequest.SerializeToString, + contract__pb2.GetAvailableServicesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/tks_pb_python/info_pb2.py b/tks_pb_python/info_pb2.py new file mode 100644 index 0000000..3ddf511 --- /dev/null +++ b/tks_pb_python/info_pb2.py @@ -0,0 +1,1293 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: info.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +import common_pb2 as common__pb2 +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='info.proto', + package='tks_pb', + syntax='proto3', + serialized_options=b'Z%github.com/sktelecom/tks-proto/tks_pb', + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n\ninfo.proto\x12\x06tks_pb\x1a\x0c\x63ommon.proto\x1a\x1bgoogle/protobuf/empty.proto\"K\n\x14\x43reateCSPInfoRequest\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\x12\x10\n\x08\x63sp_name\x18\x02 \x01(\t\x12\x0c\n\x04\x61uth\x18\x03 \x01(\t\"\\\n\x12GetCSPAuthResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12\x0c\n\x04\x61uth\x18\x03 \x01(\t\"4\n\x14UpdateCSPAuthRequest\x12\x0e\n\x06\x63sp_id\x18\x01 \x01(\t\x12\x0c\n\x04\x61uth\x18\x02 \x01(\t\"m\n\x15\x41\x64\x64\x43lusterInfoRequest\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\x12\x0e\n\x06\x63sp_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12!\n\x04\x63onf\x18\x04 \x01(\x0b\x32\x13.tks_pb.ClusterConf\"Q\n\x18UpdateClusterConfRequest\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12!\n\x04\x63onf\x18\x02 \x01(\x0b\x32\x13.tks_pb.ClusterConf\"\'\n\x11GetClusterRequest\x12\x12\n\ncluster_id\x18\x01 \x01(\t\"p\n\x12GetClusterResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12 \n\x07\x63luster\x18\x03 \x01(\x0b\x32\x0f.tks_pb.Cluster\"9\n\x12GetClustersRequest\x12\x0e\n\x06\x63sp_id\x18\x01 \x01(\t\x12\x13\n\x0b\x63ontract_id\x18\x02 \x01(\t\"r\n\x13GetClustersResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12!\n\x08\x63lusters\x18\x03 \x03(\x0b\x32\x0f.tks_pb.Cluster\"W\n\x1aUpdateClusterStatusRequest\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12%\n\x06status\x18\x02 \x01(\x0e\x32\x15.tks_pb.ClusterStatus\"P\n\x15\x43reateAppGroupRequest\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12#\n\tapp_group\x18\x02 \x01(\x0b\x32\x10.tks_pb.AppGroup\"-\n\x15\x44\x65leteAppGroupRequest\x12\x14\n\x0c\x61pp_group_id\x18\x01 \x01(\t\"Q\n\x13GetAppGroupsRequest\x12\x16\n\x0e\x61pp_group_name\x18\x01 \x01(\t\x12\"\n\x04type\x18\x02 \x01(\x0e\x32\x14.tks_pb.AppGroupType\"*\n\x12GetAppGroupRequest\x12\x14\n\x0c\x61pp_group_id\x18\x01 \x01(\t\"t\n\x13GetAppGroupResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12#\n\tapp_group\x18\x03 \x01(\x0b\x32\x10.tks_pb.AppGroup\"v\n\x14GetAppGroupsResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12$\n\napp_groups\x18\x03 \x03(\x0b\x32\x10.tks_pb.AppGroup\"[\n\x1bUpdateAppGroupStatusRequest\x12\x14\n\x0c\x61pp_group_id\x18\x01 \x01(\t\x12&\n\x06status\x18\x02 \x01(\x0e\x32\x16.tks_pb.AppGroupStatus\"o\n\x10UpdateAppRequest\x12\x14\n\x0c\x61pp_group_id\x18\x01 \x01(\t\x12!\n\x08\x61pp_type\x18\x02 \x01(\x0e\x32\x0f.tks_pb.AppType\x12\x10\n\x08\x65ndpoint\x18\x03 \x01(\t\x12\x10\n\x08metadata\x18\x04 \x01(\t\"E\n\x0eGetAppsRequest\x12\x14\n\x0c\x61pp_group_id\x18\x01 \x01(\t\x12\x1d\n\x04type\x18\x02 \x01(\x0e\x32\x0f.tks_pb.AppType\"n\n\x0fGetAppsResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12!\n\x04\x61pps\x18\x03 \x03(\x0b\x32\x13.tks_pb.Application2\x92\x03\n\x12\x43lusterInfoService\x12\x45\n\x0e\x41\x64\x64\x43lusterInfo\x12\x1d.tks_pb.AddClusterInfoRequest\x1a\x12.tks_pb.IDResponse\"\x00\x12O\n\x11UpdateClusterConf\x12 .tks_pb.UpdateClusterConfRequest\x1a\x16.tks_pb.SimpleResponse\"\x00\x12\x45\n\nGetCluster\x12\x19.tks_pb.GetClusterRequest\x1a\x1a.tks_pb.GetClusterResponse\"\x00\x12H\n\x0bGetClusters\x12\x1a.tks_pb.GetClustersRequest\x1a\x1b.tks_pb.GetClustersResponse\"\x00\x12S\n\x13UpdateClusterStatus\x12\".tks_pb.UpdateClusterStatusRequest\x1a\x16.tks_pb.SimpleResponse\"\x00\x32\xdc\x02\n\x0e\x43spInfoService\x12\x43\n\rCreateCSPInfo\x12\x1c.tks_pb.CreateCSPInfoRequest\x1a\x12.tks_pb.IDResponse\"\x00\x12:\n\tGetCSPIDs\x12\x16.google.protobuf.Empty\x1a\x13.tks_pb.IDsResponse\"\x00\x12\x41\n\x15GetCSPIDsByContractID\x12\x11.tks_pb.IDRequest\x1a\x13.tks_pb.IDsResponse\"\x00\x12G\n\rUpdateCSPAuth\x12\x1c.tks_pb.UpdateCSPAuthRequest\x1a\x16.tks_pb.SimpleResponse\"\x00\x12=\n\nGetCSPAuth\x12\x11.tks_pb.IDRequest\x1a\x1a.tks_pb.GetCSPAuthResponse\"\x00\x32\xa2\x05\n\x0e\x41ppInfoService\x12\x45\n\x0e\x43reateAppGroup\x12\x1d.tks_pb.CreateAppGroupRequest\x1a\x12.tks_pb.IDResponse\"\x00\x12L\n\x17GetAppGroupsByClusterID\x12\x11.tks_pb.IDRequest\x1a\x1c.tks_pb.GetAppGroupsResponse\"\x00\x12K\n\x0cGetAppGroups\x12\x1b.tks_pb.GetAppGroupsRequest\x1a\x1c.tks_pb.GetAppGroupsResponse\"\x00\x12H\n\x0bGetAppGroup\x12\x1a.tks_pb.GetAppGroupRequest\x1a\x1b.tks_pb.GetAppGroupResponse\"\x00\x12U\n\x14UpdateAppGroupStatus\x12#.tks_pb.UpdateAppGroupStatusRequest\x1a\x16.tks_pb.SimpleResponse\"\x00\x12I\n\x0e\x44\x65leteAppGroup\x12\x1d.tks_pb.DeleteAppGroupRequest\x1a\x16.tks_pb.SimpleResponse\"\x00\x12\x43\n\x13GetAppsByAppGroupID\x12\x11.tks_pb.IDRequest\x1a\x17.tks_pb.GetAppsResponse\"\x00\x12<\n\x07GetApps\x12\x16.tks_pb.GetAppsRequest\x1a\x17.tks_pb.GetAppsResponse\"\x00\x12?\n\tUpdateApp\x12\x18.tks_pb.UpdateAppRequest\x1a\x16.tks_pb.SimpleResponse\"\x00\x42\'Z%github.com/sktelecom/tks-proto/tks_pbb\x06proto3' + , + dependencies=[common__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,]) + + + + +_CREATECSPINFOREQUEST = _descriptor.Descriptor( + name='CreateCSPInfoRequest', + full_name='tks_pb.CreateCSPInfoRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='contract_id', full_name='tks_pb.CreateCSPInfoRequest.contract_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='csp_name', full_name='tks_pb.CreateCSPInfoRequest.csp_name', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='auth', full_name='tks_pb.CreateCSPInfoRequest.auth', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=65, + serialized_end=140, +) + + +_GETCSPAUTHRESPONSE = _descriptor.Descriptor( + name='GetCSPAuthResponse', + full_name='tks_pb.GetCSPAuthResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='code', full_name='tks_pb.GetCSPAuthResponse.code', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='error', full_name='tks_pb.GetCSPAuthResponse.error', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='auth', full_name='tks_pb.GetCSPAuthResponse.auth', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=142, + serialized_end=234, +) + + +_UPDATECSPAUTHREQUEST = _descriptor.Descriptor( + name='UpdateCSPAuthRequest', + full_name='tks_pb.UpdateCSPAuthRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='csp_id', full_name='tks_pb.UpdateCSPAuthRequest.csp_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='auth', full_name='tks_pb.UpdateCSPAuthRequest.auth', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=236, + serialized_end=288, +) + + +_ADDCLUSTERINFOREQUEST = _descriptor.Descriptor( + name='AddClusterInfoRequest', + full_name='tks_pb.AddClusterInfoRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='contract_id', full_name='tks_pb.AddClusterInfoRequest.contract_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='csp_id', full_name='tks_pb.AddClusterInfoRequest.csp_id', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='name', full_name='tks_pb.AddClusterInfoRequest.name', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='conf', full_name='tks_pb.AddClusterInfoRequest.conf', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=290, + serialized_end=399, +) + + +_UPDATECLUSTERCONFREQUEST = _descriptor.Descriptor( + name='UpdateClusterConfRequest', + full_name='tks_pb.UpdateClusterConfRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='cluster_id', full_name='tks_pb.UpdateClusterConfRequest.cluster_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='conf', full_name='tks_pb.UpdateClusterConfRequest.conf', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=401, + serialized_end=482, +) + + +_GETCLUSTERREQUEST = _descriptor.Descriptor( + name='GetClusterRequest', + full_name='tks_pb.GetClusterRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='cluster_id', full_name='tks_pb.GetClusterRequest.cluster_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=484, + serialized_end=523, +) + + +_GETCLUSTERRESPONSE = _descriptor.Descriptor( + name='GetClusterResponse', + full_name='tks_pb.GetClusterResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='code', full_name='tks_pb.GetClusterResponse.code', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='error', full_name='tks_pb.GetClusterResponse.error', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='cluster', full_name='tks_pb.GetClusterResponse.cluster', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=525, + serialized_end=637, +) + + +_GETCLUSTERSREQUEST = _descriptor.Descriptor( + name='GetClustersRequest', + full_name='tks_pb.GetClustersRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='csp_id', full_name='tks_pb.GetClustersRequest.csp_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='contract_id', full_name='tks_pb.GetClustersRequest.contract_id', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=639, + serialized_end=696, +) + + +_GETCLUSTERSRESPONSE = _descriptor.Descriptor( + name='GetClustersResponse', + full_name='tks_pb.GetClustersResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='code', full_name='tks_pb.GetClustersResponse.code', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='error', full_name='tks_pb.GetClustersResponse.error', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='clusters', full_name='tks_pb.GetClustersResponse.clusters', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=698, + serialized_end=812, +) + + +_UPDATECLUSTERSTATUSREQUEST = _descriptor.Descriptor( + name='UpdateClusterStatusRequest', + full_name='tks_pb.UpdateClusterStatusRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='cluster_id', full_name='tks_pb.UpdateClusterStatusRequest.cluster_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='status', full_name='tks_pb.UpdateClusterStatusRequest.status', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=814, + serialized_end=901, +) + + +_CREATEAPPGROUPREQUEST = _descriptor.Descriptor( + name='CreateAppGroupRequest', + full_name='tks_pb.CreateAppGroupRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='cluster_id', full_name='tks_pb.CreateAppGroupRequest.cluster_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='app_group', full_name='tks_pb.CreateAppGroupRequest.app_group', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=903, + serialized_end=983, +) + + +_DELETEAPPGROUPREQUEST = _descriptor.Descriptor( + name='DeleteAppGroupRequest', + full_name='tks_pb.DeleteAppGroupRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='app_group_id', full_name='tks_pb.DeleteAppGroupRequest.app_group_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=985, + serialized_end=1030, +) + + +_GETAPPGROUPSREQUEST = _descriptor.Descriptor( + name='GetAppGroupsRequest', + full_name='tks_pb.GetAppGroupsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='app_group_name', full_name='tks_pb.GetAppGroupsRequest.app_group_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='type', full_name='tks_pb.GetAppGroupsRequest.type', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1032, + serialized_end=1113, +) + + +_GETAPPGROUPREQUEST = _descriptor.Descriptor( + name='GetAppGroupRequest', + full_name='tks_pb.GetAppGroupRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='app_group_id', full_name='tks_pb.GetAppGroupRequest.app_group_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1115, + serialized_end=1157, +) + + +_GETAPPGROUPRESPONSE = _descriptor.Descriptor( + name='GetAppGroupResponse', + full_name='tks_pb.GetAppGroupResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='code', full_name='tks_pb.GetAppGroupResponse.code', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='error', full_name='tks_pb.GetAppGroupResponse.error', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='app_group', full_name='tks_pb.GetAppGroupResponse.app_group', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1159, + serialized_end=1275, +) + + +_GETAPPGROUPSRESPONSE = _descriptor.Descriptor( + name='GetAppGroupsResponse', + full_name='tks_pb.GetAppGroupsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='code', full_name='tks_pb.GetAppGroupsResponse.code', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='error', full_name='tks_pb.GetAppGroupsResponse.error', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='app_groups', full_name='tks_pb.GetAppGroupsResponse.app_groups', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1277, + serialized_end=1395, +) + + +_UPDATEAPPGROUPSTATUSREQUEST = _descriptor.Descriptor( + name='UpdateAppGroupStatusRequest', + full_name='tks_pb.UpdateAppGroupStatusRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='app_group_id', full_name='tks_pb.UpdateAppGroupStatusRequest.app_group_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='status', full_name='tks_pb.UpdateAppGroupStatusRequest.status', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1397, + serialized_end=1488, +) + + +_UPDATEAPPREQUEST = _descriptor.Descriptor( + name='UpdateAppRequest', + full_name='tks_pb.UpdateAppRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='app_group_id', full_name='tks_pb.UpdateAppRequest.app_group_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='app_type', full_name='tks_pb.UpdateAppRequest.app_type', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='endpoint', full_name='tks_pb.UpdateAppRequest.endpoint', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='metadata', full_name='tks_pb.UpdateAppRequest.metadata', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1490, + serialized_end=1601, +) + + +_GETAPPSREQUEST = _descriptor.Descriptor( + name='GetAppsRequest', + full_name='tks_pb.GetAppsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='app_group_id', full_name='tks_pb.GetAppsRequest.app_group_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='type', full_name='tks_pb.GetAppsRequest.type', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1603, + serialized_end=1672, +) + + +_GETAPPSRESPONSE = _descriptor.Descriptor( + name='GetAppsResponse', + full_name='tks_pb.GetAppsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='code', full_name='tks_pb.GetAppsResponse.code', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='error', full_name='tks_pb.GetAppsResponse.error', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='apps', full_name='tks_pb.GetAppsResponse.apps', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1674, + serialized_end=1784, +) + +_GETCSPAUTHRESPONSE.fields_by_name['code'].enum_type = common__pb2._CODE +_GETCSPAUTHRESPONSE.fields_by_name['error'].message_type = common__pb2._ERROR +_ADDCLUSTERINFOREQUEST.fields_by_name['conf'].message_type = common__pb2._CLUSTERCONF +_UPDATECLUSTERCONFREQUEST.fields_by_name['conf'].message_type = common__pb2._CLUSTERCONF +_GETCLUSTERRESPONSE.fields_by_name['code'].enum_type = common__pb2._CODE +_GETCLUSTERRESPONSE.fields_by_name['error'].message_type = common__pb2._ERROR +_GETCLUSTERRESPONSE.fields_by_name['cluster'].message_type = common__pb2._CLUSTER +_GETCLUSTERSRESPONSE.fields_by_name['code'].enum_type = common__pb2._CODE +_GETCLUSTERSRESPONSE.fields_by_name['error'].message_type = common__pb2._ERROR +_GETCLUSTERSRESPONSE.fields_by_name['clusters'].message_type = common__pb2._CLUSTER +_UPDATECLUSTERSTATUSREQUEST.fields_by_name['status'].enum_type = common__pb2._CLUSTERSTATUS +_CREATEAPPGROUPREQUEST.fields_by_name['app_group'].message_type = common__pb2._APPGROUP +_GETAPPGROUPSREQUEST.fields_by_name['type'].enum_type = common__pb2._APPGROUPTYPE +_GETAPPGROUPRESPONSE.fields_by_name['code'].enum_type = common__pb2._CODE +_GETAPPGROUPRESPONSE.fields_by_name['error'].message_type = common__pb2._ERROR +_GETAPPGROUPRESPONSE.fields_by_name['app_group'].message_type = common__pb2._APPGROUP +_GETAPPGROUPSRESPONSE.fields_by_name['code'].enum_type = common__pb2._CODE +_GETAPPGROUPSRESPONSE.fields_by_name['error'].message_type = common__pb2._ERROR +_GETAPPGROUPSRESPONSE.fields_by_name['app_groups'].message_type = common__pb2._APPGROUP +_UPDATEAPPGROUPSTATUSREQUEST.fields_by_name['status'].enum_type = common__pb2._APPGROUPSTATUS +_UPDATEAPPREQUEST.fields_by_name['app_type'].enum_type = common__pb2._APPTYPE +_GETAPPSREQUEST.fields_by_name['type'].enum_type = common__pb2._APPTYPE +_GETAPPSRESPONSE.fields_by_name['code'].enum_type = common__pb2._CODE +_GETAPPSRESPONSE.fields_by_name['error'].message_type = common__pb2._ERROR +_GETAPPSRESPONSE.fields_by_name['apps'].message_type = common__pb2._APPLICATION +DESCRIPTOR.message_types_by_name['CreateCSPInfoRequest'] = _CREATECSPINFOREQUEST +DESCRIPTOR.message_types_by_name['GetCSPAuthResponse'] = _GETCSPAUTHRESPONSE +DESCRIPTOR.message_types_by_name['UpdateCSPAuthRequest'] = _UPDATECSPAUTHREQUEST +DESCRIPTOR.message_types_by_name['AddClusterInfoRequest'] = _ADDCLUSTERINFOREQUEST +DESCRIPTOR.message_types_by_name['UpdateClusterConfRequest'] = _UPDATECLUSTERCONFREQUEST +DESCRIPTOR.message_types_by_name['GetClusterRequest'] = _GETCLUSTERREQUEST +DESCRIPTOR.message_types_by_name['GetClusterResponse'] = _GETCLUSTERRESPONSE +DESCRIPTOR.message_types_by_name['GetClustersRequest'] = _GETCLUSTERSREQUEST +DESCRIPTOR.message_types_by_name['GetClustersResponse'] = _GETCLUSTERSRESPONSE +DESCRIPTOR.message_types_by_name['UpdateClusterStatusRequest'] = _UPDATECLUSTERSTATUSREQUEST +DESCRIPTOR.message_types_by_name['CreateAppGroupRequest'] = _CREATEAPPGROUPREQUEST +DESCRIPTOR.message_types_by_name['DeleteAppGroupRequest'] = _DELETEAPPGROUPREQUEST +DESCRIPTOR.message_types_by_name['GetAppGroupsRequest'] = _GETAPPGROUPSREQUEST +DESCRIPTOR.message_types_by_name['GetAppGroupRequest'] = _GETAPPGROUPREQUEST +DESCRIPTOR.message_types_by_name['GetAppGroupResponse'] = _GETAPPGROUPRESPONSE +DESCRIPTOR.message_types_by_name['GetAppGroupsResponse'] = _GETAPPGROUPSRESPONSE +DESCRIPTOR.message_types_by_name['UpdateAppGroupStatusRequest'] = _UPDATEAPPGROUPSTATUSREQUEST +DESCRIPTOR.message_types_by_name['UpdateAppRequest'] = _UPDATEAPPREQUEST +DESCRIPTOR.message_types_by_name['GetAppsRequest'] = _GETAPPSREQUEST +DESCRIPTOR.message_types_by_name['GetAppsResponse'] = _GETAPPSRESPONSE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CreateCSPInfoRequest = _reflection.GeneratedProtocolMessageType('CreateCSPInfoRequest', (_message.Message,), { + 'DESCRIPTOR' : _CREATECSPINFOREQUEST, + '__module__' : 'info_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.CreateCSPInfoRequest) + }) +_sym_db.RegisterMessage(CreateCSPInfoRequest) + +GetCSPAuthResponse = _reflection.GeneratedProtocolMessageType('GetCSPAuthResponse', (_message.Message,), { + 'DESCRIPTOR' : _GETCSPAUTHRESPONSE, + '__module__' : 'info_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.GetCSPAuthResponse) + }) +_sym_db.RegisterMessage(GetCSPAuthResponse) + +UpdateCSPAuthRequest = _reflection.GeneratedProtocolMessageType('UpdateCSPAuthRequest', (_message.Message,), { + 'DESCRIPTOR' : _UPDATECSPAUTHREQUEST, + '__module__' : 'info_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.UpdateCSPAuthRequest) + }) +_sym_db.RegisterMessage(UpdateCSPAuthRequest) + +AddClusterInfoRequest = _reflection.GeneratedProtocolMessageType('AddClusterInfoRequest', (_message.Message,), { + 'DESCRIPTOR' : _ADDCLUSTERINFOREQUEST, + '__module__' : 'info_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.AddClusterInfoRequest) + }) +_sym_db.RegisterMessage(AddClusterInfoRequest) + +UpdateClusterConfRequest = _reflection.GeneratedProtocolMessageType('UpdateClusterConfRequest', (_message.Message,), { + 'DESCRIPTOR' : _UPDATECLUSTERCONFREQUEST, + '__module__' : 'info_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.UpdateClusterConfRequest) + }) +_sym_db.RegisterMessage(UpdateClusterConfRequest) + +GetClusterRequest = _reflection.GeneratedProtocolMessageType('GetClusterRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETCLUSTERREQUEST, + '__module__' : 'info_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.GetClusterRequest) + }) +_sym_db.RegisterMessage(GetClusterRequest) + +GetClusterResponse = _reflection.GeneratedProtocolMessageType('GetClusterResponse', (_message.Message,), { + 'DESCRIPTOR' : _GETCLUSTERRESPONSE, + '__module__' : 'info_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.GetClusterResponse) + }) +_sym_db.RegisterMessage(GetClusterResponse) + +GetClustersRequest = _reflection.GeneratedProtocolMessageType('GetClustersRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETCLUSTERSREQUEST, + '__module__' : 'info_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.GetClustersRequest) + }) +_sym_db.RegisterMessage(GetClustersRequest) + +GetClustersResponse = _reflection.GeneratedProtocolMessageType('GetClustersResponse', (_message.Message,), { + 'DESCRIPTOR' : _GETCLUSTERSRESPONSE, + '__module__' : 'info_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.GetClustersResponse) + }) +_sym_db.RegisterMessage(GetClustersResponse) + +UpdateClusterStatusRequest = _reflection.GeneratedProtocolMessageType('UpdateClusterStatusRequest', (_message.Message,), { + 'DESCRIPTOR' : _UPDATECLUSTERSTATUSREQUEST, + '__module__' : 'info_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.UpdateClusterStatusRequest) + }) +_sym_db.RegisterMessage(UpdateClusterStatusRequest) + +CreateAppGroupRequest = _reflection.GeneratedProtocolMessageType('CreateAppGroupRequest', (_message.Message,), { + 'DESCRIPTOR' : _CREATEAPPGROUPREQUEST, + '__module__' : 'info_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.CreateAppGroupRequest) + }) +_sym_db.RegisterMessage(CreateAppGroupRequest) + +DeleteAppGroupRequest = _reflection.GeneratedProtocolMessageType('DeleteAppGroupRequest', (_message.Message,), { + 'DESCRIPTOR' : _DELETEAPPGROUPREQUEST, + '__module__' : 'info_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.DeleteAppGroupRequest) + }) +_sym_db.RegisterMessage(DeleteAppGroupRequest) + +GetAppGroupsRequest = _reflection.GeneratedProtocolMessageType('GetAppGroupsRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETAPPGROUPSREQUEST, + '__module__' : 'info_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.GetAppGroupsRequest) + }) +_sym_db.RegisterMessage(GetAppGroupsRequest) + +GetAppGroupRequest = _reflection.GeneratedProtocolMessageType('GetAppGroupRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETAPPGROUPREQUEST, + '__module__' : 'info_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.GetAppGroupRequest) + }) +_sym_db.RegisterMessage(GetAppGroupRequest) + +GetAppGroupResponse = _reflection.GeneratedProtocolMessageType('GetAppGroupResponse', (_message.Message,), { + 'DESCRIPTOR' : _GETAPPGROUPRESPONSE, + '__module__' : 'info_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.GetAppGroupResponse) + }) +_sym_db.RegisterMessage(GetAppGroupResponse) + +GetAppGroupsResponse = _reflection.GeneratedProtocolMessageType('GetAppGroupsResponse', (_message.Message,), { + 'DESCRIPTOR' : _GETAPPGROUPSRESPONSE, + '__module__' : 'info_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.GetAppGroupsResponse) + }) +_sym_db.RegisterMessage(GetAppGroupsResponse) + +UpdateAppGroupStatusRequest = _reflection.GeneratedProtocolMessageType('UpdateAppGroupStatusRequest', (_message.Message,), { + 'DESCRIPTOR' : _UPDATEAPPGROUPSTATUSREQUEST, + '__module__' : 'info_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.UpdateAppGroupStatusRequest) + }) +_sym_db.RegisterMessage(UpdateAppGroupStatusRequest) + +UpdateAppRequest = _reflection.GeneratedProtocolMessageType('UpdateAppRequest', (_message.Message,), { + 'DESCRIPTOR' : _UPDATEAPPREQUEST, + '__module__' : 'info_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.UpdateAppRequest) + }) +_sym_db.RegisterMessage(UpdateAppRequest) + +GetAppsRequest = _reflection.GeneratedProtocolMessageType('GetAppsRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETAPPSREQUEST, + '__module__' : 'info_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.GetAppsRequest) + }) +_sym_db.RegisterMessage(GetAppsRequest) + +GetAppsResponse = _reflection.GeneratedProtocolMessageType('GetAppsResponse', (_message.Message,), { + 'DESCRIPTOR' : _GETAPPSRESPONSE, + '__module__' : 'info_pb2' + # @@protoc_insertion_point(class_scope:tks_pb.GetAppsResponse) + }) +_sym_db.RegisterMessage(GetAppsResponse) + + +DESCRIPTOR._options = None + +_CLUSTERINFOSERVICE = _descriptor.ServiceDescriptor( + name='ClusterInfoService', + full_name='tks_pb.ClusterInfoService', + file=DESCRIPTOR, + index=0, + serialized_options=None, + create_key=_descriptor._internal_create_key, + serialized_start=1787, + serialized_end=2189, + methods=[ + _descriptor.MethodDescriptor( + name='AddClusterInfo', + full_name='tks_pb.ClusterInfoService.AddClusterInfo', + index=0, + containing_service=None, + input_type=_ADDCLUSTERINFOREQUEST, + output_type=common__pb2._IDRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='UpdateClusterConf', + full_name='tks_pb.ClusterInfoService.UpdateClusterConf', + index=1, + containing_service=None, + input_type=_UPDATECLUSTERCONFREQUEST, + output_type=common__pb2._SIMPLERESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='GetCluster', + full_name='tks_pb.ClusterInfoService.GetCluster', + index=2, + containing_service=None, + input_type=_GETCLUSTERREQUEST, + output_type=_GETCLUSTERRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='GetClusters', + full_name='tks_pb.ClusterInfoService.GetClusters', + index=3, + containing_service=None, + input_type=_GETCLUSTERSREQUEST, + output_type=_GETCLUSTERSRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='UpdateClusterStatus', + full_name='tks_pb.ClusterInfoService.UpdateClusterStatus', + index=4, + containing_service=None, + input_type=_UPDATECLUSTERSTATUSREQUEST, + output_type=common__pb2._SIMPLERESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), +]) +_sym_db.RegisterServiceDescriptor(_CLUSTERINFOSERVICE) + +DESCRIPTOR.services_by_name['ClusterInfoService'] = _CLUSTERINFOSERVICE + + +_CSPINFOSERVICE = _descriptor.ServiceDescriptor( + name='CspInfoService', + full_name='tks_pb.CspInfoService', + file=DESCRIPTOR, + index=1, + serialized_options=None, + create_key=_descriptor._internal_create_key, + serialized_start=2192, + serialized_end=2540, + methods=[ + _descriptor.MethodDescriptor( + name='CreateCSPInfo', + full_name='tks_pb.CspInfoService.CreateCSPInfo', + index=0, + containing_service=None, + input_type=_CREATECSPINFOREQUEST, + output_type=common__pb2._IDRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='GetCSPIDs', + full_name='tks_pb.CspInfoService.GetCSPIDs', + index=1, + containing_service=None, + input_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + output_type=common__pb2._IDSRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='GetCSPIDsByContractID', + full_name='tks_pb.CspInfoService.GetCSPIDsByContractID', + index=2, + containing_service=None, + input_type=common__pb2._IDREQUEST, + output_type=common__pb2._IDSRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='UpdateCSPAuth', + full_name='tks_pb.CspInfoService.UpdateCSPAuth', + index=3, + containing_service=None, + input_type=_UPDATECSPAUTHREQUEST, + output_type=common__pb2._SIMPLERESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='GetCSPAuth', + full_name='tks_pb.CspInfoService.GetCSPAuth', + index=4, + containing_service=None, + input_type=common__pb2._IDREQUEST, + output_type=_GETCSPAUTHRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), +]) +_sym_db.RegisterServiceDescriptor(_CSPINFOSERVICE) + +DESCRIPTOR.services_by_name['CspInfoService'] = _CSPINFOSERVICE + + +_APPINFOSERVICE = _descriptor.ServiceDescriptor( + name='AppInfoService', + full_name='tks_pb.AppInfoService', + file=DESCRIPTOR, + index=2, + serialized_options=None, + create_key=_descriptor._internal_create_key, + serialized_start=2543, + serialized_end=3217, + methods=[ + _descriptor.MethodDescriptor( + name='CreateAppGroup', + full_name='tks_pb.AppInfoService.CreateAppGroup', + index=0, + containing_service=None, + input_type=_CREATEAPPGROUPREQUEST, + output_type=common__pb2._IDRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='GetAppGroupsByClusterID', + full_name='tks_pb.AppInfoService.GetAppGroupsByClusterID', + index=1, + containing_service=None, + input_type=common__pb2._IDREQUEST, + output_type=_GETAPPGROUPSRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='GetAppGroups', + full_name='tks_pb.AppInfoService.GetAppGroups', + index=2, + containing_service=None, + input_type=_GETAPPGROUPSREQUEST, + output_type=_GETAPPGROUPSRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='GetAppGroup', + full_name='tks_pb.AppInfoService.GetAppGroup', + index=3, + containing_service=None, + input_type=_GETAPPGROUPREQUEST, + output_type=_GETAPPGROUPRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='UpdateAppGroupStatus', + full_name='tks_pb.AppInfoService.UpdateAppGroupStatus', + index=4, + containing_service=None, + input_type=_UPDATEAPPGROUPSTATUSREQUEST, + output_type=common__pb2._SIMPLERESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='DeleteAppGroup', + full_name='tks_pb.AppInfoService.DeleteAppGroup', + index=5, + containing_service=None, + input_type=_DELETEAPPGROUPREQUEST, + output_type=common__pb2._SIMPLERESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='GetAppsByAppGroupID', + full_name='tks_pb.AppInfoService.GetAppsByAppGroupID', + index=6, + containing_service=None, + input_type=common__pb2._IDREQUEST, + output_type=_GETAPPSRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='GetApps', + full_name='tks_pb.AppInfoService.GetApps', + index=7, + containing_service=None, + input_type=_GETAPPSREQUEST, + output_type=_GETAPPSRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='UpdateApp', + full_name='tks_pb.AppInfoService.UpdateApp', + index=8, + containing_service=None, + input_type=_UPDATEAPPREQUEST, + output_type=common__pb2._SIMPLERESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), +]) +_sym_db.RegisterServiceDescriptor(_APPINFOSERVICE) + +DESCRIPTOR.services_by_name['AppInfoService'] = _APPINFOSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/tks_pb_python/info_pb2_grpc.py b/tks_pb_python/info_pb2_grpc.py new file mode 100644 index 0000000..e2acb9a --- /dev/null +++ b/tks_pb_python/info_pb2_grpc.py @@ -0,0 +1,746 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +import common_pb2 as common__pb2 +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +import info_pb2 as info__pb2 + + +class ClusterInfoServiceStub(object): + """ClusterInfoService is a service to manage cluster info document. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.AddClusterInfo = channel.unary_unary( + '/tks_pb.ClusterInfoService/AddClusterInfo', + request_serializer=info__pb2.AddClusterInfoRequest.SerializeToString, + response_deserializer=common__pb2.IDResponse.FromString, + ) + self.UpdateClusterConf = channel.unary_unary( + '/tks_pb.ClusterInfoService/UpdateClusterConf', + request_serializer=info__pb2.UpdateClusterConfRequest.SerializeToString, + response_deserializer=common__pb2.SimpleResponse.FromString, + ) + self.GetCluster = channel.unary_unary( + '/tks_pb.ClusterInfoService/GetCluster', + request_serializer=info__pb2.GetClusterRequest.SerializeToString, + response_deserializer=info__pb2.GetClusterResponse.FromString, + ) + self.GetClusters = channel.unary_unary( + '/tks_pb.ClusterInfoService/GetClusters', + request_serializer=info__pb2.GetClustersRequest.SerializeToString, + response_deserializer=info__pb2.GetClustersResponse.FromString, + ) + self.UpdateClusterStatus = channel.unary_unary( + '/tks_pb.ClusterInfoService/UpdateClusterStatus', + request_serializer=info__pb2.UpdateClusterStatusRequest.SerializeToString, + response_deserializer=common__pb2.SimpleResponse.FromString, + ) + + +class ClusterInfoServiceServicer(object): + """ClusterInfoService is a service to manage cluster info document. + """ + + def AddClusterInfo(self, request, context): + """AddClusterInfo adds new cluster information + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateClusterConf(self, request, context): + """UpdateClusterConf updates the cluster configuration information + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetCluster(self, request, context): + """GetCluster gets cluster info for the id of the cluster + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetClusters(self, request, context): + """GetClusters get every clusters on the mutlcluster + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateClusterStatus(self, request, context): + """UpdateClusterStatus update Status of the Cluster + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ClusterInfoServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'AddClusterInfo': grpc.unary_unary_rpc_method_handler( + servicer.AddClusterInfo, + request_deserializer=info__pb2.AddClusterInfoRequest.FromString, + response_serializer=common__pb2.IDResponse.SerializeToString, + ), + 'UpdateClusterConf': grpc.unary_unary_rpc_method_handler( + servicer.UpdateClusterConf, + request_deserializer=info__pb2.UpdateClusterConfRequest.FromString, + response_serializer=common__pb2.SimpleResponse.SerializeToString, + ), + 'GetCluster': grpc.unary_unary_rpc_method_handler( + servicer.GetCluster, + request_deserializer=info__pb2.GetClusterRequest.FromString, + response_serializer=info__pb2.GetClusterResponse.SerializeToString, + ), + 'GetClusters': grpc.unary_unary_rpc_method_handler( + servicer.GetClusters, + request_deserializer=info__pb2.GetClustersRequest.FromString, + response_serializer=info__pb2.GetClustersResponse.SerializeToString, + ), + 'UpdateClusterStatus': grpc.unary_unary_rpc_method_handler( + servicer.UpdateClusterStatus, + request_deserializer=info__pb2.UpdateClusterStatusRequest.FromString, + response_serializer=common__pb2.SimpleResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'tks_pb.ClusterInfoService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class ClusterInfoService(object): + """ClusterInfoService is a service to manage cluster info document. + """ + + @staticmethod + def AddClusterInfo(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.ClusterInfoService/AddClusterInfo', + info__pb2.AddClusterInfoRequest.SerializeToString, + common__pb2.IDResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateClusterConf(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.ClusterInfoService/UpdateClusterConf', + info__pb2.UpdateClusterConfRequest.SerializeToString, + common__pb2.SimpleResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetCluster(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.ClusterInfoService/GetCluster', + info__pb2.GetClusterRequest.SerializeToString, + info__pb2.GetClusterResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetClusters(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.ClusterInfoService/GetClusters', + info__pb2.GetClustersRequest.SerializeToString, + info__pb2.GetClustersResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateClusterStatus(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.ClusterInfoService/UpdateClusterStatus', + info__pb2.UpdateClusterStatusRequest.SerializeToString, + common__pb2.SimpleResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + +class CspInfoServiceStub(object): + """CspInfoService is a service to manage CSP info document. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateCSPInfo = channel.unary_unary( + '/tks_pb.CspInfoService/CreateCSPInfo', + request_serializer=info__pb2.CreateCSPInfoRequest.SerializeToString, + response_deserializer=common__pb2.IDResponse.FromString, + ) + self.GetCSPIDs = channel.unary_unary( + '/tks_pb.CspInfoService/GetCSPIDs', + request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + response_deserializer=common__pb2.IDsResponse.FromString, + ) + self.GetCSPIDsByContractID = channel.unary_unary( + '/tks_pb.CspInfoService/GetCSPIDsByContractID', + request_serializer=common__pb2.IDRequest.SerializeToString, + response_deserializer=common__pb2.IDsResponse.FromString, + ) + self.UpdateCSPAuth = channel.unary_unary( + '/tks_pb.CspInfoService/UpdateCSPAuth', + request_serializer=info__pb2.UpdateCSPAuthRequest.SerializeToString, + response_deserializer=common__pb2.SimpleResponse.FromString, + ) + self.GetCSPAuth = channel.unary_unary( + '/tks_pb.CspInfoService/GetCSPAuth', + request_serializer=common__pb2.IDRequest.SerializeToString, + response_deserializer=info__pb2.GetCSPAuthResponse.FromString, + ) + + +class CspInfoServiceServicer(object): + """CspInfoService is a service to manage CSP info document. + """ + + def CreateCSPInfo(self, request, context): + """CreateCSPInfo create new CSP Info for the contract id. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetCSPIDs(self, request, context): + """GetCSPIDs returns all CSP ids. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetCSPIDsByContractID(self, request, context): + """GetCSPIDsByContractID returns the CSP ids by the contract id. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateCSPAuth(self, request, context): + """UpdateCSPInfo updates an authentication config for CSP. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetCSPAuth(self, request, context): + """GetCSPAuth returns an authentication info by csp id. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_CspInfoServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateCSPInfo': grpc.unary_unary_rpc_method_handler( + servicer.CreateCSPInfo, + request_deserializer=info__pb2.CreateCSPInfoRequest.FromString, + response_serializer=common__pb2.IDResponse.SerializeToString, + ), + 'GetCSPIDs': grpc.unary_unary_rpc_method_handler( + servicer.GetCSPIDs, + request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + response_serializer=common__pb2.IDsResponse.SerializeToString, + ), + 'GetCSPIDsByContractID': grpc.unary_unary_rpc_method_handler( + servicer.GetCSPIDsByContractID, + request_deserializer=common__pb2.IDRequest.FromString, + response_serializer=common__pb2.IDsResponse.SerializeToString, + ), + 'UpdateCSPAuth': grpc.unary_unary_rpc_method_handler( + servicer.UpdateCSPAuth, + request_deserializer=info__pb2.UpdateCSPAuthRequest.FromString, + response_serializer=common__pb2.SimpleResponse.SerializeToString, + ), + 'GetCSPAuth': grpc.unary_unary_rpc_method_handler( + servicer.GetCSPAuth, + request_deserializer=common__pb2.IDRequest.FromString, + response_serializer=info__pb2.GetCSPAuthResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'tks_pb.CspInfoService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class CspInfoService(object): + """CspInfoService is a service to manage CSP info document. + """ + + @staticmethod + def CreateCSPInfo(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.CspInfoService/CreateCSPInfo', + info__pb2.CreateCSPInfoRequest.SerializeToString, + common__pb2.IDResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetCSPIDs(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.CspInfoService/GetCSPIDs', + google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + common__pb2.IDsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetCSPIDsByContractID(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.CspInfoService/GetCSPIDsByContractID', + common__pb2.IDRequest.SerializeToString, + common__pb2.IDsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateCSPAuth(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.CspInfoService/UpdateCSPAuth', + info__pb2.UpdateCSPAuthRequest.SerializeToString, + common__pb2.SimpleResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetCSPAuth(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.CspInfoService/GetCSPAuth', + common__pb2.IDRequest.SerializeToString, + info__pb2.GetCSPAuthResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + +class AppInfoServiceStub(object): + """AppInfoService is a service to manage Application info document. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateAppGroup = channel.unary_unary( + '/tks_pb.AppInfoService/CreateAppGroup', + request_serializer=info__pb2.CreateAppGroupRequest.SerializeToString, + response_deserializer=common__pb2.IDResponse.FromString, + ) + self.GetAppGroupsByClusterID = channel.unary_unary( + '/tks_pb.AppInfoService/GetAppGroupsByClusterID', + request_serializer=common__pb2.IDRequest.SerializeToString, + response_deserializer=info__pb2.GetAppGroupsResponse.FromString, + ) + self.GetAppGroups = channel.unary_unary( + '/tks_pb.AppInfoService/GetAppGroups', + request_serializer=info__pb2.GetAppGroupsRequest.SerializeToString, + response_deserializer=info__pb2.GetAppGroupsResponse.FromString, + ) + self.GetAppGroup = channel.unary_unary( + '/tks_pb.AppInfoService/GetAppGroup', + request_serializer=info__pb2.GetAppGroupRequest.SerializeToString, + response_deserializer=info__pb2.GetAppGroupResponse.FromString, + ) + self.UpdateAppGroupStatus = channel.unary_unary( + '/tks_pb.AppInfoService/UpdateAppGroupStatus', + request_serializer=info__pb2.UpdateAppGroupStatusRequest.SerializeToString, + response_deserializer=common__pb2.SimpleResponse.FromString, + ) + self.DeleteAppGroup = channel.unary_unary( + '/tks_pb.AppInfoService/DeleteAppGroup', + request_serializer=info__pb2.DeleteAppGroupRequest.SerializeToString, + response_deserializer=common__pb2.SimpleResponse.FromString, + ) + self.GetAppsByAppGroupID = channel.unary_unary( + '/tks_pb.AppInfoService/GetAppsByAppGroupID', + request_serializer=common__pb2.IDRequest.SerializeToString, + response_deserializer=info__pb2.GetAppsResponse.FromString, + ) + self.GetApps = channel.unary_unary( + '/tks_pb.AppInfoService/GetApps', + request_serializer=info__pb2.GetAppsRequest.SerializeToString, + response_deserializer=info__pb2.GetAppsResponse.FromString, + ) + self.UpdateApp = channel.unary_unary( + '/tks_pb.AppInfoService/UpdateApp', + request_serializer=info__pb2.UpdateAppRequest.SerializeToString, + response_deserializer=common__pb2.SimpleResponse.FromString, + ) + + +class AppInfoServiceServicer(object): + """AppInfoService is a service to manage Application info document. + """ + + def CreateAppGroup(self, request, context): + """CreateAppGroup creates a new application group. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAppGroupsByClusterID(self, request, context): + """GetAppGroupsByClusterID gets an array of app infos By the clusterID + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAppGroups(self, request, context): + """GetAppGroups gets an array of app infos by name & type in the cluster + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAppGroup(self, request, context): + """GetAppGroup gets an application group by application group ID + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateAppGroupStatus(self, request, context): + """UpdateAppGroupStatus updates a status of an application group + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteAppGroup(self, request, context): + """DeleteAppGroup deletes an app group. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAppsByAppGroupID(self, request, context): + """GetAppsByClusterID gets applications by application group id. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetApps(self, request, context): + """GetApps gets applications by application type and application id. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateApp(self, request, context): + """UpdateApp updates application data. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_AppInfoServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateAppGroup': grpc.unary_unary_rpc_method_handler( + servicer.CreateAppGroup, + request_deserializer=info__pb2.CreateAppGroupRequest.FromString, + response_serializer=common__pb2.IDResponse.SerializeToString, + ), + 'GetAppGroupsByClusterID': grpc.unary_unary_rpc_method_handler( + servicer.GetAppGroupsByClusterID, + request_deserializer=common__pb2.IDRequest.FromString, + response_serializer=info__pb2.GetAppGroupsResponse.SerializeToString, + ), + 'GetAppGroups': grpc.unary_unary_rpc_method_handler( + servicer.GetAppGroups, + request_deserializer=info__pb2.GetAppGroupsRequest.FromString, + response_serializer=info__pb2.GetAppGroupsResponse.SerializeToString, + ), + 'GetAppGroup': grpc.unary_unary_rpc_method_handler( + servicer.GetAppGroup, + request_deserializer=info__pb2.GetAppGroupRequest.FromString, + response_serializer=info__pb2.GetAppGroupResponse.SerializeToString, + ), + 'UpdateAppGroupStatus': grpc.unary_unary_rpc_method_handler( + servicer.UpdateAppGroupStatus, + request_deserializer=info__pb2.UpdateAppGroupStatusRequest.FromString, + response_serializer=common__pb2.SimpleResponse.SerializeToString, + ), + 'DeleteAppGroup': grpc.unary_unary_rpc_method_handler( + servicer.DeleteAppGroup, + request_deserializer=info__pb2.DeleteAppGroupRequest.FromString, + response_serializer=common__pb2.SimpleResponse.SerializeToString, + ), + 'GetAppsByAppGroupID': grpc.unary_unary_rpc_method_handler( + servicer.GetAppsByAppGroupID, + request_deserializer=common__pb2.IDRequest.FromString, + response_serializer=info__pb2.GetAppsResponse.SerializeToString, + ), + 'GetApps': grpc.unary_unary_rpc_method_handler( + servicer.GetApps, + request_deserializer=info__pb2.GetAppsRequest.FromString, + response_serializer=info__pb2.GetAppsResponse.SerializeToString, + ), + 'UpdateApp': grpc.unary_unary_rpc_method_handler( + servicer.UpdateApp, + request_deserializer=info__pb2.UpdateAppRequest.FromString, + response_serializer=common__pb2.SimpleResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'tks_pb.AppInfoService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class AppInfoService(object): + """AppInfoService is a service to manage Application info document. + """ + + @staticmethod + def CreateAppGroup(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.AppInfoService/CreateAppGroup', + info__pb2.CreateAppGroupRequest.SerializeToString, + common__pb2.IDResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAppGroupsByClusterID(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.AppInfoService/GetAppGroupsByClusterID', + common__pb2.IDRequest.SerializeToString, + info__pb2.GetAppGroupsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAppGroups(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.AppInfoService/GetAppGroups', + info__pb2.GetAppGroupsRequest.SerializeToString, + info__pb2.GetAppGroupsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAppGroup(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.AppInfoService/GetAppGroup', + info__pb2.GetAppGroupRequest.SerializeToString, + info__pb2.GetAppGroupResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateAppGroupStatus(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.AppInfoService/UpdateAppGroupStatus', + info__pb2.UpdateAppGroupStatusRequest.SerializeToString, + common__pb2.SimpleResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteAppGroup(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.AppInfoService/DeleteAppGroup', + info__pb2.DeleteAppGroupRequest.SerializeToString, + common__pb2.SimpleResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAppsByAppGroupID(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.AppInfoService/GetAppsByAppGroupID', + common__pb2.IDRequest.SerializeToString, + info__pb2.GetAppsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetApps(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.AppInfoService/GetApps', + info__pb2.GetAppsRequest.SerializeToString, + info__pb2.GetAppsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateApp(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tks_pb.AppInfoService/UpdateApp', + info__pb2.UpdateAppRequest.SerializeToString, + common__pb2.SimpleResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) From d303ed3fb230a0a14490e1367c8977b83ddc551d Mon Sep 17 00:00:00 2001 From: Robert Choi Date: Mon, 13 Sep 2021 07:47:07 +0000 Subject: [PATCH 2/5] update path lost during rebase --- protos/cluster_lcm.proto | 2 +- protos/common.proto | 2 +- protos/contract.proto | 2 +- protos/info.proto | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/protos/cluster_lcm.proto b/protos/cluster_lcm.proto index 42d263c..f73442b 100644 --- a/protos/cluster_lcm.proto +++ b/protos/cluster_lcm.proto @@ -7,7 +7,7 @@ package tks_pb; import "common.proto"; -option go_package = "github.com/sktelecom/tks-proto/tks_pb"; +option go_package = "github.com/openinfradev/tks-proto/tks_pb"; // ClusterLcmService is a service to manage cluster's document. service ClusterLcmService { diff --git a/protos/common.proto b/protos/common.proto index 8ce9926..49ac868 100644 --- a/protos/common.proto +++ b/protos/common.proto @@ -7,7 +7,7 @@ package tks_pb; import "google/protobuf/timestamp.proto"; -option go_package = "github.com/sktelecom/tks-proto/tks_pb"; +option go_package = "github.com/openinfradev/tks-proto/tks_pb"; // Code is a response code for gRpc request. enum Code { diff --git a/protos/contract.proto b/protos/contract.proto index 17ad737..2d64a0a 100644 --- a/protos/contract.proto +++ b/protos/contract.proto @@ -8,7 +8,7 @@ package tks_pb; import "common.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "github.com/sktelecom/tks-proto/tks_pb"; +option go_package = "github.com/openinfradev/tks-proto/tks_pb"; // ContractService is a service to manage contract's document. service ContractService { diff --git a/protos/info.proto b/protos/info.proto index 3a8b9f5..11dee46 100644 --- a/protos/info.proto +++ b/protos/info.proto @@ -8,7 +8,7 @@ package tks_pb; import "common.proto"; import "google/protobuf/empty.proto"; -option go_package = "github.com/sktelecom/tks-proto/tks_pb"; +option go_package = "github.com/openinfradev/tks-proto/tks_pb"; // ClusterInfoService is a service to manage cluster info document. service ClusterInfoService { From be12f85d7f9e50e1694cc04d1ff15bd4cce9fd06 Mon Sep 17 00:00:00 2001 From: Robert Choi Date: Mon, 13 Sep 2021 10:28:44 +0000 Subject: [PATCH 3/5] add target for python output to Makefile and regenerate all outputs --- Makefile | 14 +++++++++++--- tks_pb/cluster_lcm.pb.go | 13 +++++++------ tks_pb/common.pb.go | 12 ++++++------ tks_pb/contract.pb.go | 12 ++++++------ tks_pb/info.pb.go | 12 ++++++------ tks_pb_python/cluster_lcm_pb2.py | 4 ++-- tks_pb_python/common_pb2.py | 4 ++-- tks_pb_python/contract_pb2.py | 4 ++-- tks_pb_python/info_pb2.py | 4 ++-- 9 files changed, 44 insertions(+), 35 deletions(-) diff --git a/Makefile b/Makefile index 3af9e2a..6fa12bb 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,11 @@ .PHONY: compile PROTOC_GEN_GO := $(GOPATH)/bin/protoc-gen-go PROTOC := $(shell which protoc) + +# Make it always try to install the packages, +# since pip checks if the package is installed +PY_GRPC_TOOLS := must-install + # If protoc isn't on the path, set it to a target that's never up to date, so # the install command always runs. ifeq ($(PROTOC),) @@ -26,10 +31,13 @@ endif $(PROTOC_GEN_GO): go get -u github.com/golang/protobuf/protoc-gen-go -generate: protos | $(PROTOC_GEN_GO) $(PROTOC) +$(PY_GRPC_TOOLS): + pip3 install grpcio grpcio-tools + +generate: protos | $(PROTOC_GEN_GO) $(PROTOC) $(PY_GRPC_TOOLS) protoc --proto_path=protos --go_out=tks_pb --go_opt=paths=source_relative \ - --go-grpc_out=tks_pb --go-grpc_opt=paths=source_relative \ - protos/*.proto + --go-grpc_out=tks_pb --go-grpc_opt=paths=source_relative protos/*.proto + python3 -m grpc_tools.protoc -I./protos --python_out=./tks_pb_python --grpc_python_out=./tks_pb_python protos/*.proto # This is a "phony" target - an alias for the above command, so "make build" # still works. diff --git a/tks_pb/cluster_lcm.pb.go b/tks_pb/cluster_lcm.pb.go index b6d4f80..aaea959 100644 --- a/tks_pb/cluster_lcm.pb.go +++ b/tks_pb/cluster_lcm.pb.go @@ -3,8 +3,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v3.17.3 +// protoc-gen-go v1.25.0-devel +// protoc v3.14.0 // source: cluster_lcm.proto package tks_pb @@ -326,10 +326,11 @@ var file_cluster_lcm_proto_rawDesc = []byte{ 0x73, 0x12, 0x21, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x41, 0x70, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x53, 0x69, - 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x27, - 0x5a, 0x25, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6b, 0x74, - 0x65, 0x6c, 0x65, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x6b, 0x73, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2f, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2a, + 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, + 0x6e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x64, 0x65, 0x76, 0x2f, 0x74, 0x6b, 0x73, 0x2d, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( diff --git a/tks_pb/common.pb.go b/tks_pb/common.pb.go index f308f80..7b9485e 100644 --- a/tks_pb/common.pb.go +++ b/tks_pb/common.pb.go @@ -4,8 +4,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v3.17.3 +// protoc-gen-go v1.25.0-devel +// protoc v3.14.0 // source: common.proto package tks_pb @@ -1257,10 +1257,10 @@ var file_common_proto_rawDesc = []byte{ 0x50, 0x50, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4c, 0x4d, 0x41, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x4d, 0x45, 0x53, 0x48, 0x10, 0x02, - 0x42, 0x27, 0x5a, 0x25, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, - 0x6b, 0x74, 0x65, 0x6c, 0x65, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x6b, 0x73, 0x2d, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2f, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, + 0x70, 0x65, 0x6e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x64, 0x65, 0x76, 0x2f, 0x74, 0x6b, 0x73, 0x2d, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/tks_pb/contract.pb.go b/tks_pb/contract.pb.go index 5712382..ef8234d 100644 --- a/tks_pb/contract.pb.go +++ b/tks_pb/contract.pb.go @@ -3,8 +3,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v3.17.3 +// protoc-gen-go v1.25.0-devel +// protoc v3.14.0 // source: contract.proto package tks_pb @@ -1323,10 +1323,10 @@ var file_contract_proto_rawDesc = []byte{ 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x42, 0x27, 0x5a, 0x25, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x73, 0x6b, 0x74, 0x65, 0x6c, 0x65, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x6b, 0x73, 0x2d, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x22, 0x00, 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x64, 0x65, 0x76, 0x2f, 0x74, + 0x6b, 0x73, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/tks_pb/info.pb.go b/tks_pb/info.pb.go index c433cc8..a1d4dbc 100644 --- a/tks_pb/info.pb.go +++ b/tks_pb/info.pb.go @@ -3,8 +3,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v3.17.3 +// protoc-gen-go v1.25.0-devel +// protoc v3.14.0 // source: info.proto package tks_pb @@ -1488,10 +1488,10 @@ var file_info_proto_rawDesc = []byte{ 0x18, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x70, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x42, 0x27, 0x5a, 0x25, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x73, 0x6b, 0x74, 0x65, 0x6c, 0x65, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x6b, 0x73, 0x2d, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x22, 0x00, 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x64, 0x65, 0x76, 0x2f, 0x74, + 0x6b, 0x73, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x6b, 0x73, 0x5f, 0x70, 0x62, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/tks_pb_python/cluster_lcm_pb2.py b/tks_pb_python/cluster_lcm_pb2.py index 2ecd804..a26acc6 100644 --- a/tks_pb_python/cluster_lcm_pb2.py +++ b/tks_pb_python/cluster_lcm_pb2.py @@ -18,9 +18,9 @@ name='cluster_lcm.proto', package='tks_pb', syntax='proto3', - serialized_options=b'Z%github.com/sktelecom/tks-proto/tks_pb', + serialized_options=b'Z(github.com/openinfradev/tks-proto/tks_pb', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x11\x63luster_lcm.proto\x12\x06tks_pb\x1a\x0c\x63ommon.proto\"l\n\x14\x43reateClusterRequest\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\x12\x0e\n\x06\x63sp_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12!\n\x04\x63onf\x18\x04 \x01(\x0b\x32\x13.tks_pb.ClusterConf\"[\n\x13ScaleClusterRequest\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12\x17\n\x0fmaster_replicas\x18\x02 \x01(\x05\x12\x17\n\x0fworker_replicas\x18\x03 \x01(\x05\"?\n\x17InstallAppGroupsRequest\x12$\n\napp_groups\x18\x01 \x03(\x0b\x32\x10.tks_pb.AppGroup\"F\n\x19UninstallAppGroupsRequest\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12\x15\n\rapp_group_ids\x18\x02 \x03(\t2\xbf\x02\n\x11\x43lusterLcmService\x12\x44\n\rCreateCluster\x12\x1c.tks_pb.CreateClusterRequest\x1a\x13.tks_pb.IDsResponse\"\x00\x12\x45\n\x0cScaleCluster\x12\x1b.tks_pb.ScaleClusterRequest\x1a\x16.tks_pb.SimpleResponse\"\x00\x12J\n\x10InstallAppGroups\x12\x1f.tks_pb.InstallAppGroupsRequest\x1a\x13.tks_pb.IDsResponse\"\x00\x12Q\n\x12UninstallAppGroups\x12!.tks_pb.UninstallAppGroupsRequest\x1a\x16.tks_pb.SimpleResponse\"\x00\x42\'Z%github.com/sktelecom/tks-proto/tks_pbb\x06proto3' + serialized_pb=b'\n\x11\x63luster_lcm.proto\x12\x06tks_pb\x1a\x0c\x63ommon.proto\"l\n\x14\x43reateClusterRequest\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\x12\x0e\n\x06\x63sp_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12!\n\x04\x63onf\x18\x04 \x01(\x0b\x32\x13.tks_pb.ClusterConf\"[\n\x13ScaleClusterRequest\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12\x17\n\x0fmaster_replicas\x18\x02 \x01(\x05\x12\x17\n\x0fworker_replicas\x18\x03 \x01(\x05\"?\n\x17InstallAppGroupsRequest\x12$\n\napp_groups\x18\x01 \x03(\x0b\x32\x10.tks_pb.AppGroup\"F\n\x19UninstallAppGroupsRequest\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12\x15\n\rapp_group_ids\x18\x02 \x03(\t2\xbf\x02\n\x11\x43lusterLcmService\x12\x44\n\rCreateCluster\x12\x1c.tks_pb.CreateClusterRequest\x1a\x13.tks_pb.IDsResponse\"\x00\x12\x45\n\x0cScaleCluster\x12\x1b.tks_pb.ScaleClusterRequest\x1a\x16.tks_pb.SimpleResponse\"\x00\x12J\n\x10InstallAppGroups\x12\x1f.tks_pb.InstallAppGroupsRequest\x1a\x13.tks_pb.IDsResponse\"\x00\x12Q\n\x12UninstallAppGroups\x12!.tks_pb.UninstallAppGroupsRequest\x1a\x16.tks_pb.SimpleResponse\"\x00\x42*Z(github.com/openinfradev/tks-proto/tks_pbb\x06proto3' , dependencies=[common__pb2.DESCRIPTOR,]) diff --git a/tks_pb_python/common_pb2.py b/tks_pb_python/common_pb2.py index 51bdd04..7576964 100644 --- a/tks_pb_python/common_pb2.py +++ b/tks_pb_python/common_pb2.py @@ -19,9 +19,9 @@ name='common.proto', package='tks_pb', syntax='proto3', - serialized_options=b'Z%github.com/sktelecom/tks-proto/tks_pb', + serialized_options=b'Z(github.com/openinfradev/tks-proto/tks_pb', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x0c\x63ommon.proto\x12\x06tks_pb\x1a\x1fgoogle/protobuf/timestamp.proto\"\x14\n\x05\x45rror\x12\x0b\n\x03msg\x18\x01 \x01(\t\"\x90\x02\n\x08\x41ppGroup\x12\x14\n\x0c\x61pp_group_id\x18\x01 \x01(\t\x12\x16\n\x0e\x61pp_group_name\x18\x02 \x01(\t\x12\"\n\x04type\x18\x03 \x01(\x0e\x32\x14.tks_pb.AppGroupType\x12\x12\n\ncluster_id\x18\x04 \x01(\t\x12&\n\x06status\x18\x05 \x01(\x0e\x32\x16.tks_pb.AppGroupStatus\x12\x16\n\x0e\x65xternal_label\x18\x06 \x01(\t\x12.\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xd6\x01\n\x0b\x41pplication\x12\x0e\n\x06\x61pp_id\x18\x01 \x01(\t\x12\x1d\n\x04type\x18\x02 \x01(\x0e\x32\x0f.tks_pb.AppType\x12\x14\n\x0c\x61pp_group_id\x18\x03 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x04 \x01(\t\x12\x10\n\x08metadata\x18\x05 \x01(\t\x12.\n\ncreated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xac\x02\n\x07\x43luster\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12.\n\ncreated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12%\n\x06status\x18\x05 \x01(\x0e\x32\x15.tks_pb.ClusterStatus\x12\x13\n\x0b\x63ontract_id\x18\x06 \x01(\t\x12\x0e\n\x06\x63sp_id\x18\x07 \x01(\t\x12!\n\x04\x63onf\x18\x08 \x01(\x0b\x32\x13.tks_pb.ClusterConf\x12$\n\napp_groups\x18\t \x03(\x0b\x32\x10.tks_pb.AppGroup\x12\x12\n\nkubeconfig\x18\n \x01(\t\"\xb6\x01\n\x0b\x43lusterConf\x12\x15\n\rmaster_flavor\x18\x01 \x01(\t\x12\x17\n\x0fmaster_replicas\x18\x02 \x01(\x05\x12\x18\n\x10master_root_size\x18\x03 \x01(\x03\x12\x15\n\rworker_flavor\x18\x04 \x01(\t\x12\x17\n\x0fworker_replicas\x18\x05 \x01(\x05\x12\x18\n\x10worker_root_size\x18\x06 \x01(\x03\x12\x13\n\x0bk8s_version\x18\x07 \x01(\t\"\x17\n\tIDRequest\x12\n\n\x02id\x18\x01 \x01(\t\"J\n\x0eSimpleResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\"T\n\x0bIDsResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12\x0b\n\x03ids\x18\x03 \x03(\t\"R\n\nIDResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12\n\n\x02id\x18\x03 \x01(\t*\xb4\x02\n\x04\x43ode\x12\x12\n\x0eOK_UNSPECIFIED\x10\x00\x12\r\n\tCANCELLED\x10\x01\x12\x0b\n\x07UNKNOWN\x10\x02\x12\x14\n\x10INVALID_ARGUMENT\x10\x03\x12\x15\n\x11\x44\x45\x41\x44LINE_EXCEEDED\x10\x04\x12\r\n\tNOT_FOUND\x10\x05\x12\x12\n\x0e\x41LREADY_EXISTS\x10\x06\x12\x15\n\x11PERMISSION_DENIED\x10\x07\x12\x13\n\x0fUNAUTHENTICATED\x10\x10\x12\x16\n\x12RESOURCE_EXHAUSTED\x10\x08\x12\x17\n\x13\x46\x41ILED_PRECONDITION\x10\t\x12\x0b\n\x07\x41\x42ORTED\x10\n\x12\x10\n\x0cOUT_OF_RANGE\x10\x0b\x12\x11\n\rUNIMPLEMENTED\x10\x0c\x12\x0c\n\x08INTERNAL\x10\r\x12\x0f\n\x0bUNAVAILABLE\x10\x0e*\xa0\x01\n\x0e\x41ppGroupStatus\x12\x19\n\x15\x41PP_GROUP_UNSPECIFIED\x10\x00\x12\x18\n\x14\x41PP_GROUP_INSTALLING\x10\x01\x12\x15\n\x11\x41PP_GROUP_RUNNING\x10\x02\x12\x16\n\x12\x41PP_GROUP_DELETING\x10\x04\x12\x15\n\x11\x41PP_GROUP_DELETED\x10\x05\x12\x13\n\x0f\x41PP_GROUP_ERROR\x10\x06*c\n\rClusterStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0e\n\nINSTALLING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0b\n\x07\x44\x45LETED\x10\x05\x12\t\n\x05\x45RROR\x10\x06*\xb5\x01\n\x07\x41ppType\x12\x12\n\x0e\x45P_UNSPECIFIED\x10\x00\x12\n\n\x06THANOS\x10\x01\x12\x0e\n\nPROMETHEUS\x10\x02\x12\x0b\n\x07GRAFANA\x10\x03\x12\t\n\x05KIALI\x10\x04\x12\n\n\x06KIBANA\x10\x05\x12\x10\n\x0c\x45LASTICSERCH\x10\x06\x12\x11\n\rCLOUD_CONSOLE\x10\x07\x12\x0b\n\x07HORIZON\x10\x08\x12\n\n\x06JAEGER\x10\t\x12\x18\n\x14KUBERNETES_DASHBOARD\x10\n*C\n\x0c\x41ppGroupType\x12\x18\n\x14\x41PP_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03LMA\x10\x01\x12\x10\n\x0cSERVICE_MESH\x10\x02\x42\'Z%github.com/sktelecom/tks-proto/tks_pbb\x06proto3' + serialized_pb=b'\n\x0c\x63ommon.proto\x12\x06tks_pb\x1a\x1fgoogle/protobuf/timestamp.proto\"\x14\n\x05\x45rror\x12\x0b\n\x03msg\x18\x01 \x01(\t\"\x90\x02\n\x08\x41ppGroup\x12\x14\n\x0c\x61pp_group_id\x18\x01 \x01(\t\x12\x16\n\x0e\x61pp_group_name\x18\x02 \x01(\t\x12\"\n\x04type\x18\x03 \x01(\x0e\x32\x14.tks_pb.AppGroupType\x12\x12\n\ncluster_id\x18\x04 \x01(\t\x12&\n\x06status\x18\x05 \x01(\x0e\x32\x16.tks_pb.AppGroupStatus\x12\x16\n\x0e\x65xternal_label\x18\x06 \x01(\t\x12.\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xd6\x01\n\x0b\x41pplication\x12\x0e\n\x06\x61pp_id\x18\x01 \x01(\t\x12\x1d\n\x04type\x18\x02 \x01(\x0e\x32\x0f.tks_pb.AppType\x12\x14\n\x0c\x61pp_group_id\x18\x03 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x04 \x01(\t\x12\x10\n\x08metadata\x18\x05 \x01(\t\x12.\n\ncreated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xac\x02\n\x07\x43luster\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12.\n\ncreated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12%\n\x06status\x18\x05 \x01(\x0e\x32\x15.tks_pb.ClusterStatus\x12\x13\n\x0b\x63ontract_id\x18\x06 \x01(\t\x12\x0e\n\x06\x63sp_id\x18\x07 \x01(\t\x12!\n\x04\x63onf\x18\x08 \x01(\x0b\x32\x13.tks_pb.ClusterConf\x12$\n\napp_groups\x18\t \x03(\x0b\x32\x10.tks_pb.AppGroup\x12\x12\n\nkubeconfig\x18\n \x01(\t\"\xb6\x01\n\x0b\x43lusterConf\x12\x15\n\rmaster_flavor\x18\x01 \x01(\t\x12\x17\n\x0fmaster_replicas\x18\x02 \x01(\x05\x12\x18\n\x10master_root_size\x18\x03 \x01(\x03\x12\x15\n\rworker_flavor\x18\x04 \x01(\t\x12\x17\n\x0fworker_replicas\x18\x05 \x01(\x05\x12\x18\n\x10worker_root_size\x18\x06 \x01(\x03\x12\x13\n\x0bk8s_version\x18\x07 \x01(\t\"\x17\n\tIDRequest\x12\n\n\x02id\x18\x01 \x01(\t\"J\n\x0eSimpleResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\"T\n\x0bIDsResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12\x0b\n\x03ids\x18\x03 \x03(\t\"R\n\nIDResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12\n\n\x02id\x18\x03 \x01(\t*\xb4\x02\n\x04\x43ode\x12\x12\n\x0eOK_UNSPECIFIED\x10\x00\x12\r\n\tCANCELLED\x10\x01\x12\x0b\n\x07UNKNOWN\x10\x02\x12\x14\n\x10INVALID_ARGUMENT\x10\x03\x12\x15\n\x11\x44\x45\x41\x44LINE_EXCEEDED\x10\x04\x12\r\n\tNOT_FOUND\x10\x05\x12\x12\n\x0e\x41LREADY_EXISTS\x10\x06\x12\x15\n\x11PERMISSION_DENIED\x10\x07\x12\x13\n\x0fUNAUTHENTICATED\x10\x10\x12\x16\n\x12RESOURCE_EXHAUSTED\x10\x08\x12\x17\n\x13\x46\x41ILED_PRECONDITION\x10\t\x12\x0b\n\x07\x41\x42ORTED\x10\n\x12\x10\n\x0cOUT_OF_RANGE\x10\x0b\x12\x11\n\rUNIMPLEMENTED\x10\x0c\x12\x0c\n\x08INTERNAL\x10\r\x12\x0f\n\x0bUNAVAILABLE\x10\x0e*\xa0\x01\n\x0e\x41ppGroupStatus\x12\x19\n\x15\x41PP_GROUP_UNSPECIFIED\x10\x00\x12\x18\n\x14\x41PP_GROUP_INSTALLING\x10\x01\x12\x15\n\x11\x41PP_GROUP_RUNNING\x10\x02\x12\x16\n\x12\x41PP_GROUP_DELETING\x10\x04\x12\x15\n\x11\x41PP_GROUP_DELETED\x10\x05\x12\x13\n\x0f\x41PP_GROUP_ERROR\x10\x06*c\n\rClusterStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0e\n\nINSTALLING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0b\n\x07\x44\x45LETED\x10\x05\x12\t\n\x05\x45RROR\x10\x06*\xb5\x01\n\x07\x41ppType\x12\x12\n\x0e\x45P_UNSPECIFIED\x10\x00\x12\n\n\x06THANOS\x10\x01\x12\x0e\n\nPROMETHEUS\x10\x02\x12\x0b\n\x07GRAFANA\x10\x03\x12\t\n\x05KIALI\x10\x04\x12\n\n\x06KIBANA\x10\x05\x12\x10\n\x0c\x45LASTICSERCH\x10\x06\x12\x11\n\rCLOUD_CONSOLE\x10\x07\x12\x0b\n\x07HORIZON\x10\x08\x12\n\n\x06JAEGER\x10\t\x12\x18\n\x14KUBERNETES_DASHBOARD\x10\n*C\n\x0c\x41ppGroupType\x12\x18\n\x14\x41PP_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03LMA\x10\x01\x12\x10\n\x0cSERVICE_MESH\x10\x02\x42*Z(github.com/openinfradev/tks-proto/tks_pbb\x06proto3' , dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) diff --git a/tks_pb_python/contract_pb2.py b/tks_pb_python/contract_pb2.py index 8f554f2..afe80c9 100644 --- a/tks_pb_python/contract_pb2.py +++ b/tks_pb_python/contract_pb2.py @@ -19,9 +19,9 @@ name='contract.proto', package='tks_pb', syntax='proto3', - serialized_options=b'Z%github.com/sktelecom/tks-proto/tks_pb', + serialized_options=b'Z(github.com/openinfradev/tks-proto/tks_pb', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x0e\x63ontract.proto\x12\x06tks_pb\x1a\x0c\x63ommon.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x96\x01\n\x15\x43reateContractRequest\x12\x17\n\x0f\x63ontractor_name\x18\x01 \x01(\t\x12$\n\x05quota\x18\x02 \x01(\x0b\x32\x15.tks_pb.ContractQuota\x12\x1a\n\x12\x61vailable_services\x18\x03 \x03(\t\x12\x10\n\x08\x63sp_name\x18\x04 \x01(\t\x12\x10\n\x08\x63sp_auth\x18\x05 \x01(\t\"w\n\x16\x43reateContractResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12\x0e\n\x06\x63sp_id\x18\x03 \x01(\t\x12\x13\n\x0b\x63ontract_id\x18\x04 \x01(\t\"j\n\rContractQuota\x12\x0b\n\x03\x63pu\x18\x01 \x01(\x12\x12\x0e\n\x06memory\x18\x02 \x01(\x12\x12\r\n\x05\x62lock\x18\x03 \x01(\x12\x12\x11\n\tblock_ssd\x18\x04 \x01(\x12\x12\n\n\x02\x66s\x18\x05 \x01(\x12\x12\x0e\n\x06\x66s_ssd\x18\x06 \x01(\x12\"O\n\x12UpdateQuotaRequest\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\x12$\n\x05quota\x18\x02 \x01(\x0b\x32\x15.tks_pb.ContractQuota\"\xbd\x01\n\x13UpdateQuotaResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12\x13\n\x0b\x63ontract_id\x18\x03 \x01(\t\x12)\n\nprev_quota\x18\x04 \x01(\x0b\x32\x15.tks_pb.ContractQuota\x12,\n\rcurrent_quota\x18\x05 \x01(\x0b\x32\x15.tks_pb.ContractQuota\"H\n\x15UpdateServicesRequest\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\x12\x1a\n\x12\x61vailable_services\x18\x02 \x03(\t\"\x98\x01\n\x16UpdateServicesResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12\x13\n\x0b\x63ontract_id\x18\x03 \x01(\t\x12\x15\n\rprev_services\x18\x04 \x03(\t\x12\x18\n\x10\x63urrent_services\x18\x05 \x03(\t\")\n\x12GetContractRequest\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\"s\n\x13GetContractResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12\"\n\x08\x63ontract\x18\x03 \x01(\x0b\x32\x10.tks_pb.Contract\"\xea\x01\n\x08\x43ontract\x12\x17\n\x0f\x63ontractor_name\x18\x01 \x01(\t\x12\x13\n\x0b\x63ontract_id\x18\x02 \x01(\t\x12$\n\x05quota\x18\x03 \x01(\x0b\x32\x15.tks_pb.ContractQuota\x12\x1a\n\x12\x61vailable_services\x18\x04 \x03(\t\x12\x0e\n\x06\x63sp_id\x18\x05 \x01(\t\x12.\n\nupdated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x15\n\x13GetContractsRequest\"u\n\x14GetContractsResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12#\n\tcontracts\x18\x03 \x03(\x0b\x32\x10.tks_pb.Contract\"&\n\x0fGetQuotaRequest\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\"r\n\x10GetQuotaResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12$\n\x05quota\x18\x03 \x01(\x0b\x32\x15.tks_pb.ContractQuota\"2\n\x1bGetAvailableServicesRequest\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\"w\n\x1cGetAvailableServicesResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12\x1d\n\x15\x61vaiable_service_apps\x18\x03 \x03(\t2\xbe\x04\n\x0f\x43ontractService\x12Q\n\x0e\x43reateContract\x12\x1d.tks_pb.CreateContractRequest\x1a\x1e.tks_pb.CreateContractResponse\"\x00\x12H\n\x0bUpdateQuota\x12\x1a.tks_pb.UpdateQuotaRequest\x1a\x1b.tks_pb.UpdateQuotaResponse\"\x00\x12Q\n\x0eUpdateServices\x12\x1d.tks_pb.UpdateServicesRequest\x1a\x1e.tks_pb.UpdateServicesResponse\"\x00\x12H\n\x0bGetContract\x12\x1a.tks_pb.GetContractRequest\x1a\x1b.tks_pb.GetContractResponse\"\x00\x12K\n\x0cGetContracts\x12\x1b.tks_pb.GetContractsRequest\x1a\x1c.tks_pb.GetContractsResponse\"\x00\x12?\n\x08GetQuota\x12\x17.tks_pb.GetQuotaRequest\x1a\x18.tks_pb.GetQuotaResponse\"\x00\x12\x63\n\x14GetAvailableServices\x12#.tks_pb.GetAvailableServicesRequest\x1a$.tks_pb.GetAvailableServicesResponse\"\x00\x42\'Z%github.com/sktelecom/tks-proto/tks_pbb\x06proto3' + serialized_pb=b'\n\x0e\x63ontract.proto\x12\x06tks_pb\x1a\x0c\x63ommon.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x96\x01\n\x15\x43reateContractRequest\x12\x17\n\x0f\x63ontractor_name\x18\x01 \x01(\t\x12$\n\x05quota\x18\x02 \x01(\x0b\x32\x15.tks_pb.ContractQuota\x12\x1a\n\x12\x61vailable_services\x18\x03 \x03(\t\x12\x10\n\x08\x63sp_name\x18\x04 \x01(\t\x12\x10\n\x08\x63sp_auth\x18\x05 \x01(\t\"w\n\x16\x43reateContractResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12\x0e\n\x06\x63sp_id\x18\x03 \x01(\t\x12\x13\n\x0b\x63ontract_id\x18\x04 \x01(\t\"j\n\rContractQuota\x12\x0b\n\x03\x63pu\x18\x01 \x01(\x12\x12\x0e\n\x06memory\x18\x02 \x01(\x12\x12\r\n\x05\x62lock\x18\x03 \x01(\x12\x12\x11\n\tblock_ssd\x18\x04 \x01(\x12\x12\n\n\x02\x66s\x18\x05 \x01(\x12\x12\x0e\n\x06\x66s_ssd\x18\x06 \x01(\x12\"O\n\x12UpdateQuotaRequest\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\x12$\n\x05quota\x18\x02 \x01(\x0b\x32\x15.tks_pb.ContractQuota\"\xbd\x01\n\x13UpdateQuotaResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12\x13\n\x0b\x63ontract_id\x18\x03 \x01(\t\x12)\n\nprev_quota\x18\x04 \x01(\x0b\x32\x15.tks_pb.ContractQuota\x12,\n\rcurrent_quota\x18\x05 \x01(\x0b\x32\x15.tks_pb.ContractQuota\"H\n\x15UpdateServicesRequest\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\x12\x1a\n\x12\x61vailable_services\x18\x02 \x03(\t\"\x98\x01\n\x16UpdateServicesResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12\x13\n\x0b\x63ontract_id\x18\x03 \x01(\t\x12\x15\n\rprev_services\x18\x04 \x03(\t\x12\x18\n\x10\x63urrent_services\x18\x05 \x03(\t\")\n\x12GetContractRequest\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\"s\n\x13GetContractResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12\"\n\x08\x63ontract\x18\x03 \x01(\x0b\x32\x10.tks_pb.Contract\"\xea\x01\n\x08\x43ontract\x12\x17\n\x0f\x63ontractor_name\x18\x01 \x01(\t\x12\x13\n\x0b\x63ontract_id\x18\x02 \x01(\t\x12$\n\x05quota\x18\x03 \x01(\x0b\x32\x15.tks_pb.ContractQuota\x12\x1a\n\x12\x61vailable_services\x18\x04 \x03(\t\x12\x0e\n\x06\x63sp_id\x18\x05 \x01(\t\x12.\n\nupdated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x15\n\x13GetContractsRequest\"u\n\x14GetContractsResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12#\n\tcontracts\x18\x03 \x03(\x0b\x32\x10.tks_pb.Contract\"&\n\x0fGetQuotaRequest\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\"r\n\x10GetQuotaResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12$\n\x05quota\x18\x03 \x01(\x0b\x32\x15.tks_pb.ContractQuota\"2\n\x1bGetAvailableServicesRequest\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\"w\n\x1cGetAvailableServicesResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12\x1d\n\x15\x61vaiable_service_apps\x18\x03 \x03(\t2\xbe\x04\n\x0f\x43ontractService\x12Q\n\x0e\x43reateContract\x12\x1d.tks_pb.CreateContractRequest\x1a\x1e.tks_pb.CreateContractResponse\"\x00\x12H\n\x0bUpdateQuota\x12\x1a.tks_pb.UpdateQuotaRequest\x1a\x1b.tks_pb.UpdateQuotaResponse\"\x00\x12Q\n\x0eUpdateServices\x12\x1d.tks_pb.UpdateServicesRequest\x1a\x1e.tks_pb.UpdateServicesResponse\"\x00\x12H\n\x0bGetContract\x12\x1a.tks_pb.GetContractRequest\x1a\x1b.tks_pb.GetContractResponse\"\x00\x12K\n\x0cGetContracts\x12\x1b.tks_pb.GetContractsRequest\x1a\x1c.tks_pb.GetContractsResponse\"\x00\x12?\n\x08GetQuota\x12\x17.tks_pb.GetQuotaRequest\x1a\x18.tks_pb.GetQuotaResponse\"\x00\x12\x63\n\x14GetAvailableServices\x12#.tks_pb.GetAvailableServicesRequest\x1a$.tks_pb.GetAvailableServicesResponse\"\x00\x42*Z(github.com/openinfradev/tks-proto/tks_pbb\x06proto3' , dependencies=[common__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) diff --git a/tks_pb_python/info_pb2.py b/tks_pb_python/info_pb2.py index 3ddf511..0ad4be1 100644 --- a/tks_pb_python/info_pb2.py +++ b/tks_pb_python/info_pb2.py @@ -19,9 +19,9 @@ name='info.proto', package='tks_pb', syntax='proto3', - serialized_options=b'Z%github.com/sktelecom/tks-proto/tks_pb', + serialized_options=b'Z(github.com/openinfradev/tks-proto/tks_pb', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\ninfo.proto\x12\x06tks_pb\x1a\x0c\x63ommon.proto\x1a\x1bgoogle/protobuf/empty.proto\"K\n\x14\x43reateCSPInfoRequest\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\x12\x10\n\x08\x63sp_name\x18\x02 \x01(\t\x12\x0c\n\x04\x61uth\x18\x03 \x01(\t\"\\\n\x12GetCSPAuthResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12\x0c\n\x04\x61uth\x18\x03 \x01(\t\"4\n\x14UpdateCSPAuthRequest\x12\x0e\n\x06\x63sp_id\x18\x01 \x01(\t\x12\x0c\n\x04\x61uth\x18\x02 \x01(\t\"m\n\x15\x41\x64\x64\x43lusterInfoRequest\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\x12\x0e\n\x06\x63sp_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12!\n\x04\x63onf\x18\x04 \x01(\x0b\x32\x13.tks_pb.ClusterConf\"Q\n\x18UpdateClusterConfRequest\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12!\n\x04\x63onf\x18\x02 \x01(\x0b\x32\x13.tks_pb.ClusterConf\"\'\n\x11GetClusterRequest\x12\x12\n\ncluster_id\x18\x01 \x01(\t\"p\n\x12GetClusterResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12 \n\x07\x63luster\x18\x03 \x01(\x0b\x32\x0f.tks_pb.Cluster\"9\n\x12GetClustersRequest\x12\x0e\n\x06\x63sp_id\x18\x01 \x01(\t\x12\x13\n\x0b\x63ontract_id\x18\x02 \x01(\t\"r\n\x13GetClustersResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12!\n\x08\x63lusters\x18\x03 \x03(\x0b\x32\x0f.tks_pb.Cluster\"W\n\x1aUpdateClusterStatusRequest\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12%\n\x06status\x18\x02 \x01(\x0e\x32\x15.tks_pb.ClusterStatus\"P\n\x15\x43reateAppGroupRequest\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12#\n\tapp_group\x18\x02 \x01(\x0b\x32\x10.tks_pb.AppGroup\"-\n\x15\x44\x65leteAppGroupRequest\x12\x14\n\x0c\x61pp_group_id\x18\x01 \x01(\t\"Q\n\x13GetAppGroupsRequest\x12\x16\n\x0e\x61pp_group_name\x18\x01 \x01(\t\x12\"\n\x04type\x18\x02 \x01(\x0e\x32\x14.tks_pb.AppGroupType\"*\n\x12GetAppGroupRequest\x12\x14\n\x0c\x61pp_group_id\x18\x01 \x01(\t\"t\n\x13GetAppGroupResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12#\n\tapp_group\x18\x03 \x01(\x0b\x32\x10.tks_pb.AppGroup\"v\n\x14GetAppGroupsResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12$\n\napp_groups\x18\x03 \x03(\x0b\x32\x10.tks_pb.AppGroup\"[\n\x1bUpdateAppGroupStatusRequest\x12\x14\n\x0c\x61pp_group_id\x18\x01 \x01(\t\x12&\n\x06status\x18\x02 \x01(\x0e\x32\x16.tks_pb.AppGroupStatus\"o\n\x10UpdateAppRequest\x12\x14\n\x0c\x61pp_group_id\x18\x01 \x01(\t\x12!\n\x08\x61pp_type\x18\x02 \x01(\x0e\x32\x0f.tks_pb.AppType\x12\x10\n\x08\x65ndpoint\x18\x03 \x01(\t\x12\x10\n\x08metadata\x18\x04 \x01(\t\"E\n\x0eGetAppsRequest\x12\x14\n\x0c\x61pp_group_id\x18\x01 \x01(\t\x12\x1d\n\x04type\x18\x02 \x01(\x0e\x32\x0f.tks_pb.AppType\"n\n\x0fGetAppsResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12!\n\x04\x61pps\x18\x03 \x03(\x0b\x32\x13.tks_pb.Application2\x92\x03\n\x12\x43lusterInfoService\x12\x45\n\x0e\x41\x64\x64\x43lusterInfo\x12\x1d.tks_pb.AddClusterInfoRequest\x1a\x12.tks_pb.IDResponse\"\x00\x12O\n\x11UpdateClusterConf\x12 .tks_pb.UpdateClusterConfRequest\x1a\x16.tks_pb.SimpleResponse\"\x00\x12\x45\n\nGetCluster\x12\x19.tks_pb.GetClusterRequest\x1a\x1a.tks_pb.GetClusterResponse\"\x00\x12H\n\x0bGetClusters\x12\x1a.tks_pb.GetClustersRequest\x1a\x1b.tks_pb.GetClustersResponse\"\x00\x12S\n\x13UpdateClusterStatus\x12\".tks_pb.UpdateClusterStatusRequest\x1a\x16.tks_pb.SimpleResponse\"\x00\x32\xdc\x02\n\x0e\x43spInfoService\x12\x43\n\rCreateCSPInfo\x12\x1c.tks_pb.CreateCSPInfoRequest\x1a\x12.tks_pb.IDResponse\"\x00\x12:\n\tGetCSPIDs\x12\x16.google.protobuf.Empty\x1a\x13.tks_pb.IDsResponse\"\x00\x12\x41\n\x15GetCSPIDsByContractID\x12\x11.tks_pb.IDRequest\x1a\x13.tks_pb.IDsResponse\"\x00\x12G\n\rUpdateCSPAuth\x12\x1c.tks_pb.UpdateCSPAuthRequest\x1a\x16.tks_pb.SimpleResponse\"\x00\x12=\n\nGetCSPAuth\x12\x11.tks_pb.IDRequest\x1a\x1a.tks_pb.GetCSPAuthResponse\"\x00\x32\xa2\x05\n\x0e\x41ppInfoService\x12\x45\n\x0e\x43reateAppGroup\x12\x1d.tks_pb.CreateAppGroupRequest\x1a\x12.tks_pb.IDResponse\"\x00\x12L\n\x17GetAppGroupsByClusterID\x12\x11.tks_pb.IDRequest\x1a\x1c.tks_pb.GetAppGroupsResponse\"\x00\x12K\n\x0cGetAppGroups\x12\x1b.tks_pb.GetAppGroupsRequest\x1a\x1c.tks_pb.GetAppGroupsResponse\"\x00\x12H\n\x0bGetAppGroup\x12\x1a.tks_pb.GetAppGroupRequest\x1a\x1b.tks_pb.GetAppGroupResponse\"\x00\x12U\n\x14UpdateAppGroupStatus\x12#.tks_pb.UpdateAppGroupStatusRequest\x1a\x16.tks_pb.SimpleResponse\"\x00\x12I\n\x0e\x44\x65leteAppGroup\x12\x1d.tks_pb.DeleteAppGroupRequest\x1a\x16.tks_pb.SimpleResponse\"\x00\x12\x43\n\x13GetAppsByAppGroupID\x12\x11.tks_pb.IDRequest\x1a\x17.tks_pb.GetAppsResponse\"\x00\x12<\n\x07GetApps\x12\x16.tks_pb.GetAppsRequest\x1a\x17.tks_pb.GetAppsResponse\"\x00\x12?\n\tUpdateApp\x12\x18.tks_pb.UpdateAppRequest\x1a\x16.tks_pb.SimpleResponse\"\x00\x42\'Z%github.com/sktelecom/tks-proto/tks_pbb\x06proto3' + serialized_pb=b'\n\ninfo.proto\x12\x06tks_pb\x1a\x0c\x63ommon.proto\x1a\x1bgoogle/protobuf/empty.proto\"K\n\x14\x43reateCSPInfoRequest\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\x12\x10\n\x08\x63sp_name\x18\x02 \x01(\t\x12\x0c\n\x04\x61uth\x18\x03 \x01(\t\"\\\n\x12GetCSPAuthResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12\x0c\n\x04\x61uth\x18\x03 \x01(\t\"4\n\x14UpdateCSPAuthRequest\x12\x0e\n\x06\x63sp_id\x18\x01 \x01(\t\x12\x0c\n\x04\x61uth\x18\x02 \x01(\t\"m\n\x15\x41\x64\x64\x43lusterInfoRequest\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\x12\x0e\n\x06\x63sp_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12!\n\x04\x63onf\x18\x04 \x01(\x0b\x32\x13.tks_pb.ClusterConf\"Q\n\x18UpdateClusterConfRequest\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12!\n\x04\x63onf\x18\x02 \x01(\x0b\x32\x13.tks_pb.ClusterConf\"\'\n\x11GetClusterRequest\x12\x12\n\ncluster_id\x18\x01 \x01(\t\"p\n\x12GetClusterResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12 \n\x07\x63luster\x18\x03 \x01(\x0b\x32\x0f.tks_pb.Cluster\"9\n\x12GetClustersRequest\x12\x0e\n\x06\x63sp_id\x18\x01 \x01(\t\x12\x13\n\x0b\x63ontract_id\x18\x02 \x01(\t\"r\n\x13GetClustersResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12!\n\x08\x63lusters\x18\x03 \x03(\x0b\x32\x0f.tks_pb.Cluster\"W\n\x1aUpdateClusterStatusRequest\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12%\n\x06status\x18\x02 \x01(\x0e\x32\x15.tks_pb.ClusterStatus\"P\n\x15\x43reateAppGroupRequest\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12#\n\tapp_group\x18\x02 \x01(\x0b\x32\x10.tks_pb.AppGroup\"-\n\x15\x44\x65leteAppGroupRequest\x12\x14\n\x0c\x61pp_group_id\x18\x01 \x01(\t\"Q\n\x13GetAppGroupsRequest\x12\x16\n\x0e\x61pp_group_name\x18\x01 \x01(\t\x12\"\n\x04type\x18\x02 \x01(\x0e\x32\x14.tks_pb.AppGroupType\"*\n\x12GetAppGroupRequest\x12\x14\n\x0c\x61pp_group_id\x18\x01 \x01(\t\"t\n\x13GetAppGroupResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12#\n\tapp_group\x18\x03 \x01(\x0b\x32\x10.tks_pb.AppGroup\"v\n\x14GetAppGroupsResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12$\n\napp_groups\x18\x03 \x03(\x0b\x32\x10.tks_pb.AppGroup\"[\n\x1bUpdateAppGroupStatusRequest\x12\x14\n\x0c\x61pp_group_id\x18\x01 \x01(\t\x12&\n\x06status\x18\x02 \x01(\x0e\x32\x16.tks_pb.AppGroupStatus\"o\n\x10UpdateAppRequest\x12\x14\n\x0c\x61pp_group_id\x18\x01 \x01(\t\x12!\n\x08\x61pp_type\x18\x02 \x01(\x0e\x32\x0f.tks_pb.AppType\x12\x10\n\x08\x65ndpoint\x18\x03 \x01(\t\x12\x10\n\x08metadata\x18\x04 \x01(\t\"E\n\x0eGetAppsRequest\x12\x14\n\x0c\x61pp_group_id\x18\x01 \x01(\t\x12\x1d\n\x04type\x18\x02 \x01(\x0e\x32\x0f.tks_pb.AppType\"n\n\x0fGetAppsResponse\x12\x1a\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0c.tks_pb.Code\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.tks_pb.Error\x12!\n\x04\x61pps\x18\x03 \x03(\x0b\x32\x13.tks_pb.Application2\x92\x03\n\x12\x43lusterInfoService\x12\x45\n\x0e\x41\x64\x64\x43lusterInfo\x12\x1d.tks_pb.AddClusterInfoRequest\x1a\x12.tks_pb.IDResponse\"\x00\x12O\n\x11UpdateClusterConf\x12 .tks_pb.UpdateClusterConfRequest\x1a\x16.tks_pb.SimpleResponse\"\x00\x12\x45\n\nGetCluster\x12\x19.tks_pb.GetClusterRequest\x1a\x1a.tks_pb.GetClusterResponse\"\x00\x12H\n\x0bGetClusters\x12\x1a.tks_pb.GetClustersRequest\x1a\x1b.tks_pb.GetClustersResponse\"\x00\x12S\n\x13UpdateClusterStatus\x12\".tks_pb.UpdateClusterStatusRequest\x1a\x16.tks_pb.SimpleResponse\"\x00\x32\xdc\x02\n\x0e\x43spInfoService\x12\x43\n\rCreateCSPInfo\x12\x1c.tks_pb.CreateCSPInfoRequest\x1a\x12.tks_pb.IDResponse\"\x00\x12:\n\tGetCSPIDs\x12\x16.google.protobuf.Empty\x1a\x13.tks_pb.IDsResponse\"\x00\x12\x41\n\x15GetCSPIDsByContractID\x12\x11.tks_pb.IDRequest\x1a\x13.tks_pb.IDsResponse\"\x00\x12G\n\rUpdateCSPAuth\x12\x1c.tks_pb.UpdateCSPAuthRequest\x1a\x16.tks_pb.SimpleResponse\"\x00\x12=\n\nGetCSPAuth\x12\x11.tks_pb.IDRequest\x1a\x1a.tks_pb.GetCSPAuthResponse\"\x00\x32\xa2\x05\n\x0e\x41ppInfoService\x12\x45\n\x0e\x43reateAppGroup\x12\x1d.tks_pb.CreateAppGroupRequest\x1a\x12.tks_pb.IDResponse\"\x00\x12L\n\x17GetAppGroupsByClusterID\x12\x11.tks_pb.IDRequest\x1a\x1c.tks_pb.GetAppGroupsResponse\"\x00\x12K\n\x0cGetAppGroups\x12\x1b.tks_pb.GetAppGroupsRequest\x1a\x1c.tks_pb.GetAppGroupsResponse\"\x00\x12H\n\x0bGetAppGroup\x12\x1a.tks_pb.GetAppGroupRequest\x1a\x1b.tks_pb.GetAppGroupResponse\"\x00\x12U\n\x14UpdateAppGroupStatus\x12#.tks_pb.UpdateAppGroupStatusRequest\x1a\x16.tks_pb.SimpleResponse\"\x00\x12I\n\x0e\x44\x65leteAppGroup\x12\x1d.tks_pb.DeleteAppGroupRequest\x1a\x16.tks_pb.SimpleResponse\"\x00\x12\x43\n\x13GetAppsByAppGroupID\x12\x11.tks_pb.IDRequest\x1a\x17.tks_pb.GetAppsResponse\"\x00\x12<\n\x07GetApps\x12\x16.tks_pb.GetAppsRequest\x1a\x17.tks_pb.GetAppsResponse\"\x00\x12?\n\tUpdateApp\x12\x18.tks_pb.UpdateAppRequest\x1a\x16.tks_pb.SimpleResponse\"\x00\x42*Z(github.com/openinfradev/tks-proto/tks_pbb\x06proto3' , dependencies=[common__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,]) From 5cc6a81759bf385dc92ae6a072d8e819b23fb128 Mon Sep 17 00:00:00 2001 From: Robert Choi Date: Mon, 13 Sep 2021 13:39:53 +0000 Subject: [PATCH 4/5] add mock build cmd to Makefile --- Makefile | 18 ++- tks_pb/mock/mock_cluster_lcm_grpc.pb.go | 40 ++--- tks_pb/mock/mock_contract_grpc.pb.go | 64 ++++---- tks_pb/mock/mock_info_grpc.pb.go | 195 ++++++++++-------------- 4 files changed, 148 insertions(+), 169 deletions(-) diff --git a/Makefile b/Makefile index 6fa12bb..9c204e9 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,23 @@ .PHONY: compile PROTOC_GEN_GO := $(GOPATH)/bin/protoc-gen-go PROTOC := $(shell which protoc) +MOCKGEN := $(shell which mockgen) # Make it always try to install the packages, # since pip checks if the package is installed PY_GRPC_TOOLS := must-install -# If protoc isn't on the path, set it to a target that's never up to date, so +# If protoc isn't on the path, set it to a target that's never up-to-date, so # the install command always runs. ifeq ($(PROTOC),) PROTOC = must-rebuild endif +# Same as PROTOC +ifeq ($(MOCKGEN),) + MOCKGEN = must-rebuild +endif + # Figure out which machine we're running on. UNAME := $(shell uname) @@ -31,6 +37,9 @@ endif $(PROTOC_GEN_GO): go get -u github.com/golang/protobuf/protoc-gen-go +$(MOCKGEN): + go get -u github.com/golang/mock/mockgen + $(PY_GRPC_TOOLS): pip3 install grpcio grpcio-tools @@ -39,6 +48,11 @@ generate: protos | $(PROTOC_GEN_GO) $(PROTOC) $(PY_GRPC_TOOLS) --go-grpc_out=tks_pb --go-grpc_opt=paths=source_relative protos/*.proto python3 -m grpc_tools.protoc -I./protos --python_out=./tks_pb_python --grpc_python_out=./tks_pb_python protos/*.proto +generate-mock: $(MOCKGEN) + mockgen -source=tks_pb/cluster_lcm_grpc.pb.go > tks_pb/mock/mock_cluster_lcm_grpc.pb.go + mockgen -source=tks_pb/contract_grpc.pb.go > tks_pb/mock/mock_contract_grpc.pb.go + mockgen -source=tks_pb/info_grpc.pb.go > tks_pb/mock/mock_info_grpc.pb.go + # This is a "phony" target - an alias for the above command, so "make build" # still works. -build: generate +build: generate generate-mock diff --git a/tks_pb/mock/mock_cluster_lcm_grpc.pb.go b/tks_pb/mock/mock_cluster_lcm_grpc.pb.go index b84ab79..ec31cfc 100644 --- a/tks_pb/mock/mock_cluster_lcm_grpc.pb.go +++ b/tks_pb/mock/mock_cluster_lcm_grpc.pb.go @@ -1,15 +1,15 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: pbgo/cluster_lcm_grpc.pb.go +// Source: tks_pb/cluster_lcm_grpc.pb.go -// Package mock_pbgo is a generated GoMock package. -package mock_pbgo +// Package mock_tks_pb is a generated GoMock package. +package mock_tks_pb import ( context "context" reflect "reflect" gomock "github.com/golang/mock/gomock" - pbgo "github.com/openinfradev/tks-proto/pbgo" + tks_pb "github.com/openinfradev/tks-proto/tks_pb" grpc "google.golang.org/grpc" ) @@ -37,14 +37,14 @@ func (m *MockClusterLcmServiceClient) EXPECT() *MockClusterLcmServiceClientMockR } // CreateCluster mocks base method. -func (m *MockClusterLcmServiceClient) CreateCluster(ctx context.Context, in *pbgo.CreateClusterRequest, opts ...grpc.CallOption) (*pbgo.IDsResponse, error) { +func (m *MockClusterLcmServiceClient) CreateCluster(ctx context.Context, in *tks_pb.CreateClusterRequest, opts ...grpc.CallOption) (*tks_pb.IDsResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "CreateCluster", varargs...) - ret0, _ := ret[0].(*pbgo.IDsResponse) + ret0, _ := ret[0].(*tks_pb.IDsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -57,14 +57,14 @@ func (mr *MockClusterLcmServiceClientMockRecorder) CreateCluster(ctx, in interfa } // InstallAppGroups mocks base method. -func (m *MockClusterLcmServiceClient) InstallAppGroups(ctx context.Context, in *pbgo.InstallAppGroupsRequest, opts ...grpc.CallOption) (*pbgo.IDsResponse, error) { +func (m *MockClusterLcmServiceClient) InstallAppGroups(ctx context.Context, in *tks_pb.InstallAppGroupsRequest, opts ...grpc.CallOption) (*tks_pb.IDsResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "InstallAppGroups", varargs...) - ret0, _ := ret[0].(*pbgo.IDsResponse) + ret0, _ := ret[0].(*tks_pb.IDsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -77,14 +77,14 @@ func (mr *MockClusterLcmServiceClientMockRecorder) InstallAppGroups(ctx, in inte } // ScaleCluster mocks base method. -func (m *MockClusterLcmServiceClient) ScaleCluster(ctx context.Context, in *pbgo.ScaleClusterRequest, opts ...grpc.CallOption) (*pbgo.SimpleResponse, error) { +func (m *MockClusterLcmServiceClient) ScaleCluster(ctx context.Context, in *tks_pb.ScaleClusterRequest, opts ...grpc.CallOption) (*tks_pb.SimpleResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ScaleCluster", varargs...) - ret0, _ := ret[0].(*pbgo.SimpleResponse) + ret0, _ := ret[0].(*tks_pb.SimpleResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -97,14 +97,14 @@ func (mr *MockClusterLcmServiceClientMockRecorder) ScaleCluster(ctx, in interfac } // UninstallAppGroups mocks base method. -func (m *MockClusterLcmServiceClient) UninstallAppGroups(ctx context.Context, in *pbgo.UninstallAppGroupsRequest, opts ...grpc.CallOption) (*pbgo.SimpleResponse, error) { +func (m *MockClusterLcmServiceClient) UninstallAppGroups(ctx context.Context, in *tks_pb.UninstallAppGroupsRequest, opts ...grpc.CallOption) (*tks_pb.SimpleResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UninstallAppGroups", varargs...) - ret0, _ := ret[0].(*pbgo.SimpleResponse) + ret0, _ := ret[0].(*tks_pb.SimpleResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -140,10 +140,10 @@ func (m *MockClusterLcmServiceServer) EXPECT() *MockClusterLcmServiceServerMockR } // CreateCluster mocks base method. -func (m *MockClusterLcmServiceServer) CreateCluster(arg0 context.Context, arg1 *pbgo.CreateClusterRequest) (*pbgo.IDsResponse, error) { +func (m *MockClusterLcmServiceServer) CreateCluster(arg0 context.Context, arg1 *tks_pb.CreateClusterRequest) (*tks_pb.IDsResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateCluster", arg0, arg1) - ret0, _ := ret[0].(*pbgo.IDsResponse) + ret0, _ := ret[0].(*tks_pb.IDsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -155,10 +155,10 @@ func (mr *MockClusterLcmServiceServerMockRecorder) CreateCluster(arg0, arg1 inte } // InstallAppGroups mocks base method. -func (m *MockClusterLcmServiceServer) InstallAppGroups(arg0 context.Context, arg1 *pbgo.InstallAppGroupsRequest) (*pbgo.IDsResponse, error) { +func (m *MockClusterLcmServiceServer) InstallAppGroups(arg0 context.Context, arg1 *tks_pb.InstallAppGroupsRequest) (*tks_pb.IDsResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "InstallAppGroups", arg0, arg1) - ret0, _ := ret[0].(*pbgo.IDsResponse) + ret0, _ := ret[0].(*tks_pb.IDsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -170,10 +170,10 @@ func (mr *MockClusterLcmServiceServerMockRecorder) InstallAppGroups(arg0, arg1 i } // ScaleCluster mocks base method. -func (m *MockClusterLcmServiceServer) ScaleCluster(arg0 context.Context, arg1 *pbgo.ScaleClusterRequest) (*pbgo.SimpleResponse, error) { +func (m *MockClusterLcmServiceServer) ScaleCluster(arg0 context.Context, arg1 *tks_pb.ScaleClusterRequest) (*tks_pb.SimpleResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ScaleCluster", arg0, arg1) - ret0, _ := ret[0].(*pbgo.SimpleResponse) + ret0, _ := ret[0].(*tks_pb.SimpleResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -185,10 +185,10 @@ func (mr *MockClusterLcmServiceServerMockRecorder) ScaleCluster(arg0, arg1 inter } // UninstallAppGroups mocks base method. -func (m *MockClusterLcmServiceServer) UninstallAppGroups(arg0 context.Context, arg1 *pbgo.UninstallAppGroupsRequest) (*pbgo.SimpleResponse, error) { +func (m *MockClusterLcmServiceServer) UninstallAppGroups(arg0 context.Context, arg1 *tks_pb.UninstallAppGroupsRequest) (*tks_pb.SimpleResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UninstallAppGroups", arg0, arg1) - ret0, _ := ret[0].(*pbgo.SimpleResponse) + ret0, _ := ret[0].(*tks_pb.SimpleResponse) ret1, _ := ret[1].(error) return ret0, ret1 } diff --git a/tks_pb/mock/mock_contract_grpc.pb.go b/tks_pb/mock/mock_contract_grpc.pb.go index 45335b8..b6ac1c3 100644 --- a/tks_pb/mock/mock_contract_grpc.pb.go +++ b/tks_pb/mock/mock_contract_grpc.pb.go @@ -1,15 +1,15 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: pbgo/contract_grpc.pb.go +// Source: tks_pb/contract_grpc.pb.go -// Package mock_pbgo is a generated GoMock package. -package mock_pbgo +// Package mock_tks_pb is a generated GoMock package. +package mock_tks_pb import ( context "context" reflect "reflect" gomock "github.com/golang/mock/gomock" - pbgo "github.com/openinfradev/tks-proto/pbgo" + tks_pb "github.com/openinfradev/tks-proto/tks_pb" grpc "google.golang.org/grpc" ) @@ -37,14 +37,14 @@ func (m *MockContractServiceClient) EXPECT() *MockContractServiceClientMockRecor } // CreateContract mocks base method. -func (m *MockContractServiceClient) CreateContract(ctx context.Context, in *pbgo.CreateContractRequest, opts ...grpc.CallOption) (*pbgo.CreateContractResponse, error) { +func (m *MockContractServiceClient) CreateContract(ctx context.Context, in *tks_pb.CreateContractRequest, opts ...grpc.CallOption) (*tks_pb.CreateContractResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "CreateContract", varargs...) - ret0, _ := ret[0].(*pbgo.CreateContractResponse) + ret0, _ := ret[0].(*tks_pb.CreateContractResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -57,14 +57,14 @@ func (mr *MockContractServiceClientMockRecorder) CreateContract(ctx, in interfac } // GetAvailableServices mocks base method. -func (m *MockContractServiceClient) GetAvailableServices(ctx context.Context, in *pbgo.GetAvailableServicesRequest, opts ...grpc.CallOption) (*pbgo.GetAvailableServicesResponse, error) { +func (m *MockContractServiceClient) GetAvailableServices(ctx context.Context, in *tks_pb.GetAvailableServicesRequest, opts ...grpc.CallOption) (*tks_pb.GetAvailableServicesResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetAvailableServices", varargs...) - ret0, _ := ret[0].(*pbgo.GetAvailableServicesResponse) + ret0, _ := ret[0].(*tks_pb.GetAvailableServicesResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -77,14 +77,14 @@ func (mr *MockContractServiceClientMockRecorder) GetAvailableServices(ctx, in in } // GetContract mocks base method. -func (m *MockContractServiceClient) GetContract(ctx context.Context, in *pbgo.GetContractRequest, opts ...grpc.CallOption) (*pbgo.GetContractResponse, error) { +func (m *MockContractServiceClient) GetContract(ctx context.Context, in *tks_pb.GetContractRequest, opts ...grpc.CallOption) (*tks_pb.GetContractResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetContract", varargs...) - ret0, _ := ret[0].(*pbgo.GetContractResponse) + ret0, _ := ret[0].(*tks_pb.GetContractResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -97,14 +97,14 @@ func (mr *MockContractServiceClientMockRecorder) GetContract(ctx, in interface{} } // GetContracts mocks base method. -func (m *MockContractServiceClient) GetContracts(ctx context.Context, in *pbgo.GetContractsRequest, opts ...grpc.CallOption) (*pbgo.GetContractsResponse, error) { +func (m *MockContractServiceClient) GetContracts(ctx context.Context, in *tks_pb.GetContractsRequest, opts ...grpc.CallOption) (*tks_pb.GetContractsResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetContracts", varargs...) - ret0, _ := ret[0].(*pbgo.GetContractsResponse) + ret0, _ := ret[0].(*tks_pb.GetContractsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -117,14 +117,14 @@ func (mr *MockContractServiceClientMockRecorder) GetContracts(ctx, in interface{ } // GetQuota mocks base method. -func (m *MockContractServiceClient) GetQuota(ctx context.Context, in *pbgo.GetQuotaRequest, opts ...grpc.CallOption) (*pbgo.GetQuotaResponse, error) { +func (m *MockContractServiceClient) GetQuota(ctx context.Context, in *tks_pb.GetQuotaRequest, opts ...grpc.CallOption) (*tks_pb.GetQuotaResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetQuota", varargs...) - ret0, _ := ret[0].(*pbgo.GetQuotaResponse) + ret0, _ := ret[0].(*tks_pb.GetQuotaResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -137,14 +137,14 @@ func (mr *MockContractServiceClientMockRecorder) GetQuota(ctx, in interface{}, o } // UpdateQuota mocks base method. -func (m *MockContractServiceClient) UpdateQuota(ctx context.Context, in *pbgo.UpdateQuotaRequest, opts ...grpc.CallOption) (*pbgo.UpdateQuotaResponse, error) { +func (m *MockContractServiceClient) UpdateQuota(ctx context.Context, in *tks_pb.UpdateQuotaRequest, opts ...grpc.CallOption) (*tks_pb.UpdateQuotaResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UpdateQuota", varargs...) - ret0, _ := ret[0].(*pbgo.UpdateQuotaResponse) + ret0, _ := ret[0].(*tks_pb.UpdateQuotaResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -157,14 +157,14 @@ func (mr *MockContractServiceClientMockRecorder) UpdateQuota(ctx, in interface{} } // UpdateServices mocks base method. -func (m *MockContractServiceClient) UpdateServices(ctx context.Context, in *pbgo.UpdateServicesRequest, opts ...grpc.CallOption) (*pbgo.UpdateServicesResponse, error) { +func (m *MockContractServiceClient) UpdateServices(ctx context.Context, in *tks_pb.UpdateServicesRequest, opts ...grpc.CallOption) (*tks_pb.UpdateServicesResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UpdateServices", varargs...) - ret0, _ := ret[0].(*pbgo.UpdateServicesResponse) + ret0, _ := ret[0].(*tks_pb.UpdateServicesResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -200,10 +200,10 @@ func (m *MockContractServiceServer) EXPECT() *MockContractServiceServerMockRecor } // CreateContract mocks base method. -func (m *MockContractServiceServer) CreateContract(arg0 context.Context, arg1 *pbgo.CreateContractRequest) (*pbgo.CreateContractResponse, error) { +func (m *MockContractServiceServer) CreateContract(arg0 context.Context, arg1 *tks_pb.CreateContractRequest) (*tks_pb.CreateContractResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateContract", arg0, arg1) - ret0, _ := ret[0].(*pbgo.CreateContractResponse) + ret0, _ := ret[0].(*tks_pb.CreateContractResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -215,10 +215,10 @@ func (mr *MockContractServiceServerMockRecorder) CreateContract(arg0, arg1 inter } // GetAvailableServices mocks base method. -func (m *MockContractServiceServer) GetAvailableServices(arg0 context.Context, arg1 *pbgo.GetAvailableServicesRequest) (*pbgo.GetAvailableServicesResponse, error) { +func (m *MockContractServiceServer) GetAvailableServices(arg0 context.Context, arg1 *tks_pb.GetAvailableServicesRequest) (*tks_pb.GetAvailableServicesResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAvailableServices", arg0, arg1) - ret0, _ := ret[0].(*pbgo.GetAvailableServicesResponse) + ret0, _ := ret[0].(*tks_pb.GetAvailableServicesResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -230,10 +230,10 @@ func (mr *MockContractServiceServerMockRecorder) GetAvailableServices(arg0, arg1 } // GetContract mocks base method. -func (m *MockContractServiceServer) GetContract(arg0 context.Context, arg1 *pbgo.GetContractRequest) (*pbgo.GetContractResponse, error) { +func (m *MockContractServiceServer) GetContract(arg0 context.Context, arg1 *tks_pb.GetContractRequest) (*tks_pb.GetContractResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetContract", arg0, arg1) - ret0, _ := ret[0].(*pbgo.GetContractResponse) + ret0, _ := ret[0].(*tks_pb.GetContractResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -245,10 +245,10 @@ func (mr *MockContractServiceServerMockRecorder) GetContract(arg0, arg1 interfac } // GetContracts mocks base method. -func (m *MockContractServiceServer) GetContracts(arg0 context.Context, arg1 *pbgo.GetContractsRequest) (*pbgo.GetContractsResponse, error) { +func (m *MockContractServiceServer) GetContracts(arg0 context.Context, arg1 *tks_pb.GetContractsRequest) (*tks_pb.GetContractsResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetContracts", arg0, arg1) - ret0, _ := ret[0].(*pbgo.GetContractsResponse) + ret0, _ := ret[0].(*tks_pb.GetContractsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -260,10 +260,10 @@ func (mr *MockContractServiceServerMockRecorder) GetContracts(arg0, arg1 interfa } // GetQuota mocks base method. -func (m *MockContractServiceServer) GetQuota(arg0 context.Context, arg1 *pbgo.GetQuotaRequest) (*pbgo.GetQuotaResponse, error) { +func (m *MockContractServiceServer) GetQuota(arg0 context.Context, arg1 *tks_pb.GetQuotaRequest) (*tks_pb.GetQuotaResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetQuota", arg0, arg1) - ret0, _ := ret[0].(*pbgo.GetQuotaResponse) + ret0, _ := ret[0].(*tks_pb.GetQuotaResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -275,10 +275,10 @@ func (mr *MockContractServiceServerMockRecorder) GetQuota(arg0, arg1 interface{} } // UpdateQuota mocks base method. -func (m *MockContractServiceServer) UpdateQuota(arg0 context.Context, arg1 *pbgo.UpdateQuotaRequest) (*pbgo.UpdateQuotaResponse, error) { +func (m *MockContractServiceServer) UpdateQuota(arg0 context.Context, arg1 *tks_pb.UpdateQuotaRequest) (*tks_pb.UpdateQuotaResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateQuota", arg0, arg1) - ret0, _ := ret[0].(*pbgo.UpdateQuotaResponse) + ret0, _ := ret[0].(*tks_pb.UpdateQuotaResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -290,10 +290,10 @@ func (mr *MockContractServiceServerMockRecorder) UpdateQuota(arg0, arg1 interfac } // UpdateServices mocks base method. -func (m *MockContractServiceServer) UpdateServices(arg0 context.Context, arg1 *pbgo.UpdateServicesRequest) (*pbgo.UpdateServicesResponse, error) { +func (m *MockContractServiceServer) UpdateServices(arg0 context.Context, arg1 *tks_pb.UpdateServicesRequest) (*tks_pb.UpdateServicesResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateServices", arg0, arg1) - ret0, _ := ret[0].(*pbgo.UpdateServicesResponse) + ret0, _ := ret[0].(*tks_pb.UpdateServicesResponse) ret1, _ := ret[1].(error) return ret0, ret1 } diff --git a/tks_pb/mock/mock_info_grpc.pb.go b/tks_pb/mock/mock_info_grpc.pb.go index ab48fcd..92cd88b 100644 --- a/tks_pb/mock/mock_info_grpc.pb.go +++ b/tks_pb/mock/mock_info_grpc.pb.go @@ -1,15 +1,15 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: pbgo/info_grpc.pb.go +// Source: tks_pb/info_grpc.pb.go -// Package mock_pbgo is a generated GoMock package. -package mock_pbgo +// Package mock_tks_pb is a generated GoMock package. +package mock_tks_pb import ( context "context" reflect "reflect" gomock "github.com/golang/mock/gomock" - pbgo "github.com/openinfradev/tks-proto/pbgo" + tks_pb "github.com/openinfradev/tks-proto/tks_pb" grpc "google.golang.org/grpc" emptypb "google.golang.org/protobuf/types/known/emptypb" ) @@ -38,14 +38,14 @@ func (m *MockClusterInfoServiceClient) EXPECT() *MockClusterInfoServiceClientMoc } // AddClusterInfo mocks base method. -func (m *MockClusterInfoServiceClient) AddClusterInfo(ctx context.Context, in *pbgo.AddClusterInfoRequest, opts ...grpc.CallOption) (*pbgo.IDResponse, error) { +func (m *MockClusterInfoServiceClient) AddClusterInfo(ctx context.Context, in *tks_pb.AddClusterInfoRequest, opts ...grpc.CallOption) (*tks_pb.IDResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "AddClusterInfo", varargs...) - ret0, _ := ret[0].(*pbgo.IDResponse) + ret0, _ := ret[0].(*tks_pb.IDResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -58,14 +58,14 @@ func (mr *MockClusterInfoServiceClientMockRecorder) AddClusterInfo(ctx, in inter } // GetCluster mocks base method. -func (m *MockClusterInfoServiceClient) GetCluster(ctx context.Context, in *pbgo.GetClusterRequest, opts ...grpc.CallOption) (*pbgo.GetClusterResponse, error) { +func (m *MockClusterInfoServiceClient) GetCluster(ctx context.Context, in *tks_pb.GetClusterRequest, opts ...grpc.CallOption) (*tks_pb.GetClusterResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetCluster", varargs...) - ret0, _ := ret[0].(*pbgo.GetClusterResponse) + ret0, _ := ret[0].(*tks_pb.GetClusterResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -78,14 +78,14 @@ func (mr *MockClusterInfoServiceClientMockRecorder) GetCluster(ctx, in interface } // GetClusters mocks base method. -func (m *MockClusterInfoServiceClient) GetClusters(ctx context.Context, in *pbgo.GetClustersRequest, opts ...grpc.CallOption) (*pbgo.GetClustersResponse, error) { +func (m *MockClusterInfoServiceClient) GetClusters(ctx context.Context, in *tks_pb.GetClustersRequest, opts ...grpc.CallOption) (*tks_pb.GetClustersResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetClusters", varargs...) - ret0, _ := ret[0].(*pbgo.GetClustersResponse) + ret0, _ := ret[0].(*tks_pb.GetClustersResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -98,14 +98,14 @@ func (mr *MockClusterInfoServiceClientMockRecorder) GetClusters(ctx, in interfac } // UpdateClusterConf mocks base method. -func (m *MockClusterInfoServiceClient) UpdateClusterConf(ctx context.Context, in *pbgo.UpdateClusterConfRequest, opts ...grpc.CallOption) (*pbgo.SimpleResponse, error) { +func (m *MockClusterInfoServiceClient) UpdateClusterConf(ctx context.Context, in *tks_pb.UpdateClusterConfRequest, opts ...grpc.CallOption) (*tks_pb.SimpleResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UpdateClusterConf", varargs...) - ret0, _ := ret[0].(*pbgo.SimpleResponse) + ret0, _ := ret[0].(*tks_pb.SimpleResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -118,14 +118,14 @@ func (mr *MockClusterInfoServiceClientMockRecorder) UpdateClusterConf(ctx, in in } // UpdateClusterStatus mocks base method. -func (m *MockClusterInfoServiceClient) UpdateClusterStatus(ctx context.Context, in *pbgo.UpdateClusterStatusRequest, opts ...grpc.CallOption) (*pbgo.SimpleResponse, error) { +func (m *MockClusterInfoServiceClient) UpdateClusterStatus(ctx context.Context, in *tks_pb.UpdateClusterStatusRequest, opts ...grpc.CallOption) (*tks_pb.SimpleResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UpdateClusterStatus", varargs...) - ret0, _ := ret[0].(*pbgo.SimpleResponse) + ret0, _ := ret[0].(*tks_pb.SimpleResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -161,10 +161,10 @@ func (m *MockClusterInfoServiceServer) EXPECT() *MockClusterInfoServiceServerMoc } // AddClusterInfo mocks base method. -func (m *MockClusterInfoServiceServer) AddClusterInfo(arg0 context.Context, arg1 *pbgo.AddClusterInfoRequest) (*pbgo.IDResponse, error) { +func (m *MockClusterInfoServiceServer) AddClusterInfo(arg0 context.Context, arg1 *tks_pb.AddClusterInfoRequest) (*tks_pb.IDResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddClusterInfo", arg0, arg1) - ret0, _ := ret[0].(*pbgo.IDResponse) + ret0, _ := ret[0].(*tks_pb.IDResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -176,10 +176,10 @@ func (mr *MockClusterInfoServiceServerMockRecorder) AddClusterInfo(arg0, arg1 in } // GetCluster mocks base method. -func (m *MockClusterInfoServiceServer) GetCluster(arg0 context.Context, arg1 *pbgo.GetClusterRequest) (*pbgo.GetClusterResponse, error) { +func (m *MockClusterInfoServiceServer) GetCluster(arg0 context.Context, arg1 *tks_pb.GetClusterRequest) (*tks_pb.GetClusterResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetCluster", arg0, arg1) - ret0, _ := ret[0].(*pbgo.GetClusterResponse) + ret0, _ := ret[0].(*tks_pb.GetClusterResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -191,10 +191,10 @@ func (mr *MockClusterInfoServiceServerMockRecorder) GetCluster(arg0, arg1 interf } // GetClusters mocks base method. -func (m *MockClusterInfoServiceServer) GetClusters(arg0 context.Context, arg1 *pbgo.GetClustersRequest) (*pbgo.GetClustersResponse, error) { +func (m *MockClusterInfoServiceServer) GetClusters(arg0 context.Context, arg1 *tks_pb.GetClustersRequest) (*tks_pb.GetClustersResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetClusters", arg0, arg1) - ret0, _ := ret[0].(*pbgo.GetClustersResponse) + ret0, _ := ret[0].(*tks_pb.GetClustersResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -206,10 +206,10 @@ func (mr *MockClusterInfoServiceServerMockRecorder) GetClusters(arg0, arg1 inter } // UpdateClusterConf mocks base method. -func (m *MockClusterInfoServiceServer) UpdateClusterConf(arg0 context.Context, arg1 *pbgo.UpdateClusterConfRequest) (*pbgo.SimpleResponse, error) { +func (m *MockClusterInfoServiceServer) UpdateClusterConf(arg0 context.Context, arg1 *tks_pb.UpdateClusterConfRequest) (*tks_pb.SimpleResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateClusterConf", arg0, arg1) - ret0, _ := ret[0].(*pbgo.SimpleResponse) + ret0, _ := ret[0].(*tks_pb.SimpleResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -221,10 +221,10 @@ func (mr *MockClusterInfoServiceServerMockRecorder) UpdateClusterConf(arg0, arg1 } // UpdateClusterStatus mocks base method. -func (m *MockClusterInfoServiceServer) UpdateClusterStatus(arg0 context.Context, arg1 *pbgo.UpdateClusterStatusRequest) (*pbgo.SimpleResponse, error) { +func (m *MockClusterInfoServiceServer) UpdateClusterStatus(arg0 context.Context, arg1 *tks_pb.UpdateClusterStatusRequest) (*tks_pb.SimpleResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateClusterStatus", arg0, arg1) - ret0, _ := ret[0].(*pbgo.SimpleResponse) + ret0, _ := ret[0].(*tks_pb.SimpleResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -306,14 +306,14 @@ func (m *MockCspInfoServiceClient) EXPECT() *MockCspInfoServiceClientMockRecorde } // CreateCSPInfo mocks base method. -func (m *MockCspInfoServiceClient) CreateCSPInfo(ctx context.Context, in *pbgo.CreateCSPInfoRequest, opts ...grpc.CallOption) (*pbgo.IDResponse, error) { +func (m *MockCspInfoServiceClient) CreateCSPInfo(ctx context.Context, in *tks_pb.CreateCSPInfoRequest, opts ...grpc.CallOption) (*tks_pb.IDResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "CreateCSPInfo", varargs...) - ret0, _ := ret[0].(*pbgo.IDResponse) + ret0, _ := ret[0].(*tks_pb.IDResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -326,14 +326,14 @@ func (mr *MockCspInfoServiceClientMockRecorder) CreateCSPInfo(ctx, in interface{ } // GetCSPAuth mocks base method. -func (m *MockCspInfoServiceClient) GetCSPAuth(ctx context.Context, in *pbgo.IDRequest, opts ...grpc.CallOption) (*pbgo.GetCSPAuthResponse, error) { +func (m *MockCspInfoServiceClient) GetCSPAuth(ctx context.Context, in *tks_pb.IDRequest, opts ...grpc.CallOption) (*tks_pb.GetCSPAuthResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetCSPAuth", varargs...) - ret0, _ := ret[0].(*pbgo.GetCSPAuthResponse) + ret0, _ := ret[0].(*tks_pb.GetCSPAuthResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -346,14 +346,14 @@ func (mr *MockCspInfoServiceClientMockRecorder) GetCSPAuth(ctx, in interface{}, } // GetCSPIDs mocks base method. -func (m *MockCspInfoServiceClient) GetCSPIDs(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*pbgo.IDsResponse, error) { +func (m *MockCspInfoServiceClient) GetCSPIDs(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*tks_pb.IDsResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetCSPIDs", varargs...) - ret0, _ := ret[0].(*pbgo.IDsResponse) + ret0, _ := ret[0].(*tks_pb.IDsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -366,14 +366,14 @@ func (mr *MockCspInfoServiceClientMockRecorder) GetCSPIDs(ctx, in interface{}, o } // GetCSPIDsByContractID mocks base method. -func (m *MockCspInfoServiceClient) GetCSPIDsByContractID(ctx context.Context, in *pbgo.IDRequest, opts ...grpc.CallOption) (*pbgo.IDsResponse, error) { +func (m *MockCspInfoServiceClient) GetCSPIDsByContractID(ctx context.Context, in *tks_pb.IDRequest, opts ...grpc.CallOption) (*tks_pb.IDsResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetCSPIDsByContractID", varargs...) - ret0, _ := ret[0].(*pbgo.IDsResponse) + ret0, _ := ret[0].(*tks_pb.IDsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -386,14 +386,14 @@ func (mr *MockCspInfoServiceClientMockRecorder) GetCSPIDsByContractID(ctx, in in } // UpdateCSPAuth mocks base method. -func (m *MockCspInfoServiceClient) UpdateCSPAuth(ctx context.Context, in *pbgo.UpdateCSPAuthRequest, opts ...grpc.CallOption) (*pbgo.SimpleResponse, error) { +func (m *MockCspInfoServiceClient) UpdateCSPAuth(ctx context.Context, in *tks_pb.UpdateCSPAuthRequest, opts ...grpc.CallOption) (*tks_pb.SimpleResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UpdateCSPAuth", varargs...) - ret0, _ := ret[0].(*pbgo.SimpleResponse) + ret0, _ := ret[0].(*tks_pb.SimpleResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -429,10 +429,10 @@ func (m *MockCspInfoServiceServer) EXPECT() *MockCspInfoServiceServerMockRecorde } // CreateCSPInfo mocks base method. -func (m *MockCspInfoServiceServer) CreateCSPInfo(arg0 context.Context, arg1 *pbgo.CreateCSPInfoRequest) (*pbgo.IDResponse, error) { +func (m *MockCspInfoServiceServer) CreateCSPInfo(arg0 context.Context, arg1 *tks_pb.CreateCSPInfoRequest) (*tks_pb.IDResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateCSPInfo", arg0, arg1) - ret0, _ := ret[0].(*pbgo.IDResponse) + ret0, _ := ret[0].(*tks_pb.IDResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -444,10 +444,10 @@ func (mr *MockCspInfoServiceServerMockRecorder) CreateCSPInfo(arg0, arg1 interfa } // GetCSPAuth mocks base method. -func (m *MockCspInfoServiceServer) GetCSPAuth(arg0 context.Context, arg1 *pbgo.IDRequest) (*pbgo.GetCSPAuthResponse, error) { +func (m *MockCspInfoServiceServer) GetCSPAuth(arg0 context.Context, arg1 *tks_pb.IDRequest) (*tks_pb.GetCSPAuthResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetCSPAuth", arg0, arg1) - ret0, _ := ret[0].(*pbgo.GetCSPAuthResponse) + ret0, _ := ret[0].(*tks_pb.GetCSPAuthResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -459,10 +459,10 @@ func (mr *MockCspInfoServiceServerMockRecorder) GetCSPAuth(arg0, arg1 interface{ } // GetCSPIDs mocks base method. -func (m *MockCspInfoServiceServer) GetCSPIDs(arg0 context.Context, arg1 *emptypb.Empty) (*pbgo.IDsResponse, error) { +func (m *MockCspInfoServiceServer) GetCSPIDs(arg0 context.Context, arg1 *emptypb.Empty) (*tks_pb.IDsResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetCSPIDs", arg0, arg1) - ret0, _ := ret[0].(*pbgo.IDsResponse) + ret0, _ := ret[0].(*tks_pb.IDsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -474,10 +474,10 @@ func (mr *MockCspInfoServiceServerMockRecorder) GetCSPIDs(arg0, arg1 interface{} } // GetCSPIDsByContractID mocks base method. -func (m *MockCspInfoServiceServer) GetCSPIDsByContractID(arg0 context.Context, arg1 *pbgo.IDRequest) (*pbgo.IDsResponse, error) { +func (m *MockCspInfoServiceServer) GetCSPIDsByContractID(arg0 context.Context, arg1 *tks_pb.IDRequest) (*tks_pb.IDsResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetCSPIDsByContractID", arg0, arg1) - ret0, _ := ret[0].(*pbgo.IDsResponse) + ret0, _ := ret[0].(*tks_pb.IDsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -489,10 +489,10 @@ func (mr *MockCspInfoServiceServerMockRecorder) GetCSPIDsByContractID(arg0, arg1 } // UpdateCSPAuth mocks base method. -func (m *MockCspInfoServiceServer) UpdateCSPAuth(arg0 context.Context, arg1 *pbgo.UpdateCSPAuthRequest) (*pbgo.SimpleResponse, error) { +func (m *MockCspInfoServiceServer) UpdateCSPAuth(arg0 context.Context, arg1 *tks_pb.UpdateCSPAuthRequest) (*tks_pb.SimpleResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateCSPAuth", arg0, arg1) - ret0, _ := ret[0].(*pbgo.SimpleResponse) + ret0, _ := ret[0].(*tks_pb.SimpleResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -574,14 +574,14 @@ func (m *MockAppInfoServiceClient) EXPECT() *MockAppInfoServiceClientMockRecorde } // CreateAppGroup mocks base method. -func (m *MockAppInfoServiceClient) CreateAppGroup(ctx context.Context, in *pbgo.CreateAppGroupRequest, opts ...grpc.CallOption) (*pbgo.IDResponse, error) { +func (m *MockAppInfoServiceClient) CreateAppGroup(ctx context.Context, in *tks_pb.CreateAppGroupRequest, opts ...grpc.CallOption) (*tks_pb.IDResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "CreateAppGroup", varargs...) - ret0, _ := ret[0].(*pbgo.IDResponse) + ret0, _ := ret[0].(*tks_pb.IDResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -593,35 +593,15 @@ func (mr *MockAppInfoServiceClientMockRecorder) CreateAppGroup(ctx, in interface return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAppGroup", reflect.TypeOf((*MockAppInfoServiceClient)(nil).CreateAppGroup), varargs...) } -// DeleteApp mocks base method. -func (m *MockAppInfoServiceClient) DeleteApp(ctx context.Context, in *pbgo.DeleteAppRequest, opts ...grpc.CallOption) (*pbgo.SimpleResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "DeleteApp", varargs...) - ret0, _ := ret[0].(*pbgo.SimpleResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// DeleteApp indicates an expected call of DeleteApp. -func (mr *MockAppInfoServiceClientMockRecorder) DeleteApp(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteApp", reflect.TypeOf((*MockAppInfoServiceClient)(nil).DeleteApp), varargs...) -} - // DeleteAppGroup mocks base method. -func (m *MockAppInfoServiceClient) DeleteAppGroup(ctx context.Context, in *pbgo.DeleteAppGroupRequest, opts ...grpc.CallOption) (*pbgo.SimpleResponse, error) { +func (m *MockAppInfoServiceClient) DeleteAppGroup(ctx context.Context, in *tks_pb.DeleteAppGroupRequest, opts ...grpc.CallOption) (*tks_pb.SimpleResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "DeleteAppGroup", varargs...) - ret0, _ := ret[0].(*pbgo.SimpleResponse) + ret0, _ := ret[0].(*tks_pb.SimpleResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -634,14 +614,14 @@ func (mr *MockAppInfoServiceClientMockRecorder) DeleteAppGroup(ctx, in interface } // GetAppGroup mocks base method. -func (m *MockAppInfoServiceClient) GetAppGroup(ctx context.Context, in *pbgo.GetAppGroupRequest, opts ...grpc.CallOption) (*pbgo.GetAppGroupResponse, error) { +func (m *MockAppInfoServiceClient) GetAppGroup(ctx context.Context, in *tks_pb.GetAppGroupRequest, opts ...grpc.CallOption) (*tks_pb.GetAppGroupResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetAppGroup", varargs...) - ret0, _ := ret[0].(*pbgo.GetAppGroupResponse) + ret0, _ := ret[0].(*tks_pb.GetAppGroupResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -654,14 +634,14 @@ func (mr *MockAppInfoServiceClientMockRecorder) GetAppGroup(ctx, in interface{}, } // GetAppGroups mocks base method. -func (m *MockAppInfoServiceClient) GetAppGroups(ctx context.Context, in *pbgo.GetAppGroupsRequest, opts ...grpc.CallOption) (*pbgo.GetAppGroupsResponse, error) { +func (m *MockAppInfoServiceClient) GetAppGroups(ctx context.Context, in *tks_pb.GetAppGroupsRequest, opts ...grpc.CallOption) (*tks_pb.GetAppGroupsResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetAppGroups", varargs...) - ret0, _ := ret[0].(*pbgo.GetAppGroupsResponse) + ret0, _ := ret[0].(*tks_pb.GetAppGroupsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -674,14 +654,14 @@ func (mr *MockAppInfoServiceClientMockRecorder) GetAppGroups(ctx, in interface{} } // GetAppGroupsByClusterID mocks base method. -func (m *MockAppInfoServiceClient) GetAppGroupsByClusterID(ctx context.Context, in *pbgo.IDRequest, opts ...grpc.CallOption) (*pbgo.GetAppGroupsResponse, error) { +func (m *MockAppInfoServiceClient) GetAppGroupsByClusterID(ctx context.Context, in *tks_pb.IDRequest, opts ...grpc.CallOption) (*tks_pb.GetAppGroupsResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetAppGroupsByClusterID", varargs...) - ret0, _ := ret[0].(*pbgo.GetAppGroupsResponse) + ret0, _ := ret[0].(*tks_pb.GetAppGroupsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -694,14 +674,14 @@ func (mr *MockAppInfoServiceClientMockRecorder) GetAppGroupsByClusterID(ctx, in } // GetApps mocks base method. -func (m *MockAppInfoServiceClient) GetApps(ctx context.Context, in *pbgo.GetAppsRequest, opts ...grpc.CallOption) (*pbgo.GetAppsResponse, error) { +func (m *MockAppInfoServiceClient) GetApps(ctx context.Context, in *tks_pb.GetAppsRequest, opts ...grpc.CallOption) (*tks_pb.GetAppsResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetApps", varargs...) - ret0, _ := ret[0].(*pbgo.GetAppsResponse) + ret0, _ := ret[0].(*tks_pb.GetAppsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -714,14 +694,14 @@ func (mr *MockAppInfoServiceClientMockRecorder) GetApps(ctx, in interface{}, opt } // GetAppsByAppGroupID mocks base method. -func (m *MockAppInfoServiceClient) GetAppsByAppGroupID(ctx context.Context, in *pbgo.IDRequest, opts ...grpc.CallOption) (*pbgo.GetAppsResponse, error) { +func (m *MockAppInfoServiceClient) GetAppsByAppGroupID(ctx context.Context, in *tks_pb.IDRequest, opts ...grpc.CallOption) (*tks_pb.GetAppsResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetAppsByAppGroupID", varargs...) - ret0, _ := ret[0].(*pbgo.GetAppsResponse) + ret0, _ := ret[0].(*tks_pb.GetAppsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -734,14 +714,14 @@ func (mr *MockAppInfoServiceClientMockRecorder) GetAppsByAppGroupID(ctx, in inte } // UpdateApp mocks base method. -func (m *MockAppInfoServiceClient) UpdateApp(ctx context.Context, in *pbgo.UpdateAppRequest, opts ...grpc.CallOption) (*pbgo.SimpleResponse, error) { +func (m *MockAppInfoServiceClient) UpdateApp(ctx context.Context, in *tks_pb.UpdateAppRequest, opts ...grpc.CallOption) (*tks_pb.SimpleResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UpdateApp", varargs...) - ret0, _ := ret[0].(*pbgo.SimpleResponse) + ret0, _ := ret[0].(*tks_pb.SimpleResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -754,14 +734,14 @@ func (mr *MockAppInfoServiceClientMockRecorder) UpdateApp(ctx, in interface{}, o } // UpdateAppGroupStatus mocks base method. -func (m *MockAppInfoServiceClient) UpdateAppGroupStatus(ctx context.Context, in *pbgo.UpdateAppGroupStatusRequest, opts ...grpc.CallOption) (*pbgo.SimpleResponse, error) { +func (m *MockAppInfoServiceClient) UpdateAppGroupStatus(ctx context.Context, in *tks_pb.UpdateAppGroupStatusRequest, opts ...grpc.CallOption) (*tks_pb.SimpleResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UpdateAppGroupStatus", varargs...) - ret0, _ := ret[0].(*pbgo.SimpleResponse) + ret0, _ := ret[0].(*tks_pb.SimpleResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -797,10 +777,10 @@ func (m *MockAppInfoServiceServer) EXPECT() *MockAppInfoServiceServerMockRecorde } // CreateAppGroup mocks base method. -func (m *MockAppInfoServiceServer) CreateAppGroup(arg0 context.Context, arg1 *pbgo.CreateAppGroupRequest) (*pbgo.IDResponse, error) { +func (m *MockAppInfoServiceServer) CreateAppGroup(arg0 context.Context, arg1 *tks_pb.CreateAppGroupRequest) (*tks_pb.IDResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateAppGroup", arg0, arg1) - ret0, _ := ret[0].(*pbgo.IDResponse) + ret0, _ := ret[0].(*tks_pb.IDResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -811,26 +791,11 @@ func (mr *MockAppInfoServiceServerMockRecorder) CreateAppGroup(arg0, arg1 interf return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAppGroup", reflect.TypeOf((*MockAppInfoServiceServer)(nil).CreateAppGroup), arg0, arg1) } -// DeleteApp mocks base method. -func (m *MockAppInfoServiceServer) DeleteApp(arg0 context.Context, arg1 *pbgo.DeleteAppRequest) (*pbgo.SimpleResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteApp", arg0, arg1) - ret0, _ := ret[0].(*pbgo.SimpleResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// DeleteApp indicates an expected call of DeleteApp. -func (mr *MockAppInfoServiceServerMockRecorder) DeleteApp(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteApp", reflect.TypeOf((*MockAppInfoServiceServer)(nil).DeleteApp), arg0, arg1) -} - // DeleteAppGroup mocks base method. -func (m *MockAppInfoServiceServer) DeleteAppGroup(arg0 context.Context, arg1 *pbgo.DeleteAppGroupRequest) (*pbgo.SimpleResponse, error) { +func (m *MockAppInfoServiceServer) DeleteAppGroup(arg0 context.Context, arg1 *tks_pb.DeleteAppGroupRequest) (*tks_pb.SimpleResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteAppGroup", arg0, arg1) - ret0, _ := ret[0].(*pbgo.SimpleResponse) + ret0, _ := ret[0].(*tks_pb.SimpleResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -842,10 +807,10 @@ func (mr *MockAppInfoServiceServerMockRecorder) DeleteAppGroup(arg0, arg1 interf } // GetAppGroup mocks base method. -func (m *MockAppInfoServiceServer) GetAppGroup(arg0 context.Context, arg1 *pbgo.GetAppGroupRequest) (*pbgo.GetAppGroupResponse, error) { +func (m *MockAppInfoServiceServer) GetAppGroup(arg0 context.Context, arg1 *tks_pb.GetAppGroupRequest) (*tks_pb.GetAppGroupResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAppGroup", arg0, arg1) - ret0, _ := ret[0].(*pbgo.GetAppGroupResponse) + ret0, _ := ret[0].(*tks_pb.GetAppGroupResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -857,10 +822,10 @@ func (mr *MockAppInfoServiceServerMockRecorder) GetAppGroup(arg0, arg1 interface } // GetAppGroups mocks base method. -func (m *MockAppInfoServiceServer) GetAppGroups(arg0 context.Context, arg1 *pbgo.GetAppGroupsRequest) (*pbgo.GetAppGroupsResponse, error) { +func (m *MockAppInfoServiceServer) GetAppGroups(arg0 context.Context, arg1 *tks_pb.GetAppGroupsRequest) (*tks_pb.GetAppGroupsResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAppGroups", arg0, arg1) - ret0, _ := ret[0].(*pbgo.GetAppGroupsResponse) + ret0, _ := ret[0].(*tks_pb.GetAppGroupsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -872,10 +837,10 @@ func (mr *MockAppInfoServiceServerMockRecorder) GetAppGroups(arg0, arg1 interfac } // GetAppGroupsByClusterID mocks base method. -func (m *MockAppInfoServiceServer) GetAppGroupsByClusterID(arg0 context.Context, arg1 *pbgo.IDRequest) (*pbgo.GetAppGroupsResponse, error) { +func (m *MockAppInfoServiceServer) GetAppGroupsByClusterID(arg0 context.Context, arg1 *tks_pb.IDRequest) (*tks_pb.GetAppGroupsResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAppGroupsByClusterID", arg0, arg1) - ret0, _ := ret[0].(*pbgo.GetAppGroupsResponse) + ret0, _ := ret[0].(*tks_pb.GetAppGroupsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -887,10 +852,10 @@ func (mr *MockAppInfoServiceServerMockRecorder) GetAppGroupsByClusterID(arg0, ar } // GetApps mocks base method. -func (m *MockAppInfoServiceServer) GetApps(arg0 context.Context, arg1 *pbgo.GetAppsRequest) (*pbgo.GetAppsResponse, error) { +func (m *MockAppInfoServiceServer) GetApps(arg0 context.Context, arg1 *tks_pb.GetAppsRequest) (*tks_pb.GetAppsResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetApps", arg0, arg1) - ret0, _ := ret[0].(*pbgo.GetAppsResponse) + ret0, _ := ret[0].(*tks_pb.GetAppsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -902,10 +867,10 @@ func (mr *MockAppInfoServiceServerMockRecorder) GetApps(arg0, arg1 interface{}) } // GetAppsByAppGroupID mocks base method. -func (m *MockAppInfoServiceServer) GetAppsByAppGroupID(arg0 context.Context, arg1 *pbgo.IDRequest) (*pbgo.GetAppsResponse, error) { +func (m *MockAppInfoServiceServer) GetAppsByAppGroupID(arg0 context.Context, arg1 *tks_pb.IDRequest) (*tks_pb.GetAppsResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAppsByAppGroupID", arg0, arg1) - ret0, _ := ret[0].(*pbgo.GetAppsResponse) + ret0, _ := ret[0].(*tks_pb.GetAppsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -917,10 +882,10 @@ func (mr *MockAppInfoServiceServerMockRecorder) GetAppsByAppGroupID(arg0, arg1 i } // UpdateApp mocks base method. -func (m *MockAppInfoServiceServer) UpdateApp(arg0 context.Context, arg1 *pbgo.UpdateAppRequest) (*pbgo.SimpleResponse, error) { +func (m *MockAppInfoServiceServer) UpdateApp(arg0 context.Context, arg1 *tks_pb.UpdateAppRequest) (*tks_pb.SimpleResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateApp", arg0, arg1) - ret0, _ := ret[0].(*pbgo.SimpleResponse) + ret0, _ := ret[0].(*tks_pb.SimpleResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -932,10 +897,10 @@ func (mr *MockAppInfoServiceServerMockRecorder) UpdateApp(arg0, arg1 interface{} } // UpdateAppGroupStatus mocks base method. -func (m *MockAppInfoServiceServer) UpdateAppGroupStatus(arg0 context.Context, arg1 *pbgo.UpdateAppGroupStatusRequest) (*pbgo.SimpleResponse, error) { +func (m *MockAppInfoServiceServer) UpdateAppGroupStatus(arg0 context.Context, arg1 *tks_pb.UpdateAppGroupStatusRequest) (*tks_pb.SimpleResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateAppGroupStatus", arg0, arg1) - ret0, _ := ret[0].(*pbgo.SimpleResponse) + ret0, _ := ret[0].(*tks_pb.SimpleResponse) ret1, _ := ret[1].(error) return ret0, ret1 } From e82565212232412d3ec871857030964a02c6aebc Mon Sep 17 00:00:00 2001 From: Robert Choi Date: Tue, 14 Sep 2021 01:16:50 +0000 Subject: [PATCH 5/5] update README --- README.md | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 02251c0..80da9ef 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,27 @@ # TKS-proto -TKS-proto contains `.pb.go` files and protocol buffers for TKS services. +TKS-proto contains protocol buffer definition and gRPC output files for TKS services. ## Getting Started ### Add new .proto `.proto` files are located under `protos/` directory. Please make and write new `.proto` file following the [Style Guide](https://developers.google.com/protocol-buffers/docs/style). -### Generate .pb.go files -You can easily generate `.pb.go` files using `make build` command. -If there are no errors, `.pb.go` files would be generated in `pbgo/` directory. +### Generate gRPC output files +You can easily generate output files for golang and python by running `make build` command. ```console $ make build -go get -u github.com/golang/protobuf/protoc-gen-go -protoc --proto_path=protos --go_out=tks_pb --go_opt=paths=source_relative protos/*.proto +protoc --proto_path=protos --go_out=tks_pb --go_opt=paths=source_relative \ +--go-grpc_out=tks_pb --go-grpc_opt=paths=source_relative protos/*.proto +python3 -m grpc_tools.protoc -I./protos --python_out=./tks_pb_python --grpc_python_out=./tks_pb_python protos/*.proto +mockgen -source=tks_pb/cluster_lcm_grpc.pb.go > tks_pb/mock/mock_cluster_lcm_grpc.pb.go +mockgen -source=tks_pb/contract_grpc.pb.go > tks_pb/mock/mock_contract_grpc.pb.go +mockgen -source=tks_pb/info_grpc.pb.go > tks_pb/mock/mock_info_grpc.pb.go $ ls tks_pb -common.pb.go contract.pb.go -``` - -### Generate python binding for grpc client -You can generate python binding using following command. -```console -$ pip3 install grpcio grpcio-tools -$ python3 -m grpc_tools.protoc -I./protos --python_out=./tks_pb_python --grpc_python_out=./tks_pb_python protos/*.proto +cluster_lcm.pb.go common.pb.go contract_grpc.pb.go info_grpc.pb.go +cluster_lcm_grpc.pb.go contract.pb.go info.pb.go mock $ ls tks_pb_python -cluster_lcm_pb2.py cluster_lcm_pb2_grpc.py ... contract_pb2.py contract_pb2_grpc.py info_pb2.py info_pb2_grpc.py +cluster_lcm_pb2.py common_pb2.py contract_pb2.py info_pb2.py +cluster_lcm_pb2_grpc.py common_pb2_grpc.py contract_pb2_grpc.py info_pb2_grpc.py ```