From 0d4cb2cef78e244a44d7e8f0302cc55b7bcddc3b Mon Sep 17 00:00:00 2001 From: Pudong Zheng Date: Mon, 25 Jul 2022 03:40:50 +0000 Subject: [PATCH] 1 --- .../ide-metrics-api/.gitignore | 0 .../ide-metrics-api/BUILD.yaml | 0 .../ide-metrics-api/generate.sh | 4 +- .../components => }/ide-metrics-api/go.mod | 0 .../components => }/ide-metrics-api/go.sum | 0 .../ide-metrics-api/go/BUILD.yaml | 2 + .../ide-metrics-api/go/config/config.go | 7 +- components/ide-metrics-api/go/go.mod | 34 + .../components => }/ide-metrics-api/go/go.sum | 134 +- components/ide-metrics-api/go/metrics.pb.go | 389 ++++ .../ide-metrics-api/go/metrics.pb.gw.go | 118 +- .../ide-metrics-api/go/metrics_grpc.pb.go | 56 +- .../ide-metrics-api/java/.classpath | 0 .../ide-metrics-api/java/.gitattributes | 0 .../ide-metrics-api/java/.gitignore | 0 .../ide-metrics-api/java/.project | 0 .../ide-metrics-api/java/BUILD.yaml | 0 .../ide-metrics-api/java/build.gradle | 0 .../ide-metrics-api/java/gradle.properties | 0 .../java/gradle/wrapper/gradle-wrapper.jar | Bin .../gradle/wrapper/gradle-wrapper.properties | 0 .../ide-metrics-api/java/gradlew | 0 .../ide-metrics-api/java/gradlew.bat | 0 .../ide-metrics-api/java/settings.gradle | 0 .../io/gitpod/ide_metrics/api/Metrics.java | 1571 +++++++---------- .../ide_metrics/api/MetricsServiceGrpc.java | 148 +- .../ide-metrics-api/metrics.proto | 32 +- .../third_party/google/api/annotations.proto | 0 .../google/api/field_behavior.proto | 0 .../third_party/google/api/http.proto | 0 .../third_party/google/api/httpbody.proto | 0 .../typescript-grpc/.gitignore | 0 .../typescript-grpc/BUILD.yaml | 8 +- .../ide-metrics-api/typescript-grpc/build.sh | 0 .../typescript-grpc/package.json | 0 .../typescript-grpc/tsconfig.json | 0 .../ide-metrics-api/typescript-grpc/yarn.lock | 0 .../typescript-grpcweb/.gitignore | 0 .../typescript-grpcweb/BUILD.yaml | 8 +- .../typescript-grpcweb/build.sh | 0 .../typescript-grpcweb/package.json | 0 .../typescript-grpcweb/tsconfig.json | 0 .../typescript-grpcweb/yarn.lock | 0 .../BUILD.yaml | 6 +- .../cmd/root.go | 0 .../cmd/run.go | 0 .../ide-metrics-server => ide-metrics}/go.mod | 25 +- .../ide-metrics-server => ide-metrics}/go.sum | 247 +++ .../leeway.Dockerfile | 0 .../main.go | 0 .../pkg/server/server.go | 9 +- .../pkg/server/services.go | 0 .../components/ide-metrics-api/go/go.mod | 20 - .../ide-metrics-api/go/metrics.pb.go | 472 ----- gitpod-ws.code-workspace | 2 +- 55 files changed, 1673 insertions(+), 1619 deletions(-) rename components/{ide-proxy/components => }/ide-metrics-api/.gitignore (100%) rename components/{ide-proxy/components => }/ide-metrics-api/BUILD.yaml (100%) rename components/{ide-proxy/components => }/ide-metrics-api/generate.sh (89%) rename components/{ide-proxy/components => }/ide-metrics-api/go.mod (100%) rename components/{ide-proxy/components => }/ide-metrics-api/go.sum (100%) rename components/{ide-proxy/components => }/ide-metrics-api/go/BUILD.yaml (78%) rename components/{ide-proxy/components => }/ide-metrics-api/go/config/config.go (75%) create mode 100644 components/ide-metrics-api/go/go.mod rename components/{ide-proxy/components => }/ide-metrics-api/go/go.sum (76%) create mode 100644 components/ide-metrics-api/go/metrics.pb.go rename components/{ide-proxy/components => }/ide-metrics-api/go/metrics.pb.gw.go (60%) rename components/{ide-proxy/components => }/ide-metrics-api/go/metrics_grpc.pb.go (57%) rename components/{ide-proxy/components => }/ide-metrics-api/java/.classpath (100%) rename components/{ide-proxy/components => }/ide-metrics-api/java/.gitattributes (100%) rename components/{ide-proxy/components => }/ide-metrics-api/java/.gitignore (100%) rename components/{ide-proxy/components => }/ide-metrics-api/java/.project (100%) rename components/{ide-proxy/components => }/ide-metrics-api/java/BUILD.yaml (100%) rename components/{ide-proxy/components => }/ide-metrics-api/java/build.gradle (100%) rename components/{ide-proxy/components => }/ide-metrics-api/java/gradle.properties (100%) rename components/{ide-proxy/components => }/ide-metrics-api/java/gradle/wrapper/gradle-wrapper.jar (100%) rename components/{ide-proxy/components => }/ide-metrics-api/java/gradle/wrapper/gradle-wrapper.properties (100%) rename components/{ide-proxy/components => }/ide-metrics-api/java/gradlew (100%) rename components/{ide-proxy/components => }/ide-metrics-api/java/gradlew.bat (100%) rename components/{ide-proxy/components => }/ide-metrics-api/java/settings.gradle (100%) rename components/{ide-proxy/components => }/ide-metrics-api/java/src/main/java/io/gitpod/ide_metrics/api/Metrics.java (61%) rename components/{ide-proxy/components => }/ide-metrics-api/java/src/main/java/io/gitpod/ide_metrics/api/MetricsServiceGrpc.java (64%) rename components/{ide-proxy/components => }/ide-metrics-api/metrics.proto (54%) rename components/{ide-proxy/components => }/ide-metrics-api/third_party/google/api/annotations.proto (100%) rename components/{ide-proxy/components => }/ide-metrics-api/third_party/google/api/field_behavior.proto (100%) rename components/{ide-proxy/components => }/ide-metrics-api/third_party/google/api/http.proto (100%) rename components/{ide-proxy/components => }/ide-metrics-api/third_party/google/api/httpbody.proto (100%) rename components/{ide-proxy/components => }/ide-metrics-api/typescript-grpc/.gitignore (100%) rename components/{ide-proxy/components => }/ide-metrics-api/typescript-grpc/BUILD.yaml (64%) rename components/{ide-proxy/components => }/ide-metrics-api/typescript-grpc/build.sh (100%) rename components/{ide-proxy/components => }/ide-metrics-api/typescript-grpc/package.json (100%) rename components/{ide-proxy/components => }/ide-metrics-api/typescript-grpc/tsconfig.json (100%) rename components/{ide-proxy/components => }/ide-metrics-api/typescript-grpc/yarn.lock (100%) rename components/{ide-proxy/components => }/ide-metrics-api/typescript-grpcweb/.gitignore (100%) rename components/{ide-proxy/components => }/ide-metrics-api/typescript-grpcweb/BUILD.yaml (64%) rename components/{ide-proxy/components => }/ide-metrics-api/typescript-grpcweb/build.sh (100%) rename components/{ide-proxy/components => }/ide-metrics-api/typescript-grpcweb/package.json (100%) rename components/{ide-proxy/components => }/ide-metrics-api/typescript-grpcweb/tsconfig.json (100%) rename components/{ide-proxy/components => }/ide-metrics-api/typescript-grpcweb/yarn.lock (100%) rename components/{ide-proxy/components/ide-metrics-server => ide-metrics}/BUILD.yaml (69%) rename components/{ide-proxy/components/ide-metrics-server => ide-metrics}/cmd/root.go (100%) rename components/{ide-proxy/components/ide-metrics-server => ide-metrics}/cmd/run.go (100%) rename components/{ide-proxy/components/ide-metrics-server => ide-metrics}/go.mod (61%) rename components/{ide-proxy/components/ide-metrics-server => ide-metrics}/go.sum (76%) rename components/{ide-proxy/components/ide-metrics-server => ide-metrics}/leeway.Dockerfile (100%) rename components/{ide-proxy/components/ide-metrics-server => ide-metrics}/main.go (100%) rename components/{ide-proxy/components/ide-metrics-server => ide-metrics}/pkg/server/server.go (93%) rename components/{ide-proxy/components/ide-metrics-server => ide-metrics}/pkg/server/services.go (100%) delete mode 100644 components/ide-proxy/components/ide-metrics-api/go/go.mod delete mode 100644 components/ide-proxy/components/ide-metrics-api/go/metrics.pb.go diff --git a/components/ide-proxy/components/ide-metrics-api/.gitignore b/components/ide-metrics-api/.gitignore similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/.gitignore rename to components/ide-metrics-api/.gitignore diff --git a/components/ide-proxy/components/ide-metrics-api/BUILD.yaml b/components/ide-metrics-api/BUILD.yaml similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/BUILD.yaml rename to components/ide-metrics-api/BUILD.yaml diff --git a/components/ide-proxy/components/ide-metrics-api/generate.sh b/components/ide-metrics-api/generate.sh similarity index 89% rename from components/ide-proxy/components/ide-metrics-api/generate.sh rename to components/ide-metrics-api/generate.sh index 78f923970cd42f..68baefac47f897 100755 --- a/components/ide-proxy/components/ide-metrics-api/generate.sh +++ b/components/ide-metrics-api/generate.sh @@ -8,7 +8,7 @@ set -o errexit set -o nounset set -o pipefail -ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)/../../../../ +ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)/../../ COMPONENTS_DIR=$ROOT_DIR/components # include protoc bash functions @@ -50,7 +50,7 @@ local_java_protoc() { --java_out=java/src/main/java \ ./*.proto # remove trailing spaces - find "$COMPONENTS_DIR"/ide-proxy/components/ide-metrics-api/java/src/main/java/io/gitpod/ide_metrics/api -maxdepth 1 -name "*.java" -exec sed -i -e "s/[[:space:]]*$//" {} \; + find "$COMPONENTS_DIR"/ide-metrics-api/java/src/main/java/io/gitpod/ide_metrics/api -maxdepth 1 -name "*.java" -exec sed -i -e "s/[[:space:]]*$//" {} \; } install_dependencies diff --git a/components/ide-proxy/components/ide-metrics-api/go.mod b/components/ide-metrics-api/go.mod similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/go.mod rename to components/ide-metrics-api/go.mod diff --git a/components/ide-proxy/components/ide-metrics-api/go.sum b/components/ide-metrics-api/go.sum similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/go.sum rename to components/ide-metrics-api/go.sum diff --git a/components/ide-proxy/components/ide-metrics-api/go/BUILD.yaml b/components/ide-metrics-api/go/BUILD.yaml similarity index 78% rename from components/ide-proxy/components/ide-metrics-api/go/BUILD.yaml rename to components/ide-metrics-api/go/BUILD.yaml index edca21fc38ced8..15ffa79919aad9 100644 --- a/components/ide-proxy/components/ide-metrics-api/go/BUILD.yaml +++ b/components/ide-metrics-api/go/BUILD.yaml @@ -1,6 +1,8 @@ packages: - name: lib type: go + deps: + - components/common-go:lib srcs: - "**/*.go" - "go.mod" diff --git a/components/ide-proxy/components/ide-metrics-api/go/config/config.go b/components/ide-metrics-api/go/config/config.go similarity index 75% rename from components/ide-proxy/components/ide-metrics-api/go/config/config.go rename to components/ide-metrics-api/go/config/config.go index f74e3234d66180..64b9bd5287bf27 100644 --- a/components/ide-proxy/components/ide-metrics-api/go/config/config.go +++ b/components/ide-metrics-api/go/config/config.go @@ -10,12 +10,7 @@ import ( type ServiceConfiguration struct { Server struct { - Port int `json:"port"` - // TLS struct { - // CA string `json:"ca"` - // Certificate string `json:"crt"` - // PrivateKey string `json:"key"` - // } `json:"tls"` + Port int `json:"port"` RateLimits map[string]grpc.RateLimit `json:"ratelimits"` } `json:"server"` diff --git a/components/ide-metrics-api/go/go.mod b/components/ide-metrics-api/go/go.mod new file mode 100644 index 00000000000000..725c3c989766d9 --- /dev/null +++ b/components/ide-metrics-api/go/go.mod @@ -0,0 +1,34 @@ +module github.com/gitpod-io/gitpod/ide-metrics-api + +go 1.18 + +require ( + github.com/gitpod-io/gitpod/common-go v0.0.0-00010101000000-000000000000 + github.com/grpc-ecosystem/grpc-gateway/v2 v2.5.0 + google.golang.org/genproto v0.0.0-20210617175327-b9e0b3197ced + google.golang.org/grpc v1.45.0 + google.golang.org/protobuf v1.28.0 +) + +require ( + github.com/beorn7/perks v1.0.1 // indirect + github.com/cespare/xxhash/v2 v2.1.2 // indirect + github.com/golang/protobuf v1.5.2 // indirect + github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect + github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect + github.com/hashicorp/golang-lru v0.5.1 // indirect + github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect + github.com/opentracing/opentracing-go v1.2.0 // indirect + github.com/prometheus/client_golang v1.12.1 // indirect + github.com/prometheus/client_model v0.2.0 // indirect + github.com/prometheus/common v0.32.1 // indirect + github.com/prometheus/procfs v0.7.3 // indirect + github.com/sirupsen/logrus v1.8.1 // indirect + golang.org/x/net v0.0.0-20211209124913-491a49abca63 // indirect + golang.org/x/sys v0.0.0-20220114195835-da31bd327af9 // indirect + golang.org/x/text v0.3.7 // indirect + golang.org/x/time v0.0.0-20191024005414-555d28b269f0 // indirect + golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect +) + +replace github.com/gitpod-io/gitpod/common-go => ../../common-go // leeway diff --git a/components/ide-proxy/components/ide-metrics-api/go/go.sum b/components/ide-metrics-api/go/go.sum similarity index 76% rename from components/ide-proxy/components/ide-metrics-api/go/go.sum rename to components/ide-metrics-api/go/go.sum index d412fe351b437d..f7cf011dea3622 100644 --- a/components/ide-proxy/components/ide-metrics-api/go/go.sum +++ b/components/ide-metrics-api/go/go.sum @@ -33,9 +33,20 @@ cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9 dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= +github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= +github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= +github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= +github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE= +github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= @@ -47,6 +58,8 @@ github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWH github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= @@ -58,6 +71,16 @@ github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeME github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= +github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= +github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= +github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= +github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= +github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/glog v0.0.0-20210429001901-424d2337a529 h1:2voWjNECnrZRbfwXxHB1/j8wa6xdKn85B5NzgVL/pTU= github.com/golang/glog v0.0.0-20210429001901-424d2337a529/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= @@ -97,9 +120,11 @@ github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.7 h1:81/ik6ipDQS2aGcBfIN5dHDB36BwrStyeAQquSYCV4o= +github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= @@ -113,29 +138,92 @@ github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm4 github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 h1:+9834+KizmvFV7pXQGSXQTsaWhq2GjuNUt0aUU0YBYw= +github.com/grpc-ecosystem/go-grpc-middleware v1.3.0/go.mod h1:z0ButlSOZa5vEBq9m2m2hlwIgKw+rp3sdCBRoJY+30Y= +github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho= +github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= github.com/grpc-ecosystem/grpc-gateway/v2 v2.5.0 h1:ajue7SzQMywqRjg2fK7dcpc0QhFGpTR2plWfV4EZWR4= github.com/grpc-ecosystem/grpc-gateway/v2 v2.5.0/go.mod h1:r1hZAcvfFXuYmcKyCJI9wlyOPIZUJl6FCB8Cpca/NLE= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.1 h1:0hERBMJE1eitiLkihrMvRVBYAkpHzc/J3QdDN+dAcgU= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= +github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= +github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= +github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= +github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= +github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU= +github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= +github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= +github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs= +github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= +github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= +github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= +github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= +github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= +github.com/prometheus/client_golang v1.12.1 h1:ZiaPsmm9uiBeaSMRznKsCDNtPCS0T3JVDGF+06gjBzk= +github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= +github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= +github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M= +github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= +github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= +github.com/prometheus/common v0.32.1 h1:hWIdL3N2HoUx3B8j3YN9mWor0qhY/NlEKZEaXxuIRh4= +github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= +github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= +github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= +github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= +github.com/prometheus/procfs v0.7.3 h1:4jVXhlkAyzOScmCkXBTOLRLTz8EeU+eyjrwB/EPq0VU= +github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= +github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= +github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= +github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE= +github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= @@ -143,6 +231,10 @@ go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= +go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= +go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= +go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= +golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= @@ -182,6 +274,7 @@ golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 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-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= @@ -189,6 +282,7 @@ golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -206,13 +300,17 @@ golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/ golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 h1:4nGaVu0QrbjT/AK2PRLuQfQuh6DJve+pELhqTdAj3x0= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= +golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20211209124913-491a49abca63 h1:iocB37TsdFuN6IBRZ+ry36wrkoV51/tl5vOWqkcPGvY= +golang.org/x/net v0.0.0-20211209124913-491a49abca63/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210615190721-d04028783cf1/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -222,19 +320,26 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 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-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/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-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -247,21 +352,31 @@ golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/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-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220114195835-da31bd327af9 h1:XfKQ4OlFl8okEOr5UvAqFRVj8pY/4yfcXrddB8qAbU0= +golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.5 h1:i6eZZ+zk0SOf0xgBpEpPD18qWcJda6q1sxt3S0kzyUQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0 h1:/5xXl8Y5W96D+TtHSlonuFqGHIWVuyCkGJLwGh9JJFs= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 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= @@ -300,9 +415,11 @@ golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roY golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.3/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= @@ -352,6 +469,7 @@ google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfG google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200423170343-7949de9c1215/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= @@ -394,12 +512,20 @@ google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp0 google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.28.0 h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw= google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= +gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/components/ide-metrics-api/go/metrics.pb.go b/components/ide-metrics-api/go/metrics.pb.go new file mode 100644 index 00000000000000..7d0a8110bb1ed7 --- /dev/null +++ b/components/ide-metrics-api/go/metrics.pb.go @@ -0,0 +1,389 @@ +// Copyright (c) 2022 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License-AGPL.txt in the project root for license information. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.0 +// protoc v3.20.1 +// source: metrics.proto + +package api + +import ( + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type AddCounterRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *AddCounterRequest) Reset() { + *x = AddCounterRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_metrics_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AddCounterRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddCounterRequest) ProtoMessage() {} + +func (x *AddCounterRequest) ProtoReflect() protoreflect.Message { + mi := &file_metrics_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AddCounterRequest.ProtoReflect.Descriptor instead. +func (*AddCounterRequest) Descriptor() ([]byte, []int) { + return file_metrics_proto_rawDescGZIP(), []int{0} +} + +func (x *AddCounterRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *AddCounterRequest) GetLabels() map[string]string { + if x != nil { + return x.Labels + } + return nil +} + +type AddCounterResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *AddCounterResponse) Reset() { + *x = AddCounterResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_metrics_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AddCounterResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddCounterResponse) ProtoMessage() {} + +func (x *AddCounterResponse) ProtoReflect() protoreflect.Message { + mi := &file_metrics_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AddCounterResponse.ProtoReflect.Descriptor instead. +func (*AddCounterResponse) Descriptor() ([]byte, []int) { + return file_metrics_proto_rawDescGZIP(), []int{1} +} + +type ObserveHistogramRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Value float32 `protobuf:"fixed32,3,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *ObserveHistogramRequest) Reset() { + *x = ObserveHistogramRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_metrics_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ObserveHistogramRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ObserveHistogramRequest) ProtoMessage() {} + +func (x *ObserveHistogramRequest) ProtoReflect() protoreflect.Message { + mi := &file_metrics_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ObserveHistogramRequest.ProtoReflect.Descriptor instead. +func (*ObserveHistogramRequest) Descriptor() ([]byte, []int) { + return file_metrics_proto_rawDescGZIP(), []int{2} +} + +func (x *ObserveHistogramRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ObserveHistogramRequest) GetLabels() map[string]string { + if x != nil { + return x.Labels + } + return nil +} + +func (x *ObserveHistogramRequest) GetValue() float32 { + if x != nil { + return x.Value + } + return 0 +} + +type ObserveHistogramResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ObserveHistogramResponse) Reset() { + *x = ObserveHistogramResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_metrics_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ObserveHistogramResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ObserveHistogramResponse) ProtoMessage() {} + +func (x *ObserveHistogramResponse) ProtoReflect() protoreflect.Message { + mi := &file_metrics_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ObserveHistogramResponse.ProtoReflect.Descriptor instead. +func (*ObserveHistogramResponse) Descriptor() ([]byte, []int) { + return file_metrics_proto_rawDescGZIP(), []int{3} +} + +var File_metrics_proto protoreflect.FileDescriptor + +var file_metrics_proto_rawDesc = []byte{ + 0x0a, 0x0d, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0f, 0x69, 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x61, 0x70, 0x69, + 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, + 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xaa, + 0x01, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x46, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, + 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x69, 0x64, 0x65, 0x5f, 0x6d, + 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4c, 0x61, 0x62, + 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x14, 0x0a, 0x12, 0x41, + 0x64, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0xcc, 0x01, 0x0a, 0x17, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x48, 0x69, 0x73, + 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x4c, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x34, 0x2e, 0x69, 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, + 0x61, 0x70, 0x69, 0x2e, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, + 0x67, 0x72, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, + 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, + 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x22, 0x1a, 0x0a, 0x18, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, + 0x67, 0x72, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x9f, 0x02, 0x0a, + 0x0e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, + 0x76, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x22, 0x2e, + 0x69, 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x61, 0x70, 0x69, 0x2e, + 0x41, 0x64, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x23, 0x2e, 0x69, 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, + 0x61, 0x70, 0x69, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x22, 0x14, + 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x2f, 0x7b, 0x6e, + 0x61, 0x6d, 0x65, 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x94, 0x01, 0x0a, 0x10, 0x4f, 0x62, 0x73, 0x65, + 0x72, 0x76, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x12, 0x28, 0x2e, 0x69, + 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x4f, + 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x69, 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x74, + 0x72, 0x69, 0x63, 0x73, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, + 0x48, 0x69, 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x22, 0x20, 0x2f, 0x6f, 0x62, 0x73, 0x65, + 0x72, 0x76, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x2f, 0x7b, 0x6e, 0x61, + 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x7d, 0x3a, 0x01, 0x2a, 0x42, 0x48, + 0x0a, 0x19, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x69, 0x64, 0x65, 0x5f, + 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x5a, 0x2b, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, + 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x69, 0x64, 0x65, 0x2d, 0x6d, 0x65, 0x74, + 0x72, 0x69, 0x63, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_metrics_proto_rawDescOnce sync.Once + file_metrics_proto_rawDescData = file_metrics_proto_rawDesc +) + +func file_metrics_proto_rawDescGZIP() []byte { + file_metrics_proto_rawDescOnce.Do(func() { + file_metrics_proto_rawDescData = protoimpl.X.CompressGZIP(file_metrics_proto_rawDescData) + }) + return file_metrics_proto_rawDescData +} + +var file_metrics_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_metrics_proto_goTypes = []interface{}{ + (*AddCounterRequest)(nil), // 0: ide_metrics_api.AddCounterRequest + (*AddCounterResponse)(nil), // 1: ide_metrics_api.AddCounterResponse + (*ObserveHistogramRequest)(nil), // 2: ide_metrics_api.ObserveHistogramRequest + (*ObserveHistogramResponse)(nil), // 3: ide_metrics_api.ObserveHistogramResponse + nil, // 4: ide_metrics_api.AddCounterRequest.LabelsEntry + nil, // 5: ide_metrics_api.ObserveHistogramRequest.LabelsEntry +} +var file_metrics_proto_depIdxs = []int32{ + 4, // 0: ide_metrics_api.AddCounterRequest.labels:type_name -> ide_metrics_api.AddCounterRequest.LabelsEntry + 5, // 1: ide_metrics_api.ObserveHistogramRequest.labels:type_name -> ide_metrics_api.ObserveHistogramRequest.LabelsEntry + 0, // 2: ide_metrics_api.MetricsService.AddCounter:input_type -> ide_metrics_api.AddCounterRequest + 2, // 3: ide_metrics_api.MetricsService.ObserveHistogram:input_type -> ide_metrics_api.ObserveHistogramRequest + 1, // 4: ide_metrics_api.MetricsService.AddCounter:output_type -> ide_metrics_api.AddCounterResponse + 3, // 5: ide_metrics_api.MetricsService.ObserveHistogram:output_type -> ide_metrics_api.ObserveHistogramResponse + 4, // [4:6] is the sub-list for method output_type + 2, // [2:4] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_metrics_proto_init() } +func file_metrics_proto_init() { + if File_metrics_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_metrics_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddCounterRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_metrics_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddCounterResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_metrics_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ObserveHistogramRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_metrics_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ObserveHistogramResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_metrics_proto_rawDesc, + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_metrics_proto_goTypes, + DependencyIndexes: file_metrics_proto_depIdxs, + MessageInfos: file_metrics_proto_msgTypes, + }.Build() + File_metrics_proto = out.File + file_metrics_proto_rawDesc = nil + file_metrics_proto_goTypes = nil + file_metrics_proto_depIdxs = nil +} diff --git a/components/ide-proxy/components/ide-metrics-api/go/metrics.pb.gw.go b/components/ide-metrics-api/go/metrics.pb.gw.go similarity index 60% rename from components/ide-proxy/components/ide-metrics-api/go/metrics.pb.gw.go rename to components/ide-metrics-api/go/metrics.pb.gw.go index 0ec9e2a462ed6c..df0b4542bfb302 100644 --- a/components/ide-proxy/components/ide-metrics-api/go/metrics.pb.gw.go +++ b/components/ide-metrics-api/go/metrics.pb.gw.go @@ -35,8 +35,8 @@ var _ = runtime.String var _ = utilities.NewDoubleArray var _ = metadata.Join -func request_MetricsService_ReportMetric_0(ctx context.Context, marshaler runtime.Marshaler, client MetricsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ReportMetricsRequest +func request_MetricsService_AddCounter_0(ctx context.Context, marshaler runtime.Marshaler, client MetricsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AddCounterRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -64,13 +64,13 @@ func request_MetricsService_ReportMetric_0(ctx context.Context, marshaler runtim return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := client.ReportMetric(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.AddCounter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_MetricsService_ReportMetric_0(ctx context.Context, marshaler runtime.Marshaler, server MetricsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ReportMetricsRequest +func local_request_MetricsService_AddCounter_0(ctx context.Context, marshaler runtime.Marshaler, server MetricsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AddCounterRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -98,13 +98,13 @@ func local_request_MetricsService_ReportMetric_0(ctx context.Context, marshaler return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := server.ReportMetric(ctx, &protoReq) + msg, err := server.AddCounter(ctx, &protoReq) return msg, metadata, err } -func request_MetricsService_ReportLog_0(ctx context.Context, marshaler runtime.Marshaler, client MetricsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ReportMetricsRequest +func request_MetricsService_ObserveHistogram_0(ctx context.Context, marshaler runtime.Marshaler, client MetricsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ObserveHistogramRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -115,13 +115,40 @@ func request_MetricsService_ReportLog_0(ctx context.Context, marshaler runtime.M return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.ReportLog(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + val, ok = pathParams["value"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "value") + } + + protoReq.Value, err = runtime.Float32(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "value", err) + } + + msg, err := client.ObserveHistogram(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_MetricsService_ReportLog_0(ctx context.Context, marshaler runtime.Marshaler, server MetricsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ReportMetricsRequest +func local_request_MetricsService_ObserveHistogram_0(ctx context.Context, marshaler runtime.Marshaler, server MetricsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ObserveHistogramRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -132,7 +159,34 @@ func local_request_MetricsService_ReportLog_0(ctx context.Context, marshaler run return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.ReportLog(ctx, &protoReq) + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + val, ok = pathParams["value"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "value") + } + + protoReq.Value, err = runtime.Float32(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "value", err) + } + + msg, err := server.ObserveHistogram(ctx, &protoReq) return msg, metadata, err } @@ -143,19 +197,19 @@ func local_request_MetricsService_ReportLog_0(ctx context.Context, marshaler run // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterMetricsServiceHandlerFromEndpoint instead. func RegisterMetricsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MetricsServiceServer) error { - mux.Handle("POST", pattern_MetricsService_ReportMetric_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_MetricsService_AddCounter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/ide_metrics_api.MetricsService/ReportMetric", runtime.WithHTTPPathPattern("/reportMetric/{name}")) + ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/ide_metrics_api.MetricsService/AddCounter", runtime.WithHTTPPathPattern("/reportMetric/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_MetricsService_ReportMetric_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_MetricsService_AddCounter_0(ctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -163,23 +217,23 @@ func RegisterMetricsServiceHandlerServer(ctx context.Context, mux *runtime.Serve return } - forward_MetricsService_ReportMetric_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_MetricsService_AddCounter_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_MetricsService_ReportLog_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_MetricsService_ObserveHistogram_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/ide_metrics_api.MetricsService/ReportLog", runtime.WithHTTPPathPattern("/reportLog")) + ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/ide_metrics_api.MetricsService/ObserveHistogram", runtime.WithHTTPPathPattern("/observeHistogram/{name}/{value}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_MetricsService_ReportLog_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_MetricsService_ObserveHistogram_0(ctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -187,7 +241,7 @@ func RegisterMetricsServiceHandlerServer(ctx context.Context, mux *runtime.Serve return } - forward_MetricsService_ReportLog_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_MetricsService_ObserveHistogram_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -232,45 +286,45 @@ func RegisterMetricsServiceHandler(ctx context.Context, mux *runtime.ServeMux, c // "MetricsServiceClient" to call the correct interceptors. func RegisterMetricsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MetricsServiceClient) error { - mux.Handle("POST", pattern_MetricsService_ReportMetric_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_MetricsService_AddCounter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/ide_metrics_api.MetricsService/ReportMetric", runtime.WithHTTPPathPattern("/reportMetric/{name}")) + ctx, err = runtime.AnnotateContext(ctx, mux, req, "/ide_metrics_api.MetricsService/AddCounter", runtime.WithHTTPPathPattern("/reportMetric/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_MetricsService_ReportMetric_0(ctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_MetricsService_AddCounter_0(ctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_MetricsService_ReportMetric_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_MetricsService_AddCounter_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_MetricsService_ReportLog_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_MetricsService_ObserveHistogram_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/ide_metrics_api.MetricsService/ReportLog", runtime.WithHTTPPathPattern("/reportLog")) + ctx, err = runtime.AnnotateContext(ctx, mux, req, "/ide_metrics_api.MetricsService/ObserveHistogram", runtime.WithHTTPPathPattern("/observeHistogram/{name}/{value}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_MetricsService_ReportLog_0(ctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_MetricsService_ObserveHistogram_0(ctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_MetricsService_ReportLog_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_MetricsService_ObserveHistogram_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -278,13 +332,13 @@ func RegisterMetricsServiceHandlerClient(ctx context.Context, mux *runtime.Serve } var ( - pattern_MetricsService_ReportMetric_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"reportMetric", "name"}, "")) + pattern_MetricsService_AddCounter_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"reportMetric", "name"}, "")) - pattern_MetricsService_ReportLog_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"reportLog"}, "")) + pattern_MetricsService_ObserveHistogram_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 1, 0, 4, 1, 5, 2}, []string{"observeHistogram", "name", "value"}, "")) ) var ( - forward_MetricsService_ReportMetric_0 = runtime.ForwardResponseMessage + forward_MetricsService_AddCounter_0 = runtime.ForwardResponseMessage - forward_MetricsService_ReportLog_0 = runtime.ForwardResponseMessage + forward_MetricsService_ObserveHistogram_0 = runtime.ForwardResponseMessage ) diff --git a/components/ide-proxy/components/ide-metrics-api/go/metrics_grpc.pb.go b/components/ide-metrics-api/go/metrics_grpc.pb.go similarity index 57% rename from components/ide-proxy/components/ide-metrics-api/go/metrics_grpc.pb.go rename to components/ide-metrics-api/go/metrics_grpc.pb.go index aa98129428137d..df93cbd5d1e917 100644 --- a/components/ide-proxy/components/ide-metrics-api/go/metrics_grpc.pb.go +++ b/components/ide-metrics-api/go/metrics_grpc.pb.go @@ -26,8 +26,8 @@ const _ = grpc.SupportPackageIsVersion7 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type MetricsServiceClient interface { - ReportMetric(ctx context.Context, in *ReportMetricsRequest, opts ...grpc.CallOption) (*ReportMetricsResponse, error) - ReportLog(ctx context.Context, in *ReportMetricsRequest, opts ...grpc.CallOption) (*ReportMetricsResponse, error) + AddCounter(ctx context.Context, in *AddCounterRequest, opts ...grpc.CallOption) (*AddCounterResponse, error) + ObserveHistogram(ctx context.Context, in *ObserveHistogramRequest, opts ...grpc.CallOption) (*ObserveHistogramResponse, error) } type metricsServiceClient struct { @@ -38,18 +38,18 @@ func NewMetricsServiceClient(cc grpc.ClientConnInterface) MetricsServiceClient { return &metricsServiceClient{cc} } -func (c *metricsServiceClient) ReportMetric(ctx context.Context, in *ReportMetricsRequest, opts ...grpc.CallOption) (*ReportMetricsResponse, error) { - out := new(ReportMetricsResponse) - err := c.cc.Invoke(ctx, "/ide_metrics_api.MetricsService/ReportMetric", in, out, opts...) +func (c *metricsServiceClient) AddCounter(ctx context.Context, in *AddCounterRequest, opts ...grpc.CallOption) (*AddCounterResponse, error) { + out := new(AddCounterResponse) + err := c.cc.Invoke(ctx, "/ide_metrics_api.MetricsService/AddCounter", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *metricsServiceClient) ReportLog(ctx context.Context, in *ReportMetricsRequest, opts ...grpc.CallOption) (*ReportMetricsResponse, error) { - out := new(ReportMetricsResponse) - err := c.cc.Invoke(ctx, "/ide_metrics_api.MetricsService/reportLog", in, out, opts...) +func (c *metricsServiceClient) ObserveHistogram(ctx context.Context, in *ObserveHistogramRequest, opts ...grpc.CallOption) (*ObserveHistogramResponse, error) { + out := new(ObserveHistogramResponse) + err := c.cc.Invoke(ctx, "/ide_metrics_api.MetricsService/ObserveHistogram", in, out, opts...) if err != nil { return nil, err } @@ -60,8 +60,8 @@ func (c *metricsServiceClient) ReportLog(ctx context.Context, in *ReportMetricsR // All implementations must embed UnimplementedMetricsServiceServer // for forward compatibility type MetricsServiceServer interface { - ReportMetric(context.Context, *ReportMetricsRequest) (*ReportMetricsResponse, error) - ReportLog(context.Context, *ReportMetricsRequest) (*ReportMetricsResponse, error) + AddCounter(context.Context, *AddCounterRequest) (*AddCounterResponse, error) + ObserveHistogram(context.Context, *ObserveHistogramRequest) (*ObserveHistogramResponse, error) mustEmbedUnimplementedMetricsServiceServer() } @@ -69,11 +69,11 @@ type MetricsServiceServer interface { type UnimplementedMetricsServiceServer struct { } -func (UnimplementedMetricsServiceServer) ReportMetric(context.Context, *ReportMetricsRequest) (*ReportMetricsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReportMetric not implemented") +func (UnimplementedMetricsServiceServer) AddCounter(context.Context, *AddCounterRequest) (*AddCounterResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddCounter not implemented") } -func (UnimplementedMetricsServiceServer) ReportLog(context.Context, *ReportMetricsRequest) (*ReportMetricsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReportLog not implemented") +func (UnimplementedMetricsServiceServer) ObserveHistogram(context.Context, *ObserveHistogramRequest) (*ObserveHistogramResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ObserveHistogram not implemented") } func (UnimplementedMetricsServiceServer) mustEmbedUnimplementedMetricsServiceServer() {} @@ -88,38 +88,38 @@ func RegisterMetricsServiceServer(s grpc.ServiceRegistrar, srv MetricsServiceSer s.RegisterService(&MetricsService_ServiceDesc, srv) } -func _MetricsService_ReportMetric_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReportMetricsRequest) +func _MetricsService_AddCounter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddCounterRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MetricsServiceServer).ReportMetric(ctx, in) + return srv.(MetricsServiceServer).AddCounter(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/ide_metrics_api.MetricsService/ReportMetric", + FullMethod: "/ide_metrics_api.MetricsService/AddCounter", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MetricsServiceServer).ReportMetric(ctx, req.(*ReportMetricsRequest)) + return srv.(MetricsServiceServer).AddCounter(ctx, req.(*AddCounterRequest)) } return interceptor(ctx, in, info, handler) } -func _MetricsService_ReportLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReportMetricsRequest) +func _MetricsService_ObserveHistogram_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ObserveHistogramRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MetricsServiceServer).ReportLog(ctx, in) + return srv.(MetricsServiceServer).ObserveHistogram(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/ide_metrics_api.MetricsService/reportLog", + FullMethod: "/ide_metrics_api.MetricsService/ObserveHistogram", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MetricsServiceServer).ReportLog(ctx, req.(*ReportMetricsRequest)) + return srv.(MetricsServiceServer).ObserveHistogram(ctx, req.(*ObserveHistogramRequest)) } return interceptor(ctx, in, info, handler) } @@ -132,12 +132,12 @@ var MetricsService_ServiceDesc = grpc.ServiceDesc{ HandlerType: (*MetricsServiceServer)(nil), Methods: []grpc.MethodDesc{ { - MethodName: "ReportMetric", - Handler: _MetricsService_ReportMetric_Handler, + MethodName: "AddCounter", + Handler: _MetricsService_AddCounter_Handler, }, { - MethodName: "reportLog", - Handler: _MetricsService_ReportLog_Handler, + MethodName: "ObserveHistogram", + Handler: _MetricsService_ObserveHistogram_Handler, }, }, Streams: []grpc.StreamDesc{}, diff --git a/components/ide-proxy/components/ide-metrics-api/java/.classpath b/components/ide-metrics-api/java/.classpath similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/java/.classpath rename to components/ide-metrics-api/java/.classpath diff --git a/components/ide-proxy/components/ide-metrics-api/java/.gitattributes b/components/ide-metrics-api/java/.gitattributes similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/java/.gitattributes rename to components/ide-metrics-api/java/.gitattributes diff --git a/components/ide-proxy/components/ide-metrics-api/java/.gitignore b/components/ide-metrics-api/java/.gitignore similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/java/.gitignore rename to components/ide-metrics-api/java/.gitignore diff --git a/components/ide-proxy/components/ide-metrics-api/java/.project b/components/ide-metrics-api/java/.project similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/java/.project rename to components/ide-metrics-api/java/.project diff --git a/components/ide-proxy/components/ide-metrics-api/java/BUILD.yaml b/components/ide-metrics-api/java/BUILD.yaml similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/java/BUILD.yaml rename to components/ide-metrics-api/java/BUILD.yaml diff --git a/components/ide-proxy/components/ide-metrics-api/java/build.gradle b/components/ide-metrics-api/java/build.gradle similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/java/build.gradle rename to components/ide-metrics-api/java/build.gradle diff --git a/components/ide-proxy/components/ide-metrics-api/java/gradle.properties b/components/ide-metrics-api/java/gradle.properties similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/java/gradle.properties rename to components/ide-metrics-api/java/gradle.properties diff --git a/components/ide-proxy/components/ide-metrics-api/java/gradle/wrapper/gradle-wrapper.jar b/components/ide-metrics-api/java/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/java/gradle/wrapper/gradle-wrapper.jar rename to components/ide-metrics-api/java/gradle/wrapper/gradle-wrapper.jar diff --git a/components/ide-proxy/components/ide-metrics-api/java/gradle/wrapper/gradle-wrapper.properties b/components/ide-metrics-api/java/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/java/gradle/wrapper/gradle-wrapper.properties rename to components/ide-metrics-api/java/gradle/wrapper/gradle-wrapper.properties diff --git a/components/ide-proxy/components/ide-metrics-api/java/gradlew b/components/ide-metrics-api/java/gradlew similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/java/gradlew rename to components/ide-metrics-api/java/gradlew diff --git a/components/ide-proxy/components/ide-metrics-api/java/gradlew.bat b/components/ide-metrics-api/java/gradlew.bat similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/java/gradlew.bat rename to components/ide-metrics-api/java/gradlew.bat diff --git a/components/ide-proxy/components/ide-metrics-api/java/settings.gradle b/components/ide-metrics-api/java/settings.gradle similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/java/settings.gradle rename to components/ide-metrics-api/java/settings.gradle diff --git a/components/ide-proxy/components/ide-metrics-api/java/src/main/java/io/gitpod/ide_metrics/api/Metrics.java b/components/ide-metrics-api/java/src/main/java/io/gitpod/ide_metrics/api/Metrics.java similarity index 61% rename from components/ide-proxy/components/ide-metrics-api/java/src/main/java/io/gitpod/ide_metrics/api/Metrics.java rename to components/ide-metrics-api/java/src/main/java/io/gitpod/ide_metrics/api/Metrics.java index 7930f5930451c4..3d072aa6ab8e80 100644 --- a/components/ide-proxy/components/ide-metrics-api/java/src/main/java/io/gitpod/ide_metrics/api/Metrics.java +++ b/components/ide-metrics-api/java/src/main/java/io/gitpod/ide_metrics/api/Metrics.java @@ -18,161 +18,8 @@ public static void registerAllExtensions( registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } - /** - * Protobuf enum {@code ide_metrics_api.LogLevel} - */ - public enum LogLevel - implements com.google.protobuf.ProtocolMessageEnum { - /** - * Unknown = 0; - */ - Unknown(0), - /** - * Trace = 1; - */ - Trace(1), - /** - * Debug = 2; - */ - Debug(2), - /** - * Info = 3; - */ - Info(3), - /** - * Warning = 4; - */ - Warning(4), - /** - * Error = 5; - */ - Error(5), - /** - * Critical = 6; - */ - Critical(6), - UNRECOGNIZED(-1), - ; - - /** - * Unknown = 0; - */ - public static final int Unknown_VALUE = 0; - /** - * Trace = 1; - */ - public static final int Trace_VALUE = 1; - /** - * Debug = 2; - */ - public static final int Debug_VALUE = 2; - /** - * Info = 3; - */ - public static final int Info_VALUE = 3; - /** - * Warning = 4; - */ - public static final int Warning_VALUE = 4; - /** - * Error = 5; - */ - public static final int Error_VALUE = 5; - /** - * Critical = 6; - */ - public static final int Critical_VALUE = 6; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LogLevel valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static LogLevel forNumber(int value) { - switch (value) { - case 0: return Unknown; - case 1: return Trace; - case 2: return Debug; - case 3: return Info; - case 4: return Warning; - case 5: return Error; - case 6: return Critical; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - LogLevel> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LogLevel findValueByNumber(int number) { - return LogLevel.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return io.gitpod.ide_metrics.api.Metrics.getDescriptor().getEnumTypes().get(0); - } - - private static final LogLevel[] VALUES = values(); - - public static LogLevel valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private LogLevel(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:ide_metrics_api.LogLevel) - } - - public interface ReportMetricsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ide_metrics_api.ReportMetricsRequest) + public interface AddCounterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:ide_metrics_api.AddCounterRequest) com.google.protobuf.MessageOrBuilder { /** @@ -224,18 +71,18 @@ java.lang.String getLabelsOrThrow( java.lang.String key); } /** - * Protobuf type {@code ide_metrics_api.ReportMetricsRequest} + * Protobuf type {@code ide_metrics_api.AddCounterRequest} */ - public static final class ReportMetricsRequest extends + public static final class AddCounterRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ide_metrics_api.ReportMetricsRequest) - ReportMetricsRequestOrBuilder { + // @@protoc_insertion_point(message_implements:ide_metrics_api.AddCounterRequest) + AddCounterRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use ReportMetricsRequest.newBuilder() to construct. - private ReportMetricsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use AddCounterRequest.newBuilder() to construct. + private AddCounterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ReportMetricsRequest() { + private AddCounterRequest() { name_ = ""; } @@ -243,7 +90,7 @@ private ReportMetricsRequest() { @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new ReportMetricsRequest(); + return new AddCounterRequest(); } @java.lang.Override @@ -251,7 +98,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private ReportMetricsRequest( + private AddCounterRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -312,7 +159,7 @@ private ReportMetricsRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ReportMetricsRequest_descriptor; + return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_AddCounterRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -330,9 +177,9 @@ protected com.google.protobuf.MapField internalGetMapField( @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ReportMetricsRequest_fieldAccessorTable + return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_AddCounterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest.class, io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest.Builder.class); + io.gitpod.ide_metrics.api.Metrics.AddCounterRequest.class, io.gitpod.ide_metrics.api.Metrics.AddCounterRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @@ -379,7 +226,7 @@ private static final class LabelsDefaultEntryHolder { java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( - io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ReportMetricsRequest_LabelsEntry_descriptor, + io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_AddCounterRequest_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, @@ -509,10 +356,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest)) { + if (!(obj instanceof io.gitpod.ide_metrics.api.Metrics.AddCounterRequest)) { return super.equals(obj); } - io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest other = (io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest) obj; + io.gitpod.ide_metrics.api.Metrics.AddCounterRequest other = (io.gitpod.ide_metrics.api.Metrics.AddCounterRequest) obj; if (!getName() .equals(other.getName())) return false; @@ -540,69 +387,69 @@ public int hashCode() { return hash; } - public static io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.AddCounterRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.AddCounterRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.AddCounterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.AddCounterRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest parseFrom(byte[] data) + public static io.gitpod.ide_metrics.api.Metrics.AddCounterRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.AddCounterRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest parseFrom(java.io.InputStream input) + public static io.gitpod.ide_metrics.api.Metrics.AddCounterRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.AddCounterRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest parseDelimitedFrom(java.io.InputStream input) + public static io.gitpod.ide_metrics.api.Metrics.AddCounterRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest parseDelimitedFrom( + public static io.gitpod.ide_metrics.api.Metrics.AddCounterRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.AddCounterRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.AddCounterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -615,7 +462,7 @@ public static io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest prototype) { + public static Builder newBuilder(io.gitpod.ide_metrics.api.Metrics.AddCounterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -631,15 +478,15 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code ide_metrics_api.ReportMetricsRequest} + * Protobuf type {@code ide_metrics_api.AddCounterRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ide_metrics_api.ReportMetricsRequest) - io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:ide_metrics_api.AddCounterRequest) + io.gitpod.ide_metrics.api.Metrics.AddCounterRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ReportMetricsRequest_descriptor; + return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_AddCounterRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -667,12 +514,12 @@ protected com.google.protobuf.MapField internalGetMutableMapField( @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ReportMetricsRequest_fieldAccessorTable + return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_AddCounterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest.class, io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest.Builder.class); + io.gitpod.ide_metrics.api.Metrics.AddCounterRequest.class, io.gitpod.ide_metrics.api.Metrics.AddCounterRequest.Builder.class); } - // Construct using io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest.newBuilder() + // Construct using io.gitpod.ide_metrics.api.Metrics.AddCounterRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -699,17 +546,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ReportMetricsRequest_descriptor; + return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_AddCounterRequest_descriptor; } @java.lang.Override - public io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest getDefaultInstanceForType() { - return io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest.getDefaultInstance(); + public io.gitpod.ide_metrics.api.Metrics.AddCounterRequest getDefaultInstanceForType() { + return io.gitpod.ide_metrics.api.Metrics.AddCounterRequest.getDefaultInstance(); } @java.lang.Override - public io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest build() { - io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest result = buildPartial(); + public io.gitpod.ide_metrics.api.Metrics.AddCounterRequest build() { + io.gitpod.ide_metrics.api.Metrics.AddCounterRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -717,8 +564,8 @@ public io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest build() { } @java.lang.Override - public io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest buildPartial() { - io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest result = new io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest(this); + public io.gitpod.ide_metrics.api.Metrics.AddCounterRequest buildPartial() { + io.gitpod.ide_metrics.api.Metrics.AddCounterRequest result = new io.gitpod.ide_metrics.api.Metrics.AddCounterRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.labels_ = internalGetLabels(); @@ -761,16 +608,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest) { - return mergeFrom((io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest)other); + if (other instanceof io.gitpod.ide_metrics.api.Metrics.AddCounterRequest) { + return mergeFrom((io.gitpod.ide_metrics.api.Metrics.AddCounterRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest other) { - if (other == io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest.getDefaultInstance()) return this; + public Builder mergeFrom(io.gitpod.ide_metrics.api.Metrics.AddCounterRequest other) { + if (other == io.gitpod.ide_metrics.api.Metrics.AddCounterRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -792,11 +639,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest parsedMessage = null; + io.gitpod.ide_metrics.api.Metrics.AddCounterRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest) e.getUnfinishedMessage(); + parsedMessage = (io.gitpod.ide_metrics.api.Metrics.AddCounterRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1026,70 +873,70 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:ide_metrics_api.ReportMetricsRequest) + // @@protoc_insertion_point(builder_scope:ide_metrics_api.AddCounterRequest) } - // @@protoc_insertion_point(class_scope:ide_metrics_api.ReportMetricsRequest) - private static final io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:ide_metrics_api.AddCounterRequest) + private static final io.gitpod.ide_metrics.api.Metrics.AddCounterRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest(); + DEFAULT_INSTANCE = new io.gitpod.ide_metrics.api.Metrics.AddCounterRequest(); } - public static io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest getDefaultInstance() { + public static io.gitpod.ide_metrics.api.Metrics.AddCounterRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public ReportMetricsRequest parsePartialFrom( + public AddCounterRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ReportMetricsRequest(input, extensionRegistry); + return new AddCounterRequest(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest getDefaultInstanceForType() { + public io.gitpod.ide_metrics.api.Metrics.AddCounterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface ReportMetricsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ide_metrics_api.ReportMetricsResponse) + public interface AddCounterResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:ide_metrics_api.AddCounterResponse) com.google.protobuf.MessageOrBuilder { } /** - * Protobuf type {@code ide_metrics_api.ReportMetricsResponse} + * Protobuf type {@code ide_metrics_api.AddCounterResponse} */ - public static final class ReportMetricsResponse extends + public static final class AddCounterResponse extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ide_metrics_api.ReportMetricsResponse) - ReportMetricsResponseOrBuilder { + // @@protoc_insertion_point(message_implements:ide_metrics_api.AddCounterResponse) + AddCounterResponseOrBuilder { private static final long serialVersionUID = 0L; - // Use ReportMetricsResponse.newBuilder() to construct. - private ReportMetricsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use AddCounterResponse.newBuilder() to construct. + private AddCounterResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ReportMetricsResponse() { + private AddCounterResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new ReportMetricsResponse(); + return new AddCounterResponse(); } @java.lang.Override @@ -1097,7 +944,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private ReportMetricsResponse( + private AddCounterResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1138,15 +985,15 @@ private ReportMetricsResponse( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ReportMetricsResponse_descriptor; + return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_AddCounterResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ReportMetricsResponse_fieldAccessorTable + return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_AddCounterResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse.class, io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse.Builder.class); + io.gitpod.ide_metrics.api.Metrics.AddCounterResponse.class, io.gitpod.ide_metrics.api.Metrics.AddCounterResponse.Builder.class); } private byte memoizedIsInitialized = -1; @@ -1182,10 +1029,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse)) { + if (!(obj instanceof io.gitpod.ide_metrics.api.Metrics.AddCounterResponse)) { return super.equals(obj); } - io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse other = (io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse) obj; + io.gitpod.ide_metrics.api.Metrics.AddCounterResponse other = (io.gitpod.ide_metrics.api.Metrics.AddCounterResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1203,69 +1050,69 @@ public int hashCode() { return hash; } - public static io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.AddCounterResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.AddCounterResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.AddCounterResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.AddCounterResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse parseFrom(byte[] data) + public static io.gitpod.ide_metrics.api.Metrics.AddCounterResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.AddCounterResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse parseFrom(java.io.InputStream input) + public static io.gitpod.ide_metrics.api.Metrics.AddCounterResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.AddCounterResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse parseDelimitedFrom(java.io.InputStream input) + public static io.gitpod.ide_metrics.api.Metrics.AddCounterResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse parseDelimitedFrom( + public static io.gitpod.ide_metrics.api.Metrics.AddCounterResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.AddCounterResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.AddCounterResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1278,7 +1125,7 @@ public static io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse prototype) { + public static Builder newBuilder(io.gitpod.ide_metrics.api.Metrics.AddCounterResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -1294,26 +1141,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code ide_metrics_api.ReportMetricsResponse} + * Protobuf type {@code ide_metrics_api.AddCounterResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ide_metrics_api.ReportMetricsResponse) - io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponseOrBuilder { + // @@protoc_insertion_point(builder_implements:ide_metrics_api.AddCounterResponse) + io.gitpod.ide_metrics.api.Metrics.AddCounterResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ReportMetricsResponse_descriptor; + return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_AddCounterResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ReportMetricsResponse_fieldAccessorTable + return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_AddCounterResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse.class, io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse.Builder.class); + io.gitpod.ide_metrics.api.Metrics.AddCounterResponse.class, io.gitpod.ide_metrics.api.Metrics.AddCounterResponse.Builder.class); } - // Construct using io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse.newBuilder() + // Construct using io.gitpod.ide_metrics.api.Metrics.AddCounterResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1337,17 +1184,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ReportMetricsResponse_descriptor; + return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_AddCounterResponse_descriptor; } @java.lang.Override - public io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse getDefaultInstanceForType() { - return io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse.getDefaultInstance(); + public io.gitpod.ide_metrics.api.Metrics.AddCounterResponse getDefaultInstanceForType() { + return io.gitpod.ide_metrics.api.Metrics.AddCounterResponse.getDefaultInstance(); } @java.lang.Override - public io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse build() { - io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse result = buildPartial(); + public io.gitpod.ide_metrics.api.Metrics.AddCounterResponse build() { + io.gitpod.ide_metrics.api.Metrics.AddCounterResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1355,8 +1202,8 @@ public io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse build() { } @java.lang.Override - public io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse buildPartial() { - io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse result = new io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse(this); + public io.gitpod.ide_metrics.api.Metrics.AddCounterResponse buildPartial() { + io.gitpod.ide_metrics.api.Metrics.AddCounterResponse result = new io.gitpod.ide_metrics.api.Metrics.AddCounterResponse(this); onBuilt(); return result; } @@ -1395,16 +1242,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse) { - return mergeFrom((io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse)other); + if (other instanceof io.gitpod.ide_metrics.api.Metrics.AddCounterResponse) { + return mergeFrom((io.gitpod.ide_metrics.api.Metrics.AddCounterResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse other) { - if (other == io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse.getDefaultInstance()) return this; + public Builder mergeFrom(io.gitpod.ide_metrics.api.Metrics.AddCounterResponse other) { + if (other == io.gitpod.ide_metrics.api.Metrics.AddCounterResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1420,11 +1267,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse parsedMessage = null; + io.gitpod.ide_metrics.api.Metrics.AddCounterResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse) e.getUnfinishedMessage(); + parsedMessage = (io.gitpod.ide_metrics.api.Metrics.AddCounterResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1446,134 +1293,125 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:ide_metrics_api.ReportMetricsResponse) + // @@protoc_insertion_point(builder_scope:ide_metrics_api.AddCounterResponse) } - // @@protoc_insertion_point(class_scope:ide_metrics_api.ReportMetricsResponse) - private static final io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:ide_metrics_api.AddCounterResponse) + private static final io.gitpod.ide_metrics.api.Metrics.AddCounterResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse(); + DEFAULT_INSTANCE = new io.gitpod.ide_metrics.api.Metrics.AddCounterResponse(); } - public static io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse getDefaultInstance() { + public static io.gitpod.ide_metrics.api.Metrics.AddCounterResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public ReportMetricsResponse parsePartialFrom( + public AddCounterResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ReportMetricsResponse(input, extensionRegistry); + return new AddCounterResponse(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse getDefaultInstanceForType() { + public io.gitpod.ide_metrics.api.Metrics.AddCounterResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface ReportLogRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ide_metrics_api.ReportLogRequest) + public interface ObserveHistogramRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:ide_metrics_api.ObserveHistogramRequest) com.google.protobuf.MessageOrBuilder { /** - * string workspaceId = 1; - * @return The workspaceId. + * string name = 1; + * @return The name. */ - java.lang.String getWorkspaceId(); + java.lang.String getName(); /** - * string workspaceId = 1; - * @return The bytes for workspaceId. + * string name = 1; + * @return The bytes for name. */ com.google.protobuf.ByteString - getWorkspaceIdBytes(); + getNameBytes(); /** - * string instanceId = 2; - * @return The instanceId. - */ - java.lang.String getInstanceId(); - /** - * string instanceId = 2; - * @return The bytes for instanceId. + * map<string, string> labels = 2; */ - com.google.protobuf.ByteString - getInstanceIdBytes(); - + int getLabelsCount(); /** - * string component = 3; - * @return The component. + * map<string, string> labels = 2; */ - java.lang.String getComponent(); + boolean containsLabels( + java.lang.String key); /** - * string component = 3; - * @return The bytes for component. + * Use {@link #getLabelsMap()} instead. */ - com.google.protobuf.ByteString - getComponentBytes(); - + @java.lang.Deprecated + java.util.Map + getLabels(); /** - * .ide_metrics_api.LogLevel logLevel = 4; - * @return The enum numeric value on the wire for logLevel. + * map<string, string> labels = 2; */ - int getLogLevelValue(); + java.util.Map + getLabelsMap(); /** - * .ide_metrics_api.LogLevel logLevel = 4; - * @return The logLevel. + * map<string, string> labels = 2; */ - io.gitpod.ide_metrics.api.Metrics.LogLevel getLogLevel(); + /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); /** - * string content = 5; - * @return The content. + * map<string, string> labels = 2; */ - java.lang.String getContent(); + + java.lang.String getLabelsOrThrow( + java.lang.String key); + /** - * string content = 5; - * @return The bytes for content. + * float value = 3; + * @return The value. */ - com.google.protobuf.ByteString - getContentBytes(); + float getValue(); } /** - * Protobuf type {@code ide_metrics_api.ReportLogRequest} + * Protobuf type {@code ide_metrics_api.ObserveHistogramRequest} */ - public static final class ReportLogRequest extends + public static final class ObserveHistogramRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ide_metrics_api.ReportLogRequest) - ReportLogRequestOrBuilder { + // @@protoc_insertion_point(message_implements:ide_metrics_api.ObserveHistogramRequest) + ObserveHistogramRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use ReportLogRequest.newBuilder() to construct. - private ReportLogRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ObserveHistogramRequest.newBuilder() to construct. + private ObserveHistogramRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ReportLogRequest() { - workspaceId_ = ""; - instanceId_ = ""; - component_ = ""; - logLevel_ = 0; - content_ = ""; + private ObserveHistogramRequest() { + name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new ReportLogRequest(); + return new ObserveHistogramRequest(); } @java.lang.Override @@ -1581,7 +1419,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private ReportLogRequest( + private ObserveHistogramRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1589,6 +1427,7 @@ private ReportLogRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -1602,31 +1441,25 @@ private ReportLogRequest( case 10: { java.lang.String s = input.readStringRequireUtf8(); - workspaceId_ = s; + name_ = s; break; } case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - instanceId_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - component_ = s; - break; - } - case 32: { - int rawValue = input.readEnum(); - - logLevel_ = rawValue; + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); break; } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + case 29: { - content_ = s; + value_ = input.readFloat(); break; } default: { @@ -1652,186 +1485,157 @@ private ReportLogRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ReportLogRequest_descriptor; + return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ObserveHistogramRequest_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ReportLogRequest_fieldAccessorTable + return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ObserveHistogramRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.gitpod.ide_metrics.api.Metrics.ReportLogRequest.class, io.gitpod.ide_metrics.api.Metrics.ReportLogRequest.Builder.class); + io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest.class, io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest.Builder.class); } - public static final int WORKSPACEID_FIELD_NUMBER = 1; - private volatile java.lang.Object workspaceId_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; /** - * string workspaceId = 1; - * @return The workspaceId. + * string name = 1; + * @return The name. */ @java.lang.Override - public java.lang.String getWorkspaceId() { - java.lang.Object ref = workspaceId_; + public java.lang.String getName() { + java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - workspaceId_ = s; + name_ = s; return s; } } /** - * string workspaceId = 1; - * @return The bytes for workspaceId. + * string name = 1; + * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString - getWorkspaceIdBytes() { - java.lang.Object ref = workspaceId_; + getNameBytes() { + java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - workspaceId_ = b; + name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int INSTANCEID_FIELD_NUMBER = 2; - private volatile java.lang.Object instanceId_; - /** - * string instanceId = 2; - * @return The instanceId. - */ - @java.lang.Override - public java.lang.String getInstanceId() { - java.lang.Object ref = instanceId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceId_ = s; - return s; - } + public static final int LABELS_FIELD_NUMBER = 2; + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ObserveHistogramRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - /** - * string instanceId = 2; - * @return The bytes for instanceId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getInstanceIdBytes() { - java.lang.Object ref = instanceId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - instanceId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } + return labels_; } - public static final int COMPONENT_FIELD_NUMBER = 3; - private volatile java.lang.Object component_; + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } /** - * string component = 3; - * @return The component. + * map<string, string> labels = 2; */ + @java.lang.Override - public java.lang.String getComponent() { - java.lang.Object ref = component_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - component_ = s; - return s; - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); } /** - * string component = 3; - * @return The bytes for component. + * Use {@link #getLabelsMap()} instead. */ @java.lang.Override - public com.google.protobuf.ByteString - getComponentBytes() { - java.lang.Object ref = component_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - component_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); } - - public static final int LOGLEVEL_FIELD_NUMBER = 4; - private int logLevel_; /** - * .ide_metrics_api.LogLevel logLevel = 4; - * @return The enum numeric value on the wire for logLevel. + * map<string, string> labels = 2; */ - @java.lang.Override public int getLogLevelValue() { - return logLevel_; + @java.lang.Override + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); } /** - * .ide_metrics_api.LogLevel logLevel = 4; - * @return The logLevel. + * map<string, string> labels = 2; */ - @java.lang.Override public io.gitpod.ide_metrics.api.Metrics.LogLevel getLogLevel() { - @SuppressWarnings("deprecation") - io.gitpod.ide_metrics.api.Metrics.LogLevel result = io.gitpod.ide_metrics.api.Metrics.LogLevel.valueOf(logLevel_); - return result == null ? io.gitpod.ide_metrics.api.Metrics.LogLevel.UNRECOGNIZED : result; - } + @java.lang.Override - public static final int CONTENT_FIELD_NUMBER = 5; - private volatile java.lang.Object content_; + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } /** - * string content = 5; - * @return The content. + * map<string, string> labels = 2; */ @java.lang.Override - public java.lang.String getContent() { - java.lang.Object ref = content_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - content_ = s; - return s; + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } + return map.get(key); } + + public static final int VALUE_FIELD_NUMBER = 3; + private float value_; /** - * string content = 5; - * @return The bytes for content. + * float value = 3; + * @return The value. */ @java.lang.Override - public com.google.protobuf.ByteString - getContentBytes() { - java.lang.Object ref = content_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - content_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public float getValue() { + return value_; } private byte memoizedIsInitialized = -1; @@ -1848,20 +1652,17 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workspaceId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, workspaceId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(component_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, component_); - } - if (logLevel_ != io.gitpod.ide_metrics.api.Metrics.LogLevel.Unknown.getNumber()) { - output.writeEnum(4, logLevel_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, content_); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 2); + if (java.lang.Float.floatToRawIntBits(value_) != 0) { + output.writeFloat(3, value_); } unknownFields.writeTo(output); } @@ -1872,21 +1673,22 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workspaceId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, workspaceId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(component_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, component_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (logLevel_ != io.gitpod.ide_metrics.api.Metrics.LogLevel.Unknown.getNumber()) { + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, logLevel_); + .computeMessageSize(2, labels__); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, content_); + if (java.lang.Float.floatToRawIntBits(value_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1898,20 +1700,18 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.gitpod.ide_metrics.api.Metrics.ReportLogRequest)) { + if (!(obj instanceof io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest)) { return super.equals(obj); } - io.gitpod.ide_metrics.api.Metrics.ReportLogRequest other = (io.gitpod.ide_metrics.api.Metrics.ReportLogRequest) obj; - - if (!getWorkspaceId() - .equals(other.getWorkspaceId())) return false; - if (!getInstanceId() - .equals(other.getInstanceId())) return false; - if (!getComponent() - .equals(other.getComponent())) return false; - if (logLevel_ != other.logLevel_) return false; - if (!getContent() - .equals(other.getContent())) return false; + io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest other = (io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (java.lang.Float.floatToIntBits(getValue()) + != java.lang.Float.floatToIntBits( + other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1923,84 +1723,83 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + WORKSPACEID_FIELD_NUMBER; - hash = (53 * hash) + getWorkspaceId().hashCode(); - hash = (37 * hash) + INSTANCEID_FIELD_NUMBER; - hash = (53 * hash) + getInstanceId().hashCode(); - hash = (37 * hash) + COMPONENT_FIELD_NUMBER; - hash = (53 * hash) + getComponent().hashCode(); - hash = (37 * hash) + LOGLEVEL_FIELD_NUMBER; - hash = (53 * hash) + logLevel_; - hash = (37 * hash) + CONTENT_FIELD_NUMBER; - hash = (53 * hash) + getContent().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getValue()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.gitpod.ide_metrics.api.Metrics.ReportLogRequest parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.gitpod.ide_metrics.api.Metrics.ReportLogRequest parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.gitpod.ide_metrics.api.Metrics.ReportLogRequest parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.gitpod.ide_metrics.api.Metrics.ReportLogRequest parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.gitpod.ide_metrics.api.Metrics.ReportLogRequest parseFrom(byte[] data) + public static io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.gitpod.ide_metrics.api.Metrics.ReportLogRequest parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.gitpod.ide_metrics.api.Metrics.ReportLogRequest parseFrom(java.io.InputStream input) + public static io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.gitpod.ide_metrics.api.Metrics.ReportLogRequest parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.gitpod.ide_metrics.api.Metrics.ReportLogRequest parseDelimitedFrom(java.io.InputStream input) + public static io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.gitpod.ide_metrics.api.Metrics.ReportLogRequest parseDelimitedFrom( + public static io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.gitpod.ide_metrics.api.Metrics.ReportLogRequest parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.gitpod.ide_metrics.api.Metrics.ReportLogRequest parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2013,7 +1812,7 @@ public static io.gitpod.ide_metrics.api.Metrics.ReportLogRequest parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.gitpod.ide_metrics.api.Metrics.ReportLogRequest prototype) { + public static Builder newBuilder(io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -2029,26 +1828,48 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code ide_metrics_api.ReportLogRequest} + * Protobuf type {@code ide_metrics_api.ObserveHistogramRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ide_metrics_api.ReportLogRequest) - io.gitpod.ide_metrics.api.Metrics.ReportLogRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:ide_metrics_api.ObserveHistogramRequest) + io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ReportLogRequest_descriptor; + return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ObserveHistogramRequest_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 2: + return internalGetMutableLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ReportLogRequest_fieldAccessorTable + return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ObserveHistogramRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.gitpod.ide_metrics.api.Metrics.ReportLogRequest.class, io.gitpod.ide_metrics.api.Metrics.ReportLogRequest.Builder.class); + io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest.class, io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest.Builder.class); } - // Construct using io.gitpod.ide_metrics.api.Metrics.ReportLogRequest.newBuilder() + // Construct using io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -2066,15 +1887,10 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - workspaceId_ = ""; - - instanceId_ = ""; - - component_ = ""; - - logLevel_ = 0; + name_ = ""; - content_ = ""; + internalGetMutableLabels().clear(); + value_ = 0F; return this; } @@ -2082,17 +1898,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ReportLogRequest_descriptor; + return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ObserveHistogramRequest_descriptor; } @java.lang.Override - public io.gitpod.ide_metrics.api.Metrics.ReportLogRequest getDefaultInstanceForType() { - return io.gitpod.ide_metrics.api.Metrics.ReportLogRequest.getDefaultInstance(); + public io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest getDefaultInstanceForType() { + return io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest.getDefaultInstance(); } @java.lang.Override - public io.gitpod.ide_metrics.api.Metrics.ReportLogRequest build() { - io.gitpod.ide_metrics.api.Metrics.ReportLogRequest result = buildPartial(); + public io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest build() { + io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2100,13 +1916,13 @@ public io.gitpod.ide_metrics.api.Metrics.ReportLogRequest build() { } @java.lang.Override - public io.gitpod.ide_metrics.api.Metrics.ReportLogRequest buildPartial() { - io.gitpod.ide_metrics.api.Metrics.ReportLogRequest result = new io.gitpod.ide_metrics.api.Metrics.ReportLogRequest(this); - result.workspaceId_ = workspaceId_; - result.instanceId_ = instanceId_; - result.component_ = component_; - result.logLevel_ = logLevel_; - result.content_ = content_; + public io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest buildPartial() { + io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest result = new io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.value_ = value_; onBuilt(); return result; } @@ -2145,34 +1961,24 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.gitpod.ide_metrics.api.Metrics.ReportLogRequest) { - return mergeFrom((io.gitpod.ide_metrics.api.Metrics.ReportLogRequest)other); + if (other instanceof io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest) { + return mergeFrom((io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.gitpod.ide_metrics.api.Metrics.ReportLogRequest other) { - if (other == io.gitpod.ide_metrics.api.Metrics.ReportLogRequest.getDefaultInstance()) return this; - if (!other.getWorkspaceId().isEmpty()) { - workspaceId_ = other.workspaceId_; - onChanged(); - } - if (!other.getInstanceId().isEmpty()) { - instanceId_ = other.instanceId_; - onChanged(); - } - if (!other.getComponent().isEmpty()) { - component_ = other.component_; + public Builder mergeFrom(io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest other) { + if (other == io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; onChanged(); } - if (other.logLevel_ != 0) { - setLogLevelValue(other.getLogLevelValue()); - } - if (!other.getContent().isEmpty()) { - content_ = other.content_; - onChanged(); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + if (other.getValue() != 0F) { + setValue(other.getValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -2189,11 +1995,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.gitpod.ide_metrics.api.Metrics.ReportLogRequest parsedMessage = null; + io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.gitpod.ide_metrics.api.Metrics.ReportLogRequest) e.getUnfinishedMessage(); + parsedMessage = (io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2202,361 +2008,242 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.lang.Object workspaceId_ = ""; + private java.lang.Object name_ = ""; /** - * string workspaceId = 1; - * @return The workspaceId. + * string name = 1; + * @return The name. */ - public java.lang.String getWorkspaceId() { - java.lang.Object ref = workspaceId_; + public java.lang.String getName() { + java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - workspaceId_ = s; + name_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string workspaceId = 1; - * @return The bytes for workspaceId. + * string name = 1; + * @return The bytes for name. */ public com.google.protobuf.ByteString - getWorkspaceIdBytes() { - java.lang.Object ref = workspaceId_; + getNameBytes() { + java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - workspaceId_ = b; + name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string workspaceId = 1; - * @param value The workspaceId to set. + * string name = 1; + * @param value The name to set. * @return This builder for chaining. */ - public Builder setWorkspaceId( + public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - workspaceId_ = value; + name_ = value; onChanged(); return this; } /** - * string workspaceId = 1; + * string name = 1; * @return This builder for chaining. */ - public Builder clearWorkspaceId() { + public Builder clearName() { - workspaceId_ = getDefaultInstance().getWorkspaceId(); + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * string workspaceId = 1; - * @param value The bytes for workspaceId to set. + * string name = 1; + * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setWorkspaceIdBytes( + public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - workspaceId_ = value; + name_ = value; onChanged(); return this; } - private java.lang.Object instanceId_ = ""; - /** - * string instanceId = 2; - * @return The instanceId. - */ - public java.lang.String getInstanceId() { - java.lang.Object ref = instanceId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceId_ = s; - return s; - } else { - return (java.lang.String) ref; + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } + return labels_; } - /** - * string instanceId = 2; - * @return The bytes for instanceId. - */ - public com.google.protobuf.ByteString - getInstanceIdBytes() { - java.lang.Object ref = instanceId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - instanceId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged();; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); } + return labels_; } - /** - * string instanceId = 2; - * @param value The instanceId to set. - * @return This builder for chaining. - */ - public Builder setInstanceId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - instanceId_ = value; - onChanged(); - return this; + public int getLabelsCount() { + return internalGetLabels().getMap().size(); } /** - * string instanceId = 2; - * @return This builder for chaining. + * map<string, string> labels = 2; */ - public Builder clearInstanceId() { - instanceId_ = getDefaultInstance().getInstanceId(); - onChanged(); - return this; - } - /** - * string instanceId = 2; - * @param value The bytes for instanceId to set. - * @return This builder for chaining. - */ - public Builder setInstanceIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - instanceId_ = value; - onChanged(); - return this; - } - - private java.lang.Object component_ = ""; - /** - * string component = 3; - * @return The component. - */ - public java.lang.String getComponent() { - java.lang.Object ref = component_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - component_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); } /** - * string component = 3; - * @return The bytes for component. + * Use {@link #getLabelsMap()} instead. */ - public com.google.protobuf.ByteString - getComponentBytes() { - java.lang.Object ref = component_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - component_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); } /** - * string component = 3; - * @param value The component to set. - * @return This builder for chaining. + * map<string, string> labels = 2; */ - public Builder setComponent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + @java.lang.Override - component_ = value; - onChanged(); - return this; + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); } /** - * string component = 3; - * @return This builder for chaining. + * map<string, string> labels = 2; */ - public Builder clearComponent() { + @java.lang.Override - component_ = getDefaultInstance().getComponent(); - onChanged(); - return this; + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * string component = 3; - * @param value The bytes for component to set. - * @return This builder for chaining. + * map<string, string> labels = 2; */ - public Builder setComponentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + @java.lang.Override - component_ = value; - onChanged(); - return this; + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); } - private int logLevel_ = 0; - /** - * .ide_metrics_api.LogLevel logLevel = 4; - * @return The enum numeric value on the wire for logLevel. - */ - @java.lang.Override public int getLogLevelValue() { - return logLevel_; + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap() + .clear(); + return this; } /** - * .ide_metrics_api.LogLevel logLevel = 4; - * @param value The enum numeric value on the wire for logLevel to set. - * @return This builder for chaining. + * map<string, string> labels = 2; */ - public Builder setLogLevelValue(int value) { - logLevel_ = value; - onChanged(); + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } /** - * .ide_metrics_api.LogLevel logLevel = 4; - * @return The logLevel. + * Use alternate mutation accessors instead. */ - @java.lang.Override - public io.gitpod.ide_metrics.api.Metrics.LogLevel getLogLevel() { - @SuppressWarnings("deprecation") - io.gitpod.ide_metrics.api.Metrics.LogLevel result = io.gitpod.ide_metrics.api.Metrics.LogLevel.valueOf(logLevel_); - return result == null ? io.gitpod.ide_metrics.api.Metrics.LogLevel.UNRECOGNIZED : result; + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); } /** - * .ide_metrics_api.LogLevel logLevel = 4; - * @param value The logLevel to set. - * @return This builder for chaining. + * map<string, string> labels = 2; */ - public Builder setLogLevel(io.gitpod.ide_metrics.api.Metrics.LogLevel value) { + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException(); - } + throw new NullPointerException("map value"); +} - logLevel_ = value.getNumber(); - onChanged(); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * .ide_metrics_api.LogLevel logLevel = 4; - * @return This builder for chaining. + * map<string, string> labels = 2; */ - public Builder clearLogLevel() { - logLevel_ = 0; - onChanged(); + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } - private java.lang.Object content_ = ""; + private float value_ ; /** - * string content = 5; - * @return The content. + * float value = 3; + * @return The value. */ - public java.lang.String getContent() { - java.lang.Object ref = content_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - content_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string content = 5; - * @return The bytes for content. - */ - public com.google.protobuf.ByteString - getContentBytes() { - java.lang.Object ref = content_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - content_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string content = 5; - * @param value The content to set. - * @return This builder for chaining. - */ - public Builder setContent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - content_ = value; - onChanged(); - return this; + @java.lang.Override + public float getValue() { + return value_; } /** - * string content = 5; + * float value = 3; + * @param value The value to set. * @return This builder for chaining. */ - public Builder clearContent() { + public Builder setValue(float value) { - content_ = getDefaultInstance().getContent(); + value_ = value; onChanged(); return this; } /** - * string content = 5; - * @param value The bytes for content to set. + * float value = 3; * @return This builder for chaining. */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public Builder clearValue() { - content_ = value; + value_ = 0F; onChanged(); return this; } @@ -2573,70 +2260,70 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:ide_metrics_api.ReportLogRequest) + // @@protoc_insertion_point(builder_scope:ide_metrics_api.ObserveHistogramRequest) } - // @@protoc_insertion_point(class_scope:ide_metrics_api.ReportLogRequest) - private static final io.gitpod.ide_metrics.api.Metrics.ReportLogRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:ide_metrics_api.ObserveHistogramRequest) + private static final io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.gitpod.ide_metrics.api.Metrics.ReportLogRequest(); + DEFAULT_INSTANCE = new io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest(); } - public static io.gitpod.ide_metrics.api.Metrics.ReportLogRequest getDefaultInstance() { + public static io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public ReportLogRequest parsePartialFrom( + public ObserveHistogramRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ReportLogRequest(input, extensionRegistry); + return new ObserveHistogramRequest(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.gitpod.ide_metrics.api.Metrics.ReportLogRequest getDefaultInstanceForType() { + public io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface ReportLogResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ide_metrics_api.ReportLogResponse) + public interface ObserveHistogramResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:ide_metrics_api.ObserveHistogramResponse) com.google.protobuf.MessageOrBuilder { } /** - * Protobuf type {@code ide_metrics_api.ReportLogResponse} + * Protobuf type {@code ide_metrics_api.ObserveHistogramResponse} */ - public static final class ReportLogResponse extends + public static final class ObserveHistogramResponse extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ide_metrics_api.ReportLogResponse) - ReportLogResponseOrBuilder { + // @@protoc_insertion_point(message_implements:ide_metrics_api.ObserveHistogramResponse) + ObserveHistogramResponseOrBuilder { private static final long serialVersionUID = 0L; - // Use ReportLogResponse.newBuilder() to construct. - private ReportLogResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ObserveHistogramResponse.newBuilder() to construct. + private ObserveHistogramResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ReportLogResponse() { + private ObserveHistogramResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new ReportLogResponse(); + return new ObserveHistogramResponse(); } @java.lang.Override @@ -2644,7 +2331,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private ReportLogResponse( + private ObserveHistogramResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2685,15 +2372,15 @@ private ReportLogResponse( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ReportLogResponse_descriptor; + return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ObserveHistogramResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ReportLogResponse_fieldAccessorTable + return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ObserveHistogramResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.gitpod.ide_metrics.api.Metrics.ReportLogResponse.class, io.gitpod.ide_metrics.api.Metrics.ReportLogResponse.Builder.class); + io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse.class, io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse.Builder.class); } private byte memoizedIsInitialized = -1; @@ -2729,10 +2416,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.gitpod.ide_metrics.api.Metrics.ReportLogResponse)) { + if (!(obj instanceof io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse)) { return super.equals(obj); } - io.gitpod.ide_metrics.api.Metrics.ReportLogResponse other = (io.gitpod.ide_metrics.api.Metrics.ReportLogResponse) obj; + io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse other = (io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -2750,69 +2437,69 @@ public int hashCode() { return hash; } - public static io.gitpod.ide_metrics.api.Metrics.ReportLogResponse parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.gitpod.ide_metrics.api.Metrics.ReportLogResponse parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.gitpod.ide_metrics.api.Metrics.ReportLogResponse parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.gitpod.ide_metrics.api.Metrics.ReportLogResponse parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.gitpod.ide_metrics.api.Metrics.ReportLogResponse parseFrom(byte[] data) + public static io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.gitpod.ide_metrics.api.Metrics.ReportLogResponse parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.gitpod.ide_metrics.api.Metrics.ReportLogResponse parseFrom(java.io.InputStream input) + public static io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.gitpod.ide_metrics.api.Metrics.ReportLogResponse parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.gitpod.ide_metrics.api.Metrics.ReportLogResponse parseDelimitedFrom(java.io.InputStream input) + public static io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.gitpod.ide_metrics.api.Metrics.ReportLogResponse parseDelimitedFrom( + public static io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.gitpod.ide_metrics.api.Metrics.ReportLogResponse parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.gitpod.ide_metrics.api.Metrics.ReportLogResponse parseFrom( + public static io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2825,7 +2512,7 @@ public static io.gitpod.ide_metrics.api.Metrics.ReportLogResponse parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.gitpod.ide_metrics.api.Metrics.ReportLogResponse prototype) { + public static Builder newBuilder(io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -2841,26 +2528,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code ide_metrics_api.ReportLogResponse} + * Protobuf type {@code ide_metrics_api.ObserveHistogramResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ide_metrics_api.ReportLogResponse) - io.gitpod.ide_metrics.api.Metrics.ReportLogResponseOrBuilder { + // @@protoc_insertion_point(builder_implements:ide_metrics_api.ObserveHistogramResponse) + io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ReportLogResponse_descriptor; + return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ObserveHistogramResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ReportLogResponse_fieldAccessorTable + return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ObserveHistogramResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.gitpod.ide_metrics.api.Metrics.ReportLogResponse.class, io.gitpod.ide_metrics.api.Metrics.ReportLogResponse.Builder.class); + io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse.class, io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse.Builder.class); } - // Construct using io.gitpod.ide_metrics.api.Metrics.ReportLogResponse.newBuilder() + // Construct using io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -2884,17 +2571,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ReportLogResponse_descriptor; + return io.gitpod.ide_metrics.api.Metrics.internal_static_ide_metrics_api_ObserveHistogramResponse_descriptor; } @java.lang.Override - public io.gitpod.ide_metrics.api.Metrics.ReportLogResponse getDefaultInstanceForType() { - return io.gitpod.ide_metrics.api.Metrics.ReportLogResponse.getDefaultInstance(); + public io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse getDefaultInstanceForType() { + return io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse.getDefaultInstance(); } @java.lang.Override - public io.gitpod.ide_metrics.api.Metrics.ReportLogResponse build() { - io.gitpod.ide_metrics.api.Metrics.ReportLogResponse result = buildPartial(); + public io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse build() { + io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2902,8 +2589,8 @@ public io.gitpod.ide_metrics.api.Metrics.ReportLogResponse build() { } @java.lang.Override - public io.gitpod.ide_metrics.api.Metrics.ReportLogResponse buildPartial() { - io.gitpod.ide_metrics.api.Metrics.ReportLogResponse result = new io.gitpod.ide_metrics.api.Metrics.ReportLogResponse(this); + public io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse buildPartial() { + io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse result = new io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse(this); onBuilt(); return result; } @@ -2942,16 +2629,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.gitpod.ide_metrics.api.Metrics.ReportLogResponse) { - return mergeFrom((io.gitpod.ide_metrics.api.Metrics.ReportLogResponse)other); + if (other instanceof io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse) { + return mergeFrom((io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.gitpod.ide_metrics.api.Metrics.ReportLogResponse other) { - if (other == io.gitpod.ide_metrics.api.Metrics.ReportLogResponse.getDefaultInstance()) return this; + public Builder mergeFrom(io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse other) { + if (other == io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2967,11 +2654,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.gitpod.ide_metrics.api.Metrics.ReportLogResponse parsedMessage = null; + io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.gitpod.ide_metrics.api.Metrics.ReportLogResponse) e.getUnfinishedMessage(); + parsedMessage = (io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2993,71 +2680,76 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:ide_metrics_api.ReportLogResponse) + // @@protoc_insertion_point(builder_scope:ide_metrics_api.ObserveHistogramResponse) } - // @@protoc_insertion_point(class_scope:ide_metrics_api.ReportLogResponse) - private static final io.gitpod.ide_metrics.api.Metrics.ReportLogResponse DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:ide_metrics_api.ObserveHistogramResponse) + private static final io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.gitpod.ide_metrics.api.Metrics.ReportLogResponse(); + DEFAULT_INSTANCE = new io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse(); } - public static io.gitpod.ide_metrics.api.Metrics.ReportLogResponse getDefaultInstance() { + public static io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public ReportLogResponse parsePartialFrom( + public ObserveHistogramResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ReportLogResponse(input, extensionRegistry); + return new ObserveHistogramResponse(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.gitpod.ide_metrics.api.Metrics.ReportLogResponse getDefaultInstanceForType() { + public io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ide_metrics_api_ReportMetricsRequest_descriptor; + internal_static_ide_metrics_api_AddCounterRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ide_metrics_api_ReportMetricsRequest_fieldAccessorTable; + internal_static_ide_metrics_api_AddCounterRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ide_metrics_api_ReportMetricsRequest_LabelsEntry_descriptor; + internal_static_ide_metrics_api_AddCounterRequest_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ide_metrics_api_ReportMetricsRequest_LabelsEntry_fieldAccessorTable; + internal_static_ide_metrics_api_AddCounterRequest_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ide_metrics_api_ReportMetricsResponse_descriptor; + internal_static_ide_metrics_api_AddCounterResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ide_metrics_api_ReportMetricsResponse_fieldAccessorTable; + internal_static_ide_metrics_api_AddCounterResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ide_metrics_api_ReportLogRequest_descriptor; + internal_static_ide_metrics_api_ObserveHistogramRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ide_metrics_api_ReportLogRequest_fieldAccessorTable; + internal_static_ide_metrics_api_ObserveHistogramRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ide_metrics_api_ReportLogResponse_descriptor; + internal_static_ide_metrics_api_ObserveHistogramRequest_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ide_metrics_api_ReportLogResponse_fieldAccessorTable; + internal_static_ide_metrics_api_ObserveHistogramRequest_LabelsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_ide_metrics_api_ObserveHistogramResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_ide_metrics_api_ObserveHistogramResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -3068,62 +2760,67 @@ public io.gitpod.ide_metrics.api.Metrics.ReportLogResponse getDefaultInstanceFor static { java.lang.String[] descriptorData = { "\n\rmetrics.proto\022\017ide_metrics_api\032\034google" + - "/api/annotations.proto\"\226\001\n\024ReportMetrics" + - "Request\022\014\n\004name\030\001 \001(\t\022A\n\006labels\030\002 \003(\01321." + - "ide_metrics_api.ReportMetricsRequest.Lab" + - "elsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + - "value\030\002 \001(\t:\0028\001\"\027\n\025ReportMetricsResponse" + - "\"\214\001\n\020ReportLogRequest\022\023\n\013workspaceId\030\001 \001" + - "(\t\022\022\n\ninstanceId\030\002 \001(\t\022\021\n\tcomponent\030\003 \001(" + - "\t\022+\n\010logLevel\030\004 \001(\0162\031.ide_metrics_api.Lo" + - "gLevel\022\017\n\007content\030\005 \001(\t\"\023\n\021ReportLogResp" + - "onse*]\n\010LogLevel\022\013\n\007Unknown\020\000\022\t\n\005Trace\020\001" + - "\022\t\n\005Debug\020\002\022\010\n\004Info\020\003\022\013\n\007Warning\020\004\022\t\n\005Er" + - "ror\020\005\022\014\n\010Critical\020\0062\203\002\n\016MetricsService\022~" + - "\n\014ReportMetric\022%.ide_metrics_api.ReportM" + - "etricsRequest\032&.ide_metrics_api.ReportMe" + - "tricsResponse\"\037\202\323\344\223\002\031\"\024/reportMetric/{na" + - "me}:\001*\022q\n\treportLog\022%.ide_metrics_api.Re" + - "portMetricsRequest\032&.ide_metrics_api.Rep" + - "ortMetricsResponse\"\025\202\323\344\223\002\017\"\n/reportLog:\001" + - "*BH\n\031io.gitpod.ide_metrics.apiZ+github.c" + - "om/gitpod-io/gitpod/ide-metrics/apib\006pro" + - "to3" + "/api/annotations.proto\"\220\001\n\021AddCounterReq" + + "uest\022\014\n\004name\030\001 \001(\t\022>\n\006labels\030\002 \003(\0132..ide" + + "_metrics_api.AddCounterRequest.LabelsEnt" + + "ry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\"\024\n\022AddCounterResponse\"\253\001\n\027Obse" + + "rveHistogramRequest\022\014\n\004name\030\001 \001(\t\022D\n\006lab" + + "els\030\002 \003(\01324.ide_metrics_api.ObserveHisto" + + "gramRequest.LabelsEntry\022\r\n\005value\030\003 \001(\002\032-" + + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\001\"\032\n\030ObserveHistogramResponse2\237\002\n\016Me" + + "tricsService\022v\n\nAddCounter\022\".ide_metrics" + + "_api.AddCounterRequest\032#.ide_metrics_api" + + ".AddCounterResponse\"\037\202\323\344\223\002\031\"\024/reportMetr" + + "ic/{name}:\001*\022\224\001\n\020ObserveHistogram\022(.ide_" + + "metrics_api.ObserveHistogramRequest\032).id" + + "e_metrics_api.ObserveHistogramResponse\"+" + + "\202\323\344\223\002%\" /observeHistogram/{name}/{value}" + + ":\001*BH\n\031io.gitpod.ide_metrics.apiZ+github" + + ".com/gitpod-io/gitpod/ide-metrics/apib\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), }); - internal_static_ide_metrics_api_ReportMetricsRequest_descriptor = + internal_static_ide_metrics_api_AddCounterRequest_descriptor = getDescriptor().getMessageTypes().get(0); - internal_static_ide_metrics_api_ReportMetricsRequest_fieldAccessorTable = new + internal_static_ide_metrics_api_AddCounterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ide_metrics_api_ReportMetricsRequest_descriptor, + internal_static_ide_metrics_api_AddCounterRequest_descriptor, new java.lang.String[] { "Name", "Labels", }); - internal_static_ide_metrics_api_ReportMetricsRequest_LabelsEntry_descriptor = - internal_static_ide_metrics_api_ReportMetricsRequest_descriptor.getNestedTypes().get(0); - internal_static_ide_metrics_api_ReportMetricsRequest_LabelsEntry_fieldAccessorTable = new + internal_static_ide_metrics_api_AddCounterRequest_LabelsEntry_descriptor = + internal_static_ide_metrics_api_AddCounterRequest_descriptor.getNestedTypes().get(0); + internal_static_ide_metrics_api_AddCounterRequest_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ide_metrics_api_ReportMetricsRequest_LabelsEntry_descriptor, + internal_static_ide_metrics_api_AddCounterRequest_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); - internal_static_ide_metrics_api_ReportMetricsResponse_descriptor = + internal_static_ide_metrics_api_AddCounterResponse_descriptor = getDescriptor().getMessageTypes().get(1); - internal_static_ide_metrics_api_ReportMetricsResponse_fieldAccessorTable = new + internal_static_ide_metrics_api_AddCounterResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ide_metrics_api_ReportMetricsResponse_descriptor, + internal_static_ide_metrics_api_AddCounterResponse_descriptor, new java.lang.String[] { }); - internal_static_ide_metrics_api_ReportLogRequest_descriptor = + internal_static_ide_metrics_api_ObserveHistogramRequest_descriptor = getDescriptor().getMessageTypes().get(2); - internal_static_ide_metrics_api_ReportLogRequest_fieldAccessorTable = new + internal_static_ide_metrics_api_ObserveHistogramRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ide_metrics_api_ReportLogRequest_descriptor, - new java.lang.String[] { "WorkspaceId", "InstanceId", "Component", "LogLevel", "Content", }); - internal_static_ide_metrics_api_ReportLogResponse_descriptor = + internal_static_ide_metrics_api_ObserveHistogramRequest_descriptor, + new java.lang.String[] { "Name", "Labels", "Value", }); + internal_static_ide_metrics_api_ObserveHistogramRequest_LabelsEntry_descriptor = + internal_static_ide_metrics_api_ObserveHistogramRequest_descriptor.getNestedTypes().get(0); + internal_static_ide_metrics_api_ObserveHistogramRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ide_metrics_api_ObserveHistogramRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_ide_metrics_api_ObserveHistogramResponse_descriptor = getDescriptor().getMessageTypes().get(3); - internal_static_ide_metrics_api_ReportLogResponse_fieldAccessorTable = new + internal_static_ide_metrics_api_ObserveHistogramResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ide_metrics_api_ReportLogResponse_descriptor, + internal_static_ide_metrics_api_ObserveHistogramResponse_descriptor, new java.lang.String[] { }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/components/ide-proxy/components/ide-metrics-api/java/src/main/java/io/gitpod/ide_metrics/api/MetricsServiceGrpc.java b/components/ide-metrics-api/java/src/main/java/io/gitpod/ide_metrics/api/MetricsServiceGrpc.java similarity index 64% rename from components/ide-proxy/components/ide-metrics-api/java/src/main/java/io/gitpod/ide_metrics/api/MetricsServiceGrpc.java rename to components/ide-metrics-api/java/src/main/java/io/gitpod/ide_metrics/api/MetricsServiceGrpc.java index 389e9f32f40ee2..460aff67b1957f 100644 --- a/components/ide-proxy/components/ide-metrics-api/java/src/main/java/io/gitpod/ide_metrics/api/MetricsServiceGrpc.java +++ b/components/ide-metrics-api/java/src/main/java/io/gitpod/ide_metrics/api/MetricsServiceGrpc.java @@ -19,66 +19,66 @@ private MetricsServiceGrpc() {} public static final String SERVICE_NAME = "ide_metrics_api.MetricsService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getReportMetricMethod; + private static volatile io.grpc.MethodDescriptor getAddCounterMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ReportMetric", - requestType = io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest.class, - responseType = io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse.class, + fullMethodName = SERVICE_NAME + '/' + "AddCounter", + requestType = io.gitpod.ide_metrics.api.Metrics.AddCounterRequest.class, + responseType = io.gitpod.ide_metrics.api.Metrics.AddCounterResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getReportMetricMethod() { - io.grpc.MethodDescriptor getReportMetricMethod; - if ((getReportMetricMethod = MetricsServiceGrpc.getReportMetricMethod) == null) { + public static io.grpc.MethodDescriptor getAddCounterMethod() { + io.grpc.MethodDescriptor getAddCounterMethod; + if ((getAddCounterMethod = MetricsServiceGrpc.getAddCounterMethod) == null) { synchronized (MetricsServiceGrpc.class) { - if ((getReportMetricMethod = MetricsServiceGrpc.getReportMetricMethod) == null) { - MetricsServiceGrpc.getReportMetricMethod = getReportMetricMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getAddCounterMethod = MetricsServiceGrpc.getAddCounterMethod) == null) { + MetricsServiceGrpc.getAddCounterMethod = getAddCounterMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReportMetric")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AddCounter")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest.getDefaultInstance())) + io.gitpod.ide_metrics.api.Metrics.AddCounterRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse.getDefaultInstance())) - .setSchemaDescriptor(new MetricsServiceMethodDescriptorSupplier("ReportMetric")) + io.gitpod.ide_metrics.api.Metrics.AddCounterResponse.getDefaultInstance())) + .setSchemaDescriptor(new MetricsServiceMethodDescriptorSupplier("AddCounter")) .build(); } } } - return getReportMetricMethod; + return getAddCounterMethod; } - private static volatile io.grpc.MethodDescriptor getReportLogMethod; + private static volatile io.grpc.MethodDescriptor getObserveHistogramMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "reportLog", - requestType = io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest.class, - responseType = io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse.class, + fullMethodName = SERVICE_NAME + '/' + "ObserveHistogram", + requestType = io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest.class, + responseType = io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getReportLogMethod() { - io.grpc.MethodDescriptor getReportLogMethod; - if ((getReportLogMethod = MetricsServiceGrpc.getReportLogMethod) == null) { + public static io.grpc.MethodDescriptor getObserveHistogramMethod() { + io.grpc.MethodDescriptor getObserveHistogramMethod; + if ((getObserveHistogramMethod = MetricsServiceGrpc.getObserveHistogramMethod) == null) { synchronized (MetricsServiceGrpc.class) { - if ((getReportLogMethod = MetricsServiceGrpc.getReportLogMethod) == null) { - MetricsServiceGrpc.getReportLogMethod = getReportLogMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getObserveHistogramMethod = MetricsServiceGrpc.getObserveHistogramMethod) == null) { + MetricsServiceGrpc.getObserveHistogramMethod = getObserveHistogramMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "reportLog")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ObserveHistogram")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest.getDefaultInstance())) + io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse.getDefaultInstance())) - .setSchemaDescriptor(new MetricsServiceMethodDescriptorSupplier("reportLog")) + io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse.getDefaultInstance())) + .setSchemaDescriptor(new MetricsServiceMethodDescriptorSupplier("ObserveHistogram")) .build(); } } } - return getReportLogMethod; + return getObserveHistogramMethod; } /** @@ -131,34 +131,34 @@ public static abstract class MetricsServiceImplBase implements io.grpc.BindableS /** */ - public void reportMetric(io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReportMetricMethod(), responseObserver); + public void addCounter(io.gitpod.ide_metrics.api.Metrics.AddCounterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAddCounterMethod(), responseObserver); } /** */ - public void reportLog(io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReportLogMethod(), responseObserver); + public void observeHistogram(io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getObserveHistogramMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getReportMetricMethod(), + getAddCounterMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< - io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest, - io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse>( - this, METHODID_REPORT_METRIC))) + io.gitpod.ide_metrics.api.Metrics.AddCounterRequest, + io.gitpod.ide_metrics.api.Metrics.AddCounterResponse>( + this, METHODID_ADD_COUNTER))) .addMethod( - getReportLogMethod(), + getObserveHistogramMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< - io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest, - io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse>( - this, METHODID_REPORT_LOG))) + io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest, + io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse>( + this, METHODID_OBSERVE_HISTOGRAM))) .build(); } } @@ -179,18 +179,18 @@ protected MetricsServiceStub build( /** */ - public void reportMetric(io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void addCounter(io.gitpod.ide_metrics.api.Metrics.AddCounterRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getReportMetricMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getAddCounterMethod(), getCallOptions()), request, responseObserver); } /** */ - public void reportLog(io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void observeHistogram(io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getReportLogMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getObserveHistogramMethod(), getCallOptions()), request, responseObserver); } } @@ -210,16 +210,16 @@ protected MetricsServiceBlockingStub build( /** */ - public io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse reportMetric(io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest request) { + public io.gitpod.ide_metrics.api.Metrics.AddCounterResponse addCounter(io.gitpod.ide_metrics.api.Metrics.AddCounterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getReportMetricMethod(), getCallOptions(), request); + getChannel(), getAddCounterMethod(), getCallOptions(), request); } /** */ - public io.gitpod.ide_metrics.api.Metrics.ReportMetricsResponse reportLog(io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest request) { + public io.gitpod.ide_metrics.api.Metrics.ObserveHistogramResponse observeHistogram(io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getReportLogMethod(), getCallOptions(), request); + getChannel(), getObserveHistogramMethod(), getCallOptions(), request); } } @@ -239,23 +239,23 @@ protected MetricsServiceFutureStub build( /** */ - public com.google.common.util.concurrent.ListenableFuture reportMetric( - io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest request) { + public com.google.common.util.concurrent.ListenableFuture addCounter( + io.gitpod.ide_metrics.api.Metrics.AddCounterRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getReportMetricMethod(), getCallOptions()), request); + getChannel().newCall(getAddCounterMethod(), getCallOptions()), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture reportLog( - io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest request) { + public com.google.common.util.concurrent.ListenableFuture observeHistogram( + io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getReportLogMethod(), getCallOptions()), request); + getChannel().newCall(getObserveHistogramMethod(), getCallOptions()), request); } } - private static final int METHODID_REPORT_METRIC = 0; - private static final int METHODID_REPORT_LOG = 1; + private static final int METHODID_ADD_COUNTER = 0; + private static final int METHODID_OBSERVE_HISTOGRAM = 1; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -274,13 +274,13 @@ private static final class MethodHandlers implements @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { - case METHODID_REPORT_METRIC: - serviceImpl.reportMetric((io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + case METHODID_ADD_COUNTER: + serviceImpl.addCounter((io.gitpod.ide_metrics.api.Metrics.AddCounterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; - case METHODID_REPORT_LOG: - serviceImpl.reportLog((io.gitpod.ide_metrics.api.Metrics.ReportMetricsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + case METHODID_OBSERVE_HISTOGRAM: + serviceImpl.observeHistogram((io.gitpod.ide_metrics.api.Metrics.ObserveHistogramRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -343,8 +343,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new MetricsServiceFileDescriptorSupplier()) - .addMethod(getReportMetricMethod()) - .addMethod(getReportLogMethod()) + .addMethod(getAddCounterMethod()) + .addMethod(getObserveHistogramMethod()) .build(); } } diff --git a/components/ide-proxy/components/ide-metrics-api/metrics.proto b/components/ide-metrics-api/metrics.proto similarity index 54% rename from components/ide-proxy/components/ide-metrics-api/metrics.proto rename to components/ide-metrics-api/metrics.proto index f5ef74bf0046b2..949a0ddeb00aa5 100644 --- a/components/ide-proxy/components/ide-metrics-api/metrics.proto +++ b/components/ide-metrics-api/metrics.proto @@ -12,43 +12,31 @@ option go_package = "github.com/gitpod-io/gitpod/ide-metrics/api"; option java_package = "io.gitpod.ide_metrics.api"; service MetricsService { - rpc ReportMetric(ReportMetricsRequest) returns (ReportMetricsResponse) { + rpc AddCounter(AddCounterRequest) returns (AddCounterResponse) { option (google.api.http) = { post: "/reportMetric/{name}", body : "*" }; } - rpc reportLog(ReportMetricsRequest) returns (ReportMetricsResponse) { + rpc ObserveHistogram(ObserveHistogramRequest) returns (ObserveHistogramResponse) { option (google.api.http) = { - post: "/reportLog" + post: "/observeHistogram/{name}/{value}", body : "*" }; } } -message ReportMetricsRequest { +message AddCounterRequest { string name = 1; map labels = 2; } -message ReportMetricsResponse {} +message AddCounterResponse {} -enum LogLevel { - Unknown = 0; - Trace = 1; - Debug = 2; - Info = 3; - Warning = 4; - Error = 5; - Critical = 6; -} - -message ReportLogRequest { - string workspaceId = 1; - string instanceId = 2; - string component = 3; - LogLevel logLevel = 4; - string content = 5; +message ObserveHistogramRequest { + string name = 1; + map labels = 2; + float value = 3; } -message ReportLogResponse {} +message ObserveHistogramResponse {} diff --git a/components/ide-proxy/components/ide-metrics-api/third_party/google/api/annotations.proto b/components/ide-metrics-api/third_party/google/api/annotations.proto similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/third_party/google/api/annotations.proto rename to components/ide-metrics-api/third_party/google/api/annotations.proto diff --git a/components/ide-proxy/components/ide-metrics-api/third_party/google/api/field_behavior.proto b/components/ide-metrics-api/third_party/google/api/field_behavior.proto similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/third_party/google/api/field_behavior.proto rename to components/ide-metrics-api/third_party/google/api/field_behavior.proto diff --git a/components/ide-proxy/components/ide-metrics-api/third_party/google/api/http.proto b/components/ide-metrics-api/third_party/google/api/http.proto similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/third_party/google/api/http.proto rename to components/ide-metrics-api/third_party/google/api/http.proto diff --git a/components/ide-proxy/components/ide-metrics-api/third_party/google/api/httpbody.proto b/components/ide-metrics-api/third_party/google/api/httpbody.proto similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/third_party/google/api/httpbody.proto rename to components/ide-metrics-api/third_party/google/api/httpbody.proto diff --git a/components/ide-proxy/components/ide-metrics-api/typescript-grpc/.gitignore b/components/ide-metrics-api/typescript-grpc/.gitignore similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/typescript-grpc/.gitignore rename to components/ide-metrics-api/typescript-grpc/.gitignore diff --git a/components/ide-proxy/components/ide-metrics-api/typescript-grpc/BUILD.yaml b/components/ide-metrics-api/typescript-grpc/BUILD.yaml similarity index 64% rename from components/ide-proxy/components/ide-metrics-api/typescript-grpc/BUILD.yaml rename to components/ide-metrics-api/typescript-grpc/BUILD.yaml index 2b07ff278e3f79..74f969df0397e6 100644 --- a/components/ide-proxy/components/ide-metrics-api/typescript-grpc/BUILD.yaml +++ b/components/ide-metrics-api/typescript-grpc/BUILD.yaml @@ -5,15 +5,15 @@ packages: - package.json - build.sh deps: - - components/ide-proxy/components/ide-metrics-api:proto + - components/ide-metrics-api:proto env: - - PROTOLOC=components-ide-proxy-components-ide-metrics-api--proto + - PROTOLOC=components-ide-metrics-api--proto config: packaging: library dontTest: true commands: build: ["yarn", "build"] - yarnLock: ${coreYarnLockBase}/../../../yarn.lock + yarnLock: ${coreYarnLockBase}/../yarn.lock tsconfig: tsconfig.json - name: publish type: generic @@ -26,4 +26,4 @@ packages: - components/gitpod-protocol:scripts config: commands: - - ["node", "components-gitpod-protocol--scripts/publish.js", "${version}", "components-ide-proxy-components-ide-metrics-api-typescript-grpc--lib/package"] + - ["node", "components-gitpod-protocol--scripts/publish.js", "${version}", "components-ide-metrics-api-typescript-grpc--lib/package"] diff --git a/components/ide-proxy/components/ide-metrics-api/typescript-grpc/build.sh b/components/ide-metrics-api/typescript-grpc/build.sh similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/typescript-grpc/build.sh rename to components/ide-metrics-api/typescript-grpc/build.sh diff --git a/components/ide-proxy/components/ide-metrics-api/typescript-grpc/package.json b/components/ide-metrics-api/typescript-grpc/package.json similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/typescript-grpc/package.json rename to components/ide-metrics-api/typescript-grpc/package.json diff --git a/components/ide-proxy/components/ide-metrics-api/typescript-grpc/tsconfig.json b/components/ide-metrics-api/typescript-grpc/tsconfig.json similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/typescript-grpc/tsconfig.json rename to components/ide-metrics-api/typescript-grpc/tsconfig.json diff --git a/components/ide-proxy/components/ide-metrics-api/typescript-grpc/yarn.lock b/components/ide-metrics-api/typescript-grpc/yarn.lock similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/typescript-grpc/yarn.lock rename to components/ide-metrics-api/typescript-grpc/yarn.lock diff --git a/components/ide-proxy/components/ide-metrics-api/typescript-grpcweb/.gitignore b/components/ide-metrics-api/typescript-grpcweb/.gitignore similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/typescript-grpcweb/.gitignore rename to components/ide-metrics-api/typescript-grpcweb/.gitignore diff --git a/components/ide-proxy/components/ide-metrics-api/typescript-grpcweb/BUILD.yaml b/components/ide-metrics-api/typescript-grpcweb/BUILD.yaml similarity index 64% rename from components/ide-proxy/components/ide-metrics-api/typescript-grpcweb/BUILD.yaml rename to components/ide-metrics-api/typescript-grpcweb/BUILD.yaml index 2b07ff278e3f79..74f969df0397e6 100644 --- a/components/ide-proxy/components/ide-metrics-api/typescript-grpcweb/BUILD.yaml +++ b/components/ide-metrics-api/typescript-grpcweb/BUILD.yaml @@ -5,15 +5,15 @@ packages: - package.json - build.sh deps: - - components/ide-proxy/components/ide-metrics-api:proto + - components/ide-metrics-api:proto env: - - PROTOLOC=components-ide-proxy-components-ide-metrics-api--proto + - PROTOLOC=components-ide-metrics-api--proto config: packaging: library dontTest: true commands: build: ["yarn", "build"] - yarnLock: ${coreYarnLockBase}/../../../yarn.lock + yarnLock: ${coreYarnLockBase}/../yarn.lock tsconfig: tsconfig.json - name: publish type: generic @@ -26,4 +26,4 @@ packages: - components/gitpod-protocol:scripts config: commands: - - ["node", "components-gitpod-protocol--scripts/publish.js", "${version}", "components-ide-proxy-components-ide-metrics-api-typescript-grpc--lib/package"] + - ["node", "components-gitpod-protocol--scripts/publish.js", "${version}", "components-ide-metrics-api-typescript-grpc--lib/package"] diff --git a/components/ide-proxy/components/ide-metrics-api/typescript-grpcweb/build.sh b/components/ide-metrics-api/typescript-grpcweb/build.sh similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/typescript-grpcweb/build.sh rename to components/ide-metrics-api/typescript-grpcweb/build.sh diff --git a/components/ide-proxy/components/ide-metrics-api/typescript-grpcweb/package.json b/components/ide-metrics-api/typescript-grpcweb/package.json similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/typescript-grpcweb/package.json rename to components/ide-metrics-api/typescript-grpcweb/package.json diff --git a/components/ide-proxy/components/ide-metrics-api/typescript-grpcweb/tsconfig.json b/components/ide-metrics-api/typescript-grpcweb/tsconfig.json similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/typescript-grpcweb/tsconfig.json rename to components/ide-metrics-api/typescript-grpcweb/tsconfig.json diff --git a/components/ide-proxy/components/ide-metrics-api/typescript-grpcweb/yarn.lock b/components/ide-metrics-api/typescript-grpcweb/yarn.lock similarity index 100% rename from components/ide-proxy/components/ide-metrics-api/typescript-grpcweb/yarn.lock rename to components/ide-metrics-api/typescript-grpcweb/yarn.lock diff --git a/components/ide-proxy/components/ide-metrics-server/BUILD.yaml b/components/ide-metrics/BUILD.yaml similarity index 69% rename from components/ide-proxy/components/ide-metrics-server/BUILD.yaml rename to components/ide-metrics/BUILD.yaml index b230a22bcd4363..cdea071e93d919 100644 --- a/components/ide-proxy/components/ide-metrics-server/BUILD.yaml +++ b/components/ide-metrics/BUILD.yaml @@ -16,7 +16,7 @@ packages: # - "conf/**" # - "static/**" deps: - - components/ide-proxy/components/ide-metrics-server:app + - components/ide-metrics:app argdeps: - imageRepoBase config: @@ -24,5 +24,5 @@ packages: helm-component: ideProxy.metrics dockerfile: leeway.Dockerfile image: - - ${imageRepoBase}/ide-metrics-server:${version} - - ${imageRepoBase}/ide-metrics-server:commit-${__git_commit} + - ${imageRepoBase}/ide-metrics:${version} + - ${imageRepoBase}/ide-metrics:commit-${__git_commit} diff --git a/components/ide-proxy/components/ide-metrics-server/cmd/root.go b/components/ide-metrics/cmd/root.go similarity index 100% rename from components/ide-proxy/components/ide-metrics-server/cmd/root.go rename to components/ide-metrics/cmd/root.go diff --git a/components/ide-proxy/components/ide-metrics-server/cmd/run.go b/components/ide-metrics/cmd/run.go similarity index 100% rename from components/ide-proxy/components/ide-metrics-server/cmd/run.go rename to components/ide-metrics/cmd/run.go diff --git a/components/ide-proxy/components/ide-metrics-server/go.mod b/components/ide-metrics/go.mod similarity index 61% rename from components/ide-proxy/components/ide-metrics-server/go.mod rename to components/ide-metrics/go.mod index 960db866c8cd83..e29603760721d1 100644 --- a/components/ide-proxy/components/ide-metrics-server/go.mod +++ b/components/ide-metrics/go.mod @@ -14,11 +14,19 @@ require ( ) require ( + cloud.google.com/go v0.102.1 // indirect + cloud.google.com/go/compute v1.7.0 // indirect + cloud.google.com/go/errorreporting v0.2.0 // indirect + cloud.google.com/go/logging v1.5.0 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/cenkalti/backoff/v4 v4.1.1 // indirect github.com/cespare/xxhash/v2 v2.1.2 // indirect github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect + github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect + github.com/google/go-cmp v0.5.8 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa // indirect + github.com/googleapis/gax-go/v2 v2.4.0 // indirect github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect github.com/hashicorp/golang-lru v0.5.1 // indirect @@ -33,18 +41,23 @@ require ( github.com/rs/cors v1.7.0 // indirect github.com/sirupsen/logrus v1.8.1 // indirect github.com/spf13/pflag v1.0.5 // indirect - golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect - golang.org/x/sys v0.0.0-20220114195835-da31bd327af9 // indirect + go.opencensus.io v0.23.0 // indirect + golang.org/x/net v0.0.0-20220607020251-c690dde0001d // indirect + golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect + golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f // indirect + golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d // indirect golang.org/x/text v0.3.7 // indirect golang.org/x/time v0.0.0-20191024005414-555d28b269f0 // indirect - golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect - google.golang.org/genproto v0.0.0-20220519153652-3a47de7e79bd // indirect + golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f // indirect + google.golang.org/api v0.84.0 // indirect + google.golang.org/appengine v1.6.7 // indirect + google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad // indirect google.golang.org/protobuf v1.28.0 // indirect nhooyr.io/websocket v1.8.6 // indirect ) -replace github.com/gitpod-io/gitpod/common-go => ../../../common-go // leeway +replace github.com/gitpod-io/gitpod/common-go => ../common-go // leeway -replace github.com/gitpod-io/gitpod/gitpod-protocol => ../../../gitpod-protocol/go // leeway +replace github.com/gitpod-io/gitpod/gitpod-protocol => ../gitpod-protocol/go // leeway replace github.com/gitpod-io/gitpod/ide-metrics-api => ../ide-metrics-api/go // leeway diff --git a/components/ide-proxy/components/ide-metrics-server/go.sum b/components/ide-metrics/go.sum similarity index 76% rename from components/ide-proxy/components/ide-metrics-server/go.sum rename to components/ide-metrics/go.sum index ef36e29856a199..bf3560d768ce07 100644 --- a/components/ide-proxy/components/ide-metrics-server/go.sum +++ b/components/ide-metrics/go.sum @@ -13,14 +13,43 @@ cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKV cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= +cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= +cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= +cloud.google.com/go v0.78.0/go.mod h1:QjdrLG0uq+YwhjoVOLsS1t7TW8fs36kLs4XO5R5ECHg= +cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb8= +cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0= +cloud.google.com/go v0.83.0/go.mod h1:Z7MJUsANfY0pYPdw0lbnivPx4/vhy/e2FEkSkF7vAVY= +cloud.google.com/go v0.84.0/go.mod h1:RazrYuxIK6Kb7YrzzhPoLmCVzl7Sup4NrbKPg8KHSUM= +cloud.google.com/go v0.87.0/go.mod h1:TpDYlFy7vuLzZMMZ+B6iRiELaY7z/gJPaqbMx6mlWcY= +cloud.google.com/go v0.90.0/go.mod h1:kRX0mNRHe0e2rC6oNakvwQqzyDmg57xJ+SZU1eT2aDQ= +cloud.google.com/go v0.93.3/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+YI= +cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW4= +cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc= +cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA= +cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A= +cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc= +cloud.google.com/go v0.102.1 h1:vpK6iQWv/2uUeFJth4/cBHsQAGjn1iIE6AAlxipRaA0= +cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= +cloud.google.com/go/compute v0.1.0/go.mod h1:GAesmwr110a34z04OlxYkATPBEfVhkymfTBXtfbBFow= +cloud.google.com/go/compute v1.3.0/go.mod h1:cCZiE1NHEtai4wiufUhW8I8S1JKkAnhnQJWM7YD99wM= +cloud.google.com/go/compute v1.5.0/go.mod h1:9SMHyhJlzhlkJqrPAc839t2BZFTSk6Jdj6mkzQJeu0M= +cloud.google.com/go/compute v1.6.0/go.mod h1:T29tfhtVbq1wvAPo0E3+7vhgmkOYeXjhFvz/FMzPu0s= +cloud.google.com/go/compute v1.6.1/go.mod h1:g85FgpzFvNULZ+S8AYq87axRKuf2Kh7deLqV/jJ3thU= +cloud.google.com/go/compute v1.7.0 h1:v/k9Eueb8aAJ0vZuxKMrgm6kPhCLZU9HxFU+AFDs9Uk= +cloud.google.com/go/compute v1.7.0/go.mod h1:435lt8av5oL9P3fv1OEzSbSUe+ybHXGMPQHHZWZxy9U= cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= +cloud.google.com/go/errorreporting v0.2.0 h1:b2QhVcl+43FS3qAYuoafNVvqYIc8uDUFeEB7mvFt9C8= +cloud.google.com/go/errorreporting v0.2.0/go.mod h1:QkYzg92wgpJ0ChLdcO5LhtCEyYwq0tIa+jLrj6Nh5ME= +cloud.google.com/go/iam v0.3.0/go.mod h1:XzJPvDayI+9zsASAFO68Hk07u3z+f+JrT2xXNdp4bnY= +cloud.google.com/go/logging v1.5.0 h1:DcR52smaYLgeK9KPzJlBJyyBYqW/EGKiuRRl8boL1s4= +cloud.google.com/go/logging v1.5.0/go.mod h1:c/57U/aLdzSFuBtvbtFduG1Ii54uSm95HOBnp58P7/U= cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= @@ -30,10 +59,12 @@ cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0Zeo cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= +cloud.google.com/go/storage v1.22.1/go.mod h1:S8N1cAStu7BOeFfE8KAQzmyyLkK8p/vmRq6kuBTW58Y= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= +github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= @@ -63,6 +94,7 @@ github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QH github.com/cenkalti/backoff/v4 v4.1.1 h1:G2HAfAmvm/GcKan2oOQpBXOd2tT2G57ZnZGWa1PxPBQ= github.com/cenkalti/backoff/v4 v4.1.1/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE= github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= @@ -72,8 +104,11 @@ github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMn github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= +github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= @@ -100,7 +135,11 @@ github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4s github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ= +github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= @@ -148,6 +187,7 @@ github.com/golang/glog v1.0.0 h1:nfP3RFugxnNRyKgeWd4oI1nYvXpxrx8ck8ZrcizshdQ= github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e h1:1r7pUrabqp18hOBcwBwiTsbnFeTZHV9eER/QT5JVZxY= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= @@ -156,6 +196,8 @@ github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= +github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= +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= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= @@ -171,9 +213,11 @@ github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QD github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM= github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= @@ -183,13 +227,19 @@ github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= +github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.2.1/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= @@ -197,11 +247,27 @@ github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hf github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa h1:7MYGT2XEMam7Mtzv1yDUYXANedWvwk3HKkR3MyGowy8= +github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0= +github.com/googleapis/gax-go/v2 v2.1.1/go.mod h1:hddJymUZASv3XPyGkUpKj8pPO47Rmb0eJc8R6ouapiM= +github.com/googleapis/gax-go/v2 v2.2.0/go.mod h1:as02EH8zWkzwUoLbBaFeQ+arQaj/OthfcblKl4IGNaM= +github.com/googleapis/gax-go/v2 v2.3.0/go.mod h1:b8LNqSzNabLiUpXKkY7HAR5jr6bIT99EXz9pXxye9YM= +github.com/googleapis/gax-go/v2 v2.4.0 h1:dS9eYAjhrE2RjmzYw2XAPvcXfmcQLtFEQWn0CR82awk= +github.com/googleapis/gax-go/v2 v2.4.0/go.mod h1:XOTVJ59hdnfJLIP/dh8n5CGryZR2LxK9wbMD5+iXC6c= +github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= @@ -244,6 +310,7 @@ github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/J github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/improbable-eng/grpc-web v0.15.0 h1:BN+7z6uNXZ1tQGcNAuaU1YjsLTApzkjt2tzCixLaUPQ= github.com/improbable-eng/grpc-web v0.15.0/go.mod h1:1sy9HKV4Jt9aEs9JSnkWlRJPuPtwNr0l57L4f878wP8= github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= @@ -402,6 +469,7 @@ github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4k github.com/soheilhy/cmux v0.1.5 h1:jjzc5WVemNEDTLwv9tlmemhC73tI08BNOIGwBOo10Js= github.com/soheilhy/cmux v0.1.5/go.mod h1:T7TcVDs9LWfQgPlPsdngu6I6QIoyIFZDDC6sNE1GqG0= github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= +github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= github.com/spf13/cobra v1.4.0 h1:y+wJpx64xcgO1V+RcnwW0LEHxTKRi2ZDPSBjWnrg88Q= github.com/spf13/cobra v1.4.0/go.mod h1:Wo4iy3BUC+X2Fybo0PDqwJIv3dNRiZLHQymsfxlB84g= @@ -417,6 +485,7 @@ github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXf github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= @@ -431,6 +500,7 @@ github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= @@ -440,6 +510,9 @@ go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= +go.opencensus.io v0.23.0 h1:gqCw0LfLxScz8irSi8exQc7fyQ0fKQU/qnC/X8+V/1M= +go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= @@ -480,6 +553,8 @@ golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHl golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= @@ -488,6 +563,9 @@ golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzB golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +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-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -524,18 +602,46 @@ golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81R golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= +golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk= golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220607020251-c690dde0001d h1:4SFsTMi4UahlKoloni7L4eYzhFRifURQLw+yv0QDCx8= +golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= +golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -546,6 +652,9 @@ golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f h1:Ax0t5p6N38Ga0dThY21weqDEyz2oklo4IvDkpigvkD8= +golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -587,23 +696,53 @@ golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210908233432-aa78b53d3365/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220114195835-da31bd327af9 h1:XfKQ4OlFl8okEOr5UvAqFRVj8pY/4yfcXrddB8qAbU0= golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d h1:Zu/JngovGLVi6t2J3nmAf3AoTDwuzw85YZ3b9o4yU7s= +golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= @@ -660,12 +799,27 @@ golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roY golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= +golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= +golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.5/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/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= +golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f h1:uF6paiQQebLeSXkrTqHqz0MXhXXS1KgF41eUdBNvxK0= +golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= @@ -683,6 +837,30 @@ google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0M google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= +google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= +google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= +google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= +google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU= +google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94= +google.golang.org/api v0.47.0/go.mod h1:Wbvgpq1HddcWVtzsVLyfLp8lDg6AA241LmgIL59tHXo= +google.golang.org/api v0.48.0/go.mod h1:71Pr1vy+TAZRPkPs/xlCf5SsU8WjuAWv1Pfjbtukyy4= +google.golang.org/api v0.50.0/go.mod h1:4bNT5pAuq5ji4SRZm+5QIkjny9JAyVD/3gaSihNefaw= +google.golang.org/api v0.51.0/go.mod h1:t4HdrdoNgyN5cbEfm7Lum0lcLDLiise1F8qDKX00sOU= +google.golang.org/api v0.54.0/go.mod h1:7C4bFFOvVDGXjfDTAsgGwDgAxRDeQ4X8NvUedIt6z3k= +google.golang.org/api v0.55.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= +google.golang.org/api v0.56.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= +google.golang.org/api v0.57.0/go.mod h1:dVPlbZyBo2/OjBpmvNdpn2GRm6rPy75jyU7bmhdrMgI= +google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3hg9I= +google.golang.org/api v0.63.0/go.mod h1:gs4ij2ffTRXwuzzgJl/56BdwJaA194ijkfn++9tDuPo= +google.golang.org/api v0.67.0/go.mod h1:ShHKP8E60yPsKNw/w8w+VYaj9H6buA5UqDp8dhbQZ6g= +google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/SkfA= +google.golang.org/api v0.71.0/go.mod h1:4PyU6e6JogV1f9eA4voyrTY2batOLdgZ5qZ5HOCc4j8= +google.golang.org/api v0.74.0/go.mod h1:ZpfMZOVRMywNyvJFeqL9HRWBgAuRfSjJFpe9QtRRyDs= +google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= +google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= +google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= +google.golang.org/api v0.84.0 h1:NMB9J4cCxs9xEm+1Z9QiO3eFvn7EnQj3Eo3hN6ugVlg= +google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -690,6 +868,8 @@ google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7 google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= +google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= @@ -722,9 +902,59 @@ google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7Fc google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210126160654-44e461bb6506/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210329143202-679c6ae281ee/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= +google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= +google.golang.org/genproto v0.0.0-20210513213006-bf773b8c8384/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= +google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= +google.golang.org/genproto v0.0.0-20210713002101-d411969a0d9a/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= +google.golang.org/genproto v0.0.0-20210716133855-ce7ef5c701ea/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= +google.golang.org/genproto v0.0.0-20210728212813-7823e685a01f/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= +google.golang.org/genproto v0.0.0-20210805201207-89edb61ffb67/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= +google.golang.org/genproto v0.0.0-20210813162853-db860fec028c/go.mod h1:cFeNkxwySK631ADgubI+/XFU/xp8FD5KIVV4rj8UC5w= +google.golang.org/genproto v0.0.0-20210821163610-241b8fcbd6c8/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210828152312-66f60bf46e71/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211206160659-862468c7d6e0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211221195035-429b39de9b1c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220126215142-9970aeb2e350/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220207164111-0872dc986b00/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220218161850-94dd64e39d7c/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220222213610-43724f9ea8cf/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220304144024-325a89244dc8/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220310185008-1973136f34c6/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220324131243-acbaeb5b85eb/go.mod h1:hAL49I2IFola2sVEjAn7MEwsja0xp51I0tlGAf9hz4E= +google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220413183235-5e96e2839df9/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220414192740-2d67ff6cf2b4/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220421151946-72621c1f0bd3/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220429170224-98d788798c3e/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220519153652-3a47de7e79bd h1:e0TwkXOdbnH/1x5rc5MZ/VYyiZ4v+RdVfrGMqEwT68I= google.golang.org/genproto v0.0.0-20220519153652-3a47de7e79bd/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= +google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= @@ -742,12 +972,29 @@ google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKa google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= google.golang.org/grpc v1.32.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= +google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= +google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= +google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.37.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.37.1/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= +google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= +google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= +google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.46.2/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.47.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= google.golang.org/grpc v1.48.0 h1:rQOsyJ/8+ufEDJd/Gdsz7HG220Mh9HAhFHRGnIjda0w= google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +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/components/ide-proxy/components/ide-metrics-server/leeway.Dockerfile b/components/ide-metrics/leeway.Dockerfile similarity index 100% rename from components/ide-proxy/components/ide-metrics-server/leeway.Dockerfile rename to components/ide-metrics/leeway.Dockerfile diff --git a/components/ide-proxy/components/ide-metrics-server/main.go b/components/ide-metrics/main.go similarity index 100% rename from components/ide-proxy/components/ide-metrics-server/main.go rename to components/ide-metrics/main.go diff --git a/components/ide-proxy/components/ide-metrics-server/pkg/server/server.go b/components/ide-metrics/pkg/server/server.go similarity index 93% rename from components/ide-proxy/components/ide-metrics-server/pkg/server/server.go rename to components/ide-metrics/pkg/server/server.go index 718ad81be4272e..ff94f431d0552f 100644 --- a/components/ide-proxy/components/ide-metrics-server/pkg/server/server.go +++ b/components/ide-metrics/pkg/server/server.go @@ -5,27 +5,28 @@ package server import ( + "context" "fmt" "net" "net/http" + "os" "strings" "github.com/gitpod-io/gitpod/common-go/log" + api "github.com/gitpod-io/gitpod/ide-metrics-api" "github.com/gitpod-io/gitpod/ide-metrics-api/config" "github.com/gorilla/websocket" grpcruntime "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" "github.com/improbable-eng/grpc-web/go/grpcweb" "github.com/soheilhy/cmux" "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" ) type IDEMetricsServer struct { } -func New() *IDEMetricsServer { - return &IDEMetricsServer{} -} - func (s *IDEMetricsServer) Run(cfg *config.ServiceConfiguration) { apiServices := []RegisterableService{} diff --git a/components/ide-proxy/components/ide-metrics-server/pkg/server/services.go b/components/ide-metrics/pkg/server/services.go similarity index 100% rename from components/ide-proxy/components/ide-metrics-server/pkg/server/services.go rename to components/ide-metrics/pkg/server/services.go diff --git a/components/ide-proxy/components/ide-metrics-api/go/go.mod b/components/ide-proxy/components/ide-metrics-api/go/go.mod deleted file mode 100644 index b584a0e403bead..00000000000000 --- a/components/ide-proxy/components/ide-metrics-api/go/go.mod +++ /dev/null @@ -1,20 +0,0 @@ -module github.com/gitpod-io/gitpod/ide-metrics-api - -go 1.18 - -require ( - github.com/gitpod-io/gitpod/common-go v0.0.0-00010101000000-000000000000 - github.com/grpc-ecosystem/grpc-gateway/v2 v2.5.0 - google.golang.org/genproto v0.0.0-20210617175327-b9e0b3197ced - google.golang.org/grpc v1.45.0 - google.golang.org/protobuf v1.28.0 -) - -require ( - github.com/golang/protobuf v1.5.2 // indirect - golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 // indirect - golang.org/x/sys v0.0.0-20210510120138-977fb7262007 // indirect - golang.org/x/text v0.3.5 // indirect -) - -replace github.com/gitpod-io/gitpod/common-go => ../../../../common-go // leeway diff --git a/components/ide-proxy/components/ide-metrics-api/go/metrics.pb.go b/components/ide-proxy/components/ide-metrics-api/go/metrics.pb.go deleted file mode 100644 index 8b58233a90aee2..00000000000000 --- a/components/ide-proxy/components/ide-metrics-api/go/metrics.pb.go +++ /dev/null @@ -1,472 +0,0 @@ -// Copyright (c) 2022 Gitpod GmbH. All rights reserved. -// Licensed under the GNU Affero General Public License (AGPL). -// See License-AGPL.txt in the project root for license information. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.0 -// protoc v3.20.1 -// source: metrics.proto - -package api - -import ( - _ "google.golang.org/genproto/googleapis/api/annotations" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type LogLevel int32 - -const ( - LogLevel_Unknown LogLevel = 0 - LogLevel_Trace LogLevel = 1 - LogLevel_Debug LogLevel = 2 - LogLevel_Info LogLevel = 3 - LogLevel_Warning LogLevel = 4 - LogLevel_Error LogLevel = 5 - LogLevel_Critical LogLevel = 6 -) - -// Enum value maps for LogLevel. -var ( - LogLevel_name = map[int32]string{ - 0: "Unknown", - 1: "Trace", - 2: "Debug", - 3: "Info", - 4: "Warning", - 5: "Error", - 6: "Critical", - } - LogLevel_value = map[string]int32{ - "Unknown": 0, - "Trace": 1, - "Debug": 2, - "Info": 3, - "Warning": 4, - "Error": 5, - "Critical": 6, - } -) - -func (x LogLevel) Enum() *LogLevel { - p := new(LogLevel) - *p = x - return p -} - -func (x LogLevel) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (LogLevel) Descriptor() protoreflect.EnumDescriptor { - return file_metrics_proto_enumTypes[0].Descriptor() -} - -func (LogLevel) Type() protoreflect.EnumType { - return &file_metrics_proto_enumTypes[0] -} - -func (x LogLevel) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use LogLevel.Descriptor instead. -func (LogLevel) EnumDescriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{0} -} - -type ReportMetricsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *ReportMetricsRequest) Reset() { - *x = ReportMetricsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ReportMetricsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReportMetricsRequest) ProtoMessage() {} - -func (x *ReportMetricsRequest) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ReportMetricsRequest.ProtoReflect.Descriptor instead. -func (*ReportMetricsRequest) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{0} -} - -func (x *ReportMetricsRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ReportMetricsRequest) GetLabels() map[string]string { - if x != nil { - return x.Labels - } - return nil -} - -type ReportMetricsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ReportMetricsResponse) Reset() { - *x = ReportMetricsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ReportMetricsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReportMetricsResponse) ProtoMessage() {} - -func (x *ReportMetricsResponse) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ReportMetricsResponse.ProtoReflect.Descriptor instead. -func (*ReportMetricsResponse) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{1} -} - -type ReportLogRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - WorkspaceId string `protobuf:"bytes,1,opt,name=workspaceId,proto3" json:"workspaceId,omitempty"` - InstanceId string `protobuf:"bytes,2,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - Component string `protobuf:"bytes,3,opt,name=component,proto3" json:"component,omitempty"` - LogLevel LogLevel `protobuf:"varint,4,opt,name=logLevel,proto3,enum=ide_metrics_api.LogLevel" json:"logLevel,omitempty"` - Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` -} - -func (x *ReportLogRequest) Reset() { - *x = ReportLogRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ReportLogRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReportLogRequest) ProtoMessage() {} - -func (x *ReportLogRequest) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ReportLogRequest.ProtoReflect.Descriptor instead. -func (*ReportLogRequest) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{2} -} - -func (x *ReportLogRequest) GetWorkspaceId() string { - if x != nil { - return x.WorkspaceId - } - return "" -} - -func (x *ReportLogRequest) GetInstanceId() string { - if x != nil { - return x.InstanceId - } - return "" -} - -func (x *ReportLogRequest) GetComponent() string { - if x != nil { - return x.Component - } - return "" -} - -func (x *ReportLogRequest) GetLogLevel() LogLevel { - if x != nil { - return x.LogLevel - } - return LogLevel_Unknown -} - -func (x *ReportLogRequest) GetContent() string { - if x != nil { - return x.Content - } - return "" -} - -type ReportLogResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ReportLogResponse) Reset() { - *x = ReportLogResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ReportLogResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReportLogResponse) ProtoMessage() {} - -func (x *ReportLogResponse) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ReportLogResponse.ProtoReflect.Descriptor instead. -func (*ReportLogResponse) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{3} -} - -var File_metrics_proto protoreflect.FileDescriptor - -var file_metrics_proto_rawDesc = []byte{ - 0x0a, 0x0d, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x0f, 0x69, 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x61, 0x70, 0x69, - 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, - 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb0, - 0x01, 0x0a, 0x14, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x49, 0x0a, 0x06, 0x6c, - 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x69, 0x64, - 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, - 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, - 0x01, 0x22, 0x17, 0x0a, 0x15, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x74, 0x72, 0x69, - 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xc3, 0x01, 0x0a, 0x10, 0x52, - 0x65, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x20, 0x0a, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, - 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, - 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x12, - 0x35, 0x0a, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x19, 0x2e, 0x69, 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, - 0x61, 0x70, 0x69, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, - 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, - 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, - 0x22, 0x13, 0x0a, 0x11, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0x5d, 0x0a, 0x08, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, - 0x6c, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x09, - 0x0a, 0x05, 0x54, 0x72, 0x61, 0x63, 0x65, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x44, 0x65, 0x62, - 0x75, 0x67, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x6e, 0x66, 0x6f, 0x10, 0x03, 0x12, 0x0b, - 0x0a, 0x07, 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x45, - 0x72, 0x72, 0x6f, 0x72, 0x10, 0x05, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x72, 0x69, 0x74, 0x69, 0x63, - 0x61, 0x6c, 0x10, 0x06, 0x32, 0x83, 0x02, 0x0a, 0x0e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7e, 0x0a, 0x0c, 0x52, 0x65, 0x70, 0x6f, 0x72, - 0x74, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x12, 0x25, 0x2e, 0x69, 0x64, 0x65, 0x5f, 0x6d, 0x65, - 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, - 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, - 0x2e, 0x69, 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x61, 0x70, 0x69, - 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x22, 0x14, - 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x2f, 0x7b, 0x6e, - 0x61, 0x6d, 0x65, 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x71, 0x0a, 0x09, 0x72, 0x65, 0x70, 0x6f, 0x72, - 0x74, 0x4c, 0x6f, 0x67, 0x12, 0x25, 0x2e, 0x69, 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, - 0x63, 0x73, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x74, - 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x69, 0x64, - 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x15, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0f, 0x22, 0x0a, 0x2f, 0x72, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x6f, 0x67, 0x3a, 0x01, 0x2a, 0x42, 0x48, 0x0a, 0x19, 0x69, 0x6f, - 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x69, 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x72, - 0x69, 0x63, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, - 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x69, 0x64, 0x65, 0x2d, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, - 0x2f, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_metrics_proto_rawDescOnce sync.Once - file_metrics_proto_rawDescData = file_metrics_proto_rawDesc -) - -func file_metrics_proto_rawDescGZIP() []byte { - file_metrics_proto_rawDescOnce.Do(func() { - file_metrics_proto_rawDescData = protoimpl.X.CompressGZIP(file_metrics_proto_rawDescData) - }) - return file_metrics_proto_rawDescData -} - -var file_metrics_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_metrics_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_metrics_proto_goTypes = []interface{}{ - (LogLevel)(0), // 0: ide_metrics_api.LogLevel - (*ReportMetricsRequest)(nil), // 1: ide_metrics_api.ReportMetricsRequest - (*ReportMetricsResponse)(nil), // 2: ide_metrics_api.ReportMetricsResponse - (*ReportLogRequest)(nil), // 3: ide_metrics_api.ReportLogRequest - (*ReportLogResponse)(nil), // 4: ide_metrics_api.ReportLogResponse - nil, // 5: ide_metrics_api.ReportMetricsRequest.LabelsEntry -} -var file_metrics_proto_depIdxs = []int32{ - 5, // 0: ide_metrics_api.ReportMetricsRequest.labels:type_name -> ide_metrics_api.ReportMetricsRequest.LabelsEntry - 0, // 1: ide_metrics_api.ReportLogRequest.logLevel:type_name -> ide_metrics_api.LogLevel - 1, // 2: ide_metrics_api.MetricsService.ReportMetric:input_type -> ide_metrics_api.ReportMetricsRequest - 1, // 3: ide_metrics_api.MetricsService.reportLog:input_type -> ide_metrics_api.ReportMetricsRequest - 2, // 4: ide_metrics_api.MetricsService.ReportMetric:output_type -> ide_metrics_api.ReportMetricsResponse - 2, // 5: ide_metrics_api.MetricsService.reportLog:output_type -> ide_metrics_api.ReportMetricsResponse - 4, // [4:6] is the sub-list for method output_type - 2, // [2:4] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_metrics_proto_init() } -func file_metrics_proto_init() { - if File_metrics_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_metrics_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportMetricsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportMetricsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportLogRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportLogResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_metrics_proto_rawDesc, - NumEnums: 1, - NumMessages: 5, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_metrics_proto_goTypes, - DependencyIndexes: file_metrics_proto_depIdxs, - EnumInfos: file_metrics_proto_enumTypes, - MessageInfos: file_metrics_proto_msgTypes, - }.Build() - File_metrics_proto = out.File - file_metrics_proto_rawDesc = nil - file_metrics_proto_goTypes = nil - file_metrics_proto_depIdxs = nil -} diff --git a/gitpod-ws.code-workspace b/gitpod-ws.code-workspace index c1b9fdc610ef3b..4dab83671c4cf0 100644 --- a/gitpod-ws.code-workspace +++ b/gitpod-ws.code-workspace @@ -8,7 +8,7 @@ { "path": "components/ee/agent-smith" }, { "path": "components/gitpod-cli" }, { "path": "components/gitpod-protocol" }, - { "path": "components/ide-proxy/components/ide-metrics-server" }, + { "path": "components/ide-metrics" }, { "path": "components/image-builder-bob" }, { "path": "components/image-builder-mk3" }, { "path": "components/licensor" },