diff --git a/.circleci/config.yml b/.circleci/config.yml index f9554d0dc95..7dc1c25c06f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -26,7 +26,7 @@ jobs: - run: go mod vendor - run: > . $HOME/.nvm/nvm.sh && - cd examples/browser && + cd examples/internal/browser && npm install gulp-cli && npm install && ./node_modules/.bin/gulp diff --git a/Makefile b/Makefile index 03766b669ee..bf3e882eb46 100644 --- a/Makefile +++ b/Makefile @@ -11,8 +11,8 @@ SWAGGER_PLUGIN=bin/protoc-gen-swagger SWAGGER_PLUGIN_SRC= utilities/doc.go \ utilities/pattern.go \ utilities/trie.go \ - protoc-gen-swagger/genswagger/generator.go \ - protoc-gen-swagger/genswagger/template.go \ + protoc-gen-swagger/internal/genswagger/generator.go \ + protoc-gen-swagger/internal/genswagger/template.go \ protoc-gen-swagger/main.go SWAGGER_PLUGIN_PKG=./protoc-gen-swagger GATEWAY_PLUGIN=bin/protoc-gen-grpc-gateway @@ -21,22 +21,22 @@ GATEWAY_PLUGIN_SRC= utilities/doc.go \ utilities/pattern.go \ utilities/trie.go \ protoc-gen-grpc-gateway \ - protoc-gen-grpc-gateway/descriptor \ - protoc-gen-grpc-gateway/descriptor/registry.go \ - protoc-gen-grpc-gateway/descriptor/services.go \ - protoc-gen-grpc-gateway/descriptor/types.go \ - protoc-gen-grpc-gateway/descriptor/grpc_api_configuration.go \ - protoc-gen-grpc-gateway/descriptor/grpc_api_service.go \ - protoc-gen-grpc-gateway/generator \ - protoc-gen-grpc-gateway/generator/generator.go \ - protoc-gen-grpc-gateway/gengateway \ - protoc-gen-grpc-gateway/gengateway/doc.go \ - protoc-gen-grpc-gateway/gengateway/generator.go \ - protoc-gen-grpc-gateway/gengateway/template.go \ - protoc-gen-grpc-gateway/httprule \ - protoc-gen-grpc-gateway/httprule/compile.go \ - protoc-gen-grpc-gateway/httprule/parse.go \ - protoc-gen-grpc-gateway/httprule/types.go \ + internal/descriptor \ + internal/descriptor/registry.go \ + internal/descriptor/services.go \ + internal/descriptor/types.go \ + internal/descriptor/grpc_api_configuration.go \ + internal/descriptor/grpc_api_service.go \ + internal/generator \ + internal/generator/generator.go \ + protoc-gen-grpc-gateway/internal/gengateway \ + protoc-gen-grpc-gateway/internal/gengateway/doc.go \ + protoc-gen-grpc-gateway/internal/gengateway/generator.go \ + protoc-gen-grpc-gateway/internal/gengateway/template.go \ + internal/httprule \ + internal/httprule/compile.go \ + internal/httprule/parse.go \ + internal/httprule/types.go \ protoc-gen-grpc-gateway/main.go GATEWAY_PLUGIN_FLAGS?= SWAGGER_PLUGIN_FLAGS?= @@ -50,7 +50,7 @@ RUNTIME_GO=$(RUNTIME_PROTO:.proto=.pb.go) OPENAPIV2_PROTO=protoc-gen-swagger/options/openapiv2.proto protoc-gen-swagger/options/annotations.proto OPENAPIV2_GO=$(OPENAPIV2_PROTO:.proto=.pb.go) -PKGMAP=Mgoogle/protobuf/field_mask.proto=google.golang.org/genproto/protobuf/field_mask,Mgoogle/protobuf/descriptor.proto=$(GO_PLUGIN_PKG)/descriptor,Mexamples/proto/sub/message.proto=github.com/grpc-ecosystem/grpc-gateway/examples/proto/sub +PKGMAP=Mgoogle/protobuf/field_mask.proto=google.golang.org/genproto/protobuf/field_mask,Mgoogle/protobuf/descriptor.proto=$(GO_PLUGIN_PKG)/descriptor,Mexamples/internal/proto/sub/message.proto=github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/sub ADDITIONAL_GW_FLAGS= ifneq "$(GATEWAY_PLUGIN_FLAGS)" "" ADDITIONAL_GW_FLAGS=,$(GATEWAY_PLUGIN_FLAGS) @@ -59,39 +59,42 @@ ADDITIONAL_SWG_FLAGS= ifneq "$(SWAGGER_PLUGIN_FLAGS)" "" ADDITIONAL_SWG_FLAGS=,$(SWAGGER_PLUGIN_FLAGS) endif -SWAGGER_EXAMPLES=examples/proto/examplepb/echo_service.proto \ - examples/proto/examplepb/a_bit_of_everything.proto \ - examples/proto/examplepb/wrappers.proto \ - examples/proto/examplepb/stream.proto \ - examples/proto/examplepb/unannotated_echo_service.proto \ - examples/proto/examplepb/use_go_template.proto \ - examples/proto/examplepb/response_body_service.proto - -EXAMPLES=examples/proto/examplepb/echo_service.proto \ - examples/proto/examplepb/a_bit_of_everything.proto \ - examples/proto/examplepb/stream.proto \ - examples/proto/examplepb/flow_combination.proto \ - examples/proto/examplepb/non_standard_names.proto \ - examples/proto/examplepb/wrappers.proto \ - examples/proto/examplepb/unannotated_echo_service.proto \ - examples/proto/examplepb/use_go_template.proto \ - examples/proto/examplepb/response_body_service.proto +SWAGGER_EXAMPLES=examples/internal/proto/examplepb/echo_service.proto \ + examples/internal/proto/examplepb/a_bit_of_everything.proto \ + examples/internal/proto/examplepb/wrappers.proto \ + examples/internal/proto/examplepb/stream.proto \ + examples/internal/proto/examplepb/unannotated_echo_service.proto \ + examples/internal/proto/examplepb/use_go_template.proto \ + examples/internal/proto/examplepb/response_body_service.proto + +EXAMPLES=examples/internal/proto/examplepb/echo_service.proto \ + examples/internal/proto/examplepb/a_bit_of_everything.proto \ + examples/internal/proto/examplepb/stream.proto \ + examples/internal/proto/examplepb/flow_combination.proto \ + examples/internal/proto/examplepb/non_standard_names.proto \ + examples/internal/proto/examplepb/wrappers.proto \ + examples/internal/proto/examplepb/unannotated_echo_service.proto \ + examples/internal/proto/examplepb/use_go_template.proto \ + examples/internal/proto/examplepb/response_body_service.proto EXAMPLE_SVCSRCS=$(EXAMPLES:.proto=.pb.go) EXAMPLE_GWSRCS=$(EXAMPLES:.proto=.pb.gw.go) EXAMPLE_SWAGGERSRCS=$(SWAGGER_EXAMPLES:.proto=.swagger.json) -EXAMPLE_DEPS=examples/proto/pathenum/path_enum.proto examples/proto/sub/message.proto examples/proto/sub2/message.proto +EXAMPLE_DEPS=examples/internal/proto/pathenum/path_enum.proto examples/internal/proto/sub/message.proto examples/internal/proto/sub2/message.proto EXAMPLE_DEPSRCS=$(EXAMPLE_DEPS:.proto=.pb.go) -EXAMPLE_CLIENT_DIR=examples/clients -ECHO_EXAMPLE_SPEC=examples/proto/examplepb/echo_service.swagger.json +RUNTIME_TEST_PROTO=runtime/internal/examplepb/example.proto +RUNTIME_TEST_SRCS=$(RUNTIME_TEST_PROTO:.proto=pb.go) + +EXAMPLE_CLIENT_DIR=examples/internal/clients +ECHO_EXAMPLE_SPEC=examples/internal/proto/examplepb/echo_service.swagger.json ECHO_EXAMPLE_SRCS=$(EXAMPLE_CLIENT_DIR)/echo/client.go \ $(EXAMPLE_CLIENT_DIR)/echo/response.go \ $(EXAMPLE_CLIENT_DIR)/echo/configuration.go \ $(EXAMPLE_CLIENT_DIR)/echo/api_echo_service.go \ $(EXAMPLE_CLIENT_DIR)/echo/model_examplepb_simple_message.go \ $(EXAMPLE_CLIENT_DIR)/echo/model_examplepb_embedded.go -ABE_EXAMPLE_SPEC=examples/proto/examplepb/a_bit_of_everything.swagger.json +ABE_EXAMPLE_SPEC=examples/internal/proto/examplepb/a_bit_of_everything.swagger.json ABE_EXAMPLE_SRCS=$(EXAMPLE_CLIENT_DIR)/abe/model_a_bit_of_everything_nested.go \ $(EXAMPLE_CLIENT_DIR)/abe/api_a_bit_of_everything_service.go \ $(EXAMPLE_CLIENT_DIR)/abe/client.go \ @@ -108,13 +111,13 @@ ABE_EXAMPLE_SRCS=$(EXAMPLE_CLIENT_DIR)/abe/model_a_bit_of_everything_nested.go \ $(EXAMPLE_CLIENT_DIR)/abe/model_pathenum_path_enum.go \ $(EXAMPLE_CLIENT_DIR)/abe/model_protobuf_field_mask.go \ $(EXAMPLE_CLIENT_DIR)/abe/response.go -UNANNOTATED_ECHO_EXAMPLE_SPEC=examples/proto/examplepb/unannotated_echo_service.swagger.json +UNANNOTATED_ECHO_EXAMPLE_SPEC=examples/internal/proto/examplepb/unannotated_echo_service.swagger.json UNANNOTATED_ECHO_EXAMPLE_SRCS=$(EXAMPLE_CLIENT_DIR)/unannotatedecho/client.go \ $(EXAMPLE_CLIENT_DIR)/unannotatedecho/response.go \ $(EXAMPLE_CLIENT_DIR)/unannotatedecho/configuration.go \ $(EXAMPLE_CLIENT_DIR)/unannotatedecho/model_examplepb_unannotated_simple_message.go \ $(EXAMPLE_CLIENT_DIR)/unannotatedecho/api_unannotated_echo_service.go -RESPONSE_BODY_EXAMPLE_SPEC=examples/proto/examplepb/response_body_service.swagger.json +RESPONSE_BODY_EXAMPLE_SPEC=examples/internal/proto/examplepb/response_body_service.swagger.json RESPONSE_BODY_EXAMPLE_SRCS=$(EXAMPLE_CLIENT_DIR)/responsebody/client.go \ $(EXAMPLE_CLIENT_DIR)/responsebody/response.go \ $(EXAMPLE_CLIENT_DIR)/responsebody/configuration.go \ @@ -157,39 +160,43 @@ $(EXAMPLE_DEPSRCS): $(GO_PLUGIN) $(EXAMPLE_DEPS) protoc -I $(PROTOC_INC_PATH) -I. --plugin=$(GO_PLUGIN) --go_out=$(PKGMAP),plugins=grpc,paths=source_relative:$(OUTPUT_DIR) $(@:.pb.go=.proto) cp $(OUTPUT_DIR)/$@ $@ || cp $(OUTPUT_DIR)/$@ $@ -$(EXAMPLE_GWSRCS): ADDITIONAL_GW_FLAGS:=$(ADDITIONAL_GW_FLAGS),grpc_api_configuration=examples/proto/examplepb/unannotated_echo_service.yaml +$(RUNTIME_TEST_SRCS): $(GO_PLUGIN) $(RUNTIME_TEST_PROTO) + protoc -I $(PROTOC_INC_PATH) -I. -I$(GOOGLEAPIS_DIR) --plugin=$(GO_PLUGIN) --go_out=$(PKGMAP),plugins=grpc,paths=source_relative:. $(RUNTIME_TEST_PROTO) + +$(EXAMPLE_GWSRCS): ADDITIONAL_GW_FLAGS:=$(ADDITIONAL_GW_FLAGS),grpc_api_configuration=examples/internal/proto/examplepb/unannotated_echo_service.yaml $(EXAMPLE_GWSRCS): $(GATEWAY_PLUGIN) $(EXAMPLES) protoc -I $(PROTOC_INC_PATH) -I. -I$(GOOGLEAPIS_DIR) --plugin=$(GATEWAY_PLUGIN) --grpc-gateway_out=logtostderr=true,allow_repeated_fields_in_body=true,$(PKGMAP)$(ADDITIONAL_GW_FLAGS):. $(EXAMPLES) -$(EXAMPLE_SWAGGERSRCS): ADDITIONAL_SWG_FLAGS:=$(ADDITIONAL_SWG_FLAGS),grpc_api_configuration=examples/proto/examplepb/unannotated_echo_service.yaml +$(EXAMPLE_SWAGGERSRCS): ADDITIONAL_SWG_FLAGS:=$(ADDITIONAL_SWG_FLAGS),grpc_api_configuration=examples/internal/proto/examplepb/unannotated_echo_service.yaml $(EXAMPLE_SWAGGERSRCS): $(SWAGGER_PLUGIN) $(SWAGGER_EXAMPLES) protoc -I $(PROTOC_INC_PATH) -I. -I$(GOOGLEAPIS_DIR) --plugin=$(SWAGGER_PLUGIN) --swagger_out=logtostderr=true,allow_repeated_fields_in_body=true,use_go_templates=true,$(PKGMAP)$(ADDITIONAL_SWG_FLAGS):. $(SWAGGER_EXAMPLES) $(ECHO_EXAMPLE_SRCS): $(ECHO_EXAMPLE_SPEC) $(SWAGGER_CODEGEN) generate -i $(ECHO_EXAMPLE_SPEC) \ - -l go -o examples/clients/echo --additional-properties packageName=echo + -l go -o examples/internal/clients/echo --additional-properties packageName=echo @rm -f $(EXAMPLE_CLIENT_DIR)/echo/README.md \ $(EXAMPLE_CLIENT_DIR)/echo/git_push.sh $(ABE_EXAMPLE_SRCS): $(ABE_EXAMPLE_SPEC) $(SWAGGER_CODEGEN) generate -i $(ABE_EXAMPLE_SPEC) \ - -l go -o examples/clients/abe --additional-properties packageName=abe + -l go -o examples/internal/clients/abe --additional-properties packageName=abe @rm -f $(EXAMPLE_CLIENT_DIR)/abe/README.md \ $(EXAMPLE_CLIENT_DIR)/abe/git_push.sh $(UNANNOTATED_ECHO_EXAMPLE_SRCS): $(UNANNOTATED_ECHO_EXAMPLE_SPEC) $(SWAGGER_CODEGEN) generate -i $(UNANNOTATED_ECHO_EXAMPLE_SPEC) \ - -l go -o examples/clients/unannotatedecho --additional-properties packageName=unannotatedecho + -l go -o examples/internal/clients/unannotatedecho --additional-properties packageName=unannotatedecho @rm -f $(EXAMPLE_CLIENT_DIR)/unannotatedecho/README.md \ $(EXAMPLE_CLIENT_DIR)/unannotatedecho/git_push.sh $(RESPONSE_BODY_EXAMPLE_SRCS): $(RESPONSE_BODY_EXAMPLE_SPEC) $(SWAGGER_CODEGEN) generate -i $(RESPONSE_BODY_EXAMPLE_SPEC) \ - -l go -o examples/clients/responsebody --additional-properties packageName=responsebody + -l go -o examples/internal/clients/responsebody --additional-properties packageName=responsebody @rm -f $(EXAMPLE_CLIENT_DIR)/responsebody/README.md \ $(EXAMPLE_CLIENT_DIR)/responsebody/git_push.sh examples: $(EXAMPLE_DEPSRCS) $(EXAMPLE_SVCSRCS) $(EXAMPLE_GWSRCS) $(EXAMPLE_SWAGGERSRCS) $(EXAMPLE_CLIENT_SRCS) -test: examples +testproto: $(RUNTIME_TEST_SRCS) +test: examples testproto go test -short -race ./... - go test -race ./examples/integration -args -network=unix -endpoint=test.sock + go test -race ./examples/internal/integration -args -network=unix -endpoint=test.sock changelog: docker run --rm \ --interactive \ @@ -224,5 +231,6 @@ realclean: distclean rm -f $(EXAMPLE_SWAGGERSRCS) rm -f $(EXAMPLE_CLIENT_SRCS) rm -f $(OPENAPIV2_GO) + rm -f $(RUNTIME_TEST_SRCS) .PHONY: generate examples test lint clean distclean realclean diff --git a/README.md b/README.md index 4b9aa56b23b..79ca1d25d96 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,7 @@ annotation to your .proto file } ``` - See [a_bit_of_everything.proto](examples/proto/examplepb/a_bit_of_everything.proto) + See [a_bit_of_everything.proto](examples/internal/proto/examplepb/a_bit_of_everything.proto) for examples of more annotations you can add to customize gateway behavior and generated Swagger output. @@ -261,7 +261,7 @@ instead of protobuf names). Run `protoc-gen-swagger --help` for more flag details. Further Swagger customization is possible by annotating your `.proto` files with options from [openapiv2.proto](protoc-gen-swagger/options/openapiv2.proto) - see -[a_bit_of_everything.proto](examples/proto/examplepb/a_bit_of_everything.proto) +[a_bit_of_everything.proto](examples/internal/proto/examplepb/a_bit_of_everything.proto) for examples. ## More Examples diff --git a/docs/_docs/examples.md b/docs/_docs/examples.md index 78d93d720db..e8d5f4c77ae 100644 --- a/docs/_docs/examples.md +++ b/docs/_docs/examples.md @@ -4,7 +4,7 @@ category: documentation # Examples -Examples are available under `examples` directory. +Examples are available under `examples/internal` directory. * `proto/examplepb/echo_service.proto`, `proto/examplepb/a_bit_of_everything.proto`, `proto/examplepb/unannotated_echo_service.proto`: service definition * `proto/examplepb/echo_service.pb.go`, `proto/examplepb/a_bit_of_everything.pb.go`, `proto/examplepb/unannotated_echo_service.pb.go`: [generated] stub of the service * `proto/examplepb/echo_service.pb.gw.go`, `proto/examplepb/a_bit_of_everything.pb.gw.go`, `proto/examplepb/uannotated_echo_service.pb.gw.go`: [generated] reverse proxy for the service diff --git a/docs/_docs/faq.md b/docs/_docs/faq.md index 766c402c80b..35307c66424 100644 --- a/docs/_docs/faq.md +++ b/docs/_docs/faq.md @@ -17,7 +17,7 @@ See the question above at first. Grpc-gateway is intended to cover 80% of use cases without forcing you to write comprehensive but complicated annotations. So grpc-gateway itself does not always cover all the use cases you have by design. In other words, grpc-gateway automates typical boring boilerplate mapping between gRPC and HTTP/1 communication, but it does not do arbitrarily complex custom mappings for you. On the other hand, you can still add whatever you want as a middleware which wraps [`runtime.ServeMux`](http://godoc.org/github.com/grpc-ecosystem/grpc-gateway/runtime#ServeMux). Since `runtime.ServeMux` is just a standard [`http.Handler`](http://golang.org/pkg/http#Handler), you can easily write a custom wrapper of `runtime.ServeMux`, leveraged with existing third-party libraries in Go. -e.g. https://github.com/grpc-ecosystem/grpc-gateway/blob/master/examples/main.go +e.g. https://github.com/grpc-ecosystem/grpc-gateway/blob/master/examples/internal/main.go ## My gRPC server is written in (Scala|C++|Ruby|Haskell|....). Is there a (Scala|C++|Ruby|Haskell|....) version of grpc-gateway? diff --git a/docs/_docs/patch.md b/docs/_docs/patch.md index 2eaac3b0166..d1543eb8350 100644 --- a/docs/_docs/patch.md +++ b/docs/_docs/patch.md @@ -7,8 +7,8 @@ The HTTP PATCH method allows a resource to be partially updated. The idea, If a binding is mapped to patch and the request message has exactly one FieldMask message in it, additional code is rendered for the gateway handler that will populate the FieldMask based on the request body. There are two scenarios: -- The FieldMask is hidden from the REST request as per the [Google API design guide](https://cloud.google.com/apis/design/standard_methods#update) (as in the first additional binding in the [UpdateV2](https://github.com/grpc-ecosystem/grpc-gateway/blob/master/examples/proto/examplepb/a_bit_of_everything.proto#L366) example). In this case, the FieldMask is updated from the request body and set in the gRPC request message. -- The FieldMask is exposed to the REST request (as in the second additional binding in the [UpdateV2](https://github.com/grpc-ecosystem/grpc-gateway/blob/master/examples/proto/examplepb/a_bit_of_everything.proto#L370) example). For this case, the field mask is left untouched by the gateway. +- The FieldMask is hidden from the REST request as per the [Google API design guide](https://cloud.google.com/apis/design/standard_methods#update) (as in the first additional binding in the [UpdateV2](https://github.com/grpc-ecosystem/grpc-gateway/blob/master/examples/internal/proto/examplepb/a_bit_of_everything.proto#L366) example). In this case, the FieldMask is updated from the request body and set in the gRPC request message. +- The FieldMask is exposed to the REST request (as in the second additional binding in the [UpdateV2](https://github.com/grpc-ecosystem/grpc-gateway/blob/master/examples/internal/proto/examplepb/a_bit_of_everything.proto#L370) example). For this case, the field mask is left untouched by the gateway. ## Example Usage 1. Create PATCH request. diff --git a/docs/_docs/usage.md b/docs/_docs/usage.md index 7ccf52e0abd..02eed3d1e0e 100644 --- a/docs/_docs/usage.md +++ b/docs/_docs/usage.md @@ -68,7 +68,7 @@ Make sure that your `$GOPATH/bin` is in your `$PATH`. } ``` - See [a_bit_of_everything.proto](examples/proto/examplepb/a_bit_of_everything.proto) + See [a_bit_of_everything.proto](examples/internal/proto/examplepb/a_bit_of_everything.proto) for examples of more annotations you can add to customize gateway behavior and generated Swagger output. @@ -202,7 +202,7 @@ instead of protobuf names). Run `protoc-gen-swagger --help` for more flag details. Further Swagger customization is possible by annotating your `.proto` files with options from [openapiv2.proto](protoc-gen-swagger/options/openapiv2.proto) - see -[a_bit_of_everything.proto](examples/proto/examplepb/a_bit_of_everything.proto) +[a_bit_of_everything.proto](examples/internal/proto/examplepb/a_bit_of_everything.proto) for examples. # Mapping gRPC to HTTP diff --git a/docs/_docs/usegotemplates.md b/docs/_docs/usegotemplates.md index 69dfa9474a7..f2ae6c9ce5c 100644 --- a/docs/_docs/usegotemplates.md +++ b/docs/_docs/usegotemplates.md @@ -90,4 +90,4 @@ This is how the swagger file would be rendered in [Postman](https://www.getpostm ![Screenshot swaggerfile in Postman](../_imgs/gotemplates/postman.png "Postman") -For a more detailed example of a protofile that has Go templates enabled, [click here](https://github.com/grpc-ecosystem/grpc-gateway/blob/master/examples/proto/examplepb/use_go_template.proto "Example protofile with Go template"). +For a more detailed example of a protofile that has Go templates enabled, [click here](https://github.com/grpc-ecosystem/grpc-gateway/blob/master/examples/internal/proto/examplepb/use_go_template.proto "Example protofile with Go template"). diff --git a/examples/README.md b/examples/internal/README.md similarity index 96% rename from examples/README.md rename to examples/internal/README.md index b7b486f244f..26d568c8a34 100644 --- a/examples/README.md +++ b/examples/internal/README.md @@ -9,7 +9,7 @@ Follow the guides from this [README.md](./browser/README.md) to run the server a ```bash # Make sure you are in the correct directory: # $GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/examples -$ cd examples/browser +$ cd examples/internal/browser $ pwd # Install gulp diff --git a/examples/browser/.gitignore b/examples/internal/browser/.gitignore similarity index 100% rename from examples/browser/.gitignore rename to examples/internal/browser/.gitignore diff --git a/examples/browser/README.md b/examples/internal/browser/README.md similarity index 100% rename from examples/browser/README.md rename to examples/internal/browser/README.md diff --git a/examples/browser/a_bit_of_everything_service.spec.js b/examples/internal/browser/a_bit_of_everything_service.spec.js similarity index 100% rename from examples/browser/a_bit_of_everything_service.spec.js rename to examples/internal/browser/a_bit_of_everything_service.spec.js diff --git a/examples/browser/bin/.gitignore b/examples/internal/browser/bin/.gitignore similarity index 100% rename from examples/browser/bin/.gitignore rename to examples/internal/browser/bin/.gitignore diff --git a/examples/browser/bower.json b/examples/internal/browser/bower.json similarity index 100% rename from examples/browser/bower.json rename to examples/internal/browser/bower.json diff --git a/examples/browser/echo_service.spec.js b/examples/internal/browser/echo_service.spec.js similarity index 100% rename from examples/browser/echo_service.spec.js rename to examples/internal/browser/echo_service.spec.js diff --git a/examples/browser/gulpfile.js b/examples/internal/browser/gulpfile.js similarity index 76% rename from examples/browser/gulpfile.js rename to examples/internal/browser/gulpfile.js index 233afed40e0..a0a2411525d 100644 --- a/examples/browser/gulpfile.js +++ b/examples/internal/browser/gulpfile.js @@ -11,28 +11,28 @@ var shell = require('gulp-shell'); var jasmineBrowser = require('gulp-jasmine-browser'); var webpack = require('webpack-stream'); -gulp.task('bower', function(){ +gulp.task('bower', function () { return bower(); }); gulp.task('server', shell.task([ - 'go build -o bin/example-server github.com/grpc-ecosystem/grpc-gateway/examples/cmd/example-grpc-server', + 'go build -o bin/example-server github.com/grpc-ecosystem/grpc-gateway/examples/internal/cmd/example-grpc-server', ])); gulp.task('gateway', shell.task([ - 'go build -o bin/example-gw github.com/grpc-ecosystem/grpc-gateway/examples/cmd/example-gateway-server', + 'go build -o bin/example-gw github.com/grpc-ecosystem/grpc-gateway/examples/internal/cmd/example-gateway-server', ])); -gulp.task('serve-server', ['server'], function(){ +gulp.task('serve-server', ['server'], function () { gprocess.start('server-server', 'bin/example-server', [ - '--logtostderr', + '--logtostderr', ]); gulp.watch('bin/example-server', ['serve-server']); }); -gulp.task('serve-gateway', ['gateway', 'serve-server'], function(){ +gulp.task('serve-gateway', ['gateway', 'serve-server'], function () { gprocess.start('gateway-server', 'bin/example-gw', [ - '--logtostderr', '--swagger_dir', path.join(__dirname, "../proto/examplepb"), + '--logtostderr', '--swagger_dir', path.join(__dirname, "../proto/examplepb"), ]); gulp.watch('bin/example-gw', ['serve-gateway']); }); @@ -40,9 +40,9 @@ gulp.task('serve-gateway', ['gateway', 'serve-server'], function(){ gulp.task('backends', ['serve-gateway', 'serve-server']); var specFiles = ['*.spec.js']; -gulp.task('test', ['backends'], function(done) { +gulp.task('test', ['backends'], function (done) { return gulp.src(specFiles) - .pipe(webpack({output: {filename: 'spec.js'}})) + .pipe(webpack({ output: { filename: 'spec.js' } })) .pipe(jasmineBrowser.specRunner({ console: true, sourceMappedStacktrace: true, @@ -52,20 +52,20 @@ gulp.task('test', ['backends'], function(done) { catch: true, throwFailures: true, })) - .on('error', function(err) { + .on('error', function (err) { done(err); process.exit(1); }) .pipe(exit()); }); -gulp.task('serve', ['backends'], function(done) { +gulp.task('serve', ['backends'], function (done) { var JasminePlugin = require('gulp-jasmine-browser/webpack/jasmine-plugin'); var plugin = new JasminePlugin(); return gulp.src(specFiles) .pipe(webpack({ - output: {filename: 'spec.js'}, + output: { filename: 'spec.js' }, watch: true, plugins: [plugin], })) diff --git a/examples/browser/index.html b/examples/internal/browser/index.html similarity index 100% rename from examples/browser/index.html rename to examples/internal/browser/index.html diff --git a/examples/browser/package.json b/examples/internal/browser/package.json similarity index 100% rename from examples/browser/package.json rename to examples/internal/browser/package.json diff --git a/examples/clients/abe/.gitignore b/examples/internal/clients/abe/.gitignore similarity index 100% rename from examples/clients/abe/.gitignore rename to examples/internal/clients/abe/.gitignore diff --git a/examples/clients/abe/.swagger-codegen-ignore b/examples/internal/clients/abe/.swagger-codegen-ignore similarity index 100% rename from examples/clients/abe/.swagger-codegen-ignore rename to examples/internal/clients/abe/.swagger-codegen-ignore diff --git a/examples/clients/abe/.swagger-codegen/VERSION b/examples/internal/clients/abe/.swagger-codegen/VERSION similarity index 100% rename from examples/clients/abe/.swagger-codegen/VERSION rename to examples/internal/clients/abe/.swagger-codegen/VERSION diff --git a/examples/clients/abe/BUILD.bazel b/examples/internal/clients/abe/BUILD.bazel similarity index 88% rename from examples/clients/abe/BUILD.bazel rename to examples/internal/clients/abe/BUILD.bazel index a54d462444e..9c1bfc9ce2b 100644 --- a/examples/clients/abe/BUILD.bazel +++ b/examples/internal/clients/abe/BUILD.bazel @@ -26,10 +26,10 @@ go_library( "model_sub_string_message.go", "response.go", ], - importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/clients/abe", + importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/internal/clients/abe", deps = [ - "//examples/proto/examplepb:go_default_library", - "//examples/proto/pathenum:go_default_library", + "//examples/internal/proto/examplepb:go_default_library", + "//examples/internal/proto/pathenum:go_default_library", "//runtime:go_default_library", "@com_github_antihax_optional//:go_default_library", "@org_golang_x_oauth2//:go_default_library", diff --git a/examples/clients/abe/api/swagger.yaml b/examples/internal/clients/abe/api/swagger.yaml similarity index 100% rename from examples/clients/abe/api/swagger.yaml rename to examples/internal/clients/abe/api/swagger.yaml diff --git a/examples/clients/abe/api_a_bit_of_everything_service.go b/examples/internal/clients/abe/api_a_bit_of_everything_service.go similarity index 100% rename from examples/clients/abe/api_a_bit_of_everything_service.go rename to examples/internal/clients/abe/api_a_bit_of_everything_service.go diff --git a/examples/clients/abe/api_camel_case_service_name.go b/examples/internal/clients/abe/api_camel_case_service_name.go similarity index 100% rename from examples/clients/abe/api_camel_case_service_name.go rename to examples/internal/clients/abe/api_camel_case_service_name.go diff --git a/examples/clients/abe/api_echo_rpc.go b/examples/internal/clients/abe/api_echo_rpc.go similarity index 100% rename from examples/clients/abe/api_echo_rpc.go rename to examples/internal/clients/abe/api_echo_rpc.go diff --git a/examples/clients/abe/client.go b/examples/internal/clients/abe/client.go similarity index 100% rename from examples/clients/abe/client.go rename to examples/internal/clients/abe/client.go diff --git a/examples/clients/abe/configuration.go b/examples/internal/clients/abe/configuration.go similarity index 100% rename from examples/clients/abe/configuration.go rename to examples/internal/clients/abe/configuration.go diff --git a/examples/clients/abe/enum_helper.go b/examples/internal/clients/abe/enum_helper.go similarity index 89% rename from examples/clients/abe/enum_helper.go rename to examples/internal/clients/abe/enum_helper.go index df9e20fb66e..01a68b848dd 100644 --- a/examples/clients/abe/enum_helper.go +++ b/examples/internal/clients/abe/enum_helper.go @@ -1,8 +1,8 @@ package abe import ( - pbexamplepb "github.com/grpc-ecosystem/grpc-gateway/examples/proto/examplepb" - pbpathenum "github.com/grpc-ecosystem/grpc-gateway/examples/proto/pathenum" + pbexamplepb "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/examplepb" + pbpathenum "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/pathenum" "github.com/grpc-ecosystem/grpc-gateway/runtime" ) diff --git a/examples/clients/abe/model_a_bit_of_everything_nested.go b/examples/internal/clients/abe/model_a_bit_of_everything_nested.go similarity index 100% rename from examples/clients/abe/model_a_bit_of_everything_nested.go rename to examples/internal/clients/abe/model_a_bit_of_everything_nested.go diff --git a/examples/clients/abe/model_examplepb_a_bit_of_everything.go b/examples/internal/clients/abe/model_examplepb_a_bit_of_everything.go similarity index 100% rename from examples/clients/abe/model_examplepb_a_bit_of_everything.go rename to examples/internal/clients/abe/model_examplepb_a_bit_of_everything.go diff --git a/examples/clients/abe/model_examplepb_a_bit_of_everything_repeated.go b/examples/internal/clients/abe/model_examplepb_a_bit_of_everything_repeated.go similarity index 100% rename from examples/clients/abe/model_examplepb_a_bit_of_everything_repeated.go rename to examples/internal/clients/abe/model_examplepb_a_bit_of_everything_repeated.go diff --git a/examples/clients/abe/model_examplepb_body.go b/examples/internal/clients/abe/model_examplepb_body.go similarity index 100% rename from examples/clients/abe/model_examplepb_body.go rename to examples/internal/clients/abe/model_examplepb_body.go diff --git a/examples/clients/abe/model_examplepb_numeric_enum.go b/examples/internal/clients/abe/model_examplepb_numeric_enum.go similarity index 100% rename from examples/clients/abe/model_examplepb_numeric_enum.go rename to examples/internal/clients/abe/model_examplepb_numeric_enum.go diff --git a/examples/clients/abe/model_examplepb_update_v2_request.go b/examples/internal/clients/abe/model_examplepb_update_v2_request.go similarity index 100% rename from examples/clients/abe/model_examplepb_update_v2_request.go rename to examples/internal/clients/abe/model_examplepb_update_v2_request.go diff --git a/examples/clients/abe/model_message_path_enum_nested_path_enum.go b/examples/internal/clients/abe/model_message_path_enum_nested_path_enum.go similarity index 100% rename from examples/clients/abe/model_message_path_enum_nested_path_enum.go rename to examples/internal/clients/abe/model_message_path_enum_nested_path_enum.go diff --git a/examples/clients/abe/model_nested_deep_enum.go b/examples/internal/clients/abe/model_nested_deep_enum.go similarity index 100% rename from examples/clients/abe/model_nested_deep_enum.go rename to examples/internal/clients/abe/model_nested_deep_enum.go diff --git a/examples/clients/abe/model_pathenum_path_enum.go b/examples/internal/clients/abe/model_pathenum_path_enum.go similarity index 100% rename from examples/clients/abe/model_pathenum_path_enum.go rename to examples/internal/clients/abe/model_pathenum_path_enum.go diff --git a/examples/clients/abe/model_protobuf_any.go b/examples/internal/clients/abe/model_protobuf_any.go similarity index 100% rename from examples/clients/abe/model_protobuf_any.go rename to examples/internal/clients/abe/model_protobuf_any.go diff --git a/examples/clients/abe/model_protobuf_field_mask.go b/examples/internal/clients/abe/model_protobuf_field_mask.go similarity index 100% rename from examples/clients/abe/model_protobuf_field_mask.go rename to examples/internal/clients/abe/model_protobuf_field_mask.go diff --git a/examples/clients/abe/model_runtime_error.go b/examples/internal/clients/abe/model_runtime_error.go similarity index 100% rename from examples/clients/abe/model_runtime_error.go rename to examples/internal/clients/abe/model_runtime_error.go diff --git a/examples/clients/abe/model_sub_string_message.go b/examples/internal/clients/abe/model_sub_string_message.go similarity index 100% rename from examples/clients/abe/model_sub_string_message.go rename to examples/internal/clients/abe/model_sub_string_message.go diff --git a/examples/clients/abe/response.go b/examples/internal/clients/abe/response.go similarity index 100% rename from examples/clients/abe/response.go rename to examples/internal/clients/abe/response.go diff --git a/examples/clients/echo/.gitignore b/examples/internal/clients/echo/.gitignore similarity index 100% rename from examples/clients/echo/.gitignore rename to examples/internal/clients/echo/.gitignore diff --git a/examples/clients/echo/.swagger-codegen-ignore b/examples/internal/clients/echo/.swagger-codegen-ignore similarity index 100% rename from examples/clients/echo/.swagger-codegen-ignore rename to examples/internal/clients/echo/.swagger-codegen-ignore diff --git a/examples/clients/echo/.swagger-codegen/VERSION b/examples/internal/clients/echo/.swagger-codegen/VERSION similarity index 100% rename from examples/clients/echo/.swagger-codegen/VERSION rename to examples/internal/clients/echo/.swagger-codegen/VERSION diff --git a/examples/clients/echo/BUILD.bazel b/examples/internal/clients/echo/BUILD.bazel similarity index 96% rename from examples/clients/echo/BUILD.bazel rename to examples/internal/clients/echo/BUILD.bazel index 5700dd477c1..9f4aaa27eca 100644 --- a/examples/clients/echo/BUILD.bazel +++ b/examples/internal/clients/echo/BUILD.bazel @@ -14,7 +14,7 @@ go_library( "model_runtime_error.go", "response.go", ], - importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/clients/echo", + importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/internal/clients/echo", deps = [ "@com_github_antihax_optional//:go_default_library", "@org_golang_x_oauth2//:go_default_library", diff --git a/examples/clients/echo/api/swagger.yaml b/examples/internal/clients/echo/api/swagger.yaml similarity index 100% rename from examples/clients/echo/api/swagger.yaml rename to examples/internal/clients/echo/api/swagger.yaml diff --git a/examples/clients/echo/api_echo_service.go b/examples/internal/clients/echo/api_echo_service.go similarity index 100% rename from examples/clients/echo/api_echo_service.go rename to examples/internal/clients/echo/api_echo_service.go diff --git a/examples/clients/echo/client.go b/examples/internal/clients/echo/client.go similarity index 100% rename from examples/clients/echo/client.go rename to examples/internal/clients/echo/client.go diff --git a/examples/clients/echo/configuration.go b/examples/internal/clients/echo/configuration.go similarity index 100% rename from examples/clients/echo/configuration.go rename to examples/internal/clients/echo/configuration.go diff --git a/examples/clients/echo/model_examplepb_embedded.go b/examples/internal/clients/echo/model_examplepb_embedded.go similarity index 100% rename from examples/clients/echo/model_examplepb_embedded.go rename to examples/internal/clients/echo/model_examplepb_embedded.go diff --git a/examples/clients/echo/model_examplepb_simple_message.go b/examples/internal/clients/echo/model_examplepb_simple_message.go similarity index 100% rename from examples/clients/echo/model_examplepb_simple_message.go rename to examples/internal/clients/echo/model_examplepb_simple_message.go diff --git a/examples/clients/echo/model_protobuf_any.go b/examples/internal/clients/echo/model_protobuf_any.go similarity index 100% rename from examples/clients/echo/model_protobuf_any.go rename to examples/internal/clients/echo/model_protobuf_any.go diff --git a/examples/clients/echo/model_runtime_error.go b/examples/internal/clients/echo/model_runtime_error.go similarity index 100% rename from examples/clients/echo/model_runtime_error.go rename to examples/internal/clients/echo/model_runtime_error.go diff --git a/examples/clients/echo/response.go b/examples/internal/clients/echo/response.go similarity index 100% rename from examples/clients/echo/response.go rename to examples/internal/clients/echo/response.go diff --git a/examples/clients/responsebody/.gitignore b/examples/internal/clients/responsebody/.gitignore similarity index 100% rename from examples/clients/responsebody/.gitignore rename to examples/internal/clients/responsebody/.gitignore diff --git a/examples/clients/responsebody/.swagger-codegen-ignore b/examples/internal/clients/responsebody/.swagger-codegen-ignore similarity index 100% rename from examples/clients/responsebody/.swagger-codegen-ignore rename to examples/internal/clients/responsebody/.swagger-codegen-ignore diff --git a/examples/clients/responsebody/.swagger-codegen/VERSION b/examples/internal/clients/responsebody/.swagger-codegen/VERSION similarity index 100% rename from examples/clients/responsebody/.swagger-codegen/VERSION rename to examples/internal/clients/responsebody/.swagger-codegen/VERSION diff --git a/examples/clients/responsebody/BUILD.bazel b/examples/internal/clients/responsebody/BUILD.bazel similarity index 95% rename from examples/clients/responsebody/BUILD.bazel rename to examples/internal/clients/responsebody/BUILD.bazel index cf94bfa564a..4b5a31badea 100644 --- a/examples/clients/responsebody/BUILD.bazel +++ b/examples/internal/clients/responsebody/BUILD.bazel @@ -16,7 +16,7 @@ go_library( "model_runtime_error.go", "response.go", ], - importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/clients/responsebody", + importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/internal/clients/responsebody", visibility = ["//visibility:public"], deps = ["@org_golang_x_oauth2//:go_default_library"], ) diff --git a/examples/clients/responsebody/api/swagger.yaml b/examples/internal/clients/responsebody/api/swagger.yaml similarity index 99% rename from examples/clients/responsebody/api/swagger.yaml rename to examples/internal/clients/responsebody/api/swagger.yaml index 30d7604c7ff..1b9cedfa7cc 100644 --- a/examples/clients/responsebody/api/swagger.yaml +++ b/examples/internal/clients/responsebody/api/swagger.yaml @@ -2,7 +2,7 @@ swagger: "2.0" info: version: "version not set" - title: "examples/proto/examplepb/response_body_service.proto" + title: "examples/internal/proto/examplepb/response_body_service.proto" consumes: - "application/json" produces: diff --git a/examples/clients/responsebody/api_response_body_service.go b/examples/internal/clients/responsebody/api_response_body_service.go similarity index 99% rename from examples/clients/responsebody/api_response_body_service.go rename to examples/internal/clients/responsebody/api_response_body_service.go index 575d8b40eb4..12637f0acfa 100644 --- a/examples/clients/responsebody/api_response_body_service.go +++ b/examples/internal/clients/responsebody/api_response_body_service.go @@ -1,5 +1,5 @@ /* - * examples/proto/examplepb/response_body_service.proto + * examples/internal/proto/examplepb/response_body_service.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * diff --git a/examples/clients/responsebody/client.go b/examples/internal/clients/responsebody/client.go similarity index 98% rename from examples/clients/responsebody/client.go rename to examples/internal/clients/responsebody/client.go index e728fd1eecd..dfe97e57135 100644 --- a/examples/clients/responsebody/client.go +++ b/examples/internal/clients/responsebody/client.go @@ -1,5 +1,5 @@ /* - * examples/proto/examplepb/response_body_service.proto + * examples/internal/proto/examplepb/response_body_service.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -37,7 +37,7 @@ var ( xmlCheck = regexp.MustCompile("(?i:[application|text]/xml)") ) -// APIClient manages communication with the examples/proto/examplepb/response_body_service.proto API vversion not set +// APIClient manages communication with the examples/internal/proto/examplepb/response_body_service.proto API vversion not set // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration diff --git a/examples/clients/responsebody/configuration.go b/examples/internal/clients/responsebody/configuration.go similarity index 97% rename from examples/clients/responsebody/configuration.go rename to examples/internal/clients/responsebody/configuration.go index cae2bff96f6..fa7de58d731 100644 --- a/examples/clients/responsebody/configuration.go +++ b/examples/internal/clients/responsebody/configuration.go @@ -1,5 +1,5 @@ /* - * examples/proto/examplepb/response_body_service.proto + * examples/internal/proto/examplepb/response_body_service.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * diff --git a/examples/clients/responsebody/docs/ExamplepbRepeatedResponseBodyOut.md b/examples/internal/clients/responsebody/docs/ExamplepbRepeatedResponseBodyOut.md similarity index 100% rename from examples/clients/responsebody/docs/ExamplepbRepeatedResponseBodyOut.md rename to examples/internal/clients/responsebody/docs/ExamplepbRepeatedResponseBodyOut.md diff --git a/examples/clients/responsebody/docs/ExamplepbRepeatedResponseBodyOutResponse.md b/examples/internal/clients/responsebody/docs/ExamplepbRepeatedResponseBodyOutResponse.md similarity index 100% rename from examples/clients/responsebody/docs/ExamplepbRepeatedResponseBodyOutResponse.md rename to examples/internal/clients/responsebody/docs/ExamplepbRepeatedResponseBodyOutResponse.md diff --git a/examples/clients/responsebody/docs/ExamplepbRepeatedResponseStrings.md b/examples/internal/clients/responsebody/docs/ExamplepbRepeatedResponseStrings.md similarity index 100% rename from examples/clients/responsebody/docs/ExamplepbRepeatedResponseStrings.md rename to examples/internal/clients/responsebody/docs/ExamplepbRepeatedResponseStrings.md diff --git a/examples/clients/responsebody/docs/ExamplepbResponseBodyMessage.md b/examples/internal/clients/responsebody/docs/ExamplepbResponseBodyMessage.md similarity index 100% rename from examples/clients/responsebody/docs/ExamplepbResponseBodyMessage.md rename to examples/internal/clients/responsebody/docs/ExamplepbResponseBodyMessage.md diff --git a/examples/clients/responsebody/docs/ExamplepbResponseBodyMessageResponse.md b/examples/internal/clients/responsebody/docs/ExamplepbResponseBodyMessageResponse.md similarity index 100% rename from examples/clients/responsebody/docs/ExamplepbResponseBodyMessageResponse.md rename to examples/internal/clients/responsebody/docs/ExamplepbResponseBodyMessageResponse.md diff --git a/examples/clients/responsebody/docs/ExamplepbResponseBodyOut.md b/examples/internal/clients/responsebody/docs/ExamplepbResponseBodyOut.md similarity index 100% rename from examples/clients/responsebody/docs/ExamplepbResponseBodyOut.md rename to examples/internal/clients/responsebody/docs/ExamplepbResponseBodyOut.md diff --git a/examples/clients/responsebody/docs/ExamplepbResponseBodyOutResponse.md b/examples/internal/clients/responsebody/docs/ExamplepbResponseBodyOutResponse.md similarity index 100% rename from examples/clients/responsebody/docs/ExamplepbResponseBodyOutResponse.md rename to examples/internal/clients/responsebody/docs/ExamplepbResponseBodyOutResponse.md diff --git a/examples/clients/responsebody/docs/ExamplepbResponseBodyReq.md b/examples/internal/clients/responsebody/docs/ExamplepbResponseBodyReq.md similarity index 100% rename from examples/clients/responsebody/docs/ExamplepbResponseBodyReq.md rename to examples/internal/clients/responsebody/docs/ExamplepbResponseBodyReq.md diff --git a/examples/clients/responsebody/docs/ProtobufAny.md b/examples/internal/clients/responsebody/docs/ProtobufAny.md similarity index 100% rename from examples/clients/responsebody/docs/ProtobufAny.md rename to examples/internal/clients/responsebody/docs/ProtobufAny.md diff --git a/examples/clients/responsebody/docs/ResponseBodyServiceApi.md b/examples/internal/clients/responsebody/docs/ResponseBodyServiceApi.md similarity index 100% rename from examples/clients/responsebody/docs/ResponseBodyServiceApi.md rename to examples/internal/clients/responsebody/docs/ResponseBodyServiceApi.md diff --git a/examples/clients/responsebody/docs/ResponseResponseType.md b/examples/internal/clients/responsebody/docs/ResponseResponseType.md similarity index 100% rename from examples/clients/responsebody/docs/ResponseResponseType.md rename to examples/internal/clients/responsebody/docs/ResponseResponseType.md diff --git a/examples/clients/responsebody/docs/RuntimeError.md b/examples/internal/clients/responsebody/docs/RuntimeError.md similarity index 100% rename from examples/clients/responsebody/docs/RuntimeError.md rename to examples/internal/clients/responsebody/docs/RuntimeError.md diff --git a/examples/clients/responsebody/model_examplepb_repeated_response_body_out.go b/examples/internal/clients/responsebody/model_examplepb_repeated_response_body_out.go similarity index 85% rename from examples/clients/responsebody/model_examplepb_repeated_response_body_out.go rename to examples/internal/clients/responsebody/model_examplepb_repeated_response_body_out.go index 8ca6f95e154..574246373eb 100644 --- a/examples/clients/responsebody/model_examplepb_repeated_response_body_out.go +++ b/examples/internal/clients/responsebody/model_examplepb_repeated_response_body_out.go @@ -1,5 +1,5 @@ /* - * examples/proto/examplepb/response_body_service.proto + * examples/internal/proto/examplepb/response_body_service.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * diff --git a/examples/clients/responsebody/model_examplepb_repeated_response_body_out_response.go b/examples/internal/clients/responsebody/model_examplepb_repeated_response_body_out_response.go similarity index 86% rename from examples/clients/responsebody/model_examplepb_repeated_response_body_out_response.go rename to examples/internal/clients/responsebody/model_examplepb_repeated_response_body_out_response.go index 9b15a6a5b2c..1ea5daf3fae 100644 --- a/examples/clients/responsebody/model_examplepb_repeated_response_body_out_response.go +++ b/examples/internal/clients/responsebody/model_examplepb_repeated_response_body_out_response.go @@ -1,5 +1,5 @@ /* - * examples/proto/examplepb/response_body_service.proto + * examples/internal/proto/examplepb/response_body_service.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * diff --git a/examples/clients/responsebody/model_examplepb_repeated_response_strings.go b/examples/internal/clients/responsebody/model_examplepb_repeated_response_strings.go similarity index 84% rename from examples/clients/responsebody/model_examplepb_repeated_response_strings.go rename to examples/internal/clients/responsebody/model_examplepb_repeated_response_strings.go index f25b08479ba..47ec55c7f12 100644 --- a/examples/clients/responsebody/model_examplepb_repeated_response_strings.go +++ b/examples/internal/clients/responsebody/model_examplepb_repeated_response_strings.go @@ -1,5 +1,5 @@ /* - * examples/proto/examplepb/response_body_service.proto + * examples/internal/proto/examplepb/response_body_service.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * diff --git a/examples/clients/responsebody/model_examplepb_response_body_out.go b/examples/internal/clients/responsebody/model_examplepb_response_body_out.go similarity index 85% rename from examples/clients/responsebody/model_examplepb_response_body_out.go rename to examples/internal/clients/responsebody/model_examplepb_response_body_out.go index 4775292258a..ea912e8976d 100644 --- a/examples/clients/responsebody/model_examplepb_response_body_out.go +++ b/examples/internal/clients/responsebody/model_examplepb_response_body_out.go @@ -1,5 +1,5 @@ /* - * examples/proto/examplepb/response_body_service.proto + * examples/internal/proto/examplepb/response_body_service.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * diff --git a/examples/clients/responsebody/model_examplepb_response_body_out_response.go b/examples/internal/clients/responsebody/model_examplepb_response_body_out_response.go similarity index 84% rename from examples/clients/responsebody/model_examplepb_response_body_out_response.go rename to examples/internal/clients/responsebody/model_examplepb_response_body_out_response.go index 8ef1dd1469e..b78f80ec655 100644 --- a/examples/clients/responsebody/model_examplepb_response_body_out_response.go +++ b/examples/internal/clients/responsebody/model_examplepb_response_body_out_response.go @@ -1,5 +1,5 @@ /* - * examples/proto/examplepb/response_body_service.proto + * examples/internal/proto/examplepb/response_body_service.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * diff --git a/examples/clients/responsebody/model_protobuf_any.go b/examples/internal/clients/responsebody/model_protobuf_any.go similarity index 98% rename from examples/clients/responsebody/model_protobuf_any.go rename to examples/internal/clients/responsebody/model_protobuf_any.go index 902926206f8..28dac0342e2 100644 --- a/examples/clients/responsebody/model_protobuf_any.go +++ b/examples/internal/clients/responsebody/model_protobuf_any.go @@ -1,5 +1,5 @@ /* - * examples/proto/examplepb/response_body_service.proto + * examples/internal/proto/examplepb/response_body_service.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * diff --git a/examples/clients/responsebody/model_response_response_type.go b/examples/internal/clients/responsebody/model_response_response_type.go similarity index 88% rename from examples/clients/responsebody/model_response_response_type.go rename to examples/internal/clients/responsebody/model_response_response_type.go index 4db9360c72f..b249571ee56 100644 --- a/examples/clients/responsebody/model_response_response_type.go +++ b/examples/internal/clients/responsebody/model_response_response_type.go @@ -1,5 +1,5 @@ /* - * examples/proto/examplepb/response_body_service.proto + * examples/internal/proto/examplepb/response_body_service.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * diff --git a/examples/clients/responsebody/model_runtime_error.go b/examples/internal/clients/responsebody/model_runtime_error.go similarity index 87% rename from examples/clients/responsebody/model_runtime_error.go rename to examples/internal/clients/responsebody/model_runtime_error.go index a7f7a1d0569..c23ba823000 100644 --- a/examples/clients/responsebody/model_runtime_error.go +++ b/examples/internal/clients/responsebody/model_runtime_error.go @@ -1,5 +1,5 @@ /* - * examples/proto/examplepb/response_body_service.proto + * examples/internal/proto/examplepb/response_body_service.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * diff --git a/examples/clients/responsebody/response.go b/examples/internal/clients/responsebody/response.go similarity index 95% rename from examples/clients/responsebody/response.go rename to examples/internal/clients/responsebody/response.go index 1fdaa337c51..09f1698e322 100644 --- a/examples/clients/responsebody/response.go +++ b/examples/internal/clients/responsebody/response.go @@ -1,5 +1,5 @@ /* - * examples/proto/examplepb/response_body_service.proto + * examples/internal/proto/examplepb/response_body_service.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * diff --git a/examples/clients/unannotatedecho/.gitignore b/examples/internal/clients/unannotatedecho/.gitignore similarity index 100% rename from examples/clients/unannotatedecho/.gitignore rename to examples/internal/clients/unannotatedecho/.gitignore diff --git a/examples/clients/unannotatedecho/.swagger-codegen-ignore b/examples/internal/clients/unannotatedecho/.swagger-codegen-ignore similarity index 100% rename from examples/clients/unannotatedecho/.swagger-codegen-ignore rename to examples/internal/clients/unannotatedecho/.swagger-codegen-ignore diff --git a/examples/clients/unannotatedecho/.swagger-codegen/VERSION b/examples/internal/clients/unannotatedecho/.swagger-codegen/VERSION similarity index 100% rename from examples/clients/unannotatedecho/.swagger-codegen/VERSION rename to examples/internal/clients/unannotatedecho/.swagger-codegen/VERSION diff --git a/examples/clients/unannotatedecho/BUILD.bazel b/examples/internal/clients/unannotatedecho/BUILD.bazel similarity index 94% rename from examples/clients/unannotatedecho/BUILD.bazel rename to examples/internal/clients/unannotatedecho/BUILD.bazel index f34a3fac4e0..95d9d6b3b67 100644 --- a/examples/clients/unannotatedecho/BUILD.bazel +++ b/examples/internal/clients/unannotatedecho/BUILD.bazel @@ -13,7 +13,7 @@ go_library( "model_runtime_error.go", "response.go", ], - importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/clients/unannotatedecho", + importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/internal/clients/unannotatedecho", deps = [ "@com_github_antihax_optional//:go_default_library", "@org_golang_x_oauth2//:go_default_library", diff --git a/examples/clients/unannotatedecho/api/swagger.yaml b/examples/internal/clients/unannotatedecho/api/swagger.yaml similarity index 99% rename from examples/clients/unannotatedecho/api/swagger.yaml rename to examples/internal/clients/unannotatedecho/api/swagger.yaml index da2fb50e598..2dbae78a5f6 100644 --- a/examples/clients/unannotatedecho/api/swagger.yaml +++ b/examples/internal/clients/unannotatedecho/api/swagger.yaml @@ -6,7 +6,7 @@ info: \ in\ngRPC API configuration format.\n\nEcho Service API consists of a single\ \ service which returns\na message." version: "version not set" - title: "examples/proto/examplepb/unannotated_echo_service.proto" + title: "examples/internal/proto/examplepb/unannotated_echo_service.proto" consumes: - "application/json" produces: diff --git a/examples/clients/unannotatedecho/api_unannotated_echo_service.go b/examples/internal/clients/unannotatedecho/api_unannotated_echo_service.go similarity index 99% rename from examples/clients/unannotatedecho/api_unannotated_echo_service.go rename to examples/internal/clients/unannotatedecho/api_unannotated_echo_service.go index d864a7411e7..8eec8d0fede 100644 --- a/examples/clients/unannotatedecho/api_unannotated_echo_service.go +++ b/examples/internal/clients/unannotatedecho/api_unannotated_echo_service.go @@ -1,5 +1,5 @@ /* - * examples/proto/examplepb/unannotated_echo_service.proto + * examples/internal/proto/examplepb/unannotated_echo_service.proto * * Unannotated Echo Service Similar to echo_service.proto but without annotations. See unannotated_echo_service.yaml for the equivalent of the annotations in gRPC API configuration format. Echo Service API consists of a single service which returns a message. * diff --git a/examples/clients/unannotatedecho/client.go b/examples/internal/clients/unannotatedecho/client.go similarity index 98% rename from examples/clients/unannotatedecho/client.go rename to examples/internal/clients/unannotatedecho/client.go index a7cdc750e4e..7907be83032 100644 --- a/examples/clients/unannotatedecho/client.go +++ b/examples/internal/clients/unannotatedecho/client.go @@ -1,5 +1,5 @@ /* - * examples/proto/examplepb/unannotated_echo_service.proto + * examples/internal/proto/examplepb/unannotated_echo_service.proto * * Unannotated Echo Service Similar to echo_service.proto but without annotations. See unannotated_echo_service.yaml for the equivalent of the annotations in gRPC API configuration format. Echo Service API consists of a single service which returns a message. * @@ -37,7 +37,7 @@ var ( xmlCheck = regexp.MustCompile("(?i:[application|text]/xml)") ) -// APIClient manages communication with the examples/proto/examplepb/unannotated_echo_service.proto API vversion not set +// APIClient manages communication with the examples/internal/proto/examplepb/unannotated_echo_service.proto API vversion not set // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration diff --git a/examples/clients/unannotatedecho/configuration.go b/examples/internal/clients/unannotatedecho/configuration.go similarity index 97% rename from examples/clients/unannotatedecho/configuration.go rename to examples/internal/clients/unannotatedecho/configuration.go index fe53e0374ad..1b38b7fb35f 100644 --- a/examples/clients/unannotatedecho/configuration.go +++ b/examples/internal/clients/unannotatedecho/configuration.go @@ -1,5 +1,5 @@ /* - * examples/proto/examplepb/unannotated_echo_service.proto + * examples/internal/proto/examplepb/unannotated_echo_service.proto * * Unannotated Echo Service Similar to echo_service.proto but without annotations. See unannotated_echo_service.yaml for the equivalent of the annotations in gRPC API configuration format. Echo Service API consists of a single service which returns a message. * diff --git a/examples/clients/unannotatedecho/model_examplepb_unannotated_simple_message.go b/examples/internal/clients/unannotatedecho/model_examplepb_unannotated_simple_message.go similarity index 91% rename from examples/clients/unannotatedecho/model_examplepb_unannotated_simple_message.go rename to examples/internal/clients/unannotatedecho/model_examplepb_unannotated_simple_message.go index c400daa0b55..689ee5b1981 100644 --- a/examples/clients/unannotatedecho/model_examplepb_unannotated_simple_message.go +++ b/examples/internal/clients/unannotatedecho/model_examplepb_unannotated_simple_message.go @@ -1,5 +1,5 @@ /* - * examples/proto/examplepb/unannotated_echo_service.proto + * examples/internal/proto/examplepb/unannotated_echo_service.proto * * Unannotated Echo Service Similar to echo_service.proto but without annotations. See unannotated_echo_service.yaml for the equivalent of the annotations in gRPC API configuration format. Echo Service API consists of a single service which returns a message. * diff --git a/examples/clients/unannotatedecho/model_protobuf_any.go b/examples/internal/clients/unannotatedecho/model_protobuf_any.go similarity index 98% rename from examples/clients/unannotatedecho/model_protobuf_any.go rename to examples/internal/clients/unannotatedecho/model_protobuf_any.go index 6959023a2ac..57dcc002ecb 100644 --- a/examples/clients/unannotatedecho/model_protobuf_any.go +++ b/examples/internal/clients/unannotatedecho/model_protobuf_any.go @@ -1,5 +1,5 @@ /* - * examples/proto/examplepb/unannotated_echo_service.proto + * examples/internal/proto/examplepb/unannotated_echo_service.proto * * Unannotated Echo Service Similar to echo_service.proto but without annotations. See unannotated_echo_service.yaml for the equivalent of the annotations in gRPC API configuration format. Echo Service API consists of a single service which returns a message. * diff --git a/examples/clients/unannotatedecho/model_runtime_error.go b/examples/internal/clients/unannotatedecho/model_runtime_error.go similarity index 90% rename from examples/clients/unannotatedecho/model_runtime_error.go rename to examples/internal/clients/unannotatedecho/model_runtime_error.go index 30f7572025d..8518d725074 100644 --- a/examples/clients/unannotatedecho/model_runtime_error.go +++ b/examples/internal/clients/unannotatedecho/model_runtime_error.go @@ -1,5 +1,5 @@ /* - * examples/proto/examplepb/unannotated_echo_service.proto + * examples/internal/proto/examplepb/unannotated_echo_service.proto * * Unannotated Echo Service Similar to echo_service.proto but without annotations. See unannotated_echo_service.yaml for the equivalent of the annotations in gRPC API configuration format. Echo Service API consists of a single service which returns a message. * diff --git a/examples/clients/unannotatedecho/response.go b/examples/internal/clients/unannotatedecho/response.go similarity index 95% rename from examples/clients/unannotatedecho/response.go rename to examples/internal/clients/unannotatedecho/response.go index 3121acc8950..56f6b3e0bf8 100644 --- a/examples/clients/unannotatedecho/response.go +++ b/examples/internal/clients/unannotatedecho/response.go @@ -1,5 +1,5 @@ /* - * examples/proto/examplepb/unannotated_echo_service.proto + * examples/internal/proto/examplepb/unannotated_echo_service.proto * * Unannotated Echo Service Similar to echo_service.proto but without annotations. See unannotated_echo_service.yaml for the equivalent of the annotations in gRPC API configuration format. Echo Service API consists of a single service which returns a message. * diff --git a/examples/cmd/example-gateway-server/BUILD.bazel b/examples/internal/cmd/example-gateway-server/BUILD.bazel similarity index 82% rename from examples/cmd/example-gateway-server/BUILD.bazel rename to examples/internal/cmd/example-gateway-server/BUILD.bazel index 0f7c5052e7e..324b14b8351 100644 --- a/examples/cmd/example-gateway-server/BUILD.bazel +++ b/examples/internal/cmd/example-gateway-server/BUILD.bazel @@ -3,10 +3,10 @@ load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") go_library( name = "go_default_library", srcs = ["main.go"], - importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/cmd/example-gateway-server", + importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/internal/cmd/example-gateway-server", visibility = ["//visibility:private"], deps = [ - "//examples/gateway:go_default_library", + "//examples/internal/gateway:go_default_library", "@com_github_golang_glog//:go_default_library", ], ) diff --git a/examples/cmd/example-gateway-server/main.go b/examples/internal/cmd/example-gateway-server/main.go similarity index 77% rename from examples/cmd/example-gateway-server/main.go rename to examples/internal/cmd/example-gateway-server/main.go index 0273ffbbbc1..ba10f1b9e5b 100644 --- a/examples/cmd/example-gateway-server/main.go +++ b/examples/internal/cmd/example-gateway-server/main.go @@ -9,13 +9,13 @@ import ( "flag" "github.com/golang/glog" - "github.com/grpc-ecosystem/grpc-gateway/examples/gateway" + "github.com/grpc-ecosystem/grpc-gateway/examples/internal/gateway" ) var ( endpoint = flag.String("endpoint", "localhost:9090", "endpoint of the gRPC service") network = flag.String("network", "tcp", `one of "tcp" or "unix". Must be consistent to -endpoint`) - swaggerDir = flag.String("swagger_dir", "examples/proto/examplepb", "path to the directory which contains swagger definitions") + swaggerDir = flag.String("swagger_dir", "examples/internal/proto/examplepb", "path to the directory which contains swagger definitions") ) func main() { diff --git a/examples/cmd/example-grpc-server/BUILD.bazel b/examples/internal/cmd/example-grpc-server/BUILD.bazel similarity index 82% rename from examples/cmd/example-grpc-server/BUILD.bazel rename to examples/internal/cmd/example-grpc-server/BUILD.bazel index 1c66416c6ba..925cb981256 100644 --- a/examples/cmd/example-grpc-server/BUILD.bazel +++ b/examples/internal/cmd/example-grpc-server/BUILD.bazel @@ -5,9 +5,9 @@ package(default_visibility = ["//visibility:private"]) go_library( name = "go_default_library", srcs = ["main.go"], - importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/cmd/example-grpc-server", + importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/internal/cmd/example-grpc-server", deps = [ - "//examples/server:go_default_library", + "//examples/internal/server:go_default_library", "@com_github_golang_glog//:go_default_library", ], ) diff --git a/examples/cmd/example-grpc-server/main.go b/examples/internal/cmd/example-grpc-server/main.go similarity index 88% rename from examples/cmd/example-grpc-server/main.go rename to examples/internal/cmd/example-grpc-server/main.go index 7f6c45f56e5..1e44a161536 100644 --- a/examples/cmd/example-grpc-server/main.go +++ b/examples/internal/cmd/example-grpc-server/main.go @@ -9,7 +9,7 @@ import ( "flag" "github.com/golang/glog" - "github.com/grpc-ecosystem/grpc-gateway/examples/server" + "github.com/grpc-ecosystem/grpc-gateway/examples/internal/server" ) var ( diff --git a/examples/gateway/BUILD.bazel b/examples/internal/gateway/BUILD.bazel similarity index 86% rename from examples/gateway/BUILD.bazel rename to examples/internal/gateway/BUILD.bazel index 393a7c41f9c..f9c1e8a9ede 100644 --- a/examples/gateway/BUILD.bazel +++ b/examples/internal/gateway/BUILD.bazel @@ -8,10 +8,10 @@ go_library( "handlers.go", "main.go", ], - importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/gateway", + importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/internal/gateway", visibility = ["//visibility:public"], deps = [ - "//examples/proto/examplepb:go_default_library", + "//examples/internal/proto/examplepb:go_default_library", "//runtime:go_default_library", "@com_github_golang_glog//:go_default_library", "@org_golang_google_grpc//:go_default_library", diff --git a/examples/gateway/doc.go b/examples/internal/gateway/doc.go similarity index 100% rename from examples/gateway/doc.go rename to examples/internal/gateway/doc.go diff --git a/examples/gateway/gateway.go b/examples/internal/gateway/gateway.go similarity index 95% rename from examples/gateway/gateway.go rename to examples/internal/gateway/gateway.go index 5fccade22ce..e85fb4219b4 100644 --- a/examples/gateway/gateway.go +++ b/examples/internal/gateway/gateway.go @@ -7,7 +7,7 @@ import ( "net/http" "time" - "github.com/grpc-ecosystem/grpc-gateway/examples/proto/examplepb" + "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/examplepb" gwruntime "github.com/grpc-ecosystem/grpc-gateway/runtime" "google.golang.org/grpc" ) diff --git a/examples/gateway/handlers.go b/examples/internal/gateway/handlers.go similarity index 100% rename from examples/gateway/handlers.go rename to examples/internal/gateway/handlers.go diff --git a/examples/gateway/main.go b/examples/internal/gateway/main.go similarity index 100% rename from examples/gateway/main.go rename to examples/internal/gateway/main.go diff --git a/examples/pbwrappers/helloworld/BUILD.bazel b/examples/internal/helloworld/BUILD.bazel similarity index 96% rename from examples/pbwrappers/helloworld/BUILD.bazel rename to examples/internal/helloworld/BUILD.bazel index 01949ef7e9d..d926aca22b9 100644 --- a/examples/pbwrappers/helloworld/BUILD.bazel +++ b/examples/internal/helloworld/BUILD.bazel @@ -15,7 +15,7 @@ proto_library( go_proto_library( name = "helloworld_go_proto", compilers = ["@io_bazel_rules_go//proto:go_grpc"], - importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/pbwrappers/helloworld", + importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/internal/helloworld", proto = ":helloworld_proto", visibility = ["//visibility:public"], deps = ["@go_googleapis//google/api:annotations_go_proto"], @@ -25,7 +25,7 @@ go_library( name = "go_default_library", srcs = ["helloworld.pb.gw.go"], embed = [":helloworld_go_proto"], - importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/pbwrappers/helloworld", + importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/internal/helloworld", visibility = ["//visibility:public"], deps = [ "//runtime:go_default_library", diff --git a/examples/pbwrappers/helloworld/helloworld.pb.go b/examples/internal/helloworld/helloworld.pb.go similarity index 100% rename from examples/pbwrappers/helloworld/helloworld.pb.go rename to examples/internal/helloworld/helloworld.pb.go diff --git a/examples/pbwrappers/helloworld/helloworld.pb.gw.go b/examples/internal/helloworld/helloworld.pb.gw.go similarity index 100% rename from examples/pbwrappers/helloworld/helloworld.pb.gw.go rename to examples/internal/helloworld/helloworld.pb.gw.go diff --git a/examples/pbwrappers/helloworld/helloworld.proto b/examples/internal/helloworld/helloworld.proto similarity index 100% rename from examples/pbwrappers/helloworld/helloworld.proto rename to examples/internal/helloworld/helloworld.proto diff --git a/examples/integration/BUILD.bazel b/examples/internal/integration/BUILD.bazel similarity index 61% rename from examples/integration/BUILD.bazel rename to examples/internal/integration/BUILD.bazel index cee9f33f7f8..57a5e220e53 100644 --- a/examples/integration/BUILD.bazel +++ b/examples/internal/integration/BUILD.bazel @@ -10,14 +10,14 @@ go_test( "proto_error_test.go", ], deps = [ - "//examples/clients/abe:go_default_library", - "//examples/clients/echo:go_default_library", - "//examples/clients/unannotatedecho:go_default_library", - "//examples/gateway:go_default_library", - "//examples/proto/examplepb:go_default_library", - "//examples/proto/pathenum:go_default_library", - "//examples/proto/sub:go_default_library", - "//examples/server:go_default_library", + "//examples/internal/clients/abe:go_default_library", + "//examples/internal/clients/echo:go_default_library", + "//examples/internal/clients/unannotatedecho:go_default_library", + "//examples/internal/gateway:go_default_library", + "//examples/internal/proto/examplepb:go_default_library", + "//examples/internal/proto/pathenum:go_default_library", + "//examples/internal/proto/sub:go_default_library", + "//examples/internal/server:go_default_library", "//runtime:go_default_library", "@com_github_golang_glog//:go_default_library", "@com_github_golang_protobuf//descriptor:go_default_library_gen", diff --git a/examples/integration/client_test.go b/examples/internal/integration/client_test.go similarity index 95% rename from examples/integration/client_test.go rename to examples/internal/integration/client_test.go index 8ca2807d97b..813158025aa 100644 --- a/examples/integration/client_test.go +++ b/examples/internal/integration/client_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - "github.com/grpc-ecosystem/grpc-gateway/examples/clients/abe" - "github.com/grpc-ecosystem/grpc-gateway/examples/clients/echo" - "github.com/grpc-ecosystem/grpc-gateway/examples/clients/unannotatedecho" + "github.com/grpc-ecosystem/grpc-gateway/examples/internal/clients/abe" + "github.com/grpc-ecosystem/grpc-gateway/examples/internal/clients/echo" + "github.com/grpc-ecosystem/grpc-gateway/examples/internal/clients/unannotatedecho" ) func TestEchoClient(t *testing.T) { diff --git a/examples/integration/fieldmask_test.go b/examples/internal/integration/fieldmask_test.go similarity index 98% rename from examples/integration/fieldmask_test.go rename to examples/internal/integration/fieldmask_test.go index 94131079cea..18f494ac457 100644 --- a/examples/integration/fieldmask_test.go +++ b/examples/internal/integration/fieldmask_test.go @@ -6,7 +6,7 @@ import ( "testing" "github.com/golang/protobuf/descriptor" - "github.com/grpc-ecosystem/grpc-gateway/examples/proto/examplepb" + "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/examplepb" "github.com/grpc-ecosystem/grpc-gateway/runtime" "google.golang.org/genproto/protobuf/field_mask" ) diff --git a/examples/integration/integration_test.go b/examples/internal/integration/integration_test.go similarity index 99% rename from examples/integration/integration_test.go rename to examples/internal/integration/integration_test.go index bdc5fd23777..31370468f05 100644 --- a/examples/integration/integration_test.go +++ b/examples/internal/integration/integration_test.go @@ -20,9 +20,9 @@ import ( "github.com/golang/protobuf/jsonpb" "github.com/golang/protobuf/proto" "github.com/golang/protobuf/ptypes/empty" - gw "github.com/grpc-ecosystem/grpc-gateway/examples/proto/examplepb" - "github.com/grpc-ecosystem/grpc-gateway/examples/proto/pathenum" - "github.com/grpc-ecosystem/grpc-gateway/examples/proto/sub" + gw "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/examplepb" + "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/pathenum" + "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/sub" "github.com/grpc-ecosystem/grpc-gateway/runtime" "google.golang.org/genproto/protobuf/field_mask" "google.golang.org/grpc/codes" diff --git a/examples/integration/main_test.go b/examples/internal/integration/main_test.go similarity index 88% rename from examples/integration/main_test.go rename to examples/internal/integration/main_test.go index d9ff64c3cc9..3c43d6a2087 100644 --- a/examples/integration/main_test.go +++ b/examples/internal/integration/main_test.go @@ -10,15 +10,15 @@ import ( "time" "github.com/golang/glog" - "github.com/grpc-ecosystem/grpc-gateway/examples/gateway" - server "github.com/grpc-ecosystem/grpc-gateway/examples/server" + "github.com/grpc-ecosystem/grpc-gateway/examples/internal/gateway" + server "github.com/grpc-ecosystem/grpc-gateway/examples/internal/server" gwruntime "github.com/grpc-ecosystem/grpc-gateway/runtime" ) var ( endpoint = flag.String("endpoint", "localhost:9090", "endpoint of the gRPC service") network = flag.String("network", "tcp", `one of "tcp" or "unix". Must be consistent to -endpoint`) - swaggerDir = flag.String("swagger_dir", "examples/proto/examplepb", "path to the directory which contains swagger definitions") + swaggerDir = flag.String("swagger_dir", "examples/internal/proto/examplepb", "path to the directory which contains swagger definitions") ) func runGateway(ctx context.Context, addr string, opts ...gwruntime.ServeMuxOption) error { diff --git a/examples/integration/proto_error_test.go b/examples/internal/integration/proto_error_test.go similarity index 100% rename from examples/integration/proto_error_test.go rename to examples/internal/integration/proto_error_test.go diff --git a/examples/proto/examplepb/BUILD.bazel b/examples/internal/proto/examplepb/BUILD.bazel similarity index 88% rename from examples/proto/examplepb/BUILD.bazel rename to examples/internal/proto/examplepb/BUILD.bazel index ac90b28a4ba..4dd1475c710 100644 --- a/examples/proto/examplepb/BUILD.bazel +++ b/examples/internal/proto/examplepb/BUILD.bazel @@ -39,9 +39,9 @@ proto_library( "wrappers.proto", ], deps = [ - "//examples/proto/pathenum:pathenum_proto", - "//examples/proto/sub:sub_proto", - "//examples/proto/sub2:sub2_proto", + "//examples/internal/proto/pathenum:pathenum_proto", + "//examples/internal/proto/sub:sub_proto", + "//examples/internal/proto/sub2:sub2_proto", "//protoc-gen-swagger/options:options_proto", "@com_google_protobuf//:duration_proto", "@com_google_protobuf//:empty_proto", @@ -58,12 +58,12 @@ go_proto_library( "@io_bazel_rules_go//proto:go_grpc", "//protoc-gen-grpc-gateway:go_gen_grpc_gateway", # keep ], - importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/proto/examplepb", + importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/examplepb", proto = ":examplepb_proto", deps = [ - "//examples/proto/pathenum:go_default_library", - "//examples/proto/sub:go_default_library", - "//examples/proto/sub2:go_default_library", + "//examples/internal/proto/pathenum:go_default_library", + "//examples/internal/proto/sub:go_default_library", + "//examples/internal/proto/sub2:go_default_library", "//protoc-gen-swagger/options:go_default_library", "@com_github_golang_protobuf//descriptor:go_default_library_gen", # keep "@go_googleapis//google/api:annotations_go_proto", @@ -74,7 +74,7 @@ go_library( name = "go_default_library", srcs = ["unannotated_echo_service.pb.gw.go"], embed = [":examplepb_go_proto"], - importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/proto/examplepb", + importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/examplepb", deps = [ "//runtime:go_default_library", "//utilities:go_default_library", diff --git a/examples/proto/examplepb/a_bit_of_everything.pb.go b/examples/internal/proto/examplepb/a_bit_of_everything.pb.go similarity index 67% rename from examples/proto/examplepb/a_bit_of_everything.pb.go rename to examples/internal/proto/examplepb/a_bit_of_everything.pb.go index a1320ed9b51..a34ed9d779a 100644 --- a/examples/proto/examplepb/a_bit_of_everything.pb.go +++ b/examples/internal/proto/examplepb/a_bit_of_everything.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: examples/proto/examplepb/a_bit_of_everything.proto +// source: examples/internal/proto/examplepb/a_bit_of_everything.proto package examplepb @@ -11,9 +11,9 @@ import ( empty "github.com/golang/protobuf/ptypes/empty" timestamp "github.com/golang/protobuf/ptypes/timestamp" wrappers "github.com/golang/protobuf/ptypes/wrappers" - pathenum "github.com/grpc-ecosystem/grpc-gateway/examples/proto/pathenum" - sub "github.com/grpc-ecosystem/grpc-gateway/examples/proto/sub" - sub2 "github.com/grpc-ecosystem/grpc-gateway/examples/proto/sub2" + pathenum "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/pathenum" + sub "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/sub" + sub2 "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/sub2" _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options" _ "google.golang.org/genproto/googleapis/api/annotations" field_mask "google.golang.org/genproto/protobuf/field_mask" @@ -59,7 +59,7 @@ func (x NumericEnum) String() string { } func (NumericEnum) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_3978364c010e812a, []int{0} + return fileDescriptor_e6ccf6cab3ab66ab, []int{0} } // DeepEnum is one or zero. @@ -87,7 +87,7 @@ func (x ABitOfEverything_Nested_DeepEnum) String() string { } func (ABitOfEverything_Nested_DeepEnum) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_3978364c010e812a, []int{0, 0, 0} + return fileDescriptor_e6ccf6cab3ab66ab, []int{0, 0, 0} } // Intentionally complicated message type to cover many features of Protobuf. @@ -106,9 +106,9 @@ type ABitOfEverything struct { StringValue string `protobuf:"bytes,11,opt,name=string_value,json=stringValue,proto3" json:"string_value,omitempty"` BytesValue []byte `protobuf:"bytes,29,opt,name=bytes_value,json=bytesValue,proto3" json:"bytes_value,omitempty"` Uint32Value uint32 `protobuf:"varint,13,opt,name=uint32_value,json=uint32Value,proto3" json:"uint32_value,omitempty"` - EnumValue NumericEnum `protobuf:"varint,14,opt,name=enum_value,json=enumValue,proto3,enum=grpc.gateway.examples.examplepb.NumericEnum" json:"enum_value,omitempty"` - PathEnumValue pathenum.PathEnum `protobuf:"varint,30,opt,name=path_enum_value,json=pathEnumValue,proto3,enum=grpc.gateway.examples.pathenum.PathEnum" json:"path_enum_value,omitempty"` - NestedPathEnumValue pathenum.MessagePathEnum_NestedPathEnum `protobuf:"varint,31,opt,name=nested_path_enum_value,json=nestedPathEnumValue,proto3,enum=grpc.gateway.examples.pathenum.MessagePathEnum_NestedPathEnum" json:"nested_path_enum_value,omitempty"` + EnumValue NumericEnum `protobuf:"varint,14,opt,name=enum_value,json=enumValue,proto3,enum=grpc.gateway.examples.internal.examplepb.NumericEnum" json:"enum_value,omitempty"` + PathEnumValue pathenum.PathEnum `protobuf:"varint,30,opt,name=path_enum_value,json=pathEnumValue,proto3,enum=grpc.gateway.examples.internal.pathenum.PathEnum" json:"path_enum_value,omitempty"` + NestedPathEnumValue pathenum.MessagePathEnum_NestedPathEnum `protobuf:"varint,31,opt,name=nested_path_enum_value,json=nestedPathEnumValue,proto3,enum=grpc.gateway.examples.internal.pathenum.MessagePathEnum_NestedPathEnum" json:"nested_path_enum_value,omitempty"` Sfixed32Value int32 `protobuf:"fixed32,15,opt,name=sfixed32_value,json=sfixed32Value,proto3" json:"sfixed32_value,omitempty"` Sfixed64Value int64 `protobuf:"fixed64,16,opt,name=sfixed64_value,json=sfixed64Value,proto3" json:"sfixed64_value,omitempty"` Sint32Value int32 `protobuf:"zigzag32,17,opt,name=sint32_value,json=sint32Value,proto3" json:"sint32_value,omitempty"` @@ -118,17 +118,17 @@ type ABitOfEverything struct { // *ABitOfEverything_OneofEmpty // *ABitOfEverything_OneofString OneofValue isABitOfEverything_OneofValue `protobuf_oneof:"oneof_value"` - MapValue map[string]NumericEnum `protobuf:"bytes,22,rep,name=map_value,json=mapValue,proto3" json:"map_value,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=grpc.gateway.examples.examplepb.NumericEnum"` + MapValue map[string]NumericEnum `protobuf:"bytes,22,rep,name=map_value,json=mapValue,proto3" json:"map_value,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=grpc.gateway.examples.internal.examplepb.NumericEnum"` MappedStringValue map[string]string `protobuf:"bytes,23,rep,name=mapped_string_value,json=mappedStringValue,proto3" json:"mapped_string_value,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` MappedNestedValue map[string]*ABitOfEverything_Nested `protobuf:"bytes,24,rep,name=mapped_nested_value,json=mappedNestedValue,proto3" json:"mapped_nested_value,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` NonConventionalNameValue string `protobuf:"bytes,26,opt,name=nonConventionalNameValue,proto3" json:"nonConventionalNameValue,omitempty"` TimestampValue *timestamp.Timestamp `protobuf:"bytes,27,opt,name=timestamp_value,json=timestampValue,proto3" json:"timestamp_value,omitempty"` // repeated enum value. it is comma-separated in query - RepeatedEnumValue []NumericEnum `protobuf:"varint,28,rep,packed,name=repeated_enum_value,json=repeatedEnumValue,proto3,enum=grpc.gateway.examples.examplepb.NumericEnum" json:"repeated_enum_value,omitempty"` + RepeatedEnumValue []NumericEnum `protobuf:"varint,28,rep,packed,name=repeated_enum_value,json=repeatedEnumValue,proto3,enum=grpc.gateway.examples.internal.examplepb.NumericEnum" json:"repeated_enum_value,omitempty"` // repeated numeric enum comment (This comment is overridden by the field annotation) - RepeatedEnumAnnotation []NumericEnum `protobuf:"varint,32,rep,packed,name=repeated_enum_annotation,json=repeatedEnumAnnotation,proto3,enum=grpc.gateway.examples.examplepb.NumericEnum" json:"repeated_enum_annotation,omitempty"` + RepeatedEnumAnnotation []NumericEnum `protobuf:"varint,32,rep,packed,name=repeated_enum_annotation,json=repeatedEnumAnnotation,proto3,enum=grpc.gateway.examples.internal.examplepb.NumericEnum" json:"repeated_enum_annotation,omitempty"` // numeric enum comment (This comment is overridden by the field annotation) - EnumValueAnnotation NumericEnum `protobuf:"varint,33,opt,name=enum_value_annotation,json=enumValueAnnotation,proto3,enum=grpc.gateway.examples.examplepb.NumericEnum" json:"enum_value_annotation,omitempty"` + EnumValueAnnotation NumericEnum `protobuf:"varint,33,opt,name=enum_value_annotation,json=enumValueAnnotation,proto3,enum=grpc.gateway.examples.internal.examplepb.NumericEnum" json:"enum_value_annotation,omitempty"` // repeated string comment (This comment is overridden by the field annotation) RepeatedStringAnnotation []string `protobuf:"bytes,34,rep,name=repeated_string_annotation,json=repeatedStringAnnotation,proto3" json:"repeated_string_annotation,omitempty"` // repeated nested object comment (This comment is overridden by the field annotation) @@ -145,7 +145,7 @@ func (m *ABitOfEverything) Reset() { *m = ABitOfEverything{} } func (m *ABitOfEverything) String() string { return proto.CompactTextString(m) } func (*ABitOfEverything) ProtoMessage() {} func (*ABitOfEverything) Descriptor() ([]byte, []int) { - return fileDescriptor_3978364c010e812a, []int{0} + return fileDescriptor_e6ccf6cab3ab66ab, []int{0} } func (m *ABitOfEverything) XXX_Unmarshal(b []byte) error { @@ -455,7 +455,7 @@ type ABitOfEverything_Nested struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Amount uint32 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` // DeepEnum comment. - Ok ABitOfEverything_Nested_DeepEnum `protobuf:"varint,3,opt,name=ok,proto3,enum=grpc.gateway.examples.examplepb.ABitOfEverything_Nested_DeepEnum" json:"ok,omitempty"` + Ok ABitOfEverything_Nested_DeepEnum `protobuf:"varint,3,opt,name=ok,proto3,enum=grpc.gateway.examples.internal.examplepb.ABitOfEverything_Nested_DeepEnum" json:"ok,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -465,7 +465,7 @@ func (m *ABitOfEverything_Nested) Reset() { *m = ABitOfEverything_Nested func (m *ABitOfEverything_Nested) String() string { return proto.CompactTextString(m) } func (*ABitOfEverything_Nested) ProtoMessage() {} func (*ABitOfEverything_Nested) Descriptor() ([]byte, []int) { - return fileDescriptor_3978364c010e812a, []int{0, 0} + return fileDescriptor_e6ccf6cab3ab66ab, []int{0, 0} } func (m *ABitOfEverything_Nested) XXX_Unmarshal(b []byte) error { @@ -521,7 +521,7 @@ type ABitOfEverythingRepeated struct { PathRepeatedStringValue []string `protobuf:"bytes,9,rep,name=path_repeated_string_value,json=pathRepeatedStringValue,proto3" json:"path_repeated_string_value,omitempty"` PathRepeatedBytesValue [][]byte `protobuf:"bytes,10,rep,name=path_repeated_bytes_value,json=pathRepeatedBytesValue,proto3" json:"path_repeated_bytes_value,omitempty"` PathRepeatedUint32Value []uint32 `protobuf:"varint,11,rep,packed,name=path_repeated_uint32_value,json=pathRepeatedUint32Value,proto3" json:"path_repeated_uint32_value,omitempty"` - PathRepeatedEnumValue []NumericEnum `protobuf:"varint,12,rep,packed,name=path_repeated_enum_value,json=pathRepeatedEnumValue,proto3,enum=grpc.gateway.examples.examplepb.NumericEnum" json:"path_repeated_enum_value,omitempty"` + PathRepeatedEnumValue []NumericEnum `protobuf:"varint,12,rep,packed,name=path_repeated_enum_value,json=pathRepeatedEnumValue,proto3,enum=grpc.gateway.examples.internal.examplepb.NumericEnum" json:"path_repeated_enum_value,omitempty"` PathRepeatedSfixed32Value []int32 `protobuf:"fixed32,13,rep,packed,name=path_repeated_sfixed32_value,json=pathRepeatedSfixed32Value,proto3" json:"path_repeated_sfixed32_value,omitempty"` PathRepeatedSfixed64Value []int64 `protobuf:"fixed64,14,rep,packed,name=path_repeated_sfixed64_value,json=pathRepeatedSfixed64Value,proto3" json:"path_repeated_sfixed64_value,omitempty"` PathRepeatedSint32Value []int32 `protobuf:"zigzag32,15,rep,packed,name=path_repeated_sint32_value,json=pathRepeatedSint32Value,proto3" json:"path_repeated_sint32_value,omitempty"` @@ -535,7 +535,7 @@ func (m *ABitOfEverythingRepeated) Reset() { *m = ABitOfEverythingRepeat func (m *ABitOfEverythingRepeated) String() string { return proto.CompactTextString(m) } func (*ABitOfEverythingRepeated) ProtoMessage() {} func (*ABitOfEverythingRepeated) Descriptor() ([]byte, []int) { - return fileDescriptor_3978364c010e812a, []int{1} + return fileDescriptor_e6ccf6cab3ab66ab, []int{1} } func (m *ABitOfEverythingRepeated) XXX_Unmarshal(b []byte) error { @@ -679,7 +679,7 @@ func (m *Body) Reset() { *m = Body{} } func (m *Body) String() string { return proto.CompactTextString(m) } func (*Body) ProtoMessage() {} func (*Body) Descriptor() ([]byte, []int) { - return fileDescriptor_3978364c010e812a, []int{2} + return fileDescriptor_e6ccf6cab3ab66ab, []int{2} } func (m *Body) XXX_Unmarshal(b []byte) error { @@ -719,7 +719,7 @@ func (m *MessageWithBody) Reset() { *m = MessageWithBody{} } func (m *MessageWithBody) String() string { return proto.CompactTextString(m) } func (*MessageWithBody) ProtoMessage() {} func (*MessageWithBody) Descriptor() ([]byte, []int) { - return fileDescriptor_3978364c010e812a, []int{3} + return fileDescriptor_e6ccf6cab3ab66ab, []int{3} } func (m *MessageWithBody) XXX_Unmarshal(b []byte) error { @@ -767,7 +767,7 @@ func (m *UpdateV2Request) Reset() { *m = UpdateV2Request{} } func (m *UpdateV2Request) String() string { return proto.CompactTextString(m) } func (*UpdateV2Request) ProtoMessage() {} func (*UpdateV2Request) Descriptor() ([]byte, []int) { - return fileDescriptor_3978364c010e812a, []int{4} + return fileDescriptor_e6ccf6cab3ab66ab, []int{4} } func (m *UpdateV2Request) XXX_Unmarshal(b []byte) error { @@ -803,252 +803,253 @@ func (m *UpdateV2Request) GetUpdateMask() *field_mask.FieldMask { } func init() { - proto.RegisterEnum("grpc.gateway.examples.examplepb.NumericEnum", NumericEnum_name, NumericEnum_value) - proto.RegisterEnum("grpc.gateway.examples.examplepb.ABitOfEverything_Nested_DeepEnum", ABitOfEverything_Nested_DeepEnum_name, ABitOfEverything_Nested_DeepEnum_value) - proto.RegisterType((*ABitOfEverything)(nil), "grpc.gateway.examples.examplepb.ABitOfEverything") - proto.RegisterMapType((map[string]NumericEnum)(nil), "grpc.gateway.examples.examplepb.ABitOfEverything.MapValueEntry") - proto.RegisterMapType((map[string]*ABitOfEverything_Nested)(nil), "grpc.gateway.examples.examplepb.ABitOfEverything.MappedNestedValueEntry") - proto.RegisterMapType((map[string]string)(nil), "grpc.gateway.examples.examplepb.ABitOfEverything.MappedStringValueEntry") - proto.RegisterType((*ABitOfEverything_Nested)(nil), "grpc.gateway.examples.examplepb.ABitOfEverything.Nested") - proto.RegisterType((*ABitOfEverythingRepeated)(nil), "grpc.gateway.examples.examplepb.ABitOfEverythingRepeated") - proto.RegisterType((*Body)(nil), "grpc.gateway.examples.examplepb.Body") - proto.RegisterType((*MessageWithBody)(nil), "grpc.gateway.examples.examplepb.MessageWithBody") - proto.RegisterType((*UpdateV2Request)(nil), "grpc.gateway.examples.examplepb.UpdateV2Request") + proto.RegisterEnum("grpc.gateway.examples.internal.examplepb.NumericEnum", NumericEnum_name, NumericEnum_value) + proto.RegisterEnum("grpc.gateway.examples.internal.examplepb.ABitOfEverything_Nested_DeepEnum", ABitOfEverything_Nested_DeepEnum_name, ABitOfEverything_Nested_DeepEnum_value) + proto.RegisterType((*ABitOfEverything)(nil), "grpc.gateway.examples.internal.examplepb.ABitOfEverything") + proto.RegisterMapType((map[string]NumericEnum)(nil), "grpc.gateway.examples.internal.examplepb.ABitOfEverything.MapValueEntry") + proto.RegisterMapType((map[string]*ABitOfEverything_Nested)(nil), "grpc.gateway.examples.internal.examplepb.ABitOfEverything.MappedNestedValueEntry") + proto.RegisterMapType((map[string]string)(nil), "grpc.gateway.examples.internal.examplepb.ABitOfEverything.MappedStringValueEntry") + proto.RegisterType((*ABitOfEverything_Nested)(nil), "grpc.gateway.examples.internal.examplepb.ABitOfEverything.Nested") + proto.RegisterType((*ABitOfEverythingRepeated)(nil), "grpc.gateway.examples.internal.examplepb.ABitOfEverythingRepeated") + proto.RegisterType((*Body)(nil), "grpc.gateway.examples.internal.examplepb.Body") + proto.RegisterType((*MessageWithBody)(nil), "grpc.gateway.examples.internal.examplepb.MessageWithBody") + proto.RegisterType((*UpdateV2Request)(nil), "grpc.gateway.examples.internal.examplepb.UpdateV2Request") } func init() { - proto.RegisterFile("examples/proto/examplepb/a_bit_of_everything.proto", fileDescriptor_3978364c010e812a) -} - -var fileDescriptor_3978364c010e812a = []byte{ - // 3621 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x5a, 0x4f, 0x70, 0x1c, 0xc7, - 0x5a, 0xd7, 0xec, 0x48, 0xb2, 0xd4, 0xb2, 0x2c, 0xa9, 0x65, 0xd9, 0xf2, 0x5a, 0x89, 0xda, 0x63, - 0xe7, 0x65, 0xbc, 0xcf, 0xbb, 0x23, 0x8d, 0x94, 0xc4, 0xde, 0xf0, 0x92, 0xec, 0x4a, 0xb2, 0x23, - 0x3b, 0x91, 0x95, 0xb1, 0x63, 0x82, 0x5f, 0xfc, 0x44, 0xef, 0x6e, 0x4b, 0x3b, 0xd6, 0xce, 0xf4, - 0xbc, 0x99, 0x1e, 0x59, 0x6b, 0xb1, 0xf0, 0x0a, 0x28, 0x28, 0x78, 0xb7, 0x7d, 0xfc, 0x29, 0x48, - 0xc1, 0x85, 0xe2, 0x42, 0xbd, 0x13, 0x55, 0x9c, 0xa8, 0x82, 0x0b, 0x9c, 0x38, 0x40, 0x85, 0x2a, - 0x8a, 0x0b, 0x27, 0x38, 0x73, 0x00, 0x2a, 0x55, 0x1c, 0xa0, 0xa8, 0xee, 0x99, 0xd9, 0x9d, 0x99, - 0xdd, 0xb5, 0xbc, 0x36, 0x95, 0x97, 0x43, 0x3c, 0xdd, 0xfd, 0x7d, 0xdf, 0xef, 0xfb, 0xba, 0xbf, - 0xfe, 0xfe, 0xf4, 0x0a, 0xe8, 0xe4, 0x18, 0x5b, 0x4e, 0x83, 0x78, 0x9a, 0xe3, 0x52, 0x46, 0xb5, - 0x70, 0xe8, 0x54, 0x34, 0xbc, 0x57, 0x31, 0xd9, 0x1e, 0xdd, 0xdf, 0x23, 0x47, 0xc4, 0x6d, 0xb2, - 0xba, 0x69, 0x1f, 0x14, 0x04, 0x0d, 0x5c, 0x3e, 0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d8, - 0x11, 0xfc, 0xc6, 0xd9, 0x40, 0x5c, 0x30, 0x82, 0x75, 0x30, 0xea, 0xfb, 0x66, 0x6d, 0x51, 0x42, - 0x92, 0x3a, 0x59, 0x7e, 0xd8, 0x2e, 0x7d, 0xf6, 0x23, 0x49, 0xfa, 0x6d, 0xe9, 0xde, 0xf7, 0x71, - 0x7e, 0xbf, 0x94, 0xbf, 0xbd, 0x92, 0xbf, 0xf5, 0xe4, 0xe4, 0x66, 0x2b, 0x1f, 0x1f, 0xae, 0x0f, - 0x33, 0x5c, 0xd5, 0x5b, 0x86, 0x40, 0x80, 0xbb, 0x60, 0x3c, 0xb4, 0x20, 0x83, 0xe4, 0xd7, 0xb2, - 0x20, 0x94, 0x03, 0xef, 0x82, 0xa9, 0xfd, 0x06, 0xc5, 0x6c, 0xef, 0x08, 0x37, 0x7c, 0xb2, 0x28, - 0x23, 0x49, 0xcd, 0x94, 0xaf, 0xb7, 0x4b, 0xdf, 0xd1, 0xe7, 0x6e, 0xf3, 0x79, 0x24, 0xe6, 0x91, - 0xf0, 0xc0, 0xa2, 0xbc, 0x52, 0xd0, 0xbf, 0x96, 0xe2, 0x0c, 0x06, 0x10, 0x83, 0x47, 0xfc, 0x1b, - 0x5e, 0x01, 0x67, 0x6b, 0xd4, 0xaf, 0x34, 0x48, 0x28, 0x6c, 0x14, 0x49, 0xaa, 0x64, 0x4c, 0x05, - 0x73, 0x01, 0xc9, 0x32, 0x98, 0x32, 0x6d, 0xf6, 0xee, 0x7a, 0x48, 0x31, 0x86, 0x24, 0x55, 0x36, - 0x80, 0x98, 0xea, 0xc8, 0xf0, 0xe3, 0x14, 0xe3, 0x48, 0x52, 0x47, 0x8d, 0x29, 0x3f, 0x46, 0x12, - 0xc8, 0x58, 0xd3, 0x43, 0x8a, 0x33, 0x48, 0x52, 0xc7, 0x84, 0x8c, 0x35, 0x3d, 0x20, 0xb8, 0x0a, - 0xa6, 0xf7, 0xcd, 0x63, 0x52, 0xeb, 0x08, 0x99, 0x40, 0x92, 0x3a, 0x6e, 0x9c, 0x0d, 0x27, 0x93, - 0x44, 0x1d, 0x39, 0x93, 0x48, 0x52, 0xcf, 0x84, 0x44, 0x91, 0xa4, 0x37, 0x00, 0xa8, 0x50, 0xda, - 0x08, 0x29, 0x00, 0x92, 0xd4, 0x09, 0x63, 0x92, 0xcf, 0x74, 0x94, 0xf5, 0x98, 0x6b, 0xda, 0x07, - 0x21, 0xc1, 0x14, 0x77, 0x00, 0x63, 0x2a, 0x98, 0xeb, 0x28, 0x5b, 0x69, 0x32, 0xe2, 0x85, 0x14, - 0x6f, 0x20, 0x49, 0x3d, 0x6b, 0x00, 0x31, 0x95, 0x30, 0xb8, 0xa3, 0xc6, 0x34, 0x92, 0xd4, 0xe9, - 0xc0, 0xe0, 0x48, 0x8b, 0x7b, 0x00, 0xf0, 0x5b, 0x17, 0x12, 0x9c, 0x43, 0x92, 0x7a, 0x4e, 0xbf, - 0x71, 0xea, 0xc9, 0xef, 0xf8, 0x16, 0x71, 0xcd, 0xea, 0x96, 0xed, 0x5b, 0xc6, 0x24, 0xe7, 0x0f, - 0x84, 0xed, 0x82, 0x99, 0xce, 0x3d, 0x0e, 0x25, 0xbe, 0x29, 0x24, 0xaa, 0x03, 0x24, 0x46, 0xd7, - 0xbf, 0xb0, 0x8b, 0x59, 0x5d, 0x48, 0x9b, 0x76, 0xc2, 0xaf, 0x40, 0xa2, 0x07, 0x2e, 0x04, 0xce, - 0xb4, 0x97, 0x16, 0xbc, 0x2c, 0x04, 0x7f, 0x70, 0x9a, 0xe0, 0x4f, 0x83, 0x80, 0x10, 0xc9, 0x0f, - 0x5d, 0xb4, 0x03, 0x37, 0x6f, 0x27, 0xc6, 0x01, 0xe8, 0x5b, 0xe0, 0x9c, 0x97, 0x3c, 0xbf, 0x19, - 0x24, 0xa9, 0x33, 0xc6, 0xb4, 0x97, 0x38, 0xc0, 0x0e, 0x59, 0xc7, 0x17, 0x66, 0x91, 0xa4, 0xce, - 0x46, 0x64, 0x31, 0xaf, 0xf3, 0xe2, 0x87, 0x30, 0x87, 0x24, 0x75, 0xce, 0x98, 0xf2, 0x62, 0x87, - 0x10, 0x92, 0x74, 0xe4, 0x40, 0x24, 0xa9, 0x30, 0x20, 0x89, 0xa4, 0xe8, 0x60, 0xc1, 0x25, 0x0e, - 0xc1, 0x7c, 0x2b, 0x12, 0x7e, 0x31, 0x8f, 0x64, 0x75, 0xd2, 0x98, 0x8f, 0x16, 0x1f, 0xc4, 0xfc, - 0xe3, 0x16, 0x98, 0xa2, 0x36, 0xe1, 0x49, 0x84, 0x47, 0xf0, 0xc5, 0xf3, 0x22, 0x30, 0x5d, 0x28, - 0x04, 0x41, 0xb1, 0x10, 0x05, 0xc5, 0xc2, 0x16, 0x5f, 0xfd, 0x78, 0xc4, 0x00, 0x82, 0x58, 0x8c, - 0xe0, 0x55, 0x70, 0x36, 0x60, 0x0d, 0xb0, 0x16, 0x17, 0xb8, 0xf7, 0x7d, 0x3c, 0x62, 0x04, 0x02, - 0x03, 0x10, 0xf8, 0x25, 0x98, 0xb4, 0xb0, 0x13, 0xea, 0x71, 0x41, 0x04, 0x8d, 0x0f, 0x87, 0x0f, - 0x1a, 0x9f, 0x62, 0x47, 0xa8, 0xbb, 0x65, 0x33, 0xb7, 0x69, 0x4c, 0x58, 0xe1, 0x10, 0x1e, 0x83, - 0x79, 0x8b, 0xe7, 0x8e, 0x94, 0xbd, 0x17, 0x05, 0xce, 0xc7, 0xaf, 0x84, 0xe3, 0x24, 0xf6, 0x27, - 0x00, 0x9c, 0xb3, 0xd2, 0xf3, 0x31, 0xe4, 0xd0, 0xf7, 0x02, 0xe4, 0xc5, 0xd7, 0x43, 0x0e, 0x3c, - 0xaf, 0x17, 0x39, 0x36, 0x0f, 0x8b, 0x60, 0xd1, 0xa6, 0xf6, 0x06, 0xb5, 0x8f, 0x88, 0xcd, 0x33, - 0x0f, 0x6e, 0xec, 0x60, 0x2b, 0x08, 0x6f, 0x8b, 0x59, 0x11, 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xf2, 0xb9, 0x98, 0x83, 0x6a, 0x42, 0x1f, 0xad, 0x23, 0xb4, 0xb8, 0x3c, 0x98, 0x48, 0xa8, 0x50, - 0xfe, 0x15, 0x90, 0x0d, 0x1e, 0x23, 0x20, 0xbc, 0xe3, 0x62, 0x9b, 0x79, 0x88, 0x0f, 0xc2, 0xb3, - 0x04, 0x4b, 0xe1, 0x13, 0x05, 0x9c, 0x0f, 0x17, 0xc5, 0x28, 0x5a, 0xdd, 0x00, 0x63, 0xb8, 0x66, - 0x99, 0x36, 0x2c, 0x26, 0x58, 0xed, 0x5a, 0x82, 0x4c, 0xb8, 0x06, 0x27, 0x33, 0x3d, 0xc6, 0x6b, - 0xc9, 0x23, 0xde, 0x32, 0xec, 0x53, 0xd7, 0x12, 0xde, 0x57, 0x59, 0x06, 0xd3, 0xf1, 0x83, 0x19, - 0x49, 0x3f, 0x9b, 0x54, 0xae, 0x0f, 0x7c, 0x38, 0x49, 0x93, 0xba, 0xdb, 0xe0, 0xe2, 0xa7, 0xdd, - 0x68, 0x19, 0x8f, 0x01, 0xc3, 0xde, 0xfd, 0xe7, 0x97, 0x01, 0x3c, 0xce, 0xc7, 0x67, 0xf8, 0x25, - 0x81, 0x63, 0x59, 0xb9, 0x82, 0xdd, 0xe7, 0x2a, 0xb8, 0x98, 0x5a, 0xac, 0xe0, 0xe7, 0xf9, 0x86, - 0xe9, 0x31, 0x38, 0xad, 0x4f, 0x81, 0xb1, 0xac, 0x4c, 0x6d, 0x02, 0x32, 0x48, 0x7a, 0x3c, 0xd9, - 0x71, 0xc7, 0xca, 0xb8, 0x08, 0x63, 0x6b, 0xff, 0x17, 0x00, 0x00, 0xff, 0xff, 0xe8, 0xcf, 0x9c, - 0x94, 0x33, 0x2c, 0x00, 0x00, + proto.RegisterFile("examples/internal/proto/examplepb/a_bit_of_everything.proto", fileDescriptor_e6ccf6cab3ab66ab) +} + +var fileDescriptor_e6ccf6cab3ab66ab = []byte{ + // 3643 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0x4b, 0x6c, 0x1b, 0x49, + 0x7a, 0x56, 0xb1, 0xa9, 0x57, 0xc9, 0x92, 0xa8, 0x92, 0x65, 0xcb, 0xb4, 0x66, 0x5c, 0x43, 0x7b, + 0x77, 0xdb, 0x5c, 0x93, 0x2d, 0xb5, 0xe4, 0x19, 0x9b, 0x93, 0xdd, 0x19, 0x52, 0x92, 0x3d, 0xb2, + 0x3d, 0xb2, 0xdd, 0xd6, 0x78, 0x67, 0xbc, 0x98, 0x55, 0x8a, 0x64, 0x51, 0x6c, 0x8b, 0xfd, 0xd8, + 0xee, 0x6a, 0x59, 0xb4, 0x42, 0x64, 0x12, 0x24, 0x58, 0x20, 0x09, 0x90, 0x80, 0x41, 0x12, 0x24, + 0x93, 0xb9, 0x25, 0x97, 0x60, 0x0f, 0xb9, 0xe4, 0x10, 0xec, 0x21, 0xa7, 0x60, 0x0f, 0xb9, 0x4d, + 0x80, 0xbd, 0x07, 0x09, 0x72, 0x08, 0x72, 0x0b, 0x30, 0x40, 0x0e, 0x0b, 0x04, 0x55, 0xdd, 0x4d, + 0x76, 0xf3, 0x61, 0x49, 0x23, 0x07, 0x33, 0x3e, 0x58, 0x5d, 0x55, 0xff, 0xe3, 0xfb, 0xab, 0xfe, + 0xfe, 0x1f, 0xd5, 0x84, 0xef, 0xd2, 0x43, 0x62, 0xd8, 0x0d, 0xea, 0x2a, 0xba, 0xc9, 0xa8, 0x63, + 0x92, 0x86, 0x62, 0x3b, 0x16, 0xb3, 0x94, 0x60, 0xde, 0x2e, 0x2b, 0x64, 0xb7, 0xac, 0xb3, 0x5d, + 0xab, 0xb6, 0x4b, 0x0f, 0xa8, 0xd3, 0x64, 0x75, 0xdd, 0xdc, 0xcb, 0x0b, 0x1a, 0x24, 0xef, 0x39, + 0x76, 0x25, 0xbf, 0x47, 0x18, 0x7d, 0x41, 0x9a, 0x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0xf2, 0xf8, 0x00, 0xf6, 0x50, + 0xfb, 0x3b, 0x70, 0x31, 0xce, 0x1e, 0xe9, 0xec, 0x26, 0xb0, 0x24, 0x4f, 0x68, 0x0b, 0x51, 0xde, + 0x52, 0xa7, 0xcb, 0xeb, 0xdb, 0xae, 0x58, 0x19, 0x3b, 0x29, 0x0a, 0xf8, 0xd8, 0x76, 0xc5, 0x8b, + 0xf8, 0x9e, 0xed, 0x8a, 0x76, 0x83, 0x10, 0x4b, 0xf2, 0xb9, 0xf8, 0x76, 0x95, 0xba, 0x9d, 0xe1, + 0xc0, 0x63, 0xea, 0x98, 0x3b, 0x85, 0x25, 0x79, 0xba, 0xff, 0x98, 0x42, 0x6b, 0xcd, 0x5e, 0x6b, + 0x23, 0x15, 0xdf, 0xb9, 0xb3, 0x54, 0x7c, 0xb1, 0x4d, 0xea, 0x56, 0x7d, 0xef, 0xc1, 0xa5, 0x9e, + 0x4d, 0x8a, 0x9f, 0xce, 0x34, 0x96, 0xe4, 0x59, 0xed, 0x52, 0x6c, 0x9b, 0x62, 0xed, 0xd8, 0x10, + 0x01, 0x1d, 0xef, 0x98, 0xc1, 0x92, 0x9c, 0x1a, 0x24, 0x60, 0xa8, 0x57, 0xc7, 0xda, 0xb6, 0x59, + 0x2c, 0xc9, 0x73, 0x3d, 0xc7, 0x14, 0xd9, 0xae, 0x81, 0xcc, 0x91, 0xc6, 0x50, 0x92, 0x51, 0x3f, + 0x73, 0xa0, 0xb9, 0x50, 0x6f, 0x17, 0xa9, 0x5a, 0x41, 0xe4, 0x08, 0x67, 0x86, 0x79, 0x58, 0xa6, + 0x80, 0x7f, 0xcc, 0x1c, 0x8f, 0xde, 0xc0, 0xfe, 0xff, 0x35, 0xd2, 0x70, 0x83, 0xc1, 0xa7, 0x37, + 0x7a, 0xd9, 0x22, 0xb8, 0x39, 0xdf, 0xca, 0x0d, 0xac, 0xde, 0xc0, 0xab, 0x9f, 0xe2, 0x56, 0x26, + 0x0d, 0x93, 0x25, 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, 0x90, 0xce, 0x2a, 0x07, 0xea, 0xab, 0x41, 0x91, 0x32, 0xcd, 0xfb, 0xc0, 0x78, 0x94, + 0x7b, 0xb6, 0xa2, 0x9e, 0x9a, 0x65, 0x59, 0xfd, 0xbe, 0x72, 0xa0, 0x92, 0x93, 0xf2, 0x80, 0x2c, + 0xfa, 0x5b, 0x00, 0xc7, 0x36, 0x68, 0x83, 0x32, 0xda, 0xef, 0x19, 0xc3, 0x6c, 0x72, 0xda, 0xc5, + 0x62, 0xf9, 0x3a, 0x9c, 0x81, 0xb0, 0x68, 0xeb, 0xf7, 0x69, 0xb3, 0xe8, 0xb1, 0x3a, 0x1a, 0x81, + 0x17, 0xe1, 0xd8, 0x43, 0xfe, 0xa8, 0xa2, 0x69, 0x98, 0x74, 0x28, 0xa9, 0xc2, 0xd1, 0x17, 0x8e, + 0xce, 0xe8, 0xf3, 0xf3, 0x70, 0xe6, 0x30, 0xa7, 0x3b, 0x0e, 0x07, 0xe1, 0xea, 0xe5, 0x06, 0x45, + 0x09, 0xec, 0x6f, 0x8b, 0x9c, 0x3d, 0xa9, 0xe7, 0xfc, 0x37, 0x80, 0x13, 0x77, 0x29, 0x7b, 0xec, + 0x51, 0xa7, 0xf9, 0xff, 0xe2, 0x3b, 0x7f, 0x08, 0xda, 0xc5, 0x9d, 0xcc, 0x36, 0x5c, 0x1a, 0xd4, + 0x65, 0x74, 0x34, 0x9f, 0xb2, 0xbb, 0xf8, 0x18, 0x94, 0x47, 0x84, 0xa1, 0x79, 0x74, 0xe3, 0x38, + 0x43, 0x7f, 0xca, 0x15, 0x84, 0xe6, 0x7e, 0x31, 0x0a, 0x53, 0x77, 0x29, 0x0b, 0x6b, 0x09, 0x5f, + 0x79, 0xe9, 0x0c, 0x79, 0x33, 0x10, 0x94, 0x7e, 0x0d, 0x32, 0x32, 0x9f, 0x25, 0x85, 0x4d, 0xff, + 0x2b, 0xa1, 0xaf, 0xa4, 0x63, 0xac, 0xea, 0x94, 0x2c, 0x41,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a, 0xb7, 0x19, 0xff, 0x02, 0x26, + 0x24, 0x39, 0xa9, 0x5e, 0x0d, 0x9d, 0x2f, 0xe2, 0xa9, 0x8a, 0xc0, 0xa3, 0x74, 0x84, 0x16, 0xae, + 0x0c, 0x27, 0x12, 0x10, 0x4a, 0xbf, 0x0d, 0xd3, 0xfe, 0xe5, 0x08, 0x42, 0x77, 0x1d, 0x62, 0x32, + 0x17, 0xf3, 0x41, 0x70, 0xa8, 0x70, 0x29, 0xb8, 0x32, 0x41, 0xf3, 0xc1, 0xa2, 0x18, 0x85, 0xab, + 0xeb, 0x70, 0x94, 0x54, 0x0d, 0xdd, 0x44, 0x85, 0x18, 0xab, 0x59, 0x8d, 0x91, 0x09, 0x1f, 0xe1, + 0x64, 0xba, 0xcb, 0x78, 0x71, 0x7a, 0xc0, 0xbb, 0x92, 0x9a, 0xe5, 0x18, 0xc2, 0x0d, 0xcb, 0x57, + 0xe0, 0x74, 0xf4, 0x60, 0x46, 0x7a, 0xaf, 0x71, 0xca, 0xd7, 0x87, 0x5e, 0xe4, 0xf4, 0x92, 0x3a, + 0x5b, 0xf0, 0xe2, 0x87, 0xdd, 0xb0, 0x19, 0x0d, 0x06, 0xa7, 0x0d, 0x02, 0x2f, 0x2f, 0x43, 0x74, + 0x98, 0x8b, 0xce, 0xf0, 0xb7, 0x05, 0x8d, 0xa6, 0xa5, 0x32, 0x71, 0x5e, 0xca, 0xf0, 0x62, 0xcf, + 0x62, 0x99, 0xbc, 0xcc, 0x35, 0x74, 0x97, 0xa1, 0x69, 0x75, 0x0a, 0x8e, 0xa6, 0x25, 0xcb, 0xa4, + 0x30, 0x81, 0xc1, 0xb3, 0xc9, 0x8e, 0x3b, 0x96, 0xc7, 0x44, 0x3c, 0x5b, 0xfd, 0xbf, 0x00, 0x00, + 0x00, 0xff, 0xff, 0xaf, 0x42, 0x84, 0x1a, 0xde, 0x2d, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1104,7 +1105,7 @@ func NewABitOfEverythingServiceClient(cc *grpc.ClientConn) ABitOfEverythingServi func (c *aBitOfEverythingServiceClient) Create(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) { out := new(ABitOfEverything) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/Create", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/Create", in, out, opts...) if err != nil { return nil, err } @@ -1113,7 +1114,7 @@ func (c *aBitOfEverythingServiceClient) Create(ctx context.Context, in *ABitOfEv func (c *aBitOfEverythingServiceClient) CreateBody(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) { out := new(ABitOfEverything) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/CreateBody", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/CreateBody", in, out, opts...) if err != nil { return nil, err } @@ -1122,7 +1123,7 @@ func (c *aBitOfEverythingServiceClient) CreateBody(ctx context.Context, in *ABit func (c *aBitOfEverythingServiceClient) Lookup(ctx context.Context, in *sub2.IdMessage, opts ...grpc.CallOption) (*ABitOfEverything, error) { out := new(ABitOfEverything) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/Lookup", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/Lookup", in, out, opts...) if err != nil { return nil, err } @@ -1131,7 +1132,7 @@ func (c *aBitOfEverythingServiceClient) Lookup(ctx context.Context, in *sub2.IdM func (c *aBitOfEverythingServiceClient) Update(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*empty.Empty, error) { out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/Update", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/Update", in, out, opts...) if err != nil { return nil, err } @@ -1140,7 +1141,7 @@ func (c *aBitOfEverythingServiceClient) Update(ctx context.Context, in *ABitOfEv func (c *aBitOfEverythingServiceClient) UpdateV2(ctx context.Context, in *UpdateV2Request, opts ...grpc.CallOption) (*empty.Empty, error) { out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/UpdateV2", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/UpdateV2", in, out, opts...) if err != nil { return nil, err } @@ -1149,7 +1150,7 @@ func (c *aBitOfEverythingServiceClient) UpdateV2(ctx context.Context, in *Update func (c *aBitOfEverythingServiceClient) Delete(ctx context.Context, in *sub2.IdMessage, opts ...grpc.CallOption) (*empty.Empty, error) { out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/Delete", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/Delete", in, out, opts...) if err != nil { return nil, err } @@ -1158,7 +1159,7 @@ func (c *aBitOfEverythingServiceClient) Delete(ctx context.Context, in *sub2.IdM func (c *aBitOfEverythingServiceClient) GetQuery(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*empty.Empty, error) { out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/GetQuery", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/GetQuery", in, out, opts...) if err != nil { return nil, err } @@ -1167,7 +1168,7 @@ func (c *aBitOfEverythingServiceClient) GetQuery(ctx context.Context, in *ABitOf func (c *aBitOfEverythingServiceClient) GetRepeatedQuery(ctx context.Context, in *ABitOfEverythingRepeated, opts ...grpc.CallOption) (*ABitOfEverythingRepeated, error) { out := new(ABitOfEverythingRepeated) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/GetRepeatedQuery", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/GetRepeatedQuery", in, out, opts...) if err != nil { return nil, err } @@ -1176,7 +1177,7 @@ func (c *aBitOfEverythingServiceClient) GetRepeatedQuery(ctx context.Context, in func (c *aBitOfEverythingServiceClient) Echo(ctx context.Context, in *sub.StringMessage, opts ...grpc.CallOption) (*sub.StringMessage, error) { out := new(sub.StringMessage) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/Echo", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/Echo", in, out, opts...) if err != nil { return nil, err } @@ -1185,7 +1186,7 @@ func (c *aBitOfEverythingServiceClient) Echo(ctx context.Context, in *sub.String func (c *aBitOfEverythingServiceClient) DeepPathEcho(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) { out := new(ABitOfEverything) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/DeepPathEcho", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/DeepPathEcho", in, out, opts...) if err != nil { return nil, err } @@ -1194,7 +1195,7 @@ func (c *aBitOfEverythingServiceClient) DeepPathEcho(ctx context.Context, in *AB func (c *aBitOfEverythingServiceClient) NoBindings(ctx context.Context, in *duration.Duration, opts ...grpc.CallOption) (*empty.Empty, error) { out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/NoBindings", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/NoBindings", in, out, opts...) if err != nil { return nil, err } @@ -1203,7 +1204,7 @@ func (c *aBitOfEverythingServiceClient) NoBindings(ctx context.Context, in *dura func (c *aBitOfEverythingServiceClient) Timeout(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/Timeout", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/Timeout", in, out, opts...) if err != nil { return nil, err } @@ -1212,7 +1213,7 @@ func (c *aBitOfEverythingServiceClient) Timeout(ctx context.Context, in *empty.E func (c *aBitOfEverythingServiceClient) ErrorWithDetails(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/ErrorWithDetails", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/ErrorWithDetails", in, out, opts...) if err != nil { return nil, err } @@ -1221,7 +1222,7 @@ func (c *aBitOfEverythingServiceClient) ErrorWithDetails(ctx context.Context, in func (c *aBitOfEverythingServiceClient) GetMessageWithBody(ctx context.Context, in *MessageWithBody, opts ...grpc.CallOption) (*empty.Empty, error) { out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/GetMessageWithBody", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/GetMessageWithBody", in, out, opts...) if err != nil { return nil, err } @@ -1230,7 +1231,7 @@ func (c *aBitOfEverythingServiceClient) GetMessageWithBody(ctx context.Context, func (c *aBitOfEverythingServiceClient) PostWithEmptyBody(ctx context.Context, in *Body, opts ...grpc.CallOption) (*empty.Empty, error) { out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/PostWithEmptyBody", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/PostWithEmptyBody", in, out, opts...) if err != nil { return nil, err } @@ -1239,7 +1240,7 @@ func (c *aBitOfEverythingServiceClient) PostWithEmptyBody(ctx context.Context, i func (c *aBitOfEverythingServiceClient) CheckGetQueryParams(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) { out := new(ABitOfEverything) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/CheckGetQueryParams", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/CheckGetQueryParams", in, out, opts...) if err != nil { return nil, err } @@ -1248,7 +1249,7 @@ func (c *aBitOfEverythingServiceClient) CheckGetQueryParams(ctx context.Context, func (c *aBitOfEverythingServiceClient) CheckNestedEnumGetQueryParams(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) { out := new(ABitOfEverything) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/CheckNestedEnumGetQueryParams", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/CheckNestedEnumGetQueryParams", in, out, opts...) if err != nil { return nil, err } @@ -1257,7 +1258,7 @@ func (c *aBitOfEverythingServiceClient) CheckNestedEnumGetQueryParams(ctx contex func (c *aBitOfEverythingServiceClient) CheckPostQueryParams(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) { out := new(ABitOfEverything) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/CheckPostQueryParams", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/CheckPostQueryParams", in, out, opts...) if err != nil { return nil, err } @@ -1266,7 +1267,7 @@ func (c *aBitOfEverythingServiceClient) CheckPostQueryParams(ctx context.Context func (c *aBitOfEverythingServiceClient) OverwriteResponseContentType(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*wrappers.StringValue, error) { out := new(wrappers.StringValue) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ABitOfEverythingService/OverwriteResponseContentType", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/OverwriteResponseContentType", in, out, opts...) if err != nil { return nil, err } @@ -1382,7 +1383,7 @@ func _ABitOfEverythingService_Create_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/Create", + FullMethod: "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/Create", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ABitOfEverythingServiceServer).Create(ctx, req.(*ABitOfEverything)) @@ -1400,7 +1401,7 @@ func _ABitOfEverythingService_CreateBody_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/CreateBody", + FullMethod: "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/CreateBody", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ABitOfEverythingServiceServer).CreateBody(ctx, req.(*ABitOfEverything)) @@ -1418,7 +1419,7 @@ func _ABitOfEverythingService_Lookup_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/Lookup", + FullMethod: "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/Lookup", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ABitOfEverythingServiceServer).Lookup(ctx, req.(*sub2.IdMessage)) @@ -1436,7 +1437,7 @@ func _ABitOfEverythingService_Update_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/Update", + FullMethod: "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/Update", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ABitOfEverythingServiceServer).Update(ctx, req.(*ABitOfEverything)) @@ -1454,7 +1455,7 @@ func _ABitOfEverythingService_UpdateV2_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/UpdateV2", + FullMethod: "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/UpdateV2", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ABitOfEverythingServiceServer).UpdateV2(ctx, req.(*UpdateV2Request)) @@ -1472,7 +1473,7 @@ func _ABitOfEverythingService_Delete_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/Delete", + FullMethod: "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/Delete", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ABitOfEverythingServiceServer).Delete(ctx, req.(*sub2.IdMessage)) @@ -1490,7 +1491,7 @@ func _ABitOfEverythingService_GetQuery_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/GetQuery", + FullMethod: "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/GetQuery", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ABitOfEverythingServiceServer).GetQuery(ctx, req.(*ABitOfEverything)) @@ -1508,7 +1509,7 @@ func _ABitOfEverythingService_GetRepeatedQuery_Handler(srv interface{}, ctx cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/GetRepeatedQuery", + FullMethod: "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/GetRepeatedQuery", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ABitOfEverythingServiceServer).GetRepeatedQuery(ctx, req.(*ABitOfEverythingRepeated)) @@ -1526,7 +1527,7 @@ func _ABitOfEverythingService_Echo_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/Echo", + FullMethod: "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/Echo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ABitOfEverythingServiceServer).Echo(ctx, req.(*sub.StringMessage)) @@ -1544,7 +1545,7 @@ func _ABitOfEverythingService_DeepPathEcho_Handler(srv interface{}, ctx context. } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/DeepPathEcho", + FullMethod: "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/DeepPathEcho", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ABitOfEverythingServiceServer).DeepPathEcho(ctx, req.(*ABitOfEverything)) @@ -1562,7 +1563,7 @@ func _ABitOfEverythingService_NoBindings_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/NoBindings", + FullMethod: "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/NoBindings", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ABitOfEverythingServiceServer).NoBindings(ctx, req.(*duration.Duration)) @@ -1580,7 +1581,7 @@ func _ABitOfEverythingService_Timeout_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/Timeout", + FullMethod: "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/Timeout", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ABitOfEverythingServiceServer).Timeout(ctx, req.(*empty.Empty)) @@ -1598,7 +1599,7 @@ func _ABitOfEverythingService_ErrorWithDetails_Handler(srv interface{}, ctx cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/ErrorWithDetails", + FullMethod: "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/ErrorWithDetails", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ABitOfEverythingServiceServer).ErrorWithDetails(ctx, req.(*empty.Empty)) @@ -1616,7 +1617,7 @@ func _ABitOfEverythingService_GetMessageWithBody_Handler(srv interface{}, ctx co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/GetMessageWithBody", + FullMethod: "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/GetMessageWithBody", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ABitOfEverythingServiceServer).GetMessageWithBody(ctx, req.(*MessageWithBody)) @@ -1634,7 +1635,7 @@ func _ABitOfEverythingService_PostWithEmptyBody_Handler(srv interface{}, ctx con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/PostWithEmptyBody", + FullMethod: "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/PostWithEmptyBody", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ABitOfEverythingServiceServer).PostWithEmptyBody(ctx, req.(*Body)) @@ -1652,7 +1653,7 @@ func _ABitOfEverythingService_CheckGetQueryParams_Handler(srv interface{}, ctx c } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/CheckGetQueryParams", + FullMethod: "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/CheckGetQueryParams", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ABitOfEverythingServiceServer).CheckGetQueryParams(ctx, req.(*ABitOfEverything)) @@ -1670,7 +1671,7 @@ func _ABitOfEverythingService_CheckNestedEnumGetQueryParams_Handler(srv interfac } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/CheckNestedEnumGetQueryParams", + FullMethod: "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/CheckNestedEnumGetQueryParams", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ABitOfEverythingServiceServer).CheckNestedEnumGetQueryParams(ctx, req.(*ABitOfEverything)) @@ -1688,7 +1689,7 @@ func _ABitOfEverythingService_CheckPostQueryParams_Handler(srv interface{}, ctx } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/CheckPostQueryParams", + FullMethod: "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/CheckPostQueryParams", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ABitOfEverythingServiceServer).CheckPostQueryParams(ctx, req.(*ABitOfEverything)) @@ -1706,7 +1707,7 @@ func _ABitOfEverythingService_OverwriteResponseContentType_Handler(srv interface } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.ABitOfEverythingService/OverwriteResponseContentType", + FullMethod: "/grpc.gateway.examples.internal.examplepb.ABitOfEverythingService/OverwriteResponseContentType", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ABitOfEverythingServiceServer).OverwriteResponseContentType(ctx, req.(*empty.Empty)) @@ -1715,7 +1716,7 @@ func _ABitOfEverythingService_OverwriteResponseContentType_Handler(srv interface } var _ABitOfEverythingService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "grpc.gateway.examples.examplepb.ABitOfEverythingService", + ServiceName: "grpc.gateway.examples.internal.examplepb.ABitOfEverythingService", HandlerType: (*ABitOfEverythingServiceServer)(nil), Methods: []grpc.MethodDesc{ { @@ -1796,7 +1797,7 @@ var _ABitOfEverythingService_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "examples/proto/examplepb/a_bit_of_everything.proto", + Metadata: "examples/internal/proto/examplepb/a_bit_of_everything.proto", } // CamelCaseServiceNameClient is the client API for CamelCaseServiceName service. @@ -1816,7 +1817,7 @@ func NewCamelCaseServiceNameClient(cc *grpc.ClientConn) CamelCaseServiceNameClie func (c *camelCaseServiceNameClient) Empty(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.camelCaseServiceName/Empty", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.camelCaseServiceName/Empty", in, out, opts...) if err != nil { return nil, err } @@ -1850,7 +1851,7 @@ func _CamelCaseServiceName_Empty_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.camelCaseServiceName/Empty", + FullMethod: "/grpc.gateway.examples.internal.examplepb.camelCaseServiceName/Empty", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CamelCaseServiceNameServer).Empty(ctx, req.(*empty.Empty)) @@ -1859,7 +1860,7 @@ func _CamelCaseServiceName_Empty_Handler(srv interface{}, ctx context.Context, d } var _CamelCaseServiceName_serviceDesc = grpc.ServiceDesc{ - ServiceName: "grpc.gateway.examples.examplepb.camelCaseServiceName", + ServiceName: "grpc.gateway.examples.internal.examplepb.camelCaseServiceName", HandlerType: (*CamelCaseServiceNameServer)(nil), Methods: []grpc.MethodDesc{ { @@ -1868,7 +1869,7 @@ var _CamelCaseServiceName_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "examples/proto/examplepb/a_bit_of_everything.proto", + Metadata: "examples/internal/proto/examplepb/a_bit_of_everything.proto", } // AnotherServiceWithNoBindingsClient is the client API for AnotherServiceWithNoBindings service. @@ -1888,7 +1889,7 @@ func NewAnotherServiceWithNoBindingsClient(cc *grpc.ClientConn) AnotherServiceWi func (c *anotherServiceWithNoBindingsClient) NoBindings(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.AnotherServiceWithNoBindings/NoBindings", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.AnotherServiceWithNoBindings/NoBindings", in, out, opts...) if err != nil { return nil, err } @@ -1922,7 +1923,7 @@ func _AnotherServiceWithNoBindings_NoBindings_Handler(srv interface{}, ctx conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.AnotherServiceWithNoBindings/NoBindings", + FullMethod: "/grpc.gateway.examples.internal.examplepb.AnotherServiceWithNoBindings/NoBindings", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AnotherServiceWithNoBindingsServer).NoBindings(ctx, req.(*empty.Empty)) @@ -1931,7 +1932,7 @@ func _AnotherServiceWithNoBindings_NoBindings_Handler(srv interface{}, ctx conte } var _AnotherServiceWithNoBindings_serviceDesc = grpc.ServiceDesc{ - ServiceName: "grpc.gateway.examples.examplepb.AnotherServiceWithNoBindings", + ServiceName: "grpc.gateway.examples.internal.examplepb.AnotherServiceWithNoBindings", HandlerType: (*AnotherServiceWithNoBindingsServer)(nil), Methods: []grpc.MethodDesc{ { @@ -1940,5 +1941,5 @@ var _AnotherServiceWithNoBindings_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "examples/proto/examplepb/a_bit_of_everything.proto", + Metadata: "examples/internal/proto/examplepb/a_bit_of_everything.proto", } diff --git a/examples/proto/examplepb/a_bit_of_everything.pb.gw.go b/examples/internal/proto/examplepb/a_bit_of_everything.pb.gw.go similarity index 99% rename from examples/proto/examplepb/a_bit_of_everything.pb.gw.go rename to examples/internal/proto/examplepb/a_bit_of_everything.pb.gw.go index 2135d7f8a54..cc444791c2a 100644 --- a/examples/proto/examplepb/a_bit_of_everything.pb.gw.go +++ b/examples/internal/proto/examplepb/a_bit_of_everything.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: examples/proto/examplepb/a_bit_of_everything.proto +// source: examples/internal/proto/examplepb/a_bit_of_everything.proto /* Package examplepb is a reverse proxy. @@ -16,9 +16,9 @@ import ( "github.com/golang/protobuf/descriptor" "github.com/golang/protobuf/proto" "github.com/golang/protobuf/ptypes/empty" - "github.com/grpc-ecosystem/grpc-gateway/examples/proto/pathenum" - "github.com/grpc-ecosystem/grpc-gateway/examples/proto/sub" - "github.com/grpc-ecosystem/grpc-gateway/examples/proto/sub2" + "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/pathenum" + "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/sub" + "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/sub2" "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/grpc-ecosystem/grpc-gateway/utilities" "google.golang.org/grpc" diff --git a/examples/proto/examplepb/a_bit_of_everything.proto b/examples/internal/proto/examplepb/a_bit_of_everything.proto similarity index 97% rename from examples/proto/examplepb/a_bit_of_everything.proto rename to examples/internal/proto/examplepb/a_bit_of_everything.proto index b5e394b2970..e391ffa65e3 100644 --- a/examples/proto/examplepb/a_bit_of_everything.proto +++ b/examples/internal/proto/examplepb/a_bit_of_everything.proto @@ -1,15 +1,15 @@ syntax = "proto3"; option go_package = "examplepb"; -package grpc.gateway.examples.examplepb; +package grpc.gateway.examples.internal.examplepb; import "google/api/annotations.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/wrappers.proto"; -import "examples/proto/pathenum/path_enum.proto"; -import "examples/proto/sub/message.proto"; -import "examples/proto/sub2/message.proto"; +import "examples/internal/proto/pathenum/path_enum.proto"; +import "examples/internal/proto/sub/message.proto"; +import "examples/internal/proto/sub2/message.proto"; import "google/protobuf/timestamp.proto"; import "protoc-gen-swagger/options/annotations.proto"; @@ -155,7 +155,7 @@ option (grpc.gateway.protoc_gen_swagger.options.openapiv2_swagger) = { description: "I'm a teapot."; schema: { json_schema: { - ref: ".grpc.gateway.examples.examplepb.NumericEnum"; + ref: ".grpc.gateway.examples.internal.examplepb.NumericEnum"; } } } @@ -428,7 +428,7 @@ service ABitOfEverythingService { // This makes it useful when validating that the OpenAPI v2 API // description exposes documentation correctly on all paths // defined as additional_bindings in the proto. - rpc Echo(grpc.gateway.examples.sub.StringMessage) returns (grpc.gateway.examples.sub.StringMessage) { + rpc Echo(grpc.gateway.examples.internal.sub.StringMessage) returns (grpc.gateway.examples.internal.sub.StringMessage) { option (google.api.http) = { get: "/v1/example/a_bit_of_everything/echo/{value}" additional_bindings { diff --git a/examples/proto/examplepb/a_bit_of_everything.swagger.json b/examples/internal/proto/examplepb/a_bit_of_everything.swagger.json similarity index 100% rename from examples/proto/examplepb/a_bit_of_everything.swagger.json rename to examples/internal/proto/examplepb/a_bit_of_everything.swagger.json diff --git a/examples/proto/examplepb/echo_service.pb.go b/examples/internal/proto/examplepb/echo_service.pb.go similarity index 74% rename from examples/proto/examplepb/echo_service.pb.go rename to examples/internal/proto/examplepb/echo_service.pb.go index b9f5743303b..3ca940dce39 100644 --- a/examples/proto/examplepb/echo_service.pb.go +++ b/examples/internal/proto/examplepb/echo_service.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: examples/proto/examplepb/echo_service.proto +// source: examples/internal/proto/examplepb/echo_service.proto // Echo Service // @@ -45,7 +45,7 @@ func (m *Embedded) Reset() { *m = Embedded{} } func (m *Embedded) String() string { return proto.CompactTextString(m) } func (*Embedded) ProtoMessage() {} func (*Embedded) Descriptor() ([]byte, []int) { - return fileDescriptor_01041da8d77029c8, []int{0} + return fileDescriptor_2919b738e91bb561, []int{0} } func (m *Embedded) XXX_Unmarshal(b []byte) error { @@ -134,7 +134,7 @@ func (m *SimpleMessage) Reset() { *m = SimpleMessage{} } func (m *SimpleMessage) String() string { return proto.CompactTextString(m) } func (*SimpleMessage) ProtoMessage() {} func (*SimpleMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_01041da8d77029c8, []int{1} + return fileDescriptor_2919b738e91bb561, []int{1} } func (m *SimpleMessage) XXX_Unmarshal(b []byte) error { @@ -261,46 +261,46 @@ func (*SimpleMessage) XXX_OneofWrappers() []interface{} { } func init() { - proto.RegisterType((*Embedded)(nil), "grpc.gateway.examples.examplepb.Embedded") - proto.RegisterType((*SimpleMessage)(nil), "grpc.gateway.examples.examplepb.SimpleMessage") + proto.RegisterType((*Embedded)(nil), "grpc.gateway.examples.internal.examplepb.Embedded") + proto.RegisterType((*SimpleMessage)(nil), "grpc.gateway.examples.internal.examplepb.SimpleMessage") } func init() { - proto.RegisterFile("examples/proto/examplepb/echo_service.proto", fileDescriptor_01041da8d77029c8) -} - -var fileDescriptor_01041da8d77029c8 = []byte{ - // 470 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x53, 0x3f, 0x6f, 0xd3, 0x40, - 0x14, 0xef, 0xd9, 0x6e, 0x9a, 0xbc, 0x08, 0x54, 0x9d, 0x40, 0x98, 0xb4, 0xa8, 0x91, 0xc5, 0x10, - 0x8a, 0xe4, 0x53, 0xc2, 0x06, 0x13, 0x11, 0x45, 0x5d, 0x60, 0x70, 0xb7, 0x2c, 0xd1, 0xc5, 0xf7, - 0xe4, 0x5a, 0xd8, 0x77, 0x96, 0x7d, 0x29, 0x8d, 0xac, 0x2c, 0x48, 0x6c, 0x30, 0xb1, 0xf3, 0x11, - 0xd8, 0xf8, 0x18, 0x4c, 0x7c, 0x05, 0x3e, 0x08, 0xba, 0x4b, 0x1c, 0x09, 0x5a, 0xb5, 0xea, 0x90, - 0xcd, 0xef, 0xcf, 0xef, 0xfd, 0x7e, 0xf7, 0x7b, 0xcf, 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, 0xfb, 0xcf, 0xbe, 0xf8, 0x1b, 0x00, 0x00, 0xff, 0xff, 0xe9, 0xdb, - 0x6f, 0x39, 0x21, 0x04, 0x00, 0x00, + proto.RegisterFile("examples/internal/proto/examplepb/echo_service.proto", fileDescriptor_2919b738e91bb561) +} + +var fileDescriptor_2919b738e91bb561 = []byte{ + // 480 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x53, 0xcf, 0x6a, 0x13, 0x41, + 0x18, 0xef, 0xec, 0xa6, 0x69, 0xf2, 0x05, 0xa5, 0x0c, 0x8a, 0x6b, 0x5a, 0x31, 0x2c, 0x1e, 0x42, + 0x0f, 0x3b, 0x24, 0x0a, 0x82, 0xc7, 0xd0, 0x4a, 0x11, 0xf4, 0xb0, 0xbd, 0xe5, 0x12, 0x26, 0x3b, + 0x1f, 0xdb, 0xc5, 0xdd, 0x99, 0x65, 0x67, 0x52, 0x1b, 0x96, 0x5c, 0xf4, 0x11, 0x3c, 0x78, 0xd3, + 0x37, 0x10, 0x2f, 0x3e, 0x89, 0xaf, 0xe0, 0x83, 0xc8, 0x4c, 0xb2, 0x01, 0x6d, 0x91, 0xd2, 0x4b, + 0x6f, 0xfb, 0xfd, 0xfb, 0xfd, 0x7e, 0xfb, 0xfb, 0xbe, 0x81, 0x17, 0x78, 0xc9, 0x8b, 0x32, 0x47, + 0xcd, 0x32, 0x69, 0xb0, 0x92, 0x3c, 0x67, 0x65, 0xa5, 0x8c, 0x62, 0x9b, 0x7c, 0x39, 0x67, 0x98, + 0x9c, 0xab, 0x99, 0xc6, 0xea, 0x22, 0x4b, 0x30, 0x72, 0x45, 0x3a, 0x4c, 0xab, 0x32, 0x89, 0x52, + 0x6e, 0xf0, 0x03, 0x5f, 0x46, 0x0d, 0x44, 0xd4, 0x40, 0x44, 0xdb, 0xe1, 0xfe, 0x61, 0xaa, 0x54, + 0x9a, 0x23, 0xe3, 0x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0x1b, 0xd3, 0x97, 0x37, 0x67, + 0xf8, 0xcb, 0xd9, 0xfe, 0x6d, 0x07, 0xc3, 0x9f, 0xe4, 0xe3, 0xaf, 0xdf, 0x9f, 0xbd, 0xef, 0x24, + 0x7c, 0xc8, 0x2e, 0x46, 0xcd, 0x81, 0xb9, 0xf3, 0x62, 0x75, 0x26, 0x56, 0xd3, 0x27, 0xf4, 0xe0, + 0xda, 0x02, 0xab, 0xe5, 0xa2, 0x58, 0x4d, 0x9f, 0xd1, 0xf0, 0x3f, 0x65, 0x56, 0xdb, 0x15, 0xad, + 0xa6, 0x23, 0xca, 0xfe, 0xed, 0x1a, 0x6d, 0xda, 0x9a, 0x75, 0xaf, 0x58, 0xbd, 0x5e, 0x42, 0x64, + 0x8f, 0xe8, 0x5a, 0xde, 0x31, 0xab, 0xa5, 0x5a, 0x97, 0xe9, 0x57, 0x02, 0x1d, 0x6b, 0xd9, 0x44, + 0x89, 0xe5, 0x1d, 0xd8, 0x36, 0x70, 0xae, 0xf5, 0xaf, 0x9a, 0x36, 0x9b, 0x2b, 0xb1, 0x7c, 0x45, + 0x8e, 0xe8, 0x37, 0x02, 0x60, 0x05, 0x1e, 0x63, 0x8e, 0x06, 0xef, 0x40, 0xe2, 0x53, 0x27, 0xf1, + 0xf1, 0xd1, 0xa3, 0x2b, 0x12, 0x85, 0x93, 0x34, 0xe9, 0x4d, 0xbb, 0xdb, 0xd9, 0x79, 0xdb, 0xbd, + 0xfd, 0xe7, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x28, 0x11, 0xad, 0x90, 0x7b, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -336,7 +336,7 @@ func NewEchoServiceClient(cc *grpc.ClientConn) EchoServiceClient { func (c *echoServiceClient) Echo(ctx context.Context, in *SimpleMessage, opts ...grpc.CallOption) (*SimpleMessage, error) { out := new(SimpleMessage) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.EchoService/Echo", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.EchoService/Echo", in, out, opts...) if err != nil { return nil, err } @@ -345,7 +345,7 @@ func (c *echoServiceClient) Echo(ctx context.Context, in *SimpleMessage, opts .. func (c *echoServiceClient) EchoBody(ctx context.Context, in *SimpleMessage, opts ...grpc.CallOption) (*SimpleMessage, error) { out := new(SimpleMessage) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.EchoService/EchoBody", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.EchoService/EchoBody", in, out, opts...) if err != nil { return nil, err } @@ -354,7 +354,7 @@ func (c *echoServiceClient) EchoBody(ctx context.Context, in *SimpleMessage, opt func (c *echoServiceClient) EchoDelete(ctx context.Context, in *SimpleMessage, opts ...grpc.CallOption) (*SimpleMessage, error) { out := new(SimpleMessage) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.EchoService/EchoDelete", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.EchoService/EchoDelete", in, out, opts...) if err != nil { return nil, err } @@ -402,7 +402,7 @@ func _EchoService_Echo_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.EchoService/Echo", + FullMethod: "/grpc.gateway.examples.internal.examplepb.EchoService/Echo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EchoServiceServer).Echo(ctx, req.(*SimpleMessage)) @@ -420,7 +420,7 @@ func _EchoService_EchoBody_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.EchoService/EchoBody", + FullMethod: "/grpc.gateway.examples.internal.examplepb.EchoService/EchoBody", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EchoServiceServer).EchoBody(ctx, req.(*SimpleMessage)) @@ -438,7 +438,7 @@ func _EchoService_EchoDelete_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.EchoService/EchoDelete", + FullMethod: "/grpc.gateway.examples.internal.examplepb.EchoService/EchoDelete", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EchoServiceServer).EchoDelete(ctx, req.(*SimpleMessage)) @@ -447,7 +447,7 @@ func _EchoService_EchoDelete_Handler(srv interface{}, ctx context.Context, dec f } var _EchoService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "grpc.gateway.examples.examplepb.EchoService", + ServiceName: "grpc.gateway.examples.internal.examplepb.EchoService", HandlerType: (*EchoServiceServer)(nil), Methods: []grpc.MethodDesc{ { @@ -464,5 +464,5 @@ var _EchoService_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "examples/proto/examplepb/echo_service.proto", + Metadata: "examples/internal/proto/examplepb/echo_service.proto", } diff --git a/examples/proto/examplepb/echo_service.pb.gw.go b/examples/internal/proto/examplepb/echo_service.pb.gw.go similarity index 99% rename from examples/proto/examplepb/echo_service.pb.gw.go rename to examples/internal/proto/examplepb/echo_service.pb.gw.go index 001f9661119..eed383c2df6 100644 --- a/examples/proto/examplepb/echo_service.pb.gw.go +++ b/examples/internal/proto/examplepb/echo_service.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: examples/proto/examplepb/echo_service.proto +// source: examples/internal/proto/examplepb/echo_service.proto /* Package examplepb is a reverse proxy. diff --git a/examples/proto/examplepb/echo_service.proto b/examples/internal/proto/examplepb/echo_service.proto similarity index 97% rename from examples/proto/examplepb/echo_service.proto rename to examples/internal/proto/examplepb/echo_service.proto index 710d0576e45..29eceaa3e6d 100644 --- a/examples/proto/examplepb/echo_service.proto +++ b/examples/internal/proto/examplepb/echo_service.proto @@ -5,7 +5,7 @@ option go_package = "examplepb"; // // Echo Service API consists of a single service which returns // a message. -package grpc.gateway.examples.examplepb; +package grpc.gateway.examples.internal.examplepb; import "google/api/annotations.proto"; diff --git a/examples/proto/examplepb/echo_service.swagger.json b/examples/internal/proto/examplepb/echo_service.swagger.json similarity index 100% rename from examples/proto/examplepb/echo_service.swagger.json rename to examples/internal/proto/examplepb/echo_service.swagger.json diff --git a/examples/proto/examplepb/flow_combination.pb.go b/examples/internal/proto/examplepb/flow_combination.pb.go similarity index 80% rename from examples/proto/examplepb/flow_combination.pb.go rename to examples/internal/proto/examplepb/flow_combination.pb.go index fb214da5738..baaf20c2376 100644 --- a/examples/proto/examplepb/flow_combination.pb.go +++ b/examples/internal/proto/examplepb/flow_combination.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: examples/proto/examplepb/flow_combination.proto +// source: examples/internal/proto/examplepb/flow_combination.proto package examplepb @@ -35,7 +35,7 @@ func (m *EmptyProto) Reset() { *m = EmptyProto{} } func (m *EmptyProto) String() string { return proto.CompactTextString(m) } func (*EmptyProto) ProtoMessage() {} func (*EmptyProto) Descriptor() ([]byte, []int) { - return fileDescriptor_53e866bab3f236bf, []int{0} + return fileDescriptor_005d0d82a8c98d3c, []int{0} } func (m *EmptyProto) XXX_Unmarshal(b []byte) error { @@ -69,7 +69,7 @@ func (m *NonEmptyProto) Reset() { *m = NonEmptyProto{} } func (m *NonEmptyProto) String() string { return proto.CompactTextString(m) } func (*NonEmptyProto) ProtoMessage() {} func (*NonEmptyProto) Descriptor() ([]byte, []int) { - return fileDescriptor_53e866bab3f236bf, []int{1} + return fileDescriptor_005d0d82a8c98d3c, []int{1} } func (m *NonEmptyProto) XXX_Unmarshal(b []byte) error { @@ -122,7 +122,7 @@ func (m *UnaryProto) Reset() { *m = UnaryProto{} } func (m *UnaryProto) String() string { return proto.CompactTextString(m) } func (*UnaryProto) ProtoMessage() {} func (*UnaryProto) Descriptor() ([]byte, []int) { - return fileDescriptor_53e866bab3f236bf, []int{2} + return fileDescriptor_005d0d82a8c98d3c, []int{2} } func (m *UnaryProto) XXX_Unmarshal(b []byte) error { @@ -163,7 +163,7 @@ func (m *NestedProto) Reset() { *m = NestedProto{} } func (m *NestedProto) String() string { return proto.CompactTextString(m) } func (*NestedProto) ProtoMessage() {} func (*NestedProto) Descriptor() ([]byte, []int) { - return fileDescriptor_53e866bab3f236bf, []int{3} + return fileDescriptor_005d0d82a8c98d3c, []int{3} } func (m *NestedProto) XXX_Unmarshal(b []byte) error { @@ -216,7 +216,7 @@ func (m *SingleNestedProto) Reset() { *m = SingleNestedProto{} } func (m *SingleNestedProto) String() string { return proto.CompactTextString(m) } func (*SingleNestedProto) ProtoMessage() {} func (*SingleNestedProto) Descriptor() ([]byte, []int) { - return fileDescriptor_53e866bab3f236bf, []int{4} + return fileDescriptor_005d0d82a8c98d3c, []int{4} } func (m *SingleNestedProto) XXX_Unmarshal(b []byte) error { @@ -245,60 +245,62 @@ func (m *SingleNestedProto) GetA() *UnaryProto { } func init() { - proto.RegisterType((*EmptyProto)(nil), "grpc.gateway.examples.examplepb.EmptyProto") - proto.RegisterType((*NonEmptyProto)(nil), "grpc.gateway.examples.examplepb.NonEmptyProto") - proto.RegisterType((*UnaryProto)(nil), "grpc.gateway.examples.examplepb.UnaryProto") - proto.RegisterType((*NestedProto)(nil), "grpc.gateway.examples.examplepb.NestedProto") - proto.RegisterType((*SingleNestedProto)(nil), "grpc.gateway.examples.examplepb.SingleNestedProto") + proto.RegisterType((*EmptyProto)(nil), "grpc.gateway.examples.internal.examplepb.EmptyProto") + proto.RegisterType((*NonEmptyProto)(nil), "grpc.gateway.examples.internal.examplepb.NonEmptyProto") + proto.RegisterType((*UnaryProto)(nil), "grpc.gateway.examples.internal.examplepb.UnaryProto") + proto.RegisterType((*NestedProto)(nil), "grpc.gateway.examples.internal.examplepb.NestedProto") + proto.RegisterType((*SingleNestedProto)(nil), "grpc.gateway.examples.internal.examplepb.SingleNestedProto") } func init() { - proto.RegisterFile("examples/proto/examplepb/flow_combination.proto", fileDescriptor_53e866bab3f236bf) -} - -var fileDescriptor_53e866bab3f236bf = []byte{ - // 655 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x96, 0xbf, 0x8f, 0x12, 0x41, - 0x14, 0xc7, 0xf3, 0xb8, 0xc4, 0xe4, 0x86, 0xfb, 0xc1, 0x2d, 0x06, 0x81, 0xc3, 0xe3, 0x6e, 0xbc, - 0x44, 0xe2, 0x8f, 0x5d, 0x82, 0xd5, 0x51, 0x9e, 0xd1, 0x92, 0x5c, 0xb8, 0xd8, 0x6c, 0x63, 0x66, - 0x87, 0x15, 0x48, 0x60, 0x67, 0x6e, 0x77, 0x0d, 0x5e, 0x08, 0x31, 0xb1, 0xb1, 0xb4, 0xf0, 0x0f, - 0xb0, 0xb4, 0xf2, 0x1f, 0xb0, 0xb3, 0xb2, 0x31, 0xb1, 0x30, 0xb1, 0xb3, 0xb3, 0xf3, 0x9f, 0x30, - 0xfb, 0xf6, 0xc7, 0xb0, 0x0a, 0x6e, 0x30, 0x62, 0xb7, 0x6f, 0xe6, 0xbd, 0x37, 0x9f, 0xf9, 0xce, - 0xf7, 0x11, 0x88, 0x61, 0x3f, 0x63, 0x63, 0x39, 0xb2, 0x3d, 0x43, 0xba, 0xc2, 0x17, 0x71, 0x28, - 0x2d, 0xe3, 0xc9, 0x48, 0x4c, 0x1e, 0x73, 0x31, 0xb6, 0x86, 0x0e, 0xf3, 0x87, 0xc2, 0xd1, 0x31, - 0x41, 0xab, 0xf7, 0x5d, 0xc9, 0xf5, 0x3e, 0xf3, 0xed, 0x09, 0xbb, 0xd4, 0xe3, 0x6a, 0x3d, 0xa9, - 0xab, 0xd6, 0xfa, 0x42, 0xf4, 0x47, 0xb6, 0xc1, 0xe4, 0xd0, 0x60, 0x8e, 0x23, 0x7c, 0xac, 0xf6, - 0xc2, 0x72, 0xba, 0x45, 0xc8, 0x83, 0xb1, 0xf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x6c, 0x13, 0x0e, 0x50, 0xe0, 0xdb, 0xf9, 0x0b, 0xa5, 0x7c, 0x1b, 0xa6, 0x98, - 0xf1, 0x4f, 0x52, 0xe8, 0xa0, 0x68, 0x91, 0xd2, 0xeb, 0x4b, 0xdc, 0x1b, 0x37, 0xe6, 0xe6, 0x3e, - 0x2d, 0xfd, 0x6a, 0x60, 0xb5, 0x79, 0x4c, 0xeb, 0x4b, 0x3d, 0xac, 0xb2, 0x6a, 0xd1, 0x90, 0x2c, - 0x4c, 0x68, 0x82, 0xf6, 0x16, 0x48, 0x65, 0x81, 0x97, 0x23, 0x55, 0xd7, 0x6e, 0xe7, 0x9b, 0x28, - 0xec, 0x51, 0x74, 0x95, 0x45, 0x2f, 0x9e, 0x90, 0xfe, 0x00, 0x52, 0x4c, 0x79, 0x3a, 0x62, 0x5c, - 0xa3, 0xad, 0x27, 0x48, 0x77, 0x41, 0x6f, 0xfc, 0xd1, 0xd6, 0x4a, 0xec, 0xec, 0x7b, 0x24, 0xaf, - 0xb6, 0x3c, 0xa5, 0x0d, 0xbc, 0x09, 0xa7, 0x79, 0x73, 0x33, 0x41, 0xb2, 0xae, 0xe0, 0x3f, 0xa0, - 0x7b, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x36, 0xcd, 0x7d, 0x1f, 0x73, 0x09, 0x00, 0x00, + proto.RegisterFile("examples/internal/proto/examplepb/flow_combination.proto", fileDescriptor_005d0d82a8c98d3c) +} + +var fileDescriptor_005d0d82a8c98d3c = []byte{ + // 673 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x96, 0x4f, 0x8b, 0x13, 0x3f, + 0x18, 0xc7, 0x49, 0x17, 0x7e, 0xb0, 0xe9, 0xee, 0xfe, 0xda, 0xa9, 0xd4, 0xb6, 0x5b, 0xf7, 0x4f, + 0x5c, 0xb0, 0x08, 0x4e, 0xca, 0xaa, 0xa8, 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, 0x5f, 0x47, 0x55, 0xd5, 0x68, + 0x4d, 0x0c, 0xa8, 0x03, 0xe3, 0x1d, 0x80, 0xe5, 0x09, 0x13, 0xa0, 0x74, 0x5e, 0xc1, 0x10, 0x5c, + 0x91, 0x52, 0xef, 0xab, 0xcb, 0x4d, 0x72, 0x45, 0xc2, 0xfe, 0x03, 0xc0, 0x42, 0x6a, 0x12, 0x14, + 0xf5, 0x52, 0x87, 0x61, 0x20, 0x79, 0x4f, 0xd1, 0xe5, 0x3f, 0x0e, 0x83, 0x6e, 0xc8, 0xec, 0x9b, + 0x25, 0x9d, 0x9d, 0x1e, 0xd2, 0x00, 0xb4, 0x0e, 0x9a, 0x59, 0x6b, 0x3d, 0x41, 0xb2, 0xff, 0x93, + 0x7f, 0xe4, 0xae, 0xff, 0x0c, 0x00, 0x00, 0xff, 0xff, 0xc2, 0x96, 0x5c, 0xd1, 0x4c, 0x0a, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -335,7 +337,7 @@ func NewFlowCombinationClient(cc *grpc.ClientConn) FlowCombinationClient { func (c *flowCombinationClient) RpcEmptyRpc(ctx context.Context, in *EmptyProto, opts ...grpc.CallOption) (*EmptyProto, error) { out := new(EmptyProto) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.FlowCombination/RpcEmptyRpc", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.FlowCombination/RpcEmptyRpc", in, out, opts...) if err != nil { return nil, err } @@ -343,7 +345,7 @@ func (c *flowCombinationClient) RpcEmptyRpc(ctx context.Context, in *EmptyProto, } func (c *flowCombinationClient) RpcEmptyStream(ctx context.Context, in *EmptyProto, opts ...grpc.CallOption) (FlowCombination_RpcEmptyStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &_FlowCombination_serviceDesc.Streams[0], "/grpc.gateway.examples.examplepb.FlowCombination/RpcEmptyStream", opts...) + stream, err := c.cc.NewStream(ctx, &_FlowCombination_serviceDesc.Streams[0], "/grpc.gateway.examples.internal.examplepb.FlowCombination/RpcEmptyStream", opts...) if err != nil { return nil, err } @@ -375,7 +377,7 @@ func (x *flowCombinationRpcEmptyStreamClient) Recv() (*EmptyProto, error) { } func (c *flowCombinationClient) StreamEmptyRpc(ctx context.Context, opts ...grpc.CallOption) (FlowCombination_StreamEmptyRpcClient, error) { - stream, err := c.cc.NewStream(ctx, &_FlowCombination_serviceDesc.Streams[1], "/grpc.gateway.examples.examplepb.FlowCombination/StreamEmptyRpc", opts...) + stream, err := c.cc.NewStream(ctx, &_FlowCombination_serviceDesc.Streams[1], "/grpc.gateway.examples.internal.examplepb.FlowCombination/StreamEmptyRpc", opts...) if err != nil { return nil, err } @@ -409,7 +411,7 @@ func (x *flowCombinationStreamEmptyRpcClient) CloseAndRecv() (*EmptyProto, error } func (c *flowCombinationClient) StreamEmptyStream(ctx context.Context, opts ...grpc.CallOption) (FlowCombination_StreamEmptyStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &_FlowCombination_serviceDesc.Streams[2], "/grpc.gateway.examples.examplepb.FlowCombination/StreamEmptyStream", opts...) + stream, err := c.cc.NewStream(ctx, &_FlowCombination_serviceDesc.Streams[2], "/grpc.gateway.examples.internal.examplepb.FlowCombination/StreamEmptyStream", opts...) if err != nil { return nil, err } @@ -441,7 +443,7 @@ func (x *flowCombinationStreamEmptyStreamClient) Recv() (*EmptyProto, error) { func (c *flowCombinationClient) RpcBodyRpc(ctx context.Context, in *NonEmptyProto, opts ...grpc.CallOption) (*EmptyProto, error) { out := new(EmptyProto) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.FlowCombination/RpcBodyRpc", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.FlowCombination/RpcBodyRpc", in, out, opts...) if err != nil { return nil, err } @@ -450,7 +452,7 @@ func (c *flowCombinationClient) RpcBodyRpc(ctx context.Context, in *NonEmptyProt func (c *flowCombinationClient) RpcPathSingleNestedRpc(ctx context.Context, in *SingleNestedProto, opts ...grpc.CallOption) (*EmptyProto, error) { out := new(EmptyProto) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.FlowCombination/RpcPathSingleNestedRpc", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.FlowCombination/RpcPathSingleNestedRpc", in, out, opts...) if err != nil { return nil, err } @@ -459,7 +461,7 @@ func (c *flowCombinationClient) RpcPathSingleNestedRpc(ctx context.Context, in * func (c *flowCombinationClient) RpcPathNestedRpc(ctx context.Context, in *NestedProto, opts ...grpc.CallOption) (*EmptyProto, error) { out := new(EmptyProto) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.FlowCombination/RpcPathNestedRpc", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.FlowCombination/RpcPathNestedRpc", in, out, opts...) if err != nil { return nil, err } @@ -467,7 +469,7 @@ func (c *flowCombinationClient) RpcPathNestedRpc(ctx context.Context, in *Nested } func (c *flowCombinationClient) RpcBodyStream(ctx context.Context, in *NonEmptyProto, opts ...grpc.CallOption) (FlowCombination_RpcBodyStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &_FlowCombination_serviceDesc.Streams[3], "/grpc.gateway.examples.examplepb.FlowCombination/RpcBodyStream", opts...) + stream, err := c.cc.NewStream(ctx, &_FlowCombination_serviceDesc.Streams[3], "/grpc.gateway.examples.internal.examplepb.FlowCombination/RpcBodyStream", opts...) if err != nil { return nil, err } @@ -499,7 +501,7 @@ func (x *flowCombinationRpcBodyStreamClient) Recv() (*EmptyProto, error) { } func (c *flowCombinationClient) RpcPathSingleNestedStream(ctx context.Context, in *SingleNestedProto, opts ...grpc.CallOption) (FlowCombination_RpcPathSingleNestedStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &_FlowCombination_serviceDesc.Streams[4], "/grpc.gateway.examples.examplepb.FlowCombination/RpcPathSingleNestedStream", opts...) + stream, err := c.cc.NewStream(ctx, &_FlowCombination_serviceDesc.Streams[4], "/grpc.gateway.examples.internal.examplepb.FlowCombination/RpcPathSingleNestedStream", opts...) if err != nil { return nil, err } @@ -531,7 +533,7 @@ func (x *flowCombinationRpcPathSingleNestedStreamClient) Recv() (*EmptyProto, er } func (c *flowCombinationClient) RpcPathNestedStream(ctx context.Context, in *NestedProto, opts ...grpc.CallOption) (FlowCombination_RpcPathNestedStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &_FlowCombination_serviceDesc.Streams[5], "/grpc.gateway.examples.examplepb.FlowCombination/RpcPathNestedStream", opts...) + stream, err := c.cc.NewStream(ctx, &_FlowCombination_serviceDesc.Streams[5], "/grpc.gateway.examples.internal.examplepb.FlowCombination/RpcPathNestedStream", opts...) if err != nil { return nil, err } @@ -625,7 +627,7 @@ func _FlowCombination_RpcEmptyRpc_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.FlowCombination/RpcEmptyRpc", + FullMethod: "/grpc.gateway.examples.internal.examplepb.FlowCombination/RpcEmptyRpc", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(FlowCombinationServer).RpcEmptyRpc(ctx, req.(*EmptyProto)) @@ -716,7 +718,7 @@ func _FlowCombination_RpcBodyRpc_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.FlowCombination/RpcBodyRpc", + FullMethod: "/grpc.gateway.examples.internal.examplepb.FlowCombination/RpcBodyRpc", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(FlowCombinationServer).RpcBodyRpc(ctx, req.(*NonEmptyProto)) @@ -734,7 +736,7 @@ func _FlowCombination_RpcPathSingleNestedRpc_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.FlowCombination/RpcPathSingleNestedRpc", + FullMethod: "/grpc.gateway.examples.internal.examplepb.FlowCombination/RpcPathSingleNestedRpc", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(FlowCombinationServer).RpcPathSingleNestedRpc(ctx, req.(*SingleNestedProto)) @@ -752,7 +754,7 @@ func _FlowCombination_RpcPathNestedRpc_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.FlowCombination/RpcPathNestedRpc", + FullMethod: "/grpc.gateway.examples.internal.examplepb.FlowCombination/RpcPathNestedRpc", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(FlowCombinationServer).RpcPathNestedRpc(ctx, req.(*NestedProto)) @@ -824,7 +826,7 @@ func (x *flowCombinationRpcPathNestedStreamServer) Send(m *EmptyProto) error { } var _FlowCombination_serviceDesc = grpc.ServiceDesc{ - ServiceName: "grpc.gateway.examples.examplepb.FlowCombination", + ServiceName: "grpc.gateway.examples.internal.examplepb.FlowCombination", HandlerType: (*FlowCombinationServer)(nil), Methods: []grpc.MethodDesc{ { @@ -877,5 +879,5 @@ var _FlowCombination_serviceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, - Metadata: "examples/proto/examplepb/flow_combination.proto", + Metadata: "examples/internal/proto/examplepb/flow_combination.proto", } diff --git a/examples/proto/examplepb/flow_combination.pb.gw.go b/examples/internal/proto/examplepb/flow_combination.pb.gw.go similarity index 99% rename from examples/proto/examplepb/flow_combination.pb.gw.go rename to examples/internal/proto/examplepb/flow_combination.pb.gw.go index 14599e7a759..ffad64a1eed 100644 --- a/examples/proto/examplepb/flow_combination.pb.gw.go +++ b/examples/internal/proto/examplepb/flow_combination.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: examples/proto/examplepb/flow_combination.proto +// source: examples/internal/proto/examplepb/flow_combination.proto /* Package examplepb is a reverse proxy. diff --git a/examples/proto/examplepb/flow_combination.proto b/examples/internal/proto/examplepb/flow_combination.proto similarity index 98% rename from examples/proto/examplepb/flow_combination.proto rename to examples/internal/proto/examplepb/flow_combination.proto index 60096081ee1..aabde901153 100644 --- a/examples/proto/examplepb/flow_combination.proto +++ b/examples/internal/proto/examplepb/flow_combination.proto @@ -1,6 +1,6 @@ syntax = "proto3"; option go_package = "examplepb"; -package grpc.gateway.examples.examplepb; +package grpc.gateway.examples.internal.examplepb; import "google/api/annotations.proto"; diff --git a/examples/proto/examplepb/generated_input.proto b/examples/internal/proto/examplepb/generated_input.proto similarity index 75% rename from examples/proto/examplepb/generated_input.proto rename to examples/internal/proto/examplepb/generated_input.proto index 8a1b7af3498..e0e26d90c0a 100644 --- a/examples/proto/examplepb/generated_input.proto +++ b/examples/internal/proto/examplepb/generated_input.proto @@ -1,11 +1,10 @@ syntax = "proto3"; option go_package = "examplepb"; -package grpc.gateway.examples.examplepb; +package grpc.gateway.examples.internal.examplepb; import "google/api/annotations.proto"; import "google/protobuf/empty.proto"; -import "examples/proto/examplepb/a_bit_of_everything.proto"; -import "examples/proto/sub/message.proto"; +import "examples/internal/proto/examplepb/a_bit_of_everything.proto"; // This file is run through a genrule. diff --git a/examples/proto/examplepb/non_standard_names.pb.go b/examples/internal/proto/examplepb/non_standard_names.pb.go similarity index 80% rename from examples/proto/examplepb/non_standard_names.pb.go rename to examples/internal/proto/examplepb/non_standard_names.pb.go index 2858e1e82d1..962da2cdfe3 100644 --- a/examples/proto/examplepb/non_standard_names.pb.go +++ b/examples/internal/proto/examplepb/non_standard_names.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: examples/proto/examplepb/non_standard_names.proto +// source: examples/internal/proto/examplepb/non_standard_names.proto package examplepb @@ -46,7 +46,7 @@ func (m *NonStandardMessage) Reset() { *m = NonStandardMessage{} } func (m *NonStandardMessage) String() string { return proto.CompactTextString(m) } func (*NonStandardMessage) ProtoMessage() {} func (*NonStandardMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_fa36ad8828f19375, []int{0} + return fileDescriptor_a1fc3d96d9306f6b, []int{0} } func (m *NonStandardMessage) XXX_Unmarshal(b []byte) error { @@ -134,7 +134,7 @@ func (m *NonStandardMessage_Thing) Reset() { *m = NonStandardMessage_Thi func (m *NonStandardMessage_Thing) String() string { return proto.CompactTextString(m) } func (*NonStandardMessage_Thing) ProtoMessage() {} func (*NonStandardMessage_Thing) Descriptor() ([]byte, []int) { - return fileDescriptor_fa36ad8828f19375, []int{0, 0} + return fileDescriptor_a1fc3d96d9306f6b, []int{0, 0} } func (m *NonStandardMessage_Thing) XXX_Unmarshal(b []byte) error { @@ -173,7 +173,7 @@ func (m *NonStandardMessage_Thing_SubThing) Reset() { *m = NonStandardMe func (m *NonStandardMessage_Thing_SubThing) String() string { return proto.CompactTextString(m) } func (*NonStandardMessage_Thing_SubThing) ProtoMessage() {} func (*NonStandardMessage_Thing_SubThing) Descriptor() ([]byte, []int) { - return fileDescriptor_fa36ad8828f19375, []int{0, 0, 0} + return fileDescriptor_a1fc3d96d9306f6b, []int{0, 0, 0} } func (m *NonStandardMessage_Thing_SubThing) XXX_Unmarshal(b []byte) error { @@ -213,7 +213,7 @@ func (m *NonStandardUpdateRequest) Reset() { *m = NonStandardUpdateReque func (m *NonStandardUpdateRequest) String() string { return proto.CompactTextString(m) } func (*NonStandardUpdateRequest) ProtoMessage() {} func (*NonStandardUpdateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fa36ad8828f19375, []int{1} + return fileDescriptor_a1fc3d96d9306f6b, []int{1} } func (m *NonStandardUpdateRequest) XXX_Unmarshal(b []byte) error { @@ -268,7 +268,7 @@ func (m *NonStandardMessageWithJSONNames) Reset() { *m = NonStandardMess func (m *NonStandardMessageWithJSONNames) String() string { return proto.CompactTextString(m) } func (*NonStandardMessageWithJSONNames) ProtoMessage() {} func (*NonStandardMessageWithJSONNames) Descriptor() ([]byte, []int) { - return fileDescriptor_fa36ad8828f19375, []int{2} + return fileDescriptor_a1fc3d96d9306f6b, []int{2} } func (m *NonStandardMessageWithJSONNames) XXX_Unmarshal(b []byte) error { @@ -356,7 +356,7 @@ func (m *NonStandardMessageWithJSONNames_Thing) Reset() { *m = NonStanda func (m *NonStandardMessageWithJSONNames_Thing) String() string { return proto.CompactTextString(m) } func (*NonStandardMessageWithJSONNames_Thing) ProtoMessage() {} func (*NonStandardMessageWithJSONNames_Thing) Descriptor() ([]byte, []int) { - return fileDescriptor_fa36ad8828f19375, []int{2, 0} + return fileDescriptor_a1fc3d96d9306f6b, []int{2, 0} } func (m *NonStandardMessageWithJSONNames_Thing) XXX_Unmarshal(b []byte) error { @@ -399,7 +399,7 @@ func (m *NonStandardMessageWithJSONNames_Thing_SubThing) String() string { } func (*NonStandardMessageWithJSONNames_Thing_SubThing) ProtoMessage() {} func (*NonStandardMessageWithJSONNames_Thing_SubThing) Descriptor() ([]byte, []int) { - return fileDescriptor_fa36ad8828f19375, []int{2, 0, 0} + return fileDescriptor_a1fc3d96d9306f6b, []int{2, 0, 0} } func (m *NonStandardMessageWithJSONNames_Thing_SubThing) XXX_Unmarshal(b []byte) error { @@ -439,7 +439,7 @@ func (m *NonStandardWithJSONNamesUpdateRequest) Reset() { *m = NonStanda func (m *NonStandardWithJSONNamesUpdateRequest) String() string { return proto.CompactTextString(m) } func (*NonStandardWithJSONNamesUpdateRequest) ProtoMessage() {} func (*NonStandardWithJSONNamesUpdateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fa36ad8828f19375, []int{3} + return fileDescriptor_a1fc3d96d9306f6b, []int{3} } func (m *NonStandardWithJSONNamesUpdateRequest) XXX_Unmarshal(b []byte) error { @@ -475,62 +475,62 @@ func (m *NonStandardWithJSONNamesUpdateRequest) GetUpdateMask() *field_mask.Fiel } func init() { - proto.RegisterType((*NonStandardMessage)(nil), "grpc.gateway.examples.examplepb.NonStandardMessage") - proto.RegisterType((*NonStandardMessage_Thing)(nil), "grpc.gateway.examples.examplepb.NonStandardMessage.Thing") - proto.RegisterType((*NonStandardMessage_Thing_SubThing)(nil), "grpc.gateway.examples.examplepb.NonStandardMessage.Thing.SubThing") - proto.RegisterType((*NonStandardUpdateRequest)(nil), "grpc.gateway.examples.examplepb.NonStandardUpdateRequest") - proto.RegisterType((*NonStandardMessageWithJSONNames)(nil), "grpc.gateway.examples.examplepb.NonStandardMessageWithJSONNames") - proto.RegisterType((*NonStandardMessageWithJSONNames_Thing)(nil), "grpc.gateway.examples.examplepb.NonStandardMessageWithJSONNames.Thing") - proto.RegisterType((*NonStandardMessageWithJSONNames_Thing_SubThing)(nil), "grpc.gateway.examples.examplepb.NonStandardMessageWithJSONNames.Thing.SubThing") - proto.RegisterType((*NonStandardWithJSONNamesUpdateRequest)(nil), "grpc.gateway.examples.examplepb.NonStandardWithJSONNamesUpdateRequest") + proto.RegisterType((*NonStandardMessage)(nil), "grpc.gateway.examples.internal.examplepb.NonStandardMessage") + proto.RegisterType((*NonStandardMessage_Thing)(nil), "grpc.gateway.examples.internal.examplepb.NonStandardMessage.Thing") + proto.RegisterType((*NonStandardMessage_Thing_SubThing)(nil), "grpc.gateway.examples.internal.examplepb.NonStandardMessage.Thing.SubThing") + proto.RegisterType((*NonStandardUpdateRequest)(nil), "grpc.gateway.examples.internal.examplepb.NonStandardUpdateRequest") + proto.RegisterType((*NonStandardMessageWithJSONNames)(nil), "grpc.gateway.examples.internal.examplepb.NonStandardMessageWithJSONNames") + proto.RegisterType((*NonStandardMessageWithJSONNames_Thing)(nil), "grpc.gateway.examples.internal.examplepb.NonStandardMessageWithJSONNames.Thing") + proto.RegisterType((*NonStandardMessageWithJSONNames_Thing_SubThing)(nil), "grpc.gateway.examples.internal.examplepb.NonStandardMessageWithJSONNames.Thing.SubThing") + proto.RegisterType((*NonStandardWithJSONNamesUpdateRequest)(nil), "grpc.gateway.examples.internal.examplepb.NonStandardWithJSONNamesUpdateRequest") } func init() { - proto.RegisterFile("examples/proto/examplepb/non_standard_names.proto", fileDescriptor_fa36ad8828f19375) -} - -var fileDescriptor_fa36ad8828f19375 = []byte{ - // 626 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x95, 0x41, 0x6f, 0xd3, 0x3c, - 0x18, 0xc7, 0x95, 0x66, 0xed, 0x5a, 0x57, 0x7a, 0x5f, 0xe4, 0x21, 0x14, 0xc2, 0xa4, 0x56, 0x95, - 0xd0, 0x7a, 0x21, 0xd1, 0xb2, 0x03, 0x02, 0x84, 0x04, 0x15, 0xac, 0x1a, 0x62, 0xad, 0x94, 0x74, - 0x20, 0x21, 0x41, 0xe4, 0x2c, 0x5e, 0x1a, 0x9a, 0xda, 0xa1, 0x76, 0x3a, 0x7a, 0xe5, 0x13, 0x4c, - 0xe2, 0x0e, 0xdc, 0xf8, 0x0e, 0xf0, 0x31, 0xb8, 0x73, 0xe2, 0x83, 0xa0, 0xd8, 0x69, 0xa9, 0x55, - 0xa1, 0xb1, 0x6e, 0xa7, 0xfa, 0x79, 0x6c, 0xff, 0x9f, 0xe7, 0x6f, 0xff, 0xe2, 0x82, 0x5d, 0xfc, - 0x1e, 0x8d, 0xd3, 0x04, 0x33, 0x3b, 0x9d, 0x50, 0x4e, 0xed, 0x22, 0x4c, 0x03, 0x9b, 0x50, 0xe2, - 0x33, 0x8e, 0x48, 0x88, 0x26, 0xa1, 0x4f, 0xd0, 0x18, 0x33, 0x4b, 0x2c, 0x81, 0x8d, 0x68, 0x92, - 0x1e, 0x5b, 0x11, 0xe2, 0xf8, 0x14, 0xcd, 0xac, 0xf9, 0x7e, 0x6b, 0xb1, 0xd3, 0xdc, 0x8e, 0x28, - 0x8d, 0x12, 0x6c, 0xa3, 0x34, 0xb6, 0x11, 0x21, 0x94, 0x23, 0x1e, 0x53, 0x52, 0x6c, 0x37, 0x9b, - 0xc5, 0xac, 0x88, 0x82, 0xec, 0xc4, 0x3e, 0x89, 0x71, 0x12, 0xfa, 0x63, 0xc4, 0x46, 0x72, 0x45, - 0xeb, 0x4c, 0x07, 0xb0, 0x47,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xd7, 0xc7, 0xd2, 0x8e, 0xd3, 0xb0, 0xa7, 0xbb, 0xf3, 0x37, 0x5d, 0x79, 0xd1, 0x6d, 0xd9, - 0xfe, 0x7d, 0xe9, 0xfe, 0xa7, 0x06, 0xb6, 0x64, 0x55, 0xf5, 0x7b, 0xb9, 0x10, 0x86, 0x7f, 0xbf, - 0x33, 0xf3, 0xd2, 0xb7, 0xd4, 0x7a, 0x28, 0x0c, 0xdd, 0x75, 0xec, 0x73, 0x0c, 0xf9, 0xa7, 0x31, - 0x1f, 0xfa, 0x6f, 0x19, 0x25, 0xf2, 0x3f, 0x4b, 0x1a, 0xec, 0xd4, 0x5f, 0xd5, 0x16, 0xb5, 0x82, - 0x8a, 0xb8, 0xce, 0xbd, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x18, 0x50, 0x51, 0xb2, 0xfc, 0x06, - 0x00, 0x00, + proto.RegisterFile("examples/internal/proto/examplepb/non_standard_names.proto", fileDescriptor_a1fc3d96d9306f6b) +} + +var fileDescriptor_a1fc3d96d9306f6b = []byte{ + // 636 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x95, 0x4f, 0x6f, 0xd3, 0x3e, + 0x18, 0xc7, 0x95, 0x66, 0xed, 0x5a, 0x57, 0xfa, 0xfd, 0x90, 0x87, 0x50, 0x08, 0x93, 0x56, 0x55, + 0x42, 0xeb, 0x05, 0x47, 0x84, 0x03, 0xd2, 0x80, 0x03, 0x15, 0x30, 0x0d, 0x58, 0x87, 0x92, 0x0e, + 0x26, 0x24, 0x14, 0x39, 0x8b, 0x9b, 0x86, 0xa5, 0x76, 0xa8, 0x9d, 0x8e, 0x5e, 0x79, 0x0b, 0x9c, + 0xb8, 0x72, 0x41, 0xbc, 0x04, 0xce, 0x3b, 0x73, 0xe2, 0x2d, 0xf0, 0x02, 0x78, 0x09, 0x28, 0x76, + 0x52, 0x1a, 0x55, 0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, 0x68, 0x07, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -561,7 +561,7 @@ func NewNonStandardServiceClient(cc *grpc.ClientConn) NonStandardServiceClient { func (c *nonStandardServiceClient) Update(ctx context.Context, in *NonStandardUpdateRequest, opts ...grpc.CallOption) (*NonStandardMessage, error) { out := new(NonStandardMessage) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.NonStandardService/Update", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.NonStandardService/Update", in, out, opts...) if err != nil { return nil, err } @@ -570,7 +570,7 @@ func (c *nonStandardServiceClient) Update(ctx context.Context, in *NonStandardUp func (c *nonStandardServiceClient) UpdateWithJSONNames(ctx context.Context, in *NonStandardWithJSONNamesUpdateRequest, opts ...grpc.CallOption) (*NonStandardMessageWithJSONNames, error) { out := new(NonStandardMessageWithJSONNames) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.NonStandardService/UpdateWithJSONNames", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.NonStandardService/UpdateWithJSONNames", in, out, opts...) if err != nil { return nil, err } @@ -610,7 +610,7 @@ func _NonStandardService_Update_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.NonStandardService/Update", + FullMethod: "/grpc.gateway.examples.internal.examplepb.NonStandardService/Update", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NonStandardServiceServer).Update(ctx, req.(*NonStandardUpdateRequest)) @@ -628,7 +628,7 @@ func _NonStandardService_UpdateWithJSONNames_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.NonStandardService/UpdateWithJSONNames", + FullMethod: "/grpc.gateway.examples.internal.examplepb.NonStandardService/UpdateWithJSONNames", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NonStandardServiceServer).UpdateWithJSONNames(ctx, req.(*NonStandardWithJSONNamesUpdateRequest)) @@ -637,7 +637,7 @@ func _NonStandardService_UpdateWithJSONNames_Handler(srv interface{}, ctx contex } var _NonStandardService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "grpc.gateway.examples.examplepb.NonStandardService", + ServiceName: "grpc.gateway.examples.internal.examplepb.NonStandardService", HandlerType: (*NonStandardServiceServer)(nil), Methods: []grpc.MethodDesc{ { @@ -650,5 +650,5 @@ var _NonStandardService_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "examples/proto/examplepb/non_standard_names.proto", + Metadata: "examples/internal/proto/examplepb/non_standard_names.proto", } diff --git a/examples/proto/examplepb/non_standard_names.pb.gw.go b/examples/internal/proto/examplepb/non_standard_names.pb.gw.go similarity index 99% rename from examples/proto/examplepb/non_standard_names.pb.gw.go rename to examples/internal/proto/examplepb/non_standard_names.pb.gw.go index 11cb0b98adc..d3e79338163 100644 --- a/examples/proto/examplepb/non_standard_names.pb.gw.go +++ b/examples/internal/proto/examplepb/non_standard_names.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: examples/proto/examplepb/non_standard_names.proto +// source: examples/internal/proto/examplepb/non_standard_names.proto /* Package examplepb is a reverse proxy. diff --git a/examples/proto/examplepb/non_standard_names.proto b/examples/internal/proto/examplepb/non_standard_names.proto similarity index 97% rename from examples/proto/examplepb/non_standard_names.proto rename to examples/internal/proto/examplepb/non_standard_names.proto index 0bf130239a4..acb2203e1d5 100644 --- a/examples/proto/examplepb/non_standard_names.proto +++ b/examples/internal/proto/examplepb/non_standard_names.proto @@ -1,6 +1,6 @@ syntax = "proto3"; option go_package = "examplepb"; -package grpc.gateway.examples.examplepb; +package grpc.gateway.examples.internal.examplepb; import "google/api/annotations.proto"; import "google/protobuf/field_mask.proto"; diff --git a/examples/proto/examplepb/response_body_service.pb.go b/examples/internal/proto/examplepb/response_body_service.pb.go similarity index 77% rename from examples/proto/examplepb/response_body_service.pb.go rename to examples/internal/proto/examplepb/response_body_service.pb.go index 879091d3e74..9bfa2cb7932 100644 --- a/examples/proto/examplepb/response_body_service.pb.go +++ b/examples/internal/proto/examplepb/response_body_service.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: examples/proto/examplepb/response_body_service.proto +// source: examples/internal/proto/examplepb/response_body_service.proto package examplepb @@ -53,7 +53,7 @@ func (x RepeatedResponseBodyOut_Response_ResponseType) String() string { } func (RepeatedResponseBodyOut_Response_ResponseType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_df4b27f252df323f, []int{2, 0, 0} + return fileDescriptor_272b2870183bbe20, []int{2, 0, 0} } type ResponseBodyIn struct { @@ -67,7 +67,7 @@ func (m *ResponseBodyIn) Reset() { *m = ResponseBodyIn{} } func (m *ResponseBodyIn) String() string { return proto.CompactTextString(m) } func (*ResponseBodyIn) ProtoMessage() {} func (*ResponseBodyIn) Descriptor() ([]byte, []int) { - return fileDescriptor_df4b27f252df323f, []int{0} + return fileDescriptor_272b2870183bbe20, []int{0} } func (m *ResponseBodyIn) XXX_Unmarshal(b []byte) error { @@ -106,7 +106,7 @@ func (m *ResponseBodyOut) Reset() { *m = ResponseBodyOut{} } func (m *ResponseBodyOut) String() string { return proto.CompactTextString(m) } func (*ResponseBodyOut) ProtoMessage() {} func (*ResponseBodyOut) Descriptor() ([]byte, []int) { - return fileDescriptor_df4b27f252df323f, []int{1} + return fileDescriptor_272b2870183bbe20, []int{1} } func (m *ResponseBodyOut) XXX_Unmarshal(b []byte) error { @@ -145,7 +145,7 @@ func (m *ResponseBodyOut_Response) Reset() { *m = ResponseBodyOut_Respon func (m *ResponseBodyOut_Response) String() string { return proto.CompactTextString(m) } func (*ResponseBodyOut_Response) ProtoMessage() {} func (*ResponseBodyOut_Response) Descriptor() ([]byte, []int) { - return fileDescriptor_df4b27f252df323f, []int{1, 0} + return fileDescriptor_272b2870183bbe20, []int{1, 0} } func (m *ResponseBodyOut_Response) XXX_Unmarshal(b []byte) error { @@ -184,7 +184,7 @@ func (m *RepeatedResponseBodyOut) Reset() { *m = RepeatedResponseBodyOut func (m *RepeatedResponseBodyOut) String() string { return proto.CompactTextString(m) } func (*RepeatedResponseBodyOut) ProtoMessage() {} func (*RepeatedResponseBodyOut) Descriptor() ([]byte, []int) { - return fileDescriptor_df4b27f252df323f, []int{2} + return fileDescriptor_272b2870183bbe20, []int{2} } func (m *RepeatedResponseBodyOut) XXX_Unmarshal(b []byte) error { @@ -214,7 +214,7 @@ func (m *RepeatedResponseBodyOut) GetResponse() []*RepeatedResponseBodyOut_Respo type RepeatedResponseBodyOut_Response struct { Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - Type RepeatedResponseBodyOut_Response_ResponseType `protobuf:"varint,3,opt,name=type,proto3,enum=grpc.gateway.examples.examplepb.RepeatedResponseBodyOut_Response_ResponseType" json:"type,omitempty"` + Type RepeatedResponseBodyOut_Response_ResponseType `protobuf:"varint,3,opt,name=type,proto3,enum=grpc.gateway.examples.internal.examplepb.RepeatedResponseBodyOut_Response_ResponseType" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -224,7 +224,7 @@ func (m *RepeatedResponseBodyOut_Response) Reset() { *m = RepeatedRespon func (m *RepeatedResponseBodyOut_Response) String() string { return proto.CompactTextString(m) } func (*RepeatedResponseBodyOut_Response) ProtoMessage() {} func (*RepeatedResponseBodyOut_Response) Descriptor() ([]byte, []int) { - return fileDescriptor_df4b27f252df323f, []int{2, 0} + return fileDescriptor_272b2870183bbe20, []int{2, 0} } func (m *RepeatedResponseBodyOut_Response) XXX_Unmarshal(b []byte) error { @@ -270,7 +270,7 @@ func (m *RepeatedResponseStrings) Reset() { *m = RepeatedResponseStrings func (m *RepeatedResponseStrings) String() string { return proto.CompactTextString(m) } func (*RepeatedResponseStrings) ProtoMessage() {} func (*RepeatedResponseStrings) Descriptor() ([]byte, []int) { - return fileDescriptor_df4b27f252df323f, []int{3} + return fileDescriptor_272b2870183bbe20, []int{3} } func (m *RepeatedResponseStrings) XXX_Unmarshal(b []byte) error { @@ -299,49 +299,50 @@ func (m *RepeatedResponseStrings) GetValues() []string { } func init() { - proto.RegisterEnum("grpc.gateway.examples.examplepb.RepeatedResponseBodyOut_Response_ResponseType", RepeatedResponseBodyOut_Response_ResponseType_name, RepeatedResponseBodyOut_Response_ResponseType_value) - proto.RegisterType((*ResponseBodyIn)(nil), "grpc.gateway.examples.examplepb.ResponseBodyIn") - proto.RegisterType((*ResponseBodyOut)(nil), "grpc.gateway.examples.examplepb.ResponseBodyOut") - proto.RegisterType((*ResponseBodyOut_Response)(nil), "grpc.gateway.examples.examplepb.ResponseBodyOut.Response") - proto.RegisterType((*RepeatedResponseBodyOut)(nil), "grpc.gateway.examples.examplepb.RepeatedResponseBodyOut") - proto.RegisterType((*RepeatedResponseBodyOut_Response)(nil), "grpc.gateway.examples.examplepb.RepeatedResponseBodyOut.Response") - proto.RegisterType((*RepeatedResponseStrings)(nil), "grpc.gateway.examples.examplepb.RepeatedResponseStrings") + proto.RegisterEnum("grpc.gateway.examples.internal.examplepb.RepeatedResponseBodyOut_Response_ResponseType", RepeatedResponseBodyOut_Response_ResponseType_name, RepeatedResponseBodyOut_Response_ResponseType_value) + proto.RegisterType((*ResponseBodyIn)(nil), "grpc.gateway.examples.internal.examplepb.ResponseBodyIn") + proto.RegisterType((*ResponseBodyOut)(nil), "grpc.gateway.examples.internal.examplepb.ResponseBodyOut") + proto.RegisterType((*ResponseBodyOut_Response)(nil), "grpc.gateway.examples.internal.examplepb.ResponseBodyOut.Response") + proto.RegisterType((*RepeatedResponseBodyOut)(nil), "grpc.gateway.examples.internal.examplepb.RepeatedResponseBodyOut") + proto.RegisterType((*RepeatedResponseBodyOut_Response)(nil), "grpc.gateway.examples.internal.examplepb.RepeatedResponseBodyOut.Response") + proto.RegisterType((*RepeatedResponseStrings)(nil), "grpc.gateway.examples.internal.examplepb.RepeatedResponseStrings") } func init() { - proto.RegisterFile("examples/proto/examplepb/response_body_service.proto", fileDescriptor_df4b27f252df323f) -} - -var fileDescriptor_df4b27f252df323f = []byte{ - // 441 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x94, 0xcf, 0xaa, 0xd3, 0x40, - 0x14, 0xc6, 0x9d, 0xb4, 0x5e, 0x6f, 0x27, 0x72, 0x6f, 0x99, 0x2b, 0xf7, 0x86, 0x22, 0x1a, 0x07, - 0xd1, 0xb8, 0x49, 0x34, 0xba, 0xd0, 0x65, 0xbb, 0x91, 0xa2, 0xa4, 0x90, 0x5a, 0x04, 0x41, 0xca, - 0xa4, 0x39, 0x84, 0x40, 0xcd, 0x0c, 0x99, 0x69, 0x35, 0x88, 0x1b, 0x57, 0x2e, 0xdc, 0xb9, 0xf5, - 0x01, 0x74, 0xe1, 0xd3, 0xf8, 0x0a, 0x3e, 0x88, 0x34, 0x4d, 0x86, 0x58, 0x83, 0x5a, 0x05, 0x57, - 0x99, 0x33, 0x7f, 0xbe, 0xf3, 0xe3, 0x7c, 0xe7, 0x04, 0xdf, 0x83, 0x57, 0xec, 0x85, 0x58, 0x82, - 0xf4, 0x44, 0xce, 0x15, 0xf7, 0xaa, 0x50, 0x44, 0x5e, 0x0e, 0x52, 0xf0, 0x4c, 0xc2, 0x3c, 0xe2, - 0x71, 0x31, 0x97, 0x90, 0xaf, 0xd3, 0x05, 0xb8, 0xe5, 0x2d, 0x72, 0x35, 0xc9, 0xc5, 0xc2, 0x4d, - 0x98, 0x82, 0x97, 0xac, 0x70, 0x6b, 0x09, 0x57, 0x3f, 0x1e, 0x5c, 0x4e, 0x38, 0x4f, 0x96, 0xe0, - 0x31, 0x91, 0x7a, 0x2c, 0xcb, 0xb8, 0x62, 0x2a, 0xe5, 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0xb7, 0x97, - 0xdd, 0xe3, 0x6c, 0x70, 0x7b, 0xdf, 0xfe, 0xa0, 0x37, 0xde, 0x7e, 0xfd, 0xf6, 0xc1, 0xb0, 0xc9, - 0x25, 0x3d, 0x02, 0x9b, 0x09, 0xf0, 0x5e, 0x6f, 0xaa, 0xfd, 0x26, 0xd2, 0xce, 0x90, 0xcf, 0x08, - 0x93, 0xc7, 0xa9, 0x6c, 0xf2, 0xa5, 0x20, 0xf7, 0x27, 0xbc, 0xff, 0xb7, 0x96, 0x51, 0xa7, 0x24, - 0xa5, 0xe4, 0xb4, 0x49, 0x9a, 0x82, 0x6c, 0x65, 0x3d, 0x69, 0xb2, 0xd6, 0x96, 0xfc, 0x07, 0xd8, - 0x2a, 0x15, 0xbd, 0x59, 0xc2, 0x5e, 0x23, 0x67, 0x1a, 0x56, 0x6e, 0x4f, 0x6a, 0xda, 0xaa, 0x1d, - 0x46, 0xe6, 0xb3, 0x9e, 0x56, 0x8b, 0x0e, 0xca, 0x3f, 0xc6, 0xdd, 0xef, 0x01, 0x00, 0x00, 0xff, - 0xff, 0x07, 0xc9, 0xea, 0x62, 0xa8, 0x04, 0x00, 0x00, + proto.RegisterFile("examples/internal/proto/examplepb/response_body_service.proto", fileDescriptor_272b2870183bbe20) +} + +var fileDescriptor_272b2870183bbe20 = []byte{ + // 451 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0xd4, 0xcf, 0x6a, 0xd4, 0x40, + 0x1c, 0x07, 0x70, 0x27, 0xbb, 0xd6, 0xee, 0x44, 0xda, 0x65, 0x2a, 0x6d, 0x58, 0x44, 0xe2, 0x20, + 0x1a, 0x2f, 0x09, 0xc6, 0x8b, 0x1e, 0x3c, 0x34, 0x17, 0xa9, 0xca, 0x16, 0x52, 0xa5, 0xe0, 0xc1, + 0x32, 0x69, 0x7e, 0x86, 0xc1, 0x38, 0x33, 0x64, 0xa6, 0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0x2d, 0xcb, 0xd7, 0xcb, 0x9d, 0xce, 0xdf, 0x36, 0x51, 0xe2, 0x3e, 0x9d, 0xd8, 0xb4, + 0x6c, 0xa5, 0xf9, 0x04, 0xdd, 0xfe, 0x11, 0x00, 0x00, 0xff, 0xff, 0xa5, 0x10, 0x29, 0xfa, 0x0b, + 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -371,7 +372,7 @@ func NewResponseBodyServiceClient(cc *grpc.ClientConn) ResponseBodyServiceClient func (c *responseBodyServiceClient) GetResponseBody(ctx context.Context, in *ResponseBodyIn, opts ...grpc.CallOption) (*ResponseBodyOut, error) { out := new(ResponseBodyOut) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ResponseBodyService/GetResponseBody", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.ResponseBodyService/GetResponseBody", in, out, opts...) if err != nil { return nil, err } @@ -380,7 +381,7 @@ func (c *responseBodyServiceClient) GetResponseBody(ctx context.Context, in *Res func (c *responseBodyServiceClient) ListResponseBodies(ctx context.Context, in *ResponseBodyIn, opts ...grpc.CallOption) (*RepeatedResponseBodyOut, error) { out := new(RepeatedResponseBodyOut) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ResponseBodyService/ListResponseBodies", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.ResponseBodyService/ListResponseBodies", in, out, opts...) if err != nil { return nil, err } @@ -389,7 +390,7 @@ func (c *responseBodyServiceClient) ListResponseBodies(ctx context.Context, in * func (c *responseBodyServiceClient) ListResponseStrings(ctx context.Context, in *ResponseBodyIn, opts ...grpc.CallOption) (*RepeatedResponseStrings, error) { out := new(RepeatedResponseStrings) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.ResponseBodyService/ListResponseStrings", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.ResponseBodyService/ListResponseStrings", in, out, opts...) if err != nil { return nil, err } @@ -431,7 +432,7 @@ func _ResponseBodyService_GetResponseBody_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.ResponseBodyService/GetResponseBody", + FullMethod: "/grpc.gateway.examples.internal.examplepb.ResponseBodyService/GetResponseBody", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ResponseBodyServiceServer).GetResponseBody(ctx, req.(*ResponseBodyIn)) @@ -449,7 +450,7 @@ func _ResponseBodyService_ListResponseBodies_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.ResponseBodyService/ListResponseBodies", + FullMethod: "/grpc.gateway.examples.internal.examplepb.ResponseBodyService/ListResponseBodies", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ResponseBodyServiceServer).ListResponseBodies(ctx, req.(*ResponseBodyIn)) @@ -467,7 +468,7 @@ func _ResponseBodyService_ListResponseStrings_Handler(srv interface{}, ctx conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.ResponseBodyService/ListResponseStrings", + FullMethod: "/grpc.gateway.examples.internal.examplepb.ResponseBodyService/ListResponseStrings", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ResponseBodyServiceServer).ListResponseStrings(ctx, req.(*ResponseBodyIn)) @@ -476,7 +477,7 @@ func _ResponseBodyService_ListResponseStrings_Handler(srv interface{}, ctx conte } var _ResponseBodyService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "grpc.gateway.examples.examplepb.ResponseBodyService", + ServiceName: "grpc.gateway.examples.internal.examplepb.ResponseBodyService", HandlerType: (*ResponseBodyServiceServer)(nil), Methods: []grpc.MethodDesc{ { @@ -493,5 +494,5 @@ var _ResponseBodyService_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "examples/proto/examplepb/response_body_service.proto", + Metadata: "examples/internal/proto/examplepb/response_body_service.proto", } diff --git a/examples/proto/examplepb/response_body_service.pb.gw.go b/examples/internal/proto/examplepb/response_body_service.pb.gw.go similarity index 99% rename from examples/proto/examplepb/response_body_service.pb.gw.go rename to examples/internal/proto/examplepb/response_body_service.pb.gw.go index 86d9c4ed9be..558cd0617cf 100644 --- a/examples/proto/examplepb/response_body_service.pb.gw.go +++ b/examples/internal/proto/examplepb/response_body_service.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: examples/proto/examplepb/response_body_service.proto +// source: examples/internal/proto/examplepb/response_body_service.proto /* Package examplepb is a reverse proxy. diff --git a/examples/proto/examplepb/response_body_service.proto b/examples/internal/proto/examplepb/response_body_service.proto similarity index 95% rename from examples/proto/examplepb/response_body_service.proto rename to examples/internal/proto/examplepb/response_body_service.proto index 215591daf95..2a04e786e95 100644 --- a/examples/proto/examplepb/response_body_service.proto +++ b/examples/internal/proto/examplepb/response_body_service.proto @@ -1,7 +1,7 @@ syntax = "proto3"; option go_package = "examplepb"; -package grpc.gateway.examples.examplepb; +package grpc.gateway.examples.internal.examplepb; import "google/api/annotations.proto"; diff --git a/examples/proto/examplepb/response_body_service.swagger.json b/examples/internal/proto/examplepb/response_body_service.swagger.json similarity index 99% rename from examples/proto/examplepb/response_body_service.swagger.json rename to examples/internal/proto/examplepb/response_body_service.swagger.json index 50fa2d025c4..1786b2dba94 100644 --- a/examples/proto/examplepb/response_body_service.swagger.json +++ b/examples/internal/proto/examplepb/response_body_service.swagger.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "title": "examples/proto/examplepb/response_body_service.proto", + "title": "examples/internal/proto/examplepb/response_body_service.proto", "version": "version not set" }, "consumes": [ diff --git a/examples/proto/examplepb/stream.pb.go b/examples/internal/proto/examplepb/stream.pb.go similarity index 74% rename from examples/proto/examplepb/stream.pb.go rename to examples/internal/proto/examplepb/stream.pb.go index 993391ebea5..93eab149b03 100644 --- a/examples/proto/examplepb/stream.pb.go +++ b/examples/internal/proto/examplepb/stream.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: examples/proto/examplepb/stream.proto +// source: examples/internal/proto/examplepb/stream.proto package examplepb @@ -8,7 +8,7 @@ import ( fmt "fmt" proto "github.com/golang/protobuf/proto" empty "github.com/golang/protobuf/ptypes/empty" - sub "github.com/grpc-ecosystem/grpc-gateway/examples/proto/sub" + sub "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/sub" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -28,31 +28,32 @@ var _ = math.Inf const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package func init() { - proto.RegisterFile("examples/proto/examplepb/stream.proto", fileDescriptor_a31ab0177843ce10) -} - -var fileDescriptor_a31ab0177843ce10 = []byte{ - // 319 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x90, 0xb1, 0x4e, 0xc3, 0x30, - 0x10, 0x86, 0x15, 0x40, 0x08, 0x8c, 0x58, 0x3c, 0x30, 0x04, 0xa4, 0x42, 0x05, 0xa2, 0x30, 0xd8, - 0x6d, 0xd9, 0xd8, 0x28, 0xea, 0x06, 0x62, 0xe8, 0xc6, 0x52, 0xd9, 0xd1, 0xd5, 0xb5, 0x9a, 0xc4, - 0x96, 0x7d, 0x29, 0x54, 0x62, 0x62, 0x64, 0xed, 0x8b, 0xf0, 0x2e, 0xbc, 0x02, 0x0f, 0x82, 0xea, - 0xa4, 0x1d, 0x10, 0x51, 0xcb, 0x78, 0xbe, 0xff, 0xf7, 0xfd, 0xdf, 0x4f, 0x2e, 0xe0, 0x55, 0x64, - 0x36, 0x05, 0xcf, 0xad, 0x33, 0x68, 0x78, 0x35, 0x5a, 0xc9, 0x3d, 0x3a, 0x10, 0x19, 0x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0x3a, 0x9d, 0xab, 0xc7, 0xb2, 0xd9, 0x78, 0x63, 0xe5, 0xe6, 0x8d, - 0x40, 0x32, 0x36, 0xa1, 0x91, 0x76, 0xd4, 0x3b, 0x78, 0xde, 0x5f, 0xe1, 0xc9, 0xdd, 0x50, 0xc8, - 0xcd, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1d, 0x63, 0x7a, 0xd9, 0xa1, 0x02, 0x00, 0x00, + proto.RegisterFile("examples/internal/proto/examplepb/stream.proto", fileDescriptor_cc5dba844cf4f624) +} + +var fileDescriptor_cc5dba844cf4f624 = []byte{ + // 328 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x90, 0xb1, 0x4e, 0xeb, 0x30, + 0x14, 0x86, 0xe5, 0x7b, 0x11, 0x82, 0x20, 0x16, 0x0f, 0x0c, 0x01, 0x09, 0x51, 0x21, 0xd1, 0x32, + 0xd8, 0x2d, 0x6c, 0x65, 0xa2, 0xa8, 0x1b, 0x88, 0xa1, 0x1b, 0x4b, 0x65, 0x47, 0xa7, 0xae, 0xd5, + 0xc4, 0x8e, 0xec, 0x93, 0x42, 0x57, 0x24, 0x9e, 0xa0, 0xcf, 0xc0, 0x13, 0x21, 0xde, 0x80, 0x07, + 0x41, 0x75, 0xd2, 0x4c, 0x54, 0x29, 0x62, 0xcc, 0x39, 0xf9, 0x8e, 0xff, 0xef, 0x8f, 0x18, 0xbc, + 0x88, 0x2c, 0x4f, 0xc1, 0x73, 0x6d, 0x10, 0x9c, 0x11, 0x29, 0xcf, 0x9d, 0x45, 0xcb, 0xab, 0x79, + 0x2e, 0xb9, 0x47, 0x07, 0x22, 0x63, 0x61, 0x4c, 0xdb, 0xca, 0xe5, 0x09, 0x53, 0x02, 0xe1, 0x59, + 0x2c, 0x6a, 0x98, 0xad, 0x61, 0x56, 0x63, 0xf1, 0x89, 0xb2, 0x56, 0xa5, 0xc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, 0x83, 0xa7, 0xfd, 0x5a, 0x58, 0xee, 0x86, 0xae, 0xae, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, + 0xb8, 0x9c, 0x62, 0x91, 0xea, 0x02, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -81,7 +82,7 @@ func NewStreamServiceClient(cc *grpc.ClientConn) StreamServiceClient { } func (c *streamServiceClient) BulkCreate(ctx context.Context, opts ...grpc.CallOption) (StreamService_BulkCreateClient, error) { - stream, err := c.cc.NewStream(ctx, &_StreamService_serviceDesc.Streams[0], "/grpc.gateway.examples.examplepb.StreamService/BulkCreate", opts...) + stream, err := c.cc.NewStream(ctx, &_StreamService_serviceDesc.Streams[0], "/grpc.gateway.examples.internal.examplepb.StreamService/BulkCreate", opts...) if err != nil { return nil, err } @@ -115,7 +116,7 @@ func (x *streamServiceBulkCreateClient) CloseAndRecv() (*empty.Empty, error) { } func (c *streamServiceClient) List(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (StreamService_ListClient, error) { - stream, err := c.cc.NewStream(ctx, &_StreamService_serviceDesc.Streams[1], "/grpc.gateway.examples.examplepb.StreamService/List", opts...) + stream, err := c.cc.NewStream(ctx, &_StreamService_serviceDesc.Streams[1], "/grpc.gateway.examples.internal.examplepb.StreamService/List", opts...) if err != nil { return nil, err } @@ -147,7 +148,7 @@ func (x *streamServiceListClient) Recv() (*ABitOfEverything, error) { } func (c *streamServiceClient) BulkEcho(ctx context.Context, opts ...grpc.CallOption) (StreamService_BulkEchoClient, error) { - stream, err := c.cc.NewStream(ctx, &_StreamService_serviceDesc.Streams[2], "/grpc.gateway.examples.examplepb.StreamService/BulkEcho", opts...) + stream, err := c.cc.NewStream(ctx, &_StreamService_serviceDesc.Streams[2], "/grpc.gateway.examples.internal.examplepb.StreamService/BulkEcho", opts...) if err != nil { return nil, err } @@ -276,7 +277,7 @@ func (x *streamServiceBulkEchoServer) Recv() (*sub.StringMessage, error) { } var _StreamService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "grpc.gateway.examples.examplepb.StreamService", + ServiceName: "grpc.gateway.examples.internal.examplepb.StreamService", HandlerType: (*StreamServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ @@ -297,5 +298,5 @@ var _StreamService_serviceDesc = grpc.ServiceDesc{ ClientStreams: true, }, }, - Metadata: "examples/proto/examplepb/stream.proto", + Metadata: "examples/internal/proto/examplepb/stream.proto", } diff --git a/examples/proto/examplepb/stream.pb.gw.go b/examples/internal/proto/examplepb/stream.pb.gw.go similarity index 98% rename from examples/proto/examplepb/stream.pb.gw.go rename to examples/internal/proto/examplepb/stream.pb.gw.go index 8b33ff5c40a..3cece1b712c 100644 --- a/examples/proto/examplepb/stream.pb.gw.go +++ b/examples/internal/proto/examplepb/stream.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: examples/proto/examplepb/stream.proto +// source: examples/internal/proto/examplepb/stream.proto /* Package examplepb is a reverse proxy. @@ -16,7 +16,7 @@ import ( "github.com/golang/protobuf/descriptor" "github.com/golang/protobuf/proto" "github.com/golang/protobuf/ptypes/empty" - "github.com/grpc-ecosystem/grpc-gateway/examples/proto/sub" + "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/sub" "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/grpc-ecosystem/grpc-gateway/utilities" "google.golang.org/grpc" diff --git a/examples/proto/examplepb/stream.proto b/examples/internal/proto/examplepb/stream.proto similarity index 67% rename from examples/proto/examplepb/stream.proto rename to examples/internal/proto/examplepb/stream.proto index 66e59dde758..8cfa647cc15 100644 --- a/examples/proto/examplepb/stream.proto +++ b/examples/internal/proto/examplepb/stream.proto @@ -1,11 +1,11 @@ syntax = "proto3"; option go_package = "examplepb"; -package grpc.gateway.examples.examplepb; +package grpc.gateway.examples.internal.examplepb; import "google/api/annotations.proto"; import "google/protobuf/empty.proto"; -import "examples/proto/examplepb/a_bit_of_everything.proto"; -import "examples/proto/sub/message.proto"; +import "examples/internal/proto/examplepb/a_bit_of_everything.proto"; +import "examples/internal/proto/sub/message.proto"; // Defines some more operations to be added to ABitOfEverythingService service StreamService { @@ -20,7 +20,7 @@ service StreamService { get: "/v1/example/a_bit_of_everything" }; } - rpc BulkEcho(stream grpc.gateway.examples.sub.StringMessage) returns (stream grpc.gateway.examples.sub.StringMessage) { + rpc BulkEcho(stream grpc.gateway.examples.internal.sub.StringMessage) returns (stream grpc.gateway.examples.internal.sub.StringMessage) { option (google.api.http) = { post: "/v1/example/a_bit_of_everything/echo" body: "*" diff --git a/examples/proto/examplepb/stream.swagger.json b/examples/internal/proto/examplepb/stream.swagger.json similarity index 99% rename from examples/proto/examplepb/stream.swagger.json rename to examples/internal/proto/examplepb/stream.swagger.json index c4c696989a6..faef15b04e4 100644 --- a/examples/proto/examplepb/stream.swagger.json +++ b/examples/internal/proto/examplepb/stream.swagger.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "title": "examples/proto/examplepb/stream.proto", + "title": "examples/internal/proto/examplepb/stream.proto", "version": "version not set" }, "consumes": [ diff --git a/examples/proto/examplepb/unannotated_echo_service.pb.go b/examples/internal/proto/examplepb/unannotated_echo_service.pb.go similarity index 76% rename from examples/proto/examplepb/unannotated_echo_service.pb.go rename to examples/internal/proto/examplepb/unannotated_echo_service.pb.go index ba678e9a081..60c4d917a2a 100644 --- a/examples/proto/examplepb/unannotated_echo_service.pb.go +++ b/examples/internal/proto/examplepb/unannotated_echo_service.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: examples/proto/examplepb/unannotated_echo_service.proto +// source: examples/internal/proto/examplepb/unannotated_echo_service.proto // Unannotated Echo Service // Similar to echo_service.proto but without annotations. See @@ -48,7 +48,7 @@ func (m *UnannotatedSimpleMessage) Reset() { *m = UnannotatedSimpleMessa func (m *UnannotatedSimpleMessage) String() string { return proto.CompactTextString(m) } func (*UnannotatedSimpleMessage) ProtoMessage() {} func (*UnannotatedSimpleMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_a57876726ab5dd80, []int{0} + return fileDescriptor_ab29419944ad9f3b, []int{0} } func (m *UnannotatedSimpleMessage) XXX_Unmarshal(b []byte) error { @@ -91,32 +91,33 @@ func (m *UnannotatedSimpleMessage) GetDuration() *duration.Duration { } func init() { - proto.RegisterType((*UnannotatedSimpleMessage)(nil), "grpc.gateway.examples.examplepb.UnannotatedSimpleMessage") + proto.RegisterType((*UnannotatedSimpleMessage)(nil), "grpc.gateway.examples.internal.examplepb.UnannotatedSimpleMessage") } func init() { - proto.RegisterFile("examples/proto/examplepb/unannotated_echo_service.proto", fileDescriptor_a57876726ab5dd80) + proto.RegisterFile("examples/internal/proto/examplepb/unannotated_echo_service.proto", fileDescriptor_ab29419944ad9f3b) } -var fileDescriptor_a57876726ab5dd80 = []byte{ - // 268 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0x4f, 0xad, 0x48, 0xcc, - 0x2d, 0xc8, 0x49, 0x2d, 0xd6, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0xd7, 0x87, 0x72, 0x0b, 0x92, 0xf4, - 0x4b, 0xf3, 0x12, 0xf3, 0xf2, 0xf2, 0x4b, 0x12, 0x4b, 0x52, 0x53, 0xe2, 0x53, 0x93, 0x33, 0xf2, - 0xe3, 0x8b, 0x53, 0x8b, 0xca, 0x32, 0x93, 0x53, 0xf5, 0xc0, 0x0a, 0x85, 0xe4, 0xd3, 0x8b, 0x0a, - 0x92, 0xf5, 0xd2, 0x13, 0x4b, 0x52, 0xcb, 0x13, 0x2b, 0xf5, 0x60, 0xa6, 0xe8, 0xc1, 0xf5, 0x4b, - 0xc9, 0xa5, 0xe7, 0xe7, 0xa7, 0xe7, 0xa4, 0x42, 0xcc, 0x4d, 0x2a, 0x4d, 0xd3, 0x4f, 0x29, 0x2d, - 0x4a, 0x2c, 0xc9, 0xcc, 0xcf, 0x83, 0x18, 0xa0, 0x54, 0xcc, 0x25, 0x11, 0x8a, 0xb0, 0x22, 0x38, - 0x13, 0xa4, 0xcd, 0x37, 0xb5, 0xb8, 0x38, 0x31, 0x3d, 0x55, 0x88, 0x8f, 0x8b, 0x29, 0x33, 0x45, - 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x88, 0x29, 0x33, 0x45, 0x48, 0x80, 0x8b, 0x39, 0xaf, 0x34, - 0x57, 0x82, 0x49, 0x81, 0x51, 0x83, 0x39, 0x08, 0xc4, 0x14, 0x32, 0xe5, 0xe2, 0x80, 0x99, 0x27, - 0xc1, 0xac, 0xc0, 0xa8, 0xc1, 0x6d, 0x24, 0xa9, 0x07, 0xb1, 0x50, 0x0f, 0x66, 0xa1, 0x9e, 0x0b, - 0x54, 0x41, 0x10, 0x5c, 0xa9, 0xd1, 0x3c, 0x66, 0x2e, 0x31, 0x24, 0x5b, 0x5d, 0x93, 0x33, 0xf2, - 0x83, 0x21, 0xde, 0x12, 0xaa, 0xe1, 0x62, 0x01, 0x71, 0x85, 0x2c, 0xf5, 0x08, 0xf8, 0x4c, 0x0f, - 0x97, 0xb3, 0xa5, 0xc8, 0xd7, 0x2a, 0xd4, 0xc0, 0xc8, 0xc5, 0x01, 0xb2, 0xde, 0x29, 0x3f, 0xa5, - 0x72, 0x80, 0x9c, 0xd0, 0xc4, 0xc8, 0xc5, 0x05, 0x72, 0x82, 0x4b, 0x6a, 0x4e, 0x6a, 0x49, 0xea, - 0xc0, 0x38, 0xc2, 0x89, 0x3b, 0x8a, 0x13, 0xae, 0x2a, 0x89, 0x0d, 0x1c, 0x95, 0xc6, 0x80, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x9a, 0xa7, 0x7c, 0x41, 0xa5, 0x02, 0x00, 0x00, +var fileDescriptor_ab29419944ad9f3b = []byte{ + // 280 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x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35, 0x4c, 0x06, 0x5e, 0x14, 0xc6, + 0x2c, 0x99, 0x2d, 0xce, 0xb1, 0x17, 0xe2, 0x20, 0xc4, 0xe5, 0x21, 0x90, 0x8f, 0xd1, 0xc5, 0x47, + 0x08, 0x67, 0xdf, 0xac, 0xb7, 0xe5, 0x46, 0xaf, 0xfa, 0x7d, 0xfc, 0x95, 0xc1, 0x3f, 0xff, 0xcf, + 0x33, 0xfc, 0xed, 0x46, 0xfc, 0x69, 0xc0, 0xfc, 0x0f, 0x18, 0xfc, 0x8d, 0xc1, 0xc4, 0x17, 0xca, + 0x74, 0xb5, 0x3b, 0x9a, 0x52, 0xef, 0x0c, 0xc0, 0x97, 0x5a, 0x52, 0x43, 0x8e, 0x8e, 0xa5, 0x56, + 0x36, 0x7b, 0x98, 0x8e, 0xa9, 0xe2, 0xff, 0xfe, 0x05, 0x5c, 0x7d, 0x06, 0x00, 0x00, 0xff, 0xff, + 0xaa, 0x31, 0x7d, 0x8e, 0xee, 0x02, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -152,7 +153,7 @@ func NewUnannotatedEchoServiceClient(cc *grpc.ClientConn) UnannotatedEchoService func (c *unannotatedEchoServiceClient) Echo(ctx context.Context, in *UnannotatedSimpleMessage, opts ...grpc.CallOption) (*UnannotatedSimpleMessage, error) { out := new(UnannotatedSimpleMessage) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.UnannotatedEchoService/Echo", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.UnannotatedEchoService/Echo", in, out, opts...) if err != nil { return nil, err } @@ -161,7 +162,7 @@ func (c *unannotatedEchoServiceClient) Echo(ctx context.Context, in *Unannotated func (c *unannotatedEchoServiceClient) EchoBody(ctx context.Context, in *UnannotatedSimpleMessage, opts ...grpc.CallOption) (*UnannotatedSimpleMessage, error) { out := new(UnannotatedSimpleMessage) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.UnannotatedEchoService/EchoBody", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.UnannotatedEchoService/EchoBody", in, out, opts...) if err != nil { return nil, err } @@ -170,7 +171,7 @@ func (c *unannotatedEchoServiceClient) EchoBody(ctx context.Context, in *Unannot func (c *unannotatedEchoServiceClient) EchoDelete(ctx context.Context, in *UnannotatedSimpleMessage, opts ...grpc.CallOption) (*UnannotatedSimpleMessage, error) { out := new(UnannotatedSimpleMessage) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.UnannotatedEchoService/EchoDelete", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.UnannotatedEchoService/EchoDelete", in, out, opts...) if err != nil { return nil, err } @@ -218,7 +219,7 @@ func _UnannotatedEchoService_Echo_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.UnannotatedEchoService/Echo", + FullMethod: "/grpc.gateway.examples.internal.examplepb.UnannotatedEchoService/Echo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UnannotatedEchoServiceServer).Echo(ctx, req.(*UnannotatedSimpleMessage)) @@ -236,7 +237,7 @@ func _UnannotatedEchoService_EchoBody_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.UnannotatedEchoService/EchoBody", + FullMethod: "/grpc.gateway.examples.internal.examplepb.UnannotatedEchoService/EchoBody", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UnannotatedEchoServiceServer).EchoBody(ctx, req.(*UnannotatedSimpleMessage)) @@ -254,7 +255,7 @@ func _UnannotatedEchoService_EchoDelete_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.UnannotatedEchoService/EchoDelete", + FullMethod: "/grpc.gateway.examples.internal.examplepb.UnannotatedEchoService/EchoDelete", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UnannotatedEchoServiceServer).EchoDelete(ctx, req.(*UnannotatedSimpleMessage)) @@ -263,7 +264,7 @@ func _UnannotatedEchoService_EchoDelete_Handler(srv interface{}, ctx context.Con } var _UnannotatedEchoService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "grpc.gateway.examples.examplepb.UnannotatedEchoService", + ServiceName: "grpc.gateway.examples.internal.examplepb.UnannotatedEchoService", HandlerType: (*UnannotatedEchoServiceServer)(nil), Methods: []grpc.MethodDesc{ { @@ -280,5 +281,5 @@ var _UnannotatedEchoService_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "examples/proto/examplepb/unannotated_echo_service.proto", + Metadata: "examples/internal/proto/examplepb/unannotated_echo_service.proto", } diff --git a/examples/proto/examplepb/unannotated_echo_service.pb.gw.go b/examples/internal/proto/examplepb/unannotated_echo_service.pb.gw.go similarity index 99% rename from examples/proto/examplepb/unannotated_echo_service.pb.gw.go rename to examples/internal/proto/examplepb/unannotated_echo_service.pb.gw.go index 27258d252ad..8936c57c0aa 100644 --- a/examples/proto/examplepb/unannotated_echo_service.pb.gw.go +++ b/examples/internal/proto/examplepb/unannotated_echo_service.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: examples/proto/examplepb/unannotated_echo_service.proto +// source: examples/internal/proto/examplepb/unannotated_echo_service.proto /* Package examplepb is a reverse proxy. diff --git a/examples/proto/examplepb/unannotated_echo_service.proto b/examples/internal/proto/examplepb/unannotated_echo_service.proto similarity index 96% rename from examples/proto/examplepb/unannotated_echo_service.proto rename to examples/internal/proto/examplepb/unannotated_echo_service.proto index 6c3dbfeaf9a..4f926d3c6fc 100644 --- a/examples/proto/examplepb/unannotated_echo_service.proto +++ b/examples/internal/proto/examplepb/unannotated_echo_service.proto @@ -8,7 +8,7 @@ option go_package = "examplepb"; // // Echo Service API consists of a single service which returns // a message. -package grpc.gateway.examples.examplepb; +package grpc.gateway.examples.internal.examplepb; // Do not need annotations.proto, can still use well known types as usual import "google/protobuf/duration.proto"; diff --git a/examples/proto/examplepb/unannotated_echo_service.swagger.json b/examples/internal/proto/examplepb/unannotated_echo_service.swagger.json similarity index 99% rename from examples/proto/examplepb/unannotated_echo_service.swagger.json rename to examples/internal/proto/examplepb/unannotated_echo_service.swagger.json index c33a67d98f6..36720e9367b 100644 --- a/examples/proto/examplepb/unannotated_echo_service.swagger.json +++ b/examples/internal/proto/examplepb/unannotated_echo_service.swagger.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "title": "examples/proto/examplepb/unannotated_echo_service.proto", + "title": "examples/internal/proto/examplepb/unannotated_echo_service.proto", "description": "Unannotated Echo Service\nSimilar to echo_service.proto but without annotations. See\nunannotated_echo_service.yaml for the equivalent of the annotations in\ngRPC API configuration format.\n\nEcho Service API consists of a single service which returns\na message.", "version": "version not set" }, diff --git a/examples/internal/proto/examplepb/unannotated_echo_service.yaml b/examples/internal/proto/examplepb/unannotated_echo_service.yaml new file mode 100644 index 00000000000..0f14d1fa2fb --- /dev/null +++ b/examples/internal/proto/examplepb/unannotated_echo_service.yaml @@ -0,0 +1,15 @@ +type: google.api.Service +config_version: 3 + +http: + rules: + - selector: grpc.gateway.examples.internal.examplepb.UnannotatedEchoService.Echo + post: "/v1/example/echo/{id}" + additional_bindings: + - get: "/v1/example/echo/{id}/{num}" + - selector: grpc.gateway.examples.internal.examplepb.UnannotatedEchoService.EchoBody + post: "/v1/example/echo_body" + body: "*" + - selector: grpc.gateway.examples.internal.examplepb.UnannotatedEchoService.EchoDelete + delete: "/v1/example/echo_delete" + diff --git a/examples/proto/examplepb/use_go_template.pb.go b/examples/internal/proto/examplepb/use_go_template.pb.go similarity index 81% rename from examples/proto/examplepb/use_go_template.pb.go rename to examples/internal/proto/examplepb/use_go_template.pb.go index 46e939310ac..6eac47ee393 100644 --- a/examples/proto/examplepb/use_go_template.pb.go +++ b/examples/internal/proto/examplepb/use_go_template.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: examples/proto/examplepb/use_go_template.proto +// source: examples/internal/proto/examplepb/use_go_template.proto package examplepb @@ -39,7 +39,7 @@ func (m *LoginRequest) Reset() { *m = LoginRequest{} } func (m *LoginRequest) String() string { return proto.CompactTextString(m) } func (*LoginRequest) ProtoMessage() {} func (*LoginRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_11d6ea622d77f66b, []int{0} + return fileDescriptor_ed0d8910d38fbb31, []int{0} } func (m *LoginRequest) XXX_Unmarshal(b []byte) error { @@ -87,7 +87,7 @@ func (m *LoginReply) Reset() { *m = LoginReply{} } func (m *LoginReply) String() string { return proto.CompactTextString(m) } func (*LoginReply) ProtoMessage() {} func (*LoginReply) Descriptor() ([]byte, []int) { - return fileDescriptor_11d6ea622d77f66b, []int{1} + return fileDescriptor_ed0d8910d38fbb31, []int{1} } func (m *LoginReply) XXX_Unmarshal(b []byte) error { @@ -146,7 +146,7 @@ func (m *LogoutRequest) Reset() { *m = LogoutRequest{} } func (m *LogoutRequest) String() string { return proto.CompactTextString(m) } func (*LogoutRequest) ProtoMessage() {} func (*LogoutRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_11d6ea622d77f66b, []int{2} + return fileDescriptor_ed0d8910d38fbb31, []int{2} } func (m *LogoutRequest) XXX_Unmarshal(b []byte) error { @@ -201,7 +201,7 @@ func (m *LogoutReply) Reset() { *m = LogoutReply{} } func (m *LogoutReply) String() string { return proto.CompactTextString(m) } func (*LogoutReply) ProtoMessage() {} func (*LogoutReply) Descriptor() ([]byte, []int) { - return fileDescriptor_11d6ea622d77f66b, []int{3} + return fileDescriptor_ed0d8910d38fbb31, []int{3} } func (m *LogoutReply) XXX_Unmarshal(b []byte) error { @@ -230,41 +230,42 @@ func (m *LogoutReply) GetMessage() string { } func init() { - proto.RegisterType((*LoginRequest)(nil), "grpc.gateway.examples.examplepb.LoginRequest") - proto.RegisterType((*LoginReply)(nil), "grpc.gateway.examples.examplepb.LoginReply") - proto.RegisterType((*LogoutRequest)(nil), "grpc.gateway.examples.examplepb.LogoutRequest") - proto.RegisterType((*LogoutReply)(nil), "grpc.gateway.examples.examplepb.LogoutReply") + proto.RegisterType((*LoginRequest)(nil), "grpc.gateway.examples.internal.examplepb.LoginRequest") + proto.RegisterType((*LoginReply)(nil), "grpc.gateway.examples.internal.examplepb.LoginReply") + proto.RegisterType((*LogoutRequest)(nil), "grpc.gateway.examples.internal.examplepb.LogoutRequest") + proto.RegisterType((*LogoutReply)(nil), "grpc.gateway.examples.internal.examplepb.LogoutReply") } func init() { - proto.RegisterFile("examples/proto/examplepb/use_go_template.proto", fileDescriptor_11d6ea622d77f66b) -} - -var fileDescriptor_11d6ea622d77f66b = []byte{ - // 360 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x31, 0x4e, 0xeb, 0x40, - 0x14, 0x94, 0x93, 0x9f, 0xfc, 0xe4, 0x25, 0xbf, 0xf8, 0x5b, 0x04, 0xcb, 0x0a, 0x22, 0xda, 0x86, - 0x28, 0x80, 0x2d, 0xa0, 0x4b, 0x41, 0x41, 0x41, 0x95, 0xca, 0x74, 0x34, 0xd1, 0xc6, 0x3c, 0x56, - 0x96, 0x6c, 0xef, 0xb2, 0xbb, 0x4e, 0x70, 0x09, 0x12, 0x27, 0xa0, 0xe3, 0x5a, 0x5c, 0x81, 0x83, - 0xa0, 0x6c, 0x6c, 0x13, 0x28, 0x20, 0x9d, 0x67, 0xe6, 0xcd, 0x78, 0x34, 0x36, 0xf8, 0xf8, 0xc0, - 0x52, 0x99, 0xa0, 0x0e, 0xa4, 0x12, 0x46, 0x04, 0x25, 0x94, 0x8b, 0x20, 0xd7, 0x38, 0xe7, 0x62, - 0x6e, 0x30, 0x95, 0x09, 0x33, 0xe8, 0x5b, 0x9d, 0x1c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 0x87, - 0x4f, 0x6f, 0xef, 0x2f, 0x8d, 0x01, 0xfd, 0x1f, 0x2c, 0x4f, 0xab, 0xcf, 0x1f, 0x24, 0x6b, 0x7d, - 0xea, 0x4c, 0xc8, 0xb3, 0x03, 0xed, 0x4d, 0x7d, 0xe2, 0xef, 0x92, 0xfa, 0x39, 0xa9, 0x77, 0xbc, - 0xf3, 0xfd, 0xba, 0xc6, 0xbe, 0xad, 0xb1, 0x47, 0xc9, 0xb7, 0x1a, 0x22, 0x37, 0x53, 0x67, 0x72, - 0xd9, 0xbb, 0xe9, 0xd6, 0xbe, 0x45, 0xdb, 0xfe, 0x4c, 0xe7, 0x1f, 0x01, 0x00, 0x00, 0xff, 0xff, - 0xf3, 0xee, 0xed, 0x28, 0xbd, 0x02, 0x00, 0x00, + proto.RegisterFile("examples/internal/proto/examplepb/use_go_template.proto", fileDescriptor_ed0d8910d38fbb31) +} + +var fileDescriptor_ed0d8910d38fbb31 = []byte{ + // 373 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xbd, 0x8e, 0x1a, 0x31, + 0x14, 0x85, 0x35, 0x10, 0x08, 0x18, 0x52, 0xc4, 0x05, 0x19, 0x8d, 0x88, 0x84, 0xdc, 0x04, 0x51, + 0x8c, 0x95, 0x5f, 0x24, 0x8a, 0x14, 0x29, 0x52, 0x51, 0x4d, 0xba, 0x34, 0xc8, 0x4c, 0x6e, 0x2c, + 0x4b, 0x9e, 0xb1, 0x63, 0x7b, 0x20, 0xd3, 0xee, 0x2b, 0x50, 0xec, 0xdb, 0xec, 0x4b, 0xec, 0x2b, + 0xec, 0x83, 0xac, 0xc6, 0x8c, 0x59, 0x76, 0x8b, 0xd5, 0xd2, 0xcd, 0x3d, 0x57, 0xe7, 0x9b, 0xe3, + 0xa3, 0x8b, 0x96, 0xf0, 0x9f, 0x15, 0x5a, 0x82, 0xa5, 0xa2, 0x74,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 0xb4, 0xe5, 0xfc, 0x02, 0xb3, 0x13, 0x39, 0xe0, 0x43, 0x84, 0x7a, 0x5e, 0xc0, 0xdf, 0xd2, + 0x97, 0xf6, 0x9f, 0x9e, 0xd7, 0x9b, 0x7c, 0xb9, 0xd8, 0xa7, 0x65, 0x4d, 0xa6, 0x57, 0xb7, 0x77, + 0x87, 0xce, 0x84, 0xbc, 0xa5, 0xbb, 0x8f, 0xe1, 0x32, 0xa8, 0x6c, 0xf6, 0xab, 0x68, 0x81, 0xaf, + 0x23, 0xd4, 0x3f, 0x3e, 0x08, 0x2f, 0x2f, 0xc2, 0x3f, 0xb4, 0x9d, 0x7c, 0xbd, 0xdc, 0xd8, 0x04, + 0x7b, 0xef, 0x83, 0xbd, 0x23, 0xf8, 0x49, 0x30, 0x55, 0xb9, 0x55, 0xb4, 0xf8, 0x31, 0xfa, 0x3d, + 0x3c, 0xf9, 0xb6, 0x7d, 0x7f, 0x70, 0x9f, 0xef, 0x03, 0x00, 0x00, 0xff, 0xff, 0x2d, 0xc0, 0x42, + 0xdb, 0xf3, 0x02, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -321,7 +322,7 @@ func NewLoginServiceClient(cc *grpc.ClientConn) LoginServiceClient { func (c *loginServiceClient) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginReply, error) { out := new(LoginReply) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.LoginService/Login", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.LoginService/Login", in, out, opts...) if err != nil { return nil, err } @@ -330,7 +331,7 @@ func (c *loginServiceClient) Login(ctx context.Context, in *LoginRequest, opts . func (c *loginServiceClient) Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*LogoutReply, error) { out := new(LogoutReply) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.LoginService/Logout", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.LoginService/Logout", in, out, opts...) if err != nil { return nil, err } @@ -396,7 +397,7 @@ func _LoginService_Login_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.LoginService/Login", + FullMethod: "/grpc.gateway.examples.internal.examplepb.LoginService/Login", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoginServiceServer).Login(ctx, req.(*LoginRequest)) @@ -414,7 +415,7 @@ func _LoginService_Logout_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.LoginService/Logout", + FullMethod: "/grpc.gateway.examples.internal.examplepb.LoginService/Logout", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoginServiceServer).Logout(ctx, req.(*LogoutRequest)) @@ -423,7 +424,7 @@ func _LoginService_Logout_Handler(srv interface{}, ctx context.Context, dec func } var _LoginService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "grpc.gateway.examples.examplepb.LoginService", + ServiceName: "grpc.gateway.examples.internal.examplepb.LoginService", HandlerType: (*LoginServiceServer)(nil), Methods: []grpc.MethodDesc{ { @@ -436,5 +437,5 @@ var _LoginService_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "examples/proto/examplepb/use_go_template.proto", + Metadata: "examples/internal/proto/examplepb/use_go_template.proto", } diff --git a/examples/proto/examplepb/use_go_template.pb.gw.go b/examples/internal/proto/examplepb/use_go_template.pb.gw.go similarity index 99% rename from examples/proto/examplepb/use_go_template.pb.gw.go rename to examples/internal/proto/examplepb/use_go_template.pb.gw.go index 68236c143ee..5019a18f448 100644 --- a/examples/proto/examplepb/use_go_template.pb.gw.go +++ b/examples/internal/proto/examplepb/use_go_template.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: examples/proto/examplepb/use_go_template.proto +// source: examples/internal/proto/examplepb/use_go_template.proto /* Package examplepb is a reverse proxy. diff --git a/examples/proto/examplepb/use_go_template.proto b/examples/internal/proto/examplepb/use_go_template.proto similarity index 98% rename from examples/proto/examplepb/use_go_template.proto rename to examples/internal/proto/examplepb/use_go_template.proto index 5a1b3161630..706fd8f136a 100644 --- a/examples/proto/examplepb/use_go_template.proto +++ b/examples/internal/proto/examplepb/use_go_template.proto @@ -1,6 +1,6 @@ syntax = "proto3"; option go_package = "examplepb"; -package grpc.gateway.examples.examplepb; +package grpc.gateway.examples.internal.examplepb; import "google/api/annotations.proto"; @@ -82,4 +82,4 @@ message LogoutReply { // Message that tells you whether your // logout was succesful or not string message = 1; -} \ No newline at end of file +} diff --git a/examples/proto/examplepb/use_go_template.swagger.json b/examples/internal/proto/examplepb/use_go_template.swagger.json similarity index 99% rename from examples/proto/examplepb/use_go_template.swagger.json rename to examples/internal/proto/examplepb/use_go_template.swagger.json index c85ad10e119..642ab4539fa 100644 --- a/examples/proto/examplepb/use_go_template.swagger.json +++ b/examples/internal/proto/examplepb/use_go_template.swagger.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "title": "examples/proto/examplepb/use_go_template.proto", + "title": "examples/internal/proto/examplepb/use_go_template.proto", "version": "version not set" }, "consumes": [ diff --git a/examples/proto/examplepb/wrappers.pb.go b/examples/internal/proto/examplepb/wrappers.pb.go similarity index 76% rename from examples/proto/examplepb/wrappers.pb.go rename to examples/internal/proto/examplepb/wrappers.pb.go index fa9e68e2d30..bdba354be83 100644 --- a/examples/proto/examplepb/wrappers.pb.go +++ b/examples/internal/proto/examplepb/wrappers.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: examples/proto/examplepb/wrappers.proto +// source: examples/internal/proto/examplepb/wrappers.proto package examplepb @@ -46,7 +46,7 @@ func (m *Wrappers) Reset() { *m = Wrappers{} } func (m *Wrappers) String() string { return proto.CompactTextString(m) } func (*Wrappers) ProtoMessage() {} func (*Wrappers) Descriptor() ([]byte, []int) { - return fileDescriptor_aa1e7ec5682437b9, []int{0} + return fileDescriptor_70304970d74748a4, []int{0} } func (m *Wrappers) XXX_Unmarshal(b []byte) error { @@ -131,52 +131,52 @@ func (m *Wrappers) GetBytesValue() *wrappers.BytesValue { } func init() { - proto.RegisterType((*Wrappers)(nil), "grpc.gateway.examples.examplepb.Wrappers") + proto.RegisterType((*Wrappers)(nil), "grpc.gateway.examples.internal.examplepb.Wrappers") } func init() { - proto.RegisterFile("examples/proto/examplepb/wrappers.proto", fileDescriptor_aa1e7ec5682437b9) -} - -var fileDescriptor_aa1e7ec5682437b9 = []byte{ - // 578 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x95, 0xdd, 0x6e, 0xd3, 0x30, - 0x14, 0xc7, 0xd5, 0x31, 0xca, 0xea, 0x0c, 0xc6, 0x0c, 0x82, 0xcd, 0x9b, 0x18, 0xca, 0x0d, 0xb0, - 0x8b, 0x44, 0x74, 0x55, 0x25, 0x26, 0x24, 0xa4, 0xf2, 0x21, 0x71, 0xcb, 0x34, 0x26, 0x71, 0x83, - 0xec, 0xcd, 0x8d, 0x82, 0xb2, 0x38, 0x4a, 0x9c, 0x8e, 0x5e, 0x21, 0xf1, 0x0a, 0x3c, 0x00, 0xcf, - 0xc2, 0x33, 0xf0, 0x0a, 0x3c, 0x08, 0xf2, 0x57, 0x3e, 0x9a, 0xe5, 0xc0, 0x9d, 0x9d, 0xff, 0xf9, - 0x9d, 0x7f, 0x7d, 0x7c, 0x8e, 0x8b, 0x9e, 0xf0, 0xaf, 0xf4, 0x32, 0x4b, 0x78, 0x11, 0x66, 0xb9, - 0x90, 0x22, 0xb4, 0xdb, 0x8c, 0x85, 0x57, 0x39, 0xcd, 0x32, 0x9e, 0x17, 0x81, 0x16, 0xf0, 0x41, - 0x94, 0x67, 0xe7, 0x41, 0x44, 0x25, 0xb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 0x76, 0xd9, 0xf6, 0x37, 0x9d, 0x8b, 0x92, 0x5a, 0xe7, 0x69, 0x4c, 0x2a, 0x06, 0xe7, - 0x98, 0x80, 0x6a, 0xf7, 0x3c, 0xa7, 0xb1, 0xeb, 0x85, 0x96, 0x97, 0x6b, 0x06, 0x70, 0xe4, 0x09, - 0xa8, 0x5e, 0xef, 0xb5, 0xd2, 0x0f, 0xf5, 0x03, 0x80, 0xa1, 0xd7, 0x81, 0x40, 0x62, 0xb7, 0x1f, - 0xb4, 0xa6, 0x7c, 0xce, 0x90, 0x67, 0x7c, 0xde, 0xaa, 0x7f, 0x28, 0xfc, 0xa0, 0x93, 0x45, 0x7f, - 0x27, 0x3d, 0xdf, 0xbb, 0x89, 0xf5, 0xe7, 0xe3, 0xc1, 0xe1, 0xcc, 0xfb, 0x34, 0xaa, 0xde, 0x10, - 0x36, 0xd4, 0xd8, 0xd1, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x05, 0x83, 0xaf, 0x71, 0xa0, 0x07, - 0x00, 0x00, + proto.RegisterFile("examples/internal/proto/examplepb/wrappers.proto", fileDescriptor_70304970d74748a4) +} + +var fileDescriptor_70304970d74748a4 = []byte{ + // 587 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x95, 0xdd, 0x6e, 0xd3, 0x30, + 0x14, 0xc7, 0xd5, 0x31, 0xca, 0xea, 0x0c, 0xc6, 0x0c, 0x82, 0xcd, 0x9b, 0x00, 0xe5, 0x6a, 0xda, + 0x85, 0x03, 0x5d, 0x55, 0x89, 0x09, 0x09, 0xa9, 0x7c, 0x48, 0xdc, 0x32, 0x8d, 0x49, 0xdc, 0x20, + 0x67, 0x73, 0xa3, 0xa0, 0x2c, 0x8e, 0x12, 0xa7, 0xa3, 0xb7, 0xbc, 0x01, 0xe2, 0x4d, 0x78, 0x03, + 0x9e, 0x81, 0x57, 0xe0, 0x41, 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xdf, 0x75, 0x46, 0x5a, 0x5b, 0xf5, 0x71, 0xb7, 0x09, 0x8d, 0x0c, 0x81, 0xc4, 0x6b, + 0x7d, 0xa6, 0x93, 0x96, 0x4f, 0x3d, 0x3f, 0x18, 0x1a, 0x2e, 0x02, 0x89, 0x5d, 0x1f, 0xad, 0xb5, + 0xee, 0xa8, 0x31, 0x68, 0x18, 0x1c, 0x43, 0x02, 0xaa, 0xdd, 0x3b, 0x32, 0xa2, 0xf2, 0x0a, 0xd1, + 0x96, 0xf1, 0xaa, 0xa6, 0x12, 0x03, 0x13, 0x4b, 0x00, 0xcd, 0x7f, 0xac, 0x5d, 0xb6, 0xfd, 0x4d, + 0xe7, 0xa2, 0xa4, 0xd6, 0x79, 0x1a, 0xc3, 0x8b, 0xc1, 0xd1, 0x26, 0xa0, 0xda, 0x3d, 0xcf, 0x69, + 0xec, 0x7a, 0xa1, 0xe5, 0xe5, 0x9a, 0x01, 0x7c, 0x05, 0x08, 0xa8, 0x5e, 0xef, 0xb5, 0xd2, 0x0f, + 0xf5, 0x9b, 0x80, 0xa1, 0x07, 0x83, 0x40, 0x62, 0xb7, 0x1f, 0xb4, 0xa6, 0x7c, 0xce, 0x90, 0x67, + 0x7c, 0xde, 0xa9, 0x3f, 0x2d, 0xfc, 0xa8, 0x93, 0x45, 0xef, 0x93, 0x9e, 0xfd, 0x6e, 0x62, 0xbd, + 0x7d, 0x3c, 0x38, 0x9c, 0x79, 0x9f, 0x47, 0xd5, 0x1b, 0x12, 0x0e, 0x35, 0x76, 0xf4, 0x2f, 0x00, + 0x00, 0xff, 0xff, 0xfe, 0xb0, 0x38, 0x00, 0xc5, 0x07, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -214,7 +214,7 @@ func NewWrappersServiceClient(cc *grpc.ClientConn) WrappersServiceClient { func (c *wrappersServiceClient) Create(ctx context.Context, in *Wrappers, opts ...grpc.CallOption) (*Wrappers, error) { out := new(Wrappers) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.WrappersService/Create", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.WrappersService/Create", in, out, opts...) if err != nil { return nil, err } @@ -223,7 +223,7 @@ func (c *wrappersServiceClient) Create(ctx context.Context, in *Wrappers, opts . func (c *wrappersServiceClient) CreateStringValue(ctx context.Context, in *wrappers.StringValue, opts ...grpc.CallOption) (*wrappers.StringValue, error) { out := new(wrappers.StringValue) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.WrappersService/CreateStringValue", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateStringValue", in, out, opts...) if err != nil { return nil, err } @@ -232,7 +232,7 @@ func (c *wrappersServiceClient) CreateStringValue(ctx context.Context, in *wrapp func (c *wrappersServiceClient) CreateInt32Value(ctx context.Context, in *wrappers.Int32Value, opts ...grpc.CallOption) (*wrappers.Int32Value, error) { out := new(wrappers.Int32Value) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.WrappersService/CreateInt32Value", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateInt32Value", in, out, opts...) if err != nil { return nil, err } @@ -241,7 +241,7 @@ func (c *wrappersServiceClient) CreateInt32Value(ctx context.Context, in *wrappe func (c *wrappersServiceClient) CreateInt64Value(ctx context.Context, in *wrappers.Int64Value, opts ...grpc.CallOption) (*wrappers.Int64Value, error) { out := new(wrappers.Int64Value) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.WrappersService/CreateInt64Value", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateInt64Value", in, out, opts...) if err != nil { return nil, err } @@ -250,7 +250,7 @@ func (c *wrappersServiceClient) CreateInt64Value(ctx context.Context, in *wrappe func (c *wrappersServiceClient) CreateFloatValue(ctx context.Context, in *wrappers.FloatValue, opts ...grpc.CallOption) (*wrappers.FloatValue, error) { out := new(wrappers.FloatValue) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.WrappersService/CreateFloatValue", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateFloatValue", in, out, opts...) if err != nil { return nil, err } @@ -259,7 +259,7 @@ func (c *wrappersServiceClient) CreateFloatValue(ctx context.Context, in *wrappe func (c *wrappersServiceClient) CreateDoubleValue(ctx context.Context, in *wrappers.DoubleValue, opts ...grpc.CallOption) (*wrappers.DoubleValue, error) { out := new(wrappers.DoubleValue) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.WrappersService/CreateDoubleValue", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateDoubleValue", in, out, opts...) if err != nil { return nil, err } @@ -268,7 +268,7 @@ func (c *wrappersServiceClient) CreateDoubleValue(ctx context.Context, in *wrapp func (c *wrappersServiceClient) CreateBoolValue(ctx context.Context, in *wrappers.BoolValue, opts ...grpc.CallOption) (*wrappers.BoolValue, error) { out := new(wrappers.BoolValue) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.WrappersService/CreateBoolValue", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateBoolValue", in, out, opts...) if err != nil { return nil, err } @@ -277,7 +277,7 @@ func (c *wrappersServiceClient) CreateBoolValue(ctx context.Context, in *wrapper func (c *wrappersServiceClient) CreateUInt32Value(ctx context.Context, in *wrappers.UInt32Value, opts ...grpc.CallOption) (*wrappers.UInt32Value, error) { out := new(wrappers.UInt32Value) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.WrappersService/CreateUInt32Value", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateUInt32Value", in, out, opts...) if err != nil { return nil, err } @@ -286,7 +286,7 @@ func (c *wrappersServiceClient) CreateUInt32Value(ctx context.Context, in *wrapp func (c *wrappersServiceClient) CreateUInt64Value(ctx context.Context, in *wrappers.UInt64Value, opts ...grpc.CallOption) (*wrappers.UInt64Value, error) { out := new(wrappers.UInt64Value) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.WrappersService/CreateUInt64Value", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateUInt64Value", in, out, opts...) if err != nil { return nil, err } @@ -295,7 +295,7 @@ func (c *wrappersServiceClient) CreateUInt64Value(ctx context.Context, in *wrapp func (c *wrappersServiceClient) CreateBytesValue(ctx context.Context, in *wrappers.BytesValue, opts ...grpc.CallOption) (*wrappers.BytesValue, error) { out := new(wrappers.BytesValue) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.WrappersService/CreateBytesValue", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateBytesValue", in, out, opts...) if err != nil { return nil, err } @@ -304,7 +304,7 @@ func (c *wrappersServiceClient) CreateBytesValue(ctx context.Context, in *wrappe func (c *wrappersServiceClient) CreateEmpty(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/grpc.gateway.examples.examplepb.WrappersService/CreateEmpty", in, out, opts...) + err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateEmpty", in, out, opts...) if err != nil { return nil, err } @@ -378,7 +378,7 @@ func _WrappersService_Create_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.WrappersService/Create", + FullMethod: "/grpc.gateway.examples.internal.examplepb.WrappersService/Create", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WrappersServiceServer).Create(ctx, req.(*Wrappers)) @@ -396,7 +396,7 @@ func _WrappersService_CreateStringValue_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.WrappersService/CreateStringValue", + FullMethod: "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateStringValue", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WrappersServiceServer).CreateStringValue(ctx, req.(*wrappers.StringValue)) @@ -414,7 +414,7 @@ func _WrappersService_CreateInt32Value_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.WrappersService/CreateInt32Value", + FullMethod: "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateInt32Value", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WrappersServiceServer).CreateInt32Value(ctx, req.(*wrappers.Int32Value)) @@ -432,7 +432,7 @@ func _WrappersService_CreateInt64Value_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.WrappersService/CreateInt64Value", + FullMethod: "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateInt64Value", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WrappersServiceServer).CreateInt64Value(ctx, req.(*wrappers.Int64Value)) @@ -450,7 +450,7 @@ func _WrappersService_CreateFloatValue_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.WrappersService/CreateFloatValue", + FullMethod: "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateFloatValue", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WrappersServiceServer).CreateFloatValue(ctx, req.(*wrappers.FloatValue)) @@ -468,7 +468,7 @@ func _WrappersService_CreateDoubleValue_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.WrappersService/CreateDoubleValue", + FullMethod: "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateDoubleValue", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WrappersServiceServer).CreateDoubleValue(ctx, req.(*wrappers.DoubleValue)) @@ -486,7 +486,7 @@ func _WrappersService_CreateBoolValue_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.WrappersService/CreateBoolValue", + FullMethod: "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateBoolValue", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WrappersServiceServer).CreateBoolValue(ctx, req.(*wrappers.BoolValue)) @@ -504,7 +504,7 @@ func _WrappersService_CreateUInt32Value_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.WrappersService/CreateUInt32Value", + FullMethod: "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateUInt32Value", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WrappersServiceServer).CreateUInt32Value(ctx, req.(*wrappers.UInt32Value)) @@ -522,7 +522,7 @@ func _WrappersService_CreateUInt64Value_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.WrappersService/CreateUInt64Value", + FullMethod: "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateUInt64Value", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WrappersServiceServer).CreateUInt64Value(ctx, req.(*wrappers.UInt64Value)) @@ -540,7 +540,7 @@ func _WrappersService_CreateBytesValue_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.WrappersService/CreateBytesValue", + FullMethod: "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateBytesValue", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WrappersServiceServer).CreateBytesValue(ctx, req.(*wrappers.BytesValue)) @@ -558,7 +558,7 @@ func _WrappersService_CreateEmpty_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/grpc.gateway.examples.examplepb.WrappersService/CreateEmpty", + FullMethod: "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateEmpty", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WrappersServiceServer).CreateEmpty(ctx, req.(*empty.Empty)) @@ -567,7 +567,7 @@ func _WrappersService_CreateEmpty_Handler(srv interface{}, ctx context.Context, } var _WrappersService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "grpc.gateway.examples.examplepb.WrappersService", + ServiceName: "grpc.gateway.examples.internal.examplepb.WrappersService", HandlerType: (*WrappersServiceServer)(nil), Methods: []grpc.MethodDesc{ { @@ -616,5 +616,5 @@ var _WrappersService_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "examples/proto/examplepb/wrappers.proto", + Metadata: "examples/internal/proto/examplepb/wrappers.proto", } diff --git a/examples/proto/examplepb/wrappers.pb.gw.go b/examples/internal/proto/examplepb/wrappers.pb.gw.go similarity index 99% rename from examples/proto/examplepb/wrappers.pb.gw.go rename to examples/internal/proto/examplepb/wrappers.pb.gw.go index edb9b10a020..d6868454185 100644 --- a/examples/proto/examplepb/wrappers.pb.gw.go +++ b/examples/internal/proto/examplepb/wrappers.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: examples/proto/examplepb/wrappers.proto +// source: examples/internal/proto/examplepb/wrappers.proto /* Package examplepb is a reverse proxy. diff --git a/examples/proto/examplepb/wrappers.proto b/examples/internal/proto/examplepb/wrappers.proto similarity index 97% rename from examples/proto/examplepb/wrappers.proto rename to examples/internal/proto/examplepb/wrappers.proto index 48ce5a8ec6e..739e60e1f31 100644 --- a/examples/proto/examplepb/wrappers.proto +++ b/examples/internal/proto/examplepb/wrappers.proto @@ -1,6 +1,6 @@ syntax = "proto3"; option go_package = "examplepb"; -package grpc.gateway.examples.examplepb; +package grpc.gateway.examples.internal.examplepb; import "google/api/annotations.proto"; import "google/protobuf/wrappers.proto"; diff --git a/examples/proto/examplepb/wrappers.swagger.json b/examples/internal/proto/examplepb/wrappers.swagger.json similarity index 99% rename from examples/proto/examplepb/wrappers.swagger.json rename to examples/internal/proto/examplepb/wrappers.swagger.json index b6a93601d36..d42d6f3fb6b 100644 --- a/examples/proto/examplepb/wrappers.swagger.json +++ b/examples/internal/proto/examplepb/wrappers.swagger.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "title": "examples/proto/examplepb/wrappers.proto", + "title": "examples/internal/proto/examplepb/wrappers.proto", "version": "version not set" }, "consumes": [ diff --git a/examples/proto/pathenum/BUILD.bazel b/examples/internal/proto/pathenum/BUILD.bazel similarity index 91% rename from examples/proto/pathenum/BUILD.bazel rename to examples/internal/proto/pathenum/BUILD.bazel index 06d17fc4483..d4a69e0316a 100644 --- a/examples/proto/pathenum/BUILD.bazel +++ b/examples/internal/proto/pathenum/BUILD.bazel @@ -11,12 +11,12 @@ proto_library( go_proto_library( name = "pathenum_go_proto", - importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/proto/pathenum", + importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/pathenum", proto = ":pathenum_proto", ) go_library( name = "go_default_library", embed = [":pathenum_go_proto"], - importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/proto/pathenum", + importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/pathenum", ) diff --git a/examples/proto/pathenum/path_enum.pb.go b/examples/internal/proto/pathenum/path_enum.pb.go similarity index 60% rename from examples/proto/pathenum/path_enum.pb.go rename to examples/internal/proto/pathenum/path_enum.pb.go index 2a2e6a5e96e..10f5c55ddf1 100644 --- a/examples/proto/pathenum/path_enum.pb.go +++ b/examples/internal/proto/pathenum/path_enum.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: examples/proto/pathenum/path_enum.proto +// source: examples/internal/proto/pathenum/path_enum.proto package pathenum @@ -42,7 +42,7 @@ func (x PathEnum) String() string { } func (PathEnum) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_dfe1d80fc8dac3c4, []int{0} + return fileDescriptor_83f42520181de088, []int{0} } type MessagePathEnum_NestedPathEnum int32 @@ -67,7 +67,7 @@ func (x MessagePathEnum_NestedPathEnum) String() string { } func (MessagePathEnum_NestedPathEnum) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_dfe1d80fc8dac3c4, []int{0, 0} + return fileDescriptor_83f42520181de088, []int{0, 0} } type MessagePathEnum struct { @@ -80,7 +80,7 @@ func (m *MessagePathEnum) Reset() { *m = MessagePathEnum{} } func (m *MessagePathEnum) String() string { return proto.CompactTextString(m) } func (*MessagePathEnum) ProtoMessage() {} func (*MessagePathEnum) Descriptor() ([]byte, []int) { - return fileDescriptor_dfe1d80fc8dac3c4, []int{0} + return fileDescriptor_83f42520181de088, []int{0} } func (m *MessagePathEnum) XXX_Unmarshal(b []byte) error { @@ -102,26 +102,27 @@ func (m *MessagePathEnum) XXX_DiscardUnknown() { var xxx_messageInfo_MessagePathEnum proto.InternalMessageInfo func init() { - proto.RegisterEnum("grpc.gateway.examples.pathenum.PathEnum", PathEnum_name, PathEnum_value) - proto.RegisterEnum("grpc.gateway.examples.pathenum.MessagePathEnum_NestedPathEnum", MessagePathEnum_NestedPathEnum_name, MessagePathEnum_NestedPathEnum_value) - proto.RegisterType((*MessagePathEnum)(nil), "grpc.gateway.examples.pathenum.MessagePathEnum") + proto.RegisterEnum("grpc.gateway.examples.internal.pathenum.PathEnum", PathEnum_name, PathEnum_value) + proto.RegisterEnum("grpc.gateway.examples.internal.pathenum.MessagePathEnum_NestedPathEnum", MessagePathEnum_NestedPathEnum_name, MessagePathEnum_NestedPathEnum_value) + proto.RegisterType((*MessagePathEnum)(nil), "grpc.gateway.examples.internal.pathenum.MessagePathEnum") } func init() { - proto.RegisterFile("examples/proto/pathenum/path_enum.proto", fileDescriptor_dfe1d80fc8dac3c4) -} - -var fileDescriptor_dfe1d80fc8dac3c4 = []byte{ - // 175 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4f, 0xad, 0x48, 0xcc, - 0x2d, 0xc8, 0x49, 0x2d, 0xd6, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0xd7, 0x2f, 0x48, 0x2c, 0xc9, 0x48, - 0xcd, 0x2b, 0xcd, 0x05, 0x33, 0xe2, 0x41, 0x2c, 0x3d, 0xb0, 0x84, 0x90, 0x5c, 0x7a, 0x51, 0x41, - 0xb2, 0x5e, 0x7a, 0x62, 0x49, 0x6a, 0x79, 0x62, 0xa5, 0x1e, 0x4c, 0x97, 0x1e, 0x4c, 0xbd, 0x92, - 0x29, 0x17, 0xbf, 0x6f, 0x6a, 0x71, 0x71, 0x62, 0x7a, 0x6a, 0x40, 0x62, 0x49, 0x86, 0x2b, 0x48, - 0x48, 0x89, 0x8b, 0xcf, 0x2f, 0xb5, 0xb8, 0x24, 0x35, 0x05, 0x26, 0x22, 0xc4, 0xce, 0xc5, 0xec, - 0xee, 0xe1, 0x29, 0xc0, 0x00, 0x62, 0x78, 0x79, 0xfb, 0x08, 0x30, 0x6a, 0xc9, 0x70, 0x71, 0x20, - 0xcb, 0x3a, 0x3a, 0x39, 0x43, 0x64, 0x5d, 0x5c, 0xdd, 0x04, 0x18, 0x9d, 0x1c, 0xa2, 0xec, 0xd2, - 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x41, 0x2e, 0xd0, 0x4d, 0x4d, 0xce, - 0x2f, 0xae, 0x2c, 0x2e, 0x49, 0x85, 0x72, 0xa1, 0x0e, 0xd2, 0xc7, 0xe1, 0x8d, 0x24, 0x36, 0x30, - 0xdf, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xbb, 0x9a, 0x10, 0xfc, 0xe8, 0x00, 0x00, 0x00, + proto.RegisterFile("examples/internal/proto/pathenum/path_enum.proto", fileDescriptor_83f42520181de088) +} + +var fileDescriptor_83f42520181de088 = []byte{ + // 187 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0x48, 0xad, 0x48, 0xcc, + 0x2d, 0xc8, 0x49, 0x2d, 0xd6, 0xcf, 0xcc, 0x2b, 0x49, 0x2d, 0xca, 0x4b, 0xcc, 0xd1, 0x2f, 0x28, + 0xca, 0x2f, 0xc9, 0xd7, 0x2f, 0x48, 0x2c, 0xc9, 0x48, 0xcd, 0x2b, 0xcd, 0x05, 0x33, 0xe2, 0x41, + 0x2c, 0x3d, 0xb0, 0x84, 0x90, 0x7a, 0x7a, 0x51, 0x41, 0xb2, 0x5e, 0x7a, 0x62, 0x49, 0x6a, 0x79, + 0x62, 0xa5, 0x1e, 0x4c, 0xbb, 0x1e, 0x4c, 0xbb, 0x1e, 0x4c, 0xa3, 0x92, 0x29, 0x17, 0xbf, 0x6f, + 0x6a, 0x71, 0x71, 0x62, 0x7a, 0x6a, 0x40, 0x62, 0x49, 0x86, 0x2b, 0x48, 0x48, 0x89, 0x8b, 0xcf, + 0x2f, 0xb5, 0xb8, 0x24, 0x35, 0x05, 0x26, 0x22, 0xc4, 0xce, 0xc5, 0xec, 0xee, 0xe1, 0x29, 0xc0, + 0x00, 0x62, 0x78, 0x79, 0xfb, 0x08, 0x30, 0x6a, 0xc9, 0x70, 0x71, 0x20, 0xcb, 0x3a, 0x3a, 0x39, + 0x43, 0x64, 0x5d, 0x5c, 0xdd, 0x04, 0x18, 0x9d, 0x3c, 0xa3, 0xdc, 0xd3, 0x33, 0x4b, 0x32, 0x4a, + 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x41, 0x4e, 0xd1, 0x4d, 0x4d, 0xce, 0x2f, 0xae, 0x2c, 0x2e, + 0x49, 0x85, 0x72, 0xa1, 0x2e, 0xd3, 0x27, 0xe4, 0xb1, 0x24, 0x36, 0x30, 0xdf, 0x18, 0x10, 0x00, + 0x00, 0xff, 0xff, 0xd1, 0xc7, 0x26, 0x4c, 0x03, 0x01, 0x00, 0x00, } diff --git a/examples/proto/pathenum/path_enum.proto b/examples/internal/proto/pathenum/path_enum.proto similarity index 71% rename from examples/proto/pathenum/path_enum.proto rename to examples/internal/proto/pathenum/path_enum.proto index 5c926ff7132..76837929de8 100644 --- a/examples/proto/pathenum/path_enum.proto +++ b/examples/internal/proto/pathenum/path_enum.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -option go_package = "github.com/grpc-ecosystem/grpc-gateway/examples/proto/pathenum"; -package grpc.gateway.examples.pathenum; +option go_package = "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/pathenum"; +package grpc.gateway.examples.internal.pathenum; enum PathEnum { ABC = 0; diff --git a/examples/proto/sub/BUILD.bazel b/examples/internal/proto/sub/BUILD.bazel similarity index 92% rename from examples/proto/sub/BUILD.bazel rename to examples/internal/proto/sub/BUILD.bazel index 4500b5689d9..947ab3e45c7 100644 --- a/examples/proto/sub/BUILD.bazel +++ b/examples/internal/proto/sub/BUILD.bazel @@ -11,12 +11,12 @@ proto_library( go_proto_library( name = "sub_go_proto", - importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/proto/sub", + importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/sub", proto = ":sub_proto", ) go_library( name = "go_default_library", embed = [":sub_go_proto"], - importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/proto/sub", + importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/sub", ) diff --git a/examples/proto/sub/message.pb.go b/examples/internal/proto/sub/message.pb.go similarity index 65% rename from examples/proto/sub/message.pb.go rename to examples/internal/proto/sub/message.pb.go index 093f92acf00..ffca991b93d 100644 --- a/examples/proto/sub/message.pb.go +++ b/examples/internal/proto/sub/message.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: examples/proto/sub/message.proto +// source: examples/internal/proto/sub/message.proto package sub @@ -31,7 +31,7 @@ func (m *StringMessage) Reset() { *m = StringMessage{} } func (m *StringMessage) String() string { return proto.CompactTextString(m) } func (*StringMessage) ProtoMessage() {} func (*StringMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_fcc527d41fdbced2, []int{0} + return fileDescriptor_897f299135d10a90, []int{0} } func (m *StringMessage) XXX_Unmarshal(b []byte) error { @@ -60,19 +60,21 @@ func (m *StringMessage) GetValue() string { } func init() { - proto.RegisterType((*StringMessage)(nil), "grpc.gateway.examples.sub.StringMessage") + proto.RegisterType((*StringMessage)(nil), "grpc.gateway.examples.internal.sub.StringMessage") } -func init() { proto.RegisterFile("examples/proto/sub/message.proto", fileDescriptor_fcc527d41fdbced2) } +func init() { + proto.RegisterFile("examples/internal/proto/sub/message.proto", fileDescriptor_897f299135d10a90) +} -var fileDescriptor_fcc527d41fdbced2 = []byte{ - // 114 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x48, 0xad, 0x48, 0xcc, - 0x2d, 0xc8, 0x49, 0x2d, 0xd6, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0xd7, 0x2f, 0x2e, 0x4d, 0xd2, 0xcf, - 0x4d, 0x2d, 0x2e, 0x4e, 0x4c, 0x4f, 0xd5, 0x03, 0x8b, 0x08, 0x49, 0xa6, 0x17, 0x15, 0x24, 0xeb, - 0xa5, 0x27, 0x96, 0xa4, 0x96, 0x27, 0x56, 0xea, 0xc1, 0x94, 0xeb, 0x15, 0x97, 0x26, 0x29, 0xa9, - 0x72, 0xf1, 0x06, 0x97, 0x14, 0x65, 0xe6, 0xa5, 0xfb, 0x42, 0x74, 0x08, 0x89, 0x70, 0xb1, 0x96, - 0x25, 0xe6, 0x94, 0xa6, 0x4a, 0x30, 0x2a, 0x30, 0x69, 0x70, 0x06, 0x41, 0x38, 0x4e, 0xac, 0x51, - 0xcc, 0xc5, 0xa5, 0x49, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6c, 0x00, 0x25, 0x33, 0x6b, 0x00, - 0x00, 0x00, +var fileDescriptor_897f299135d10a90 = []byte{ + // 126 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4c, 0xad, 0x48, 0xcc, + 0x2d, 0xc8, 0x49, 0x2d, 0xd6, 0xcf, 0xcc, 0x2b, 0x49, 0x2d, 0xca, 0x4b, 0xcc, 0xd1, 0x2f, 0x28, + 0xca, 0x2f, 0xc9, 0xd7, 0x2f, 0x2e, 0x4d, 0xd2, 0xcf, 0x4d, 0x2d, 0x2e, 0x4e, 0x4c, 0x4f, 0xd5, + 0x03, 0x8b, 0x08, 0x29, 0xa5, 0x17, 0x15, 0x24, 0xeb, 0xa5, 0x27, 0x96, 0xa4, 0x96, 0x27, 0x56, + 0xea, 0xc1, 0xf4, 0xe9, 0xc1, 0xf4, 0xe9, 0x15, 0x97, 0x26, 0x29, 0xa9, 0x72, 0xf1, 0x06, 0x97, + 0x14, 0x65, 0xe6, 0xa5, 0xfb, 0x42, 0xb4, 0x0a, 0x89, 0x70, 0xb1, 0x96, 0x25, 0xe6, 0x94, 0xa6, + 0x4a, 0x30, 0x2a, 0x30, 0x69, 0x70, 0x06, 0x41, 0x38, 0x4e, 0xac, 0x51, 0xcc, 0xc5, 0xa5, 0x49, + 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7a, 0x14, 0x0c, 0x22, 0x7d, 0x00, 0x00, 0x00, } diff --git a/examples/proto/sub/message.proto b/examples/internal/proto/sub/message.proto similarity index 69% rename from examples/proto/sub/message.proto rename to examples/internal/proto/sub/message.proto index 7702a930d98..d3e67ee6038 100644 --- a/examples/proto/sub/message.proto +++ b/examples/internal/proto/sub/message.proto @@ -1,6 +1,6 @@ syntax = "proto2"; option go_package = "sub"; -package grpc.gateway.examples.sub; +package grpc.gateway.examples.internal.sub; message StringMessage { required string value = 1; diff --git a/examples/proto/sub2/BUILD.bazel b/examples/internal/proto/sub2/BUILD.bazel similarity index 92% rename from examples/proto/sub2/BUILD.bazel rename to examples/internal/proto/sub2/BUILD.bazel index 780d550ccbb..570d10c3c9f 100644 --- a/examples/proto/sub2/BUILD.bazel +++ b/examples/internal/proto/sub2/BUILD.bazel @@ -11,12 +11,12 @@ proto_library( go_proto_library( name = "sub2_go_proto", - importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/proto/sub2", + importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/sub2", proto = ":sub2_proto", ) go_library( name = "go_default_library", embed = [":sub2_go_proto"], - importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/proto/sub2", + importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/sub2", ) diff --git a/examples/proto/sub2/message.pb.go b/examples/internal/proto/sub2/message.pb.go similarity index 63% rename from examples/proto/sub2/message.pb.go rename to examples/internal/proto/sub2/message.pb.go index afda91bd768..60925d0eee5 100644 --- a/examples/proto/sub2/message.pb.go +++ b/examples/internal/proto/sub2/message.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: examples/proto/sub2/message.proto +// source: examples/internal/proto/sub2/message.proto package sub2 @@ -31,7 +31,7 @@ func (m *IdMessage) Reset() { *m = IdMessage{} } func (m *IdMessage) String() string { return proto.CompactTextString(m) } func (*IdMessage) ProtoMessage() {} func (*IdMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_3490899b8414eb79, []int{0} + return fileDescriptor_050dd68add910843, []int{0} } func (m *IdMessage) XXX_Unmarshal(b []byte) error { @@ -63,17 +63,19 @@ func init() { proto.RegisterType((*IdMessage)(nil), "sub2.IdMessage") } -func init() { proto.RegisterFile("examples/proto/sub2/message.proto", fileDescriptor_3490899b8414eb79) } +func init() { + proto.RegisterFile("examples/internal/proto/sub2/message.proto", fileDescriptor_050dd68add910843) +} -var fileDescriptor_3490899b8414eb79 = []byte{ - // 130 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4c, 0xad, 0x48, 0xcc, - 0x2d, 0xc8, 0x49, 0x2d, 0xd6, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0xd7, 0x2f, 0x2e, 0x4d, 0x32, 0xd2, - 0xcf, 0x4d, 0x2d, 0x2e, 0x4e, 0x4c, 0x4f, 0xd5, 0x03, 0x0b, 0x09, 0xb1, 0x80, 0xc4, 0x94, 0xe4, - 0xb9, 0x38, 0x3d, 0x53, 0x7c, 0x21, 0x12, 0x42, 0x42, 0x5c, 0x2c, 0xa5, 0xa5, 0x99, 0x29, 0x12, - 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x60, 0xb6, 0x93, 0x4d, 0x94, 0x55, 0x7a, 0x66, 0x49, 0x46, - 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x7a, 0x51, 0x41, 0xb2, 0x6e, 0x6a, 0x72, 0x7e, 0x71, - 0x65, 0x71, 0x49, 0x2a, 0x94, 0x9b, 0x9e, 0x58, 0x92, 0x5a, 0x9e, 0x58, 0xa9, 0x8f, 0xc5, 0xca, - 0x24, 0x36, 0x30, 0xdb, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xfd, 0x49, 0xe7, 0x2f, 0x90, 0x00, - 0x00, 0x00, +var fileDescriptor_050dd68add910843 = []byte{ + // 139 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4a, 0xad, 0x48, 0xcc, + 0x2d, 0xc8, 0x49, 0x2d, 0xd6, 0xcf, 0xcc, 0x2b, 0x49, 0x2d, 0xca, 0x4b, 0xcc, 0xd1, 0x2f, 0x28, + 0xca, 0x2f, 0xc9, 0xd7, 0x2f, 0x2e, 0x4d, 0x32, 0xd2, 0xcf, 0x4d, 0x2d, 0x2e, 0x4e, 0x4c, 0x4f, + 0xd5, 0x03, 0x0b, 0x09, 0xb1, 0x80, 0xc4, 0x94, 0xe4, 0xb9, 0x38, 0x3d, 0x53, 0x7c, 0x21, 0x12, + 0x42, 0x42, 0x5c, 0x2c, 0xa5, 0xa5, 0x99, 0x29, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x60, + 0xb6, 0x93, 0x6b, 0x94, 0x73, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, + 0x7a, 0x51, 0x41, 0xb2, 0x6e, 0x6a, 0x72, 0x7e, 0x71, 0x65, 0x71, 0x49, 0x2a, 0x94, 0x9b, 0x9e, + 0x58, 0x92, 0x5a, 0x9e, 0x58, 0xa9, 0x8f, 0xcf, 0xee, 0x24, 0x36, 0x30, 0xdb, 0x18, 0x10, 0x00, + 0x00, 0xff, 0xff, 0xdd, 0xb8, 0xdb, 0x58, 0xa2, 0x00, 0x00, 0x00, } diff --git a/examples/proto/sub2/message.proto b/examples/internal/proto/sub2/message.proto similarity index 83% rename from examples/proto/sub2/message.proto rename to examples/internal/proto/sub2/message.proto index 59c9bd9f9fc..77f10e80315 100644 --- a/examples/proto/sub2/message.proto +++ b/examples/internal/proto/sub2/message.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -option go_package = "github.com/grpc-ecosystem/grpc-gateway/examples/proto/sub2"; +option go_package = "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/sub2"; package sub2; message IdMessage { diff --git a/examples/server/BUILD.bazel b/examples/internal/server/BUILD.bazel similarity index 87% rename from examples/server/BUILD.bazel rename to examples/internal/server/BUILD.bazel index e5b6721790a..4615adb1494 100644 --- a/examples/server/BUILD.bazel +++ b/examples/internal/server/BUILD.bazel @@ -14,11 +14,11 @@ go_library( "responsebody.go", "unannotatedecho.go", ], - importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/server", + importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/internal/server", deps = [ - "//examples/proto/examplepb:go_default_library", - "//examples/proto/sub:go_default_library", - "//examples/proto/sub2:go_default_library", + "//examples/internal/proto/examplepb:go_default_library", + "//examples/internal/proto/sub:go_default_library", + "//examples/internal/proto/sub2:go_default_library", "@com_github_golang_glog//:go_default_library", "@com_github_golang_protobuf//proto:go_default_library", "@com_github_golang_protobuf//protoc-gen-go/generator:go_default_library_gen", diff --git a/examples/server/a_bit_of_everything.go b/examples/internal/server/a_bit_of_everything.go similarity index 97% rename from examples/server/a_bit_of_everything.go rename to examples/internal/server/a_bit_of_everything.go index 0b87ce02639..ee686c22cd0 100644 --- a/examples/server/a_bit_of_everything.go +++ b/examples/internal/server/a_bit_of_everything.go @@ -11,9 +11,9 @@ import ( "github.com/golang/protobuf/ptypes/duration" "github.com/golang/protobuf/ptypes/empty" "github.com/golang/protobuf/ptypes/wrappers" - examples "github.com/grpc-ecosystem/grpc-gateway/examples/proto/examplepb" - "github.com/grpc-ecosystem/grpc-gateway/examples/proto/sub" - "github.com/grpc-ecosystem/grpc-gateway/examples/proto/sub2" + examples "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/examplepb" + "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/sub" + "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/sub2" "github.com/rogpeppe/fastuuid" "google.golang.org/genproto/googleapis/rpc/errdetails" "google.golang.org/grpc" diff --git a/examples/server/echo.go b/examples/internal/server/echo.go similarity index 91% rename from examples/server/echo.go rename to examples/internal/server/echo.go index 249aeb0b211..8b749b9060e 100644 --- a/examples/server/echo.go +++ b/examples/internal/server/echo.go @@ -4,7 +4,7 @@ import ( "context" "github.com/golang/glog" - examples "github.com/grpc-ecosystem/grpc-gateway/examples/proto/examplepb" + examples "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/examplepb" "google.golang.org/grpc" "google.golang.org/grpc/metadata" ) diff --git a/examples/server/fieldmask_helper.go b/examples/internal/server/fieldmask_helper.go similarity index 100% rename from examples/server/fieldmask_helper.go rename to examples/internal/server/fieldmask_helper.go diff --git a/examples/server/fieldmask_helper_test.go b/examples/internal/server/fieldmask_helper_test.go similarity index 100% rename from examples/server/fieldmask_helper_test.go rename to examples/internal/server/fieldmask_helper_test.go diff --git a/examples/server/flow_combination.go b/examples/internal/server/flow_combination.go similarity index 96% rename from examples/server/flow_combination.go rename to examples/internal/server/flow_combination.go index 516510f4bc6..58d68053a79 100644 --- a/examples/server/flow_combination.go +++ b/examples/internal/server/flow_combination.go @@ -4,7 +4,7 @@ import ( "context" "io" - examples "github.com/grpc-ecosystem/grpc-gateway/examples/proto/examplepb" + examples "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/examplepb" ) type flowCombinationServer struct{} diff --git a/examples/server/main.go b/examples/internal/server/main.go similarity index 91% rename from examples/server/main.go rename to examples/internal/server/main.go index d595c367613..5f7912eff3e 100644 --- a/examples/server/main.go +++ b/examples/internal/server/main.go @@ -5,7 +5,7 @@ import ( "net" "github.com/golang/glog" - examples "github.com/grpc-ecosystem/grpc-gateway/examples/proto/examplepb" + examples "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/examplepb" "google.golang.org/grpc" ) diff --git a/examples/server/non_standard_names.go b/examples/internal/server/non_standard_names.go similarity index 93% rename from examples/server/non_standard_names.go rename to examples/internal/server/non_standard_names.go index c448259a909..414e3d8e0de 100644 --- a/examples/server/non_standard_names.go +++ b/examples/internal/server/non_standard_names.go @@ -4,7 +4,7 @@ import ( "context" "github.com/golang/glog" - examples "github.com/grpc-ecosystem/grpc-gateway/examples/proto/examplepb" + examples "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/examplepb" ) // Implements NonStandardServiceServer diff --git a/examples/server/responsebody.go b/examples/internal/server/responsebody.go similarity index 93% rename from examples/server/responsebody.go rename to examples/internal/server/responsebody.go index e5dc800a423..8df32ede5fa 100644 --- a/examples/server/responsebody.go +++ b/examples/internal/server/responsebody.go @@ -3,7 +3,7 @@ package server import ( "context" - examples "github.com/grpc-ecosystem/grpc-gateway/examples/proto/examplepb" + examples "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/examplepb" ) // Implements of ResponseBodyServiceServer diff --git a/examples/server/unannotatedecho.go b/examples/internal/server/unannotatedecho.go similarity index 92% rename from examples/server/unannotatedecho.go rename to examples/internal/server/unannotatedecho.go index bf3bff0dfc1..b99392bf491 100644 --- a/examples/server/unannotatedecho.go +++ b/examples/internal/server/unannotatedecho.go @@ -2,8 +2,9 @@ package server import ( "context" + "github.com/golang/glog" - examples "github.com/grpc-ecosystem/grpc-gateway/examples/proto/examplepb" + examples "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/examplepb" "google.golang.org/grpc" "google.golang.org/grpc/metadata" ) diff --git a/examples/proto/examplepb/unannotated_echo_service.yaml b/examples/proto/examplepb/unannotated_echo_service.yaml deleted file mode 100644 index cd3a978d897..00000000000 --- a/examples/proto/examplepb/unannotated_echo_service.yaml +++ /dev/null @@ -1,15 +0,0 @@ -type: google.api.Service -config_version: 3 - -http: - rules: - - selector: grpc.gateway.examples.examplepb.UnannotatedEchoService.Echo - post: "/v1/example/echo/{id}" - additional_bindings: - - get: "/v1/example/echo/{id}/{num}" - - selector: grpc.gateway.examples.examplepb.UnannotatedEchoService.EchoBody - post: "/v1/example/echo_body" - body: "*" - - selector: grpc.gateway.examples.examplepb.UnannotatedEchoService.EchoDelete - delete: "/v1/example/echo_delete" - diff --git a/fuzzit.sh b/fuzzit.sh index e5df5f3f843..43c0f23918b 100755 --- a/fuzzit.sh +++ b/fuzzit.sh @@ -9,9 +9,9 @@ cd go-fuzz go get ./... go build ./... -#go get -v -u ./protoc-gen-grpc-gateway/httprule +#go get -v -u ./internal/httprule cd /src/grpc-gateway -go-fuzz-build -libfuzzer -o parse-http-rule.a ./protoc-gen-grpc-gateway/httprule +go-fuzz-build -libfuzzer -o parse-http-rule.a ./internal/httprule clang-9 -fsanitize=fuzzer parse-http-rule.a -o parse-http-rule wget -q -O fuzzit https://github.com/fuzzitdev/fuzzit/releases/download/v2.4.29/fuzzit_Linux_x86_64 diff --git a/codegenerator/BUILD.bazel b/internal/codegenerator/BUILD.bazel similarity index 81% rename from codegenerator/BUILD.bazel rename to internal/codegenerator/BUILD.bazel index 651177fa157..4682f41e46d 100644 --- a/codegenerator/BUILD.bazel +++ b/internal/codegenerator/BUILD.bazel @@ -1,6 +1,6 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -package(default_visibility = ["//:generators"]) +package(default_visibility = ["//visibility:public"]) go_library( name = "go_default_library", @@ -8,7 +8,7 @@ go_library( "doc.go", "parse_req.go", ], - importpath = "github.com/grpc-ecosystem/grpc-gateway/codegenerator", + importpath = "github.com/grpc-ecosystem/grpc-gateway/internal/codegenerator", deps = [ "@com_github_golang_protobuf//proto:go_default_library", "@io_bazel_rules_go//proto/wkt:compiler_plugin_go_proto", diff --git a/codegenerator/doc.go b/internal/codegenerator/doc.go similarity index 100% rename from codegenerator/doc.go rename to internal/codegenerator/doc.go diff --git a/codegenerator/parse_req.go b/internal/codegenerator/parse_req.go similarity index 100% rename from codegenerator/parse_req.go rename to internal/codegenerator/parse_req.go diff --git a/codegenerator/parse_req_test.go b/internal/codegenerator/parse_req_test.go similarity index 95% rename from codegenerator/parse_req_test.go rename to internal/codegenerator/parse_req_test.go index 5f37aad9589..c6d439c8047 100644 --- a/codegenerator/parse_req_test.go +++ b/internal/codegenerator/parse_req_test.go @@ -10,7 +10,7 @@ import ( "github.com/golang/protobuf/proto" plugin "github.com/golang/protobuf/protoc-gen-go/plugin" - "github.com/grpc-ecosystem/grpc-gateway/codegenerator" + "github.com/grpc-ecosystem/grpc-gateway/internal/codegenerator" ) var parseReqTests = []struct { diff --git a/protoc-gen-grpc-gateway/descriptor/BUILD.bazel b/internal/descriptor/BUILD.bazel similarity index 82% rename from protoc-gen-grpc-gateway/descriptor/BUILD.bazel rename to internal/descriptor/BUILD.bazel index cfbdc277a8c..8d1df906f79 100644 --- a/protoc-gen-grpc-gateway/descriptor/BUILD.bazel +++ b/internal/descriptor/BUILD.bazel @@ -1,6 +1,6 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -package(default_visibility = ["//:generators"]) +package(default_visibility = ["//visibility:public"]) go_library( name = "go_default_library", @@ -11,9 +11,9 @@ go_library( "services.go", "types.go", ], - importpath = "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/descriptor", + importpath = "github.com/grpc-ecosystem/grpc-gateway/internal/descriptor", deps = [ - "//protoc-gen-grpc-gateway/httprule:go_default_library", + "//internal/httprule:go_default_library", "@com_github_ghodss_yaml//:go_default_library", "@com_github_golang_glog//:go_default_library", "@com_github_golang_protobuf//jsonpb:go_default_library_gen", @@ -36,7 +36,7 @@ go_test( ], embed = [":go_default_library"], deps = [ - "//protoc-gen-grpc-gateway/httprule:go_default_library", + "//internal/httprule:go_default_library", "@com_github_golang_protobuf//proto:go_default_library", "@io_bazel_rules_go//proto/wkt:compiler_plugin_go_proto", "@io_bazel_rules_go//proto/wkt:descriptor_go_proto", diff --git a/protoc-gen-grpc-gateway/descriptor/grpc_api_configuration.go b/internal/descriptor/grpc_api_configuration.go similarity index 100% rename from protoc-gen-grpc-gateway/descriptor/grpc_api_configuration.go rename to internal/descriptor/grpc_api_configuration.go diff --git a/protoc-gen-grpc-gateway/descriptor/grpc_api_configuration_test.go b/internal/descriptor/grpc_api_configuration_test.go similarity index 100% rename from protoc-gen-grpc-gateway/descriptor/grpc_api_configuration_test.go rename to internal/descriptor/grpc_api_configuration_test.go diff --git a/protoc-gen-grpc-gateway/descriptor/grpc_api_service.go b/internal/descriptor/grpc_api_service.go similarity index 100% rename from protoc-gen-grpc-gateway/descriptor/grpc_api_service.go rename to internal/descriptor/grpc_api_service.go diff --git a/protoc-gen-grpc-gateway/descriptor/registry.go b/internal/descriptor/registry.go similarity index 100% rename from protoc-gen-grpc-gateway/descriptor/registry.go rename to internal/descriptor/registry.go diff --git a/protoc-gen-grpc-gateway/descriptor/registry_test.go b/internal/descriptor/registry_test.go similarity index 100% rename from protoc-gen-grpc-gateway/descriptor/registry_test.go rename to internal/descriptor/registry_test.go diff --git a/protoc-gen-grpc-gateway/descriptor/services.go b/internal/descriptor/services.go similarity index 98% rename from protoc-gen-grpc-gateway/descriptor/services.go rename to internal/descriptor/services.go index 8916d316d18..2f9103eef4f 100644 --- a/protoc-gen-grpc-gateway/descriptor/services.go +++ b/internal/descriptor/services.go @@ -7,7 +7,7 @@ import ( "github.com/golang/glog" "github.com/golang/protobuf/proto" descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" - "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/httprule" + "github.com/grpc-ecosystem/grpc-gateway/internal/httprule" options "google.golang.org/genproto/googleapis/api/annotations" ) @@ -20,7 +20,7 @@ func (r *Registry) loadServices(file *File) error { for _, sd := range file.GetService() { glog.V(2).Infof("Registering %s", sd.GetName()) svc := &Service{ - File: file, + File: file, ServiceDescriptorProto: sd, } for _, md := range sd.GetMethod() { diff --git a/protoc-gen-grpc-gateway/descriptor/services_test.go b/internal/descriptor/services_test.go similarity index 99% rename from protoc-gen-grpc-gateway/descriptor/services_test.go rename to internal/descriptor/services_test.go index 1ccb8fbef0a..26329fd2a08 100644 --- a/protoc-gen-grpc-gateway/descriptor/services_test.go +++ b/internal/descriptor/services_test.go @@ -6,7 +6,7 @@ import ( "github.com/golang/protobuf/proto" descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" - "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/httprule" + "github.com/grpc-ecosystem/grpc-gateway/internal/httprule" ) func compilePath(t *testing.T, path string) httprule.Template { diff --git a/protoc-gen-grpc-gateway/descriptor/types.go b/internal/descriptor/types.go similarity index 99% rename from protoc-gen-grpc-gateway/descriptor/types.go rename to internal/descriptor/types.go index 4aa75f85dbf..fcdb9940b47 100644 --- a/protoc-gen-grpc-gateway/descriptor/types.go +++ b/internal/descriptor/types.go @@ -6,7 +6,7 @@ import ( "github.com/golang/protobuf/protoc-gen-go/descriptor" gogen "github.com/golang/protobuf/protoc-gen-go/generator" - "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/httprule" + "github.com/grpc-ecosystem/grpc-gateway/internal/httprule" ) // IsWellKnownType returns true if the provided fully qualified type name is considered 'well-known'. diff --git a/protoc-gen-grpc-gateway/descriptor/types_test.go b/internal/descriptor/types_test.go similarity index 100% rename from protoc-gen-grpc-gateway/descriptor/types_test.go rename to internal/descriptor/types_test.go diff --git a/protoc-gen-grpc-gateway/generator/BUILD.bazel b/internal/generator/BUILD.bazel similarity index 51% rename from protoc-gen-grpc-gateway/generator/BUILD.bazel rename to internal/generator/BUILD.bazel index 6cb2162d847..17f3d31c5dd 100644 --- a/protoc-gen-grpc-gateway/generator/BUILD.bazel +++ b/internal/generator/BUILD.bazel @@ -1,13 +1,13 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library") -package(default_visibility = ["//:generators"]) +package(default_visibility = ["//visibility:public"]) go_library( name = "go_default_library", srcs = ["generator.go"], - importpath = "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/generator", + importpath = "github.com/grpc-ecosystem/grpc-gateway/internal/generator", deps = [ - "//protoc-gen-grpc-gateway/descriptor:go_default_library", + "//internal/descriptor:go_default_library", "@io_bazel_rules_go//proto/wkt:compiler_plugin_go_proto", ], ) diff --git a/protoc-gen-grpc-gateway/generator/generator.go b/internal/generator/generator.go similarity index 83% rename from protoc-gen-grpc-gateway/generator/generator.go rename to internal/generator/generator.go index df55da44445..5d03cff15d0 100644 --- a/protoc-gen-grpc-gateway/generator/generator.go +++ b/internal/generator/generator.go @@ -3,7 +3,7 @@ package generator import ( plugin "github.com/golang/protobuf/protoc-gen-go/plugin" - "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/descriptor" + "github.com/grpc-ecosystem/grpc-gateway/internal/descriptor" ) // Generator is an abstraction of code generators. diff --git a/protoc-gen-grpc-gateway/httprule/BUILD.bazel b/internal/httprule/BUILD.bazel similarity index 81% rename from protoc-gen-grpc-gateway/httprule/BUILD.bazel rename to internal/httprule/BUILD.bazel index 89f94a14b45..2064217e6a6 100644 --- a/protoc-gen-grpc-gateway/httprule/BUILD.bazel +++ b/internal/httprule/BUILD.bazel @@ -1,6 +1,6 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -package(default_visibility = ["//:generators"]) +package(default_visibility = ["//visibility:public"]) go_library( name = "go_default_library", @@ -9,7 +9,7 @@ go_library( "parse.go", "types.go", ], - importpath = "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/httprule", + importpath = "github.com/grpc-ecosystem/grpc-gateway/internal/httprule", deps = [ "//utilities:go_default_library", "@com_github_golang_glog//:go_default_library", diff --git a/protoc-gen-grpc-gateway/httprule/compile.go b/internal/httprule/compile.go similarity index 100% rename from protoc-gen-grpc-gateway/httprule/compile.go rename to internal/httprule/compile.go diff --git a/protoc-gen-grpc-gateway/httprule/compile_test.go b/internal/httprule/compile_test.go similarity index 100% rename from protoc-gen-grpc-gateway/httprule/compile_test.go rename to internal/httprule/compile_test.go diff --git a/protoc-gen-grpc-gateway/httprule/fuzz.go b/internal/httprule/fuzz.go similarity index 100% rename from protoc-gen-grpc-gateway/httprule/fuzz.go rename to internal/httprule/fuzz.go diff --git a/protoc-gen-grpc-gateway/httprule/parse.go b/internal/httprule/parse.go similarity index 100% rename from protoc-gen-grpc-gateway/httprule/parse.go rename to internal/httprule/parse.go diff --git a/protoc-gen-grpc-gateway/httprule/parse_test.go b/internal/httprule/parse_test.go similarity index 100% rename from protoc-gen-grpc-gateway/httprule/parse_test.go rename to internal/httprule/parse_test.go diff --git a/protoc-gen-grpc-gateway/httprule/types.go b/internal/httprule/types.go similarity index 100% rename from protoc-gen-grpc-gateway/httprule/types.go rename to internal/httprule/types.go diff --git a/protoc-gen-grpc-gateway/httprule/types_test.go b/internal/httprule/types_test.go similarity index 100% rename from protoc-gen-grpc-gateway/httprule/types_test.go rename to internal/httprule/types_test.go diff --git a/protoc-gen-grpc-gateway/BUILD.bazel b/protoc-gen-grpc-gateway/BUILD.bazel index cb772efe9e1..711e038c368 100644 --- a/protoc-gen-grpc-gateway/BUILD.bazel +++ b/protoc-gen-grpc-gateway/BUILD.bazel @@ -8,9 +8,9 @@ go_library( srcs = ["main.go"], importpath = "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway", deps = [ - "//codegenerator:go_default_library", - "//protoc-gen-grpc-gateway/descriptor:go_default_library", - "//protoc-gen-grpc-gateway/gengateway:go_default_library", + "//internal/codegenerator:go_default_library", + "//internal/descriptor:go_default_library", + "//protoc-gen-grpc-gateway/internal/gengateway:go_default_library", "@com_github_golang_glog//:go_default_library", "@com_github_golang_protobuf//proto:go_default_library", "@io_bazel_rules_go//proto/wkt:compiler_plugin_go_proto", diff --git a/protoc-gen-grpc-gateway/gengateway/BUILD.bazel b/protoc-gen-grpc-gateway/internal/gengateway/BUILD.bazel similarity index 77% rename from protoc-gen-grpc-gateway/gengateway/BUILD.bazel rename to protoc-gen-grpc-gateway/internal/gengateway/BUILD.bazel index 316010f500d..b3528a9abb3 100644 --- a/protoc-gen-grpc-gateway/gengateway/BUILD.bazel +++ b/protoc-gen-grpc-gateway/internal/gengateway/BUILD.bazel @@ -9,10 +9,10 @@ go_library( "generator.go", "template.go", ], - importpath = "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/gengateway", + importpath = "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/internal/gengateway", deps = [ - "//protoc-gen-grpc-gateway/descriptor:go_default_library", - "//protoc-gen-grpc-gateway/generator:go_default_library", + "//internal/descriptor:go_default_library", + "//internal/generator:go_default_library", "//utilities:go_default_library", "@com_github_golang_glog//:go_default_library", "@com_github_golang_protobuf//proto:go_default_library", @@ -30,8 +30,8 @@ go_test( ], embed = [":go_default_library"], deps = [ - "//protoc-gen-grpc-gateway/descriptor:go_default_library", - "//protoc-gen-grpc-gateway/httprule:go_default_library", + "//internal/descriptor:go_default_library", + "//internal/httprule:go_default_library", "@com_github_golang_protobuf//proto:go_default_library", "@io_bazel_rules_go//proto/wkt:descriptor_go_proto", ], diff --git a/protoc-gen-grpc-gateway/gengateway/doc.go b/protoc-gen-grpc-gateway/internal/gengateway/doc.go similarity index 100% rename from protoc-gen-grpc-gateway/gengateway/doc.go rename to protoc-gen-grpc-gateway/internal/gengateway/doc.go diff --git a/protoc-gen-grpc-gateway/gengateway/generator.go b/protoc-gen-grpc-gateway/internal/gengateway/generator.go similarity index 96% rename from protoc-gen-grpc-gateway/gengateway/generator.go rename to protoc-gen-grpc-gateway/internal/gengateway/generator.go index 0b6bfbd2b93..d687f32be5b 100644 --- a/protoc-gen-grpc-gateway/gengateway/generator.go +++ b/protoc-gen-grpc-gateway/internal/gengateway/generator.go @@ -11,8 +11,8 @@ import ( "github.com/golang/glog" "github.com/golang/protobuf/proto" plugin "github.com/golang/protobuf/protoc-gen-go/plugin" - "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/descriptor" - gen "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/generator" + "github.com/grpc-ecosystem/grpc-gateway/internal/descriptor" + gen "github.com/grpc-ecosystem/grpc-gateway/internal/generator" ) var ( diff --git a/protoc-gen-grpc-gateway/gengateway/generator_test.go b/protoc-gen-grpc-gateway/internal/gengateway/generator_test.go similarity index 98% rename from protoc-gen-grpc-gateway/gengateway/generator_test.go rename to protoc-gen-grpc-gateway/internal/gengateway/generator_test.go index 39e5f141dbe..99d8ae0125d 100644 --- a/protoc-gen-grpc-gateway/gengateway/generator_test.go +++ b/protoc-gen-grpc-gateway/internal/gengateway/generator_test.go @@ -7,7 +7,7 @@ import ( "github.com/golang/protobuf/proto" protodescriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" - "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/descriptor" + "github.com/grpc-ecosystem/grpc-gateway/internal/descriptor" ) func newExampleFileDescriptor() *descriptor.File { diff --git a/protoc-gen-grpc-gateway/gengateway/template.go b/protoc-gen-grpc-gateway/internal/gengateway/template.go similarity index 99% rename from protoc-gen-grpc-gateway/gengateway/template.go rename to protoc-gen-grpc-gateway/internal/gengateway/template.go index 1d3d3ca8f19..fd5cc11f9be 100644 --- a/protoc-gen-grpc-gateway/gengateway/template.go +++ b/protoc-gen-grpc-gateway/internal/gengateway/template.go @@ -9,7 +9,7 @@ import ( "github.com/golang/glog" generator2 "github.com/golang/protobuf/protoc-gen-go/generator" - "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/descriptor" + "github.com/grpc-ecosystem/grpc-gateway/internal/descriptor" "github.com/grpc-ecosystem/grpc-gateway/utilities" ) diff --git a/protoc-gen-grpc-gateway/gengateway/template_test.go b/protoc-gen-grpc-gateway/internal/gengateway/template_test.go similarity index 99% rename from protoc-gen-grpc-gateway/gengateway/template_test.go rename to protoc-gen-grpc-gateway/internal/gengateway/template_test.go index 69809792b4c..628d53220dd 100644 --- a/protoc-gen-grpc-gateway/gengateway/template_test.go +++ b/protoc-gen-grpc-gateway/internal/gengateway/template_test.go @@ -6,8 +6,8 @@ import ( "github.com/golang/protobuf/proto" protodescriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" - "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/descriptor" - "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/httprule" + "github.com/grpc-ecosystem/grpc-gateway/internal/descriptor" + "github.com/grpc-ecosystem/grpc-gateway/internal/httprule" ) func crossLinkFixture(f *descriptor.File) *descriptor.File { diff --git a/protoc-gen-grpc-gateway/main.go b/protoc-gen-grpc-gateway/main.go index 291ba7deb2f..f3ed3ae726e 100644 --- a/protoc-gen-grpc-gateway/main.go +++ b/protoc-gen-grpc-gateway/main.go @@ -17,9 +17,9 @@ import ( "github.com/golang/glog" "github.com/golang/protobuf/proto" plugin "github.com/golang/protobuf/protoc-gen-go/plugin" - "github.com/grpc-ecosystem/grpc-gateway/codegenerator" - "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/descriptor" - "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/gengateway" + "github.com/grpc-ecosystem/grpc-gateway/internal/codegenerator" + "github.com/grpc-ecosystem/grpc-gateway/internal/descriptor" + "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/internal/gengateway" ) var ( diff --git a/protoc-gen-swagger/BUILD.bazel b/protoc-gen-swagger/BUILD.bazel index d5a1d05fcc7..0aacac9cea5 100644 --- a/protoc-gen-swagger/BUILD.bazel +++ b/protoc-gen-swagger/BUILD.bazel @@ -7,9 +7,9 @@ go_library( srcs = ["main.go"], importpath = "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger", deps = [ - "//codegenerator:go_default_library", - "//protoc-gen-grpc-gateway/descriptor:go_default_library", - "//protoc-gen-swagger/genswagger:go_default_library", + "//internal/codegenerator:go_default_library", + "//internal/descriptor:go_default_library", + "//protoc-gen-swagger/internal/genswagger:go_default_library", "@com_github_golang_glog//:go_default_library", "@com_github_golang_protobuf//proto:go_default_library", "@io_bazel_rules_go//proto/wkt:compiler_plugin_go_proto", diff --git a/protoc-gen-swagger/genswagger/BUILD.bazel b/protoc-gen-swagger/internal/genswagger/BUILD.bazel similarity index 84% rename from protoc-gen-swagger/genswagger/BUILD.bazel rename to protoc-gen-swagger/internal/genswagger/BUILD.bazel index c89eb04477d..0ef9926ff20 100644 --- a/protoc-gen-swagger/genswagger/BUILD.bazel +++ b/protoc-gen-swagger/internal/genswagger/BUILD.bazel @@ -12,11 +12,11 @@ go_library( "template.go", "types.go", ], - importpath = "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/genswagger", + importpath = "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/internal/genswagger", deps = [ "//internal:go_default_library", - "//protoc-gen-grpc-gateway/descriptor:go_default_library", - "//protoc-gen-grpc-gateway/generator:go_default_library", + "//internal/descriptor:go_default_library", + "//internal/generator:go_default_library", "//protoc-gen-swagger/options:go_default_library", "@com_github_golang_glog//:go_default_library", "@com_github_golang_protobuf//descriptor:go_default_library_gen", @@ -36,8 +36,8 @@ go_test( srcs = ["template_test.go"], embed = [":go_default_library"], deps = [ - "//protoc-gen-grpc-gateway/descriptor:go_default_library", - "//protoc-gen-grpc-gateway/httprule:go_default_library", + "//internal/descriptor:go_default_library", + "//internal/httprule:go_default_library", "//protoc-gen-swagger/options:go_default_library", "@com_github_golang_protobuf//proto:go_default_library", "@io_bazel_rules_go//proto/wkt:any_go_proto", diff --git a/protoc-gen-swagger/genswagger/doc.go b/protoc-gen-swagger/internal/genswagger/doc.go similarity index 100% rename from protoc-gen-swagger/genswagger/doc.go rename to protoc-gen-swagger/internal/genswagger/doc.go diff --git a/protoc-gen-swagger/genswagger/generator.go b/protoc-gen-swagger/internal/genswagger/generator.go similarity index 97% rename from protoc-gen-swagger/genswagger/generator.go rename to protoc-gen-swagger/internal/genswagger/generator.go index ecf1135fde7..6e4a554a842 100644 --- a/protoc-gen-swagger/genswagger/generator.go +++ b/protoc-gen-swagger/internal/genswagger/generator.go @@ -16,8 +16,8 @@ import ( plugin "github.com/golang/protobuf/protoc-gen-go/plugin" "github.com/golang/protobuf/ptypes/any" "github.com/grpc-ecosystem/grpc-gateway/internal" - "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/descriptor" - gen "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/generator" + "github.com/grpc-ecosystem/grpc-gateway/internal/descriptor" + gen "github.com/grpc-ecosystem/grpc-gateway/internal/generator" swagger_options "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options" ) diff --git a/protoc-gen-swagger/genswagger/helpers.go b/protoc-gen-swagger/internal/genswagger/helpers.go similarity index 100% rename from protoc-gen-swagger/genswagger/helpers.go rename to protoc-gen-swagger/internal/genswagger/helpers.go diff --git a/protoc-gen-swagger/genswagger/helpers_go111_old.go b/protoc-gen-swagger/internal/genswagger/helpers_go111_old.go similarity index 100% rename from protoc-gen-swagger/genswagger/helpers_go111_old.go rename to protoc-gen-swagger/internal/genswagger/helpers_go111_old.go diff --git a/protoc-gen-swagger/genswagger/template.go b/protoc-gen-swagger/internal/genswagger/template.go similarity index 99% rename from protoc-gen-swagger/genswagger/template.go rename to protoc-gen-swagger/internal/genswagger/template.go index 9e0b5ce58af..320e3f1b6e7 100644 --- a/protoc-gen-swagger/genswagger/template.go +++ b/protoc-gen-swagger/internal/genswagger/template.go @@ -20,7 +20,7 @@ import ( pbdescriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" gogen "github.com/golang/protobuf/protoc-gen-go/generator" structpb "github.com/golang/protobuf/ptypes/struct" - "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/descriptor" + "github.com/grpc-ecosystem/grpc-gateway/internal/descriptor" swagger_options "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options" ) diff --git a/protoc-gen-swagger/genswagger/template_test.go b/protoc-gen-swagger/internal/genswagger/template_test.go similarity index 99% rename from protoc-gen-swagger/genswagger/template_test.go rename to protoc-gen-swagger/internal/genswagger/template_test.go index cda39688835..9c8c913f33f 100644 --- a/protoc-gen-swagger/genswagger/template_test.go +++ b/protoc-gen-swagger/internal/genswagger/template_test.go @@ -12,8 +12,8 @@ import ( plugin "github.com/golang/protobuf/protoc-gen-go/plugin" "github.com/golang/protobuf/ptypes/any" structpb "github.com/golang/protobuf/ptypes/struct" - "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/descriptor" - "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/httprule" + "github.com/grpc-ecosystem/grpc-gateway/internal/descriptor" + "github.com/grpc-ecosystem/grpc-gateway/internal/httprule" swagger_options "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options" ) diff --git a/protoc-gen-swagger/genswagger/types.go b/protoc-gen-swagger/internal/genswagger/types.go similarity index 99% rename from protoc-gen-swagger/genswagger/types.go rename to protoc-gen-swagger/internal/genswagger/types.go index 255f53c77ca..d46f14cf6a1 100644 --- a/protoc-gen-swagger/genswagger/types.go +++ b/protoc-gen-swagger/internal/genswagger/types.go @@ -4,7 +4,7 @@ import ( "bytes" "encoding/json" - "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/descriptor" + "github.com/grpc-ecosystem/grpc-gateway/internal/descriptor" ) type param struct { diff --git a/protoc-gen-swagger/main.go b/protoc-gen-swagger/main.go index f25e431b553..bbe25649f46 100644 --- a/protoc-gen-swagger/main.go +++ b/protoc-gen-swagger/main.go @@ -9,9 +9,9 @@ import ( "github.com/golang/glog" "github.com/golang/protobuf/proto" plugin "github.com/golang/protobuf/protoc-gen-go/plugin" - "github.com/grpc-ecosystem/grpc-gateway/codegenerator" - "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/descriptor" - "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/genswagger" + "github.com/grpc-ecosystem/grpc-gateway/internal/codegenerator" + "github.com/grpc-ecosystem/grpc-gateway/internal/descriptor" + "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/internal/genswagger" ) var ( diff --git a/runtime/BUILD.bazel b/runtime/BUILD.bazel index 819c45a7657..c4d18f624a8 100644 --- a/runtime/BUILD.bazel +++ b/runtime/BUILD.bazel @@ -64,8 +64,8 @@ go_test( ], embed = [":go_default_library"], deps = [ - "//examples/proto/examplepb:go_default_library", "//internal:go_default_library", + "//runtime/internal/examplepb:go_default_library", "//utilities:go_default_library", "@com_github_golang_protobuf//jsonpb:go_default_library_gen", "@com_github_golang_protobuf//proto:go_default_library", diff --git a/runtime/handler_test.go b/runtime/handler_test.go index c9caa25cfc0..f9a17916da1 100644 --- a/runtime/handler_test.go +++ b/runtime/handler_test.go @@ -8,10 +8,11 @@ import ( "testing" "context" + "github.com/golang/protobuf/proto" - pb "github.com/grpc-ecosystem/grpc-gateway/examples/proto/examplepb" "github.com/grpc-ecosystem/grpc-gateway/internal" "github.com/grpc-ecosystem/grpc-gateway/runtime" + pb "github.com/grpc-ecosystem/grpc-gateway/runtime/internal/examplepb" "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/runtime/internal/examplepb/BUILD.bazel b/runtime/internal/examplepb/BUILD.bazel new file mode 100644 index 00000000000..0d36f524d8e --- /dev/null +++ b/runtime/internal/examplepb/BUILD.bazel @@ -0,0 +1,31 @@ +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@io_bazel_rules_go//go:def.bzl", "go_library") +load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") + +package(default_visibility = ["//visibility:public"]) + +proto_library( + name = "examplepb_proto", + srcs = [ + "example.proto", + ], + deps = [ + "@com_google_protobuf//:empty_proto", + "@com_google_protobuf//:timestamp_proto", + ], +) + +go_proto_library( + name = "examplepb_go_proto", + importpath = "github.com/grpc-ecosystem/grpc-gateway/runtime/internal/examplepb", + proto = ":examplepb_proto", + deps = [ + "@com_github_golang_protobuf//descriptor:go_default_library_gen", # keep + ], +) + +go_library( + name = "go_default_library", + embed = [":examplepb_go_proto"], + importpath = "github.com/grpc-ecosystem/grpc-gateway/runtime/internal/examplepb", +) diff --git a/runtime/internal/examplepb/example.pb.go b/runtime/internal/examplepb/example.pb.go new file mode 100644 index 00000000000..16b27aa6214 --- /dev/null +++ b/runtime/internal/examplepb/example.pb.go @@ -0,0 +1,807 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: runtime/internal/examplepb/example.proto + +package examplepb + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + empty "github.com/golang/protobuf/ptypes/empty" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// NumericEnum is one or zero. +type NumericEnum int32 + +const ( + // ZERO means 0 + NumericEnum_ZERO NumericEnum = 0 + // ONE means 1 + NumericEnum_ONE NumericEnum = 1 +) + +var NumericEnum_name = map[int32]string{ + 0: "ZERO", + 1: "ONE", +} + +var NumericEnum_value = map[string]int32{ + "ZERO": 0, + "ONE": 1, +} + +func (x NumericEnum) String() string { + return proto.EnumName(NumericEnum_name, int32(x)) +} + +func (NumericEnum) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_411aaf1bcbdb81d6, []int{0} +} + +// DeepEnum is one or zero. +type ABitOfEverything_Nested_DeepEnum int32 + +const ( + // FALSE is false. + ABitOfEverything_Nested_FALSE ABitOfEverything_Nested_DeepEnum = 0 + // TRUE is true. + ABitOfEverything_Nested_TRUE ABitOfEverything_Nested_DeepEnum = 1 +) + +var ABitOfEverything_Nested_DeepEnum_name = map[int32]string{ + 0: "FALSE", + 1: "TRUE", +} + +var ABitOfEverything_Nested_DeepEnum_value = map[string]int32{ + "FALSE": 0, + "TRUE": 1, +} + +func (x ABitOfEverything_Nested_DeepEnum) String() string { + return proto.EnumName(ABitOfEverything_Nested_DeepEnum_name, int32(x)) +} + +func (ABitOfEverything_Nested_DeepEnum) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_411aaf1bcbdb81d6, []int{1, 0, 0} +} + +type RepeatedResponseBodyOut_Response_ResponseType int32 + +const ( + // UNKNOWN + RepeatedResponseBodyOut_Response_UNKNOWN RepeatedResponseBodyOut_Response_ResponseType = 0 + // A is 1 + RepeatedResponseBodyOut_Response_A RepeatedResponseBodyOut_Response_ResponseType = 1 + // B is 2 + RepeatedResponseBodyOut_Response_B RepeatedResponseBodyOut_Response_ResponseType = 2 +) + +var RepeatedResponseBodyOut_Response_ResponseType_name = map[int32]string{ + 0: "UNKNOWN", + 1: "A", + 2: "B", +} + +var RepeatedResponseBodyOut_Response_ResponseType_value = map[string]int32{ + "UNKNOWN": 0, + "A": 1, + "B": 2, +} + +func (x RepeatedResponseBodyOut_Response_ResponseType) String() string { + return proto.EnumName(RepeatedResponseBodyOut_Response_ResponseType_name, int32(x)) +} + +func (RepeatedResponseBodyOut_Response_ResponseType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_411aaf1bcbdb81d6, []int{3, 0, 0} +} + +// SimpleMessage represents a simple message sent to the Echo service. +type SimpleMessage struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SimpleMessage) Reset() { *m = SimpleMessage{} } +func (m *SimpleMessage) String() string { return proto.CompactTextString(m) } +func (*SimpleMessage) ProtoMessage() {} +func (*SimpleMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_411aaf1bcbdb81d6, []int{0} +} + +func (m *SimpleMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SimpleMessage.Unmarshal(m, b) +} +func (m *SimpleMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SimpleMessage.Marshal(b, m, deterministic) +} +func (m *SimpleMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_SimpleMessage.Merge(m, src) +} +func (m *SimpleMessage) XXX_Size() int { + return xxx_messageInfo_SimpleMessage.Size(m) +} +func (m *SimpleMessage) XXX_DiscardUnknown() { + xxx_messageInfo_SimpleMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_SimpleMessage proto.InternalMessageInfo + +func (m *SimpleMessage) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +type ABitOfEverything struct { + SingleNested *ABitOfEverything_Nested `protobuf:"bytes,25,opt,name=single_nested,json=singleNested,proto3" json:"single_nested,omitempty"` + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` + Nested []*ABitOfEverything_Nested `protobuf:"bytes,2,rep,name=nested,proto3" json:"nested,omitempty"` + FloatValue float32 `protobuf:"fixed32,3,opt,name=float_value,json=floatValue,proto3" json:"float_value,omitempty"` + DoubleValue float64 `protobuf:"fixed64,4,opt,name=double_value,json=doubleValue,proto3" json:"double_value,omitempty"` + Int64Value int64 `protobuf:"varint,5,opt,name=int64_value,json=int64Value,proto3" json:"int64_value,omitempty"` + Uint64Value uint64 `protobuf:"varint,6,opt,name=uint64_value,json=uint64Value,proto3" json:"uint64_value,omitempty"` + Int32Value int32 `protobuf:"varint,7,opt,name=int32_value,json=int32Value,proto3" json:"int32_value,omitempty"` + Fixed64Value uint64 `protobuf:"fixed64,8,opt,name=fixed64_value,json=fixed64Value,proto3" json:"fixed64_value,omitempty"` + Fixed32Value uint32 `protobuf:"fixed32,9,opt,name=fixed32_value,json=fixed32Value,proto3" json:"fixed32_value,omitempty"` + BoolValue bool `protobuf:"varint,10,opt,name=bool_value,json=boolValue,proto3" json:"bool_value,omitempty"` + StringValue string `protobuf:"bytes,11,opt,name=string_value,json=stringValue,proto3" json:"string_value,omitempty"` + BytesValue []byte `protobuf:"bytes,29,opt,name=bytes_value,json=bytesValue,proto3" json:"bytes_value,omitempty"` + Uint32Value uint32 `protobuf:"varint,13,opt,name=uint32_value,json=uint32Value,proto3" json:"uint32_value,omitempty"` + EnumValue NumericEnum `protobuf:"varint,14,opt,name=enum_value,json=enumValue,proto3,enum=grpc.gateway.runtime.internal.examplepb.NumericEnum" json:"enum_value,omitempty"` + Sfixed32Value int32 `protobuf:"fixed32,15,opt,name=sfixed32_value,json=sfixed32Value,proto3" json:"sfixed32_value,omitempty"` + Sfixed64Value int64 `protobuf:"fixed64,16,opt,name=sfixed64_value,json=sfixed64Value,proto3" json:"sfixed64_value,omitempty"` + Sint32Value int32 `protobuf:"zigzag32,17,opt,name=sint32_value,json=sint32Value,proto3" json:"sint32_value,omitempty"` + Sint64Value int64 `protobuf:"zigzag64,18,opt,name=sint64_value,json=sint64Value,proto3" json:"sint64_value,omitempty"` + RepeatedStringValue []string `protobuf:"bytes,19,rep,name=repeated_string_value,json=repeatedStringValue,proto3" json:"repeated_string_value,omitempty"` + // Types that are valid to be assigned to OneofValue: + // *ABitOfEverything_OneofEmpty + // *ABitOfEverything_OneofString + OneofValue isABitOfEverything_OneofValue `protobuf_oneof:"oneof_value"` + MapValue map[string]NumericEnum `protobuf:"bytes,22,rep,name=map_value,json=mapValue,proto3" json:"map_value,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=grpc.gateway.runtime.internal.examplepb.NumericEnum"` + MappedStringValue map[string]string `protobuf:"bytes,23,rep,name=mapped_string_value,json=mappedStringValue,proto3" json:"mapped_string_value,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + MappedNestedValue map[string]*ABitOfEverything_Nested `protobuf:"bytes,24,rep,name=mapped_nested_value,json=mappedNestedValue,proto3" json:"mapped_nested_value,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + NonConventionalNameValue string `protobuf:"bytes,26,opt,name=nonConventionalNameValue,proto3" json:"nonConventionalNameValue,omitempty"` + TimestampValue *timestamp.Timestamp `protobuf:"bytes,27,opt,name=timestamp_value,json=timestampValue,proto3" json:"timestamp_value,omitempty"` + // repeated enum value. it is comma-separated in query + RepeatedEnumValue []NumericEnum `protobuf:"varint,28,rep,packed,name=repeated_enum_value,json=repeatedEnumValue,proto3,enum=grpc.gateway.runtime.internal.examplepb.NumericEnum" json:"repeated_enum_value,omitempty"` + // repeated numeric enum comment (This comment is overridden by the field annotation) + RepeatedEnumAnnotation []NumericEnum `protobuf:"varint,32,rep,packed,name=repeated_enum_annotation,json=repeatedEnumAnnotation,proto3,enum=grpc.gateway.runtime.internal.examplepb.NumericEnum" json:"repeated_enum_annotation,omitempty"` + // numeric enum comment (This comment is overridden by the field annotation) + EnumValueAnnotation NumericEnum `protobuf:"varint,33,opt,name=enum_value_annotation,json=enumValueAnnotation,proto3,enum=grpc.gateway.runtime.internal.examplepb.NumericEnum" json:"enum_value_annotation,omitempty"` + // repeated string comment (This comment is overridden by the field annotation) + RepeatedStringAnnotation []string `protobuf:"bytes,34,rep,name=repeated_string_annotation,json=repeatedStringAnnotation,proto3" json:"repeated_string_annotation,omitempty"` + // repeated nested object comment (This comment is overridden by the field annotation) + RepeatedNestedAnnotation []*ABitOfEverything_Nested `protobuf:"bytes,35,rep,name=repeated_nested_annotation,json=repeatedNestedAnnotation,proto3" json:"repeated_nested_annotation,omitempty"` + // nested object comments (This comment is overridden by the field annotation) + NestedAnnotation *ABitOfEverything_Nested `protobuf:"bytes,36,opt,name=nested_annotation,json=nestedAnnotation,proto3" json:"nested_annotation,omitempty"` + Int64OverrideType int64 `protobuf:"varint,37,opt,name=int64_override_type,json=int64OverrideType,proto3" json:"int64_override_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ABitOfEverything) Reset() { *m = ABitOfEverything{} } +func (m *ABitOfEverything) String() string { return proto.CompactTextString(m) } +func (*ABitOfEverything) ProtoMessage() {} +func (*ABitOfEverything) Descriptor() ([]byte, []int) { + return fileDescriptor_411aaf1bcbdb81d6, []int{1} +} + +func (m *ABitOfEverything) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ABitOfEverything.Unmarshal(m, b) +} +func (m *ABitOfEverything) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ABitOfEverything.Marshal(b, m, deterministic) +} +func (m *ABitOfEverything) XXX_Merge(src proto.Message) { + xxx_messageInfo_ABitOfEverything.Merge(m, src) +} +func (m *ABitOfEverything) XXX_Size() int { + return xxx_messageInfo_ABitOfEverything.Size(m) +} +func (m *ABitOfEverything) XXX_DiscardUnknown() { + xxx_messageInfo_ABitOfEverything.DiscardUnknown(m) +} + +var xxx_messageInfo_ABitOfEverything proto.InternalMessageInfo + +func (m *ABitOfEverything) GetSingleNested() *ABitOfEverything_Nested { + if m != nil { + return m.SingleNested + } + return nil +} + +func (m *ABitOfEverything) GetUuid() string { + if m != nil { + return m.Uuid + } + return "" +} + +func (m *ABitOfEverything) GetNested() []*ABitOfEverything_Nested { + if m != nil { + return m.Nested + } + return nil +} + +func (m *ABitOfEverything) GetFloatValue() float32 { + if m != nil { + return m.FloatValue + } + return 0 +} + +func (m *ABitOfEverything) GetDoubleValue() float64 { + if m != nil { + return m.DoubleValue + } + return 0 +} + +func (m *ABitOfEverything) GetInt64Value() int64 { + if m != nil { + return m.Int64Value + } + return 0 +} + +func (m *ABitOfEverything) GetUint64Value() uint64 { + if m != nil { + return m.Uint64Value + } + return 0 +} + +func (m *ABitOfEverything) GetInt32Value() int32 { + if m != nil { + return m.Int32Value + } + return 0 +} + +func (m *ABitOfEverything) GetFixed64Value() uint64 { + if m != nil { + return m.Fixed64Value + } + return 0 +} + +func (m *ABitOfEverything) GetFixed32Value() uint32 { + if m != nil { + return m.Fixed32Value + } + return 0 +} + +func (m *ABitOfEverything) GetBoolValue() bool { + if m != nil { + return m.BoolValue + } + return false +} + +func (m *ABitOfEverything) GetStringValue() string { + if m != nil { + return m.StringValue + } + return "" +} + +func (m *ABitOfEverything) GetBytesValue() []byte { + if m != nil { + return m.BytesValue + } + return nil +} + +func (m *ABitOfEverything) GetUint32Value() uint32 { + if m != nil { + return m.Uint32Value + } + return 0 +} + +func (m *ABitOfEverything) GetEnumValue() NumericEnum { + if m != nil { + return m.EnumValue + } + return NumericEnum_ZERO +} + +func (m *ABitOfEverything) GetSfixed32Value() int32 { + if m != nil { + return m.Sfixed32Value + } + return 0 +} + +func (m *ABitOfEverything) GetSfixed64Value() int64 { + if m != nil { + return m.Sfixed64Value + } + return 0 +} + +func (m *ABitOfEverything) GetSint32Value() int32 { + if m != nil { + return m.Sint32Value + } + return 0 +} + +func (m *ABitOfEverything) GetSint64Value() int64 { + if m != nil { + return m.Sint64Value + } + return 0 +} + +func (m *ABitOfEverything) GetRepeatedStringValue() []string { + if m != nil { + return m.RepeatedStringValue + } + return nil +} + +type isABitOfEverything_OneofValue interface { + isABitOfEverything_OneofValue() +} + +type ABitOfEverything_OneofEmpty struct { + OneofEmpty *empty.Empty `protobuf:"bytes,20,opt,name=oneof_empty,json=oneofEmpty,proto3,oneof"` +} + +type ABitOfEverything_OneofString struct { + OneofString string `protobuf:"bytes,21,opt,name=oneof_string,json=oneofString,proto3,oneof"` +} + +func (*ABitOfEverything_OneofEmpty) isABitOfEverything_OneofValue() {} + +func (*ABitOfEverything_OneofString) isABitOfEverything_OneofValue() {} + +func (m *ABitOfEverything) GetOneofValue() isABitOfEverything_OneofValue { + if m != nil { + return m.OneofValue + } + return nil +} + +func (m *ABitOfEverything) GetOneofEmpty() *empty.Empty { + if x, ok := m.GetOneofValue().(*ABitOfEverything_OneofEmpty); ok { + return x.OneofEmpty + } + return nil +} + +func (m *ABitOfEverything) GetOneofString() string { + if x, ok := m.GetOneofValue().(*ABitOfEverything_OneofString); ok { + return x.OneofString + } + return "" +} + +func (m *ABitOfEverything) GetMapValue() map[string]NumericEnum { + if m != nil { + return m.MapValue + } + return nil +} + +func (m *ABitOfEverything) GetMappedStringValue() map[string]string { + if m != nil { + return m.MappedStringValue + } + return nil +} + +func (m *ABitOfEverything) GetMappedNestedValue() map[string]*ABitOfEverything_Nested { + if m != nil { + return m.MappedNestedValue + } + return nil +} + +func (m *ABitOfEverything) GetNonConventionalNameValue() string { + if m != nil { + return m.NonConventionalNameValue + } + return "" +} + +func (m *ABitOfEverything) GetTimestampValue() *timestamp.Timestamp { + if m != nil { + return m.TimestampValue + } + return nil +} + +func (m *ABitOfEverything) GetRepeatedEnumValue() []NumericEnum { + if m != nil { + return m.RepeatedEnumValue + } + return nil +} + +func (m *ABitOfEverything) GetRepeatedEnumAnnotation() []NumericEnum { + if m != nil { + return m.RepeatedEnumAnnotation + } + return nil +} + +func (m *ABitOfEverything) GetEnumValueAnnotation() NumericEnum { + if m != nil { + return m.EnumValueAnnotation + } + return NumericEnum_ZERO +} + +func (m *ABitOfEverything) GetRepeatedStringAnnotation() []string { + if m != nil { + return m.RepeatedStringAnnotation + } + return nil +} + +func (m *ABitOfEverything) GetRepeatedNestedAnnotation() []*ABitOfEverything_Nested { + if m != nil { + return m.RepeatedNestedAnnotation + } + return nil +} + +func (m *ABitOfEverything) GetNestedAnnotation() *ABitOfEverything_Nested { + if m != nil { + return m.NestedAnnotation + } + return nil +} + +func (m *ABitOfEverything) GetInt64OverrideType() int64 { + if m != nil { + return m.Int64OverrideType + } + return 0 +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ABitOfEverything) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ABitOfEverything_OneofEmpty)(nil), + (*ABitOfEverything_OneofString)(nil), + } +} + +// Nested is nested type. +type ABitOfEverything_Nested struct { + // name is nested field. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Amount uint32 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` + // DeepEnum comment. + Ok ABitOfEverything_Nested_DeepEnum `protobuf:"varint,3,opt,name=ok,proto3,enum=grpc.gateway.runtime.internal.examplepb.ABitOfEverything_Nested_DeepEnum" json:"ok,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ABitOfEverything_Nested) Reset() { *m = ABitOfEverything_Nested{} } +func (m *ABitOfEverything_Nested) String() string { return proto.CompactTextString(m) } +func (*ABitOfEverything_Nested) ProtoMessage() {} +func (*ABitOfEverything_Nested) Descriptor() ([]byte, []int) { + return fileDescriptor_411aaf1bcbdb81d6, []int{1, 0} +} + +func (m *ABitOfEverything_Nested) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ABitOfEverything_Nested.Unmarshal(m, b) +} +func (m *ABitOfEverything_Nested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ABitOfEverything_Nested.Marshal(b, m, deterministic) +} +func (m *ABitOfEverything_Nested) XXX_Merge(src proto.Message) { + xxx_messageInfo_ABitOfEverything_Nested.Merge(m, src) +} +func (m *ABitOfEverything_Nested) XXX_Size() int { + return xxx_messageInfo_ABitOfEverything_Nested.Size(m) +} +func (m *ABitOfEverything_Nested) XXX_DiscardUnknown() { + xxx_messageInfo_ABitOfEverything_Nested.DiscardUnknown(m) +} + +var xxx_messageInfo_ABitOfEverything_Nested proto.InternalMessageInfo + +func (m *ABitOfEverything_Nested) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ABitOfEverything_Nested) GetAmount() uint32 { + if m != nil { + return m.Amount + } + return 0 +} + +func (m *ABitOfEverything_Nested) GetOk() ABitOfEverything_Nested_DeepEnum { + if m != nil { + return m.Ok + } + return ABitOfEverything_Nested_FALSE +} + +type ResponseBodyOut struct { + Response *ResponseBodyOut_Response `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResponseBodyOut) Reset() { *m = ResponseBodyOut{} } +func (m *ResponseBodyOut) String() string { return proto.CompactTextString(m) } +func (*ResponseBodyOut) ProtoMessage() {} +func (*ResponseBodyOut) Descriptor() ([]byte, []int) { + return fileDescriptor_411aaf1bcbdb81d6, []int{2} +} + +func (m *ResponseBodyOut) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResponseBodyOut.Unmarshal(m, b) +} +func (m *ResponseBodyOut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResponseBodyOut.Marshal(b, m, deterministic) +} +func (m *ResponseBodyOut) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResponseBodyOut.Merge(m, src) +} +func (m *ResponseBodyOut) XXX_Size() int { + return xxx_messageInfo_ResponseBodyOut.Size(m) +} +func (m *ResponseBodyOut) XXX_DiscardUnknown() { + xxx_messageInfo_ResponseBodyOut.DiscardUnknown(m) +} + +var xxx_messageInfo_ResponseBodyOut proto.InternalMessageInfo + +func (m *ResponseBodyOut) GetResponse() *ResponseBodyOut_Response { + if m != nil { + return m.Response + } + return nil +} + +type ResponseBodyOut_Response struct { + Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResponseBodyOut_Response) Reset() { *m = ResponseBodyOut_Response{} } +func (m *ResponseBodyOut_Response) String() string { return proto.CompactTextString(m) } +func (*ResponseBodyOut_Response) ProtoMessage() {} +func (*ResponseBodyOut_Response) Descriptor() ([]byte, []int) { + return fileDescriptor_411aaf1bcbdb81d6, []int{2, 0} +} + +func (m *ResponseBodyOut_Response) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResponseBodyOut_Response.Unmarshal(m, b) +} +func (m *ResponseBodyOut_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResponseBodyOut_Response.Marshal(b, m, deterministic) +} +func (m *ResponseBodyOut_Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResponseBodyOut_Response.Merge(m, src) +} +func (m *ResponseBodyOut_Response) XXX_Size() int { + return xxx_messageInfo_ResponseBodyOut_Response.Size(m) +} +func (m *ResponseBodyOut_Response) XXX_DiscardUnknown() { + xxx_messageInfo_ResponseBodyOut_Response.DiscardUnknown(m) +} + +var xxx_messageInfo_ResponseBodyOut_Response proto.InternalMessageInfo + +func (m *ResponseBodyOut_Response) GetData() string { + if m != nil { + return m.Data + } + return "" +} + +type RepeatedResponseBodyOut struct { + Response []*RepeatedResponseBodyOut_Response `protobuf:"bytes,2,rep,name=response,proto3" json:"response,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RepeatedResponseBodyOut) Reset() { *m = RepeatedResponseBodyOut{} } +func (m *RepeatedResponseBodyOut) String() string { return proto.CompactTextString(m) } +func (*RepeatedResponseBodyOut) ProtoMessage() {} +func (*RepeatedResponseBodyOut) Descriptor() ([]byte, []int) { + return fileDescriptor_411aaf1bcbdb81d6, []int{3} +} + +func (m *RepeatedResponseBodyOut) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RepeatedResponseBodyOut.Unmarshal(m, b) +} +func (m *RepeatedResponseBodyOut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RepeatedResponseBodyOut.Marshal(b, m, deterministic) +} +func (m *RepeatedResponseBodyOut) XXX_Merge(src proto.Message) { + xxx_messageInfo_RepeatedResponseBodyOut.Merge(m, src) +} +func (m *RepeatedResponseBodyOut) XXX_Size() int { + return xxx_messageInfo_RepeatedResponseBodyOut.Size(m) +} +func (m *RepeatedResponseBodyOut) XXX_DiscardUnknown() { + xxx_messageInfo_RepeatedResponseBodyOut.DiscardUnknown(m) +} + +var xxx_messageInfo_RepeatedResponseBodyOut proto.InternalMessageInfo + +func (m *RepeatedResponseBodyOut) GetResponse() []*RepeatedResponseBodyOut_Response { + if m != nil { + return m.Response + } + return nil +} + +type RepeatedResponseBodyOut_Response struct { + Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + Type RepeatedResponseBodyOut_Response_ResponseType `protobuf:"varint,3,opt,name=type,proto3,enum=grpc.gateway.runtime.internal.examplepb.RepeatedResponseBodyOut_Response_ResponseType" json:"type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RepeatedResponseBodyOut_Response) Reset() { *m = RepeatedResponseBodyOut_Response{} } +func (m *RepeatedResponseBodyOut_Response) String() string { return proto.CompactTextString(m) } +func (*RepeatedResponseBodyOut_Response) ProtoMessage() {} +func (*RepeatedResponseBodyOut_Response) Descriptor() ([]byte, []int) { + return fileDescriptor_411aaf1bcbdb81d6, []int{3, 0} +} + +func (m *RepeatedResponseBodyOut_Response) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RepeatedResponseBodyOut_Response.Unmarshal(m, b) +} +func (m *RepeatedResponseBodyOut_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RepeatedResponseBodyOut_Response.Marshal(b, m, deterministic) +} +func (m *RepeatedResponseBodyOut_Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_RepeatedResponseBodyOut_Response.Merge(m, src) +} +func (m *RepeatedResponseBodyOut_Response) XXX_Size() int { + return xxx_messageInfo_RepeatedResponseBodyOut_Response.Size(m) +} +func (m *RepeatedResponseBodyOut_Response) XXX_DiscardUnknown() { + xxx_messageInfo_RepeatedResponseBodyOut_Response.DiscardUnknown(m) +} + +var xxx_messageInfo_RepeatedResponseBodyOut_Response proto.InternalMessageInfo + +func (m *RepeatedResponseBodyOut_Response) GetData() string { + if m != nil { + return m.Data + } + return "" +} + +func (m *RepeatedResponseBodyOut_Response) GetType() RepeatedResponseBodyOut_Response_ResponseType { + if m != nil { + return m.Type + } + return RepeatedResponseBodyOut_Response_UNKNOWN +} + +func init() { + proto.RegisterEnum("grpc.gateway.runtime.internal.examplepb.NumericEnum", NumericEnum_name, NumericEnum_value) + proto.RegisterEnum("grpc.gateway.runtime.internal.examplepb.ABitOfEverything_Nested_DeepEnum", ABitOfEverything_Nested_DeepEnum_name, ABitOfEverything_Nested_DeepEnum_value) + proto.RegisterEnum("grpc.gateway.runtime.internal.examplepb.RepeatedResponseBodyOut_Response_ResponseType", RepeatedResponseBodyOut_Response_ResponseType_name, RepeatedResponseBodyOut_Response_ResponseType_value) + proto.RegisterType((*SimpleMessage)(nil), "grpc.gateway.runtime.internal.examplepb.SimpleMessage") + proto.RegisterType((*ABitOfEverything)(nil), "grpc.gateway.runtime.internal.examplepb.ABitOfEverything") + proto.RegisterMapType((map[string]NumericEnum)(nil), "grpc.gateway.runtime.internal.examplepb.ABitOfEverything.MapValueEntry") + proto.RegisterMapType((map[string]*ABitOfEverything_Nested)(nil), "grpc.gateway.runtime.internal.examplepb.ABitOfEverything.MappedNestedValueEntry") + proto.RegisterMapType((map[string]string)(nil), "grpc.gateway.runtime.internal.examplepb.ABitOfEverything.MappedStringValueEntry") + proto.RegisterType((*ABitOfEverything_Nested)(nil), "grpc.gateway.runtime.internal.examplepb.ABitOfEverything.Nested") + proto.RegisterType((*ResponseBodyOut)(nil), "grpc.gateway.runtime.internal.examplepb.ResponseBodyOut") + proto.RegisterType((*ResponseBodyOut_Response)(nil), "grpc.gateway.runtime.internal.examplepb.ResponseBodyOut.Response") + proto.RegisterType((*RepeatedResponseBodyOut)(nil), "grpc.gateway.runtime.internal.examplepb.RepeatedResponseBodyOut") + proto.RegisterType((*RepeatedResponseBodyOut_Response)(nil), "grpc.gateway.runtime.internal.examplepb.RepeatedResponseBodyOut.Response") +} + +func init() { + proto.RegisterFile("runtime/internal/examplepb/example.proto", fileDescriptor_411aaf1bcbdb81d6) +} + +var fileDescriptor_411aaf1bcbdb81d6 = []byte{ + // 1101 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x5d, 0x73, 0x1b, 0x35, + 0x1b, 0x8d, 0xec, 0xc4, 0xb1, 0x9f, 0xb5, 0x9d, 0xb5, 0xf2, 0xd1, 0x7d, 0xdd, 0xb7, 0x64, 0xeb, + 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, 0x23, 0xf1, 0xd9, 0x64, 0x4a, 0x87, 0x8c, 0x26, 0x29, 0x1d, + 0x5b, 0xff, 0xb3, 0x91, 0x63, 0x74, 0x3f, 0x75, 0x6f, 0x68, 0xda, 0x5d, 0x64, 0x74, 0xfb, 0x9c, + 0x87, 0xd4, 0x05, 0xad, 0xe8, 0x61, 0x0c, 0xab, 0x59, 0xa6, 0xdc, 0xf0, 0x36, 0xfe, 0x16, 0x2a, + 0x52, 0xb3, 0x64, 0x97, 0x97, 0xa2, 0x29, 0xf9, 0xf0, 0x2e, 0x18, 0x67, 0xd3, 0xd0, 0x4b, 0x87, + 0x17, 0xde, 0x34, 0xa3, 0x56, 0xd9, 0x46, 0x4e, 0x89, 0x00, 0x2f, 0x9d, 0xe6, 0x15, 0x7c, 0x1f, + 0xea, 0xe3, 0x30, 0x1b, 0x4d, 0xa9, 0x44, 0xac, 0xda, 0xc8, 0x41, 0xc4, 0x10, 0x35, 0x01, 0xd9, + 0x05, 0xc3, 0x67, 0xe9, 0x87, 0x0f, 0x25, 0x62, 0xcd, 0x46, 0x4e, 0x99, 0x00, 0x2f, 0x29, 0x8e, + 0x4c, 0x47, 0x54, 0x6c, 0xe4, 0xac, 0x12, 0x23, 0xd3, 0x20, 0x82, 0xe3, 0xa0, 0x2b, 0x11, 0xeb, + 0x36, 0x72, 0xd6, 0x38, 0xc7, 0x41, 0x57, 0x00, 0xf6, 0xa0, 0x71, 0xe6, 0xbf, 0xa1, 0x63, 0x45, + 0x52, 0xb5, 0x91, 0x53, 0x21, 0x75, 0x59, 0x9c, 0x07, 0x29, 0x9e, 0x9a, 0x8d, 0x9c, 0x75, 0x09, + 0x2a, 0x98, 0xee, 0x01, 0x8c, 0xc2, 0x70, 0x2a, 0x11, 0x60, 0x23, 0xa7, 0x4a, 0x6a, 0x79, 0x45, + 0x99, 0x4d, 0xd2, 0xd8, 0x67, 0x13, 0x09, 0x30, 0xf8, 0x7f, 0x30, 0x44, 0x4d, 0x99, 0x1d, 0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82, 0x0d, + 0x42, 0x93, 0x28, 0x64, 0x09, 0x3d, 0x0a, 0xc7, 0xb3, 0x41, 0x96, 0xe2, 0xef, 0xa1, 0x1a, 0xcb, + 0x92, 0x74, 0x70, 0x78, 0x63, 0x07, 0x0b, 0x5c, 0xaa, 0x4f, 0x14, 0x65, 0xfb, 0x1d, 0xa8, 0x16, + 0xd5, 0xfc, 0xdc, 0x8d, 0xbd, 0xd4, 0x2b, 0xce, 0x5d, 0xde, 0xee, 0xfc, 0x59, 0x82, 0x3b, 0x44, + 0x46, 0x6a, 0xd1, 0x1a, 0x9d, 0xb3, 0x96, 0xe7, 0xf7, 0xd9, 0x7f, 0xb0, 0x76, 0x2d, 0xe7, 0x75, + 0x16, 0xff, 0x40, 0xff, 0xee, 0x11, 0xff, 0x00, 0xab, 0x3c, 0x5b, 0x22, 0x05, 0xa7, 0x4b, 0xf3, + 0xa0, 0x1a, 0x79, 0x40, 0x09, 0xd7, 0xe8, 0xbc, 0x0f, 0x75, 0xbd, 0x8a, 0x0d, 0x58, 0x7f, 0xd1, + 0xff, 0xb2, 0x3f, 0xf8, 0xa6, 0x6f, 0xae, 0xe0, 0x35, 0x40, 0x87, 0x26, 0xca, 0x3f, 0x47, 0x66, + 0xe9, 0x03, 0x1b, 0x0c, 0xed, 0x14, 0xe7, 0xb9, 0x79, 0xd9, 0x23, 0x03, 0x73, 0x05, 0xaf, 0x43, + 0x79, 0xd0, 0xef, 0x99, 0xe8, 0xc8, 0x78, 0x59, 0x53, 0x6e, 0x46, 0x15, 0xfe, 0x82, 0x1d, 0xfc, + 0x1d, 0x00, 0x00, 0xff, 0xff, 0xbb, 0xc2, 0xf3, 0x9b, 0x25, 0x0d, 0x00, 0x00, +} diff --git a/runtime/internal/examplepb/example.proto b/runtime/internal/examplepb/example.proto new file mode 100644 index 00000000000..87d4189a736 --- /dev/null +++ b/runtime/internal/examplepb/example.proto @@ -0,0 +1,115 @@ +syntax = "proto3"; +option go_package = "examplepb"; + +import "google/protobuf/timestamp.proto"; +import "google/protobuf/empty.proto"; + +package grpc.gateway.runtime.internal.examplepb; + +// SimpleMessage represents a simple message sent to the Echo service. +message SimpleMessage { + string id = 1; +} + +message ABitOfEverything { + // Nested is nested type. + message Nested { + // name is nested field. + string name = 1; + uint32 amount = 2; + // DeepEnum is one or zero. + enum DeepEnum { + // FALSE is false. + FALSE = 0; + // TRUE is true. + TRUE = 1; + } + + // DeepEnum comment. + DeepEnum ok = 3; + } + Nested single_nested = 25; + + string uuid = 1; + repeated Nested nested = 2; + float float_value = 3; + double double_value = 4; + int64 int64_value = 5; + uint64 uint64_value = 6; + int32 int32_value = 7; + fixed64 fixed64_value = 8; + fixed32 fixed32_value = 9; + bool bool_value = 10; + string string_value = 11; + bytes bytes_value = 29; + uint32 uint32_value = 13; + NumericEnum enum_value = 14; + sfixed32 sfixed32_value = 15; + sfixed64 sfixed64_value = 16; + sint32 sint32_value = 17; + sint64 sint64_value = 18; + repeated string repeated_string_value = 19; + oneof oneof_value { + google.protobuf.Empty oneof_empty = 20; + string oneof_string = 21; + } + + map map_value = 22; + map mapped_string_value = 23; + map mapped_nested_value = 24; + + string nonConventionalNameValue = 26; + + google.protobuf.Timestamp timestamp_value = 27; + + // repeated enum value. it is comma-separated in query + repeated NumericEnum repeated_enum_value = 28; + + // repeated numeric enum comment (This comment is overridden by the field annotation) + repeated NumericEnum repeated_enum_annotation = 32; + + // numeric enum comment (This comment is overridden by the field annotation) + NumericEnum enum_value_annotation = 33; + + // repeated string comment (This comment is overridden by the field annotation) + repeated string repeated_string_annotation = 34; + + // repeated nested object comment (This comment is overridden by the field annotation) + repeated Nested repeated_nested_annotation = 35; + + // nested object comments (This comment is overridden by the field annotation) + Nested nested_annotation = 36; + + int64 int64_override_type = 37; +} + +// NumericEnum is one or zero. +enum NumericEnum { + // ZERO means 0 + ZERO = 0; + // ONE means 1 + ONE = 1; +} + +message ResponseBodyOut { + message Response { + string data = 1; + } + Response response = 2; +} + +message RepeatedResponseBodyOut { + message Response { + string data = 1; + enum ResponseType { + // UNKNOWN + UNKNOWN = 0; + // A is 1 + A = 1; + // B is 2 + B = 2; + } + ResponseType type = 3; + } + repeated Response response = 2; +} diff --git a/runtime/marshal_json_test.go b/runtime/marshal_json_test.go index 1d226d53665..e7610cead8c 100644 --- a/runtime/marshal_json_test.go +++ b/runtime/marshal_json_test.go @@ -12,8 +12,8 @@ import ( structpb "github.com/golang/protobuf/ptypes/struct" "github.com/golang/protobuf/ptypes/timestamp" "github.com/golang/protobuf/ptypes/wrappers" - "github.com/grpc-ecosystem/grpc-gateway/examples/proto/examplepb" "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/grpc-ecosystem/grpc-gateway/runtime/internal/examplepb" ) func TestJSONBuiltinMarshal(t *testing.T) { diff --git a/runtime/marshal_jsonpb_test.go b/runtime/marshal_jsonpb_test.go index 7d60ef7ce35..19d5bc8fb0e 100644 --- a/runtime/marshal_jsonpb_test.go +++ b/runtime/marshal_jsonpb_test.go @@ -14,8 +14,8 @@ import ( structpb "github.com/golang/protobuf/ptypes/struct" "github.com/golang/protobuf/ptypes/timestamp" "github.com/golang/protobuf/ptypes/wrappers" - "github.com/grpc-ecosystem/grpc-gateway/examples/proto/examplepb" "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/grpc-ecosystem/grpc-gateway/runtime/internal/examplepb" ) func TestJSONPbMarshal(t *testing.T) { @@ -43,10 +43,10 @@ func TestJSONPbMarshal(t *testing.T) { "b": examplepb.NumericEnum_ZERO, }, RepeatedEnumAnnotation: []examplepb.NumericEnum{}, - EnumValueAnnotation: examplepb.NumericEnum_ONE, + EnumValueAnnotation: examplepb.NumericEnum_ONE, RepeatedStringAnnotation: []string{}, RepeatedNestedAnnotation: []*examplepb.ABitOfEverything_Nested{}, - NestedAnnotation: &examplepb.ABitOfEverything_Nested{}, + NestedAnnotation: &examplepb.ABitOfEverything_Nested{}, } for i, spec := range []struct { @@ -264,10 +264,10 @@ func TestJSONPbEncoder(t *testing.T) { "b": examplepb.NumericEnum_ZERO, }, RepeatedEnumAnnotation: []examplepb.NumericEnum{}, - EnumValueAnnotation: examplepb.NumericEnum_ONE, + EnumValueAnnotation: examplepb.NumericEnum_ONE, RepeatedStringAnnotation: []string{}, RepeatedNestedAnnotation: []*examplepb.ABitOfEverything_Nested{}, - NestedAnnotation: &examplepb.ABitOfEverything_Nested{}, + NestedAnnotation: &examplepb.ABitOfEverything_Nested{}, } for i, spec := range []struct { @@ -359,7 +359,7 @@ func TestJSONPbEncoderFields(t *testing.T) { if err := enc.Encode(fixt.data); err != nil { t.Errorf("enc.Encode(%#v) failed with %v; want success", fixt.data, err) } - if got, want := buf.String(), fixt.json + string(m.Delimiter()); got != want { + if got, want := buf.String(), fixt.json+string(m.Delimiter()); got != want { t.Errorf("enc.Encode(%#v) = %q; want %q", fixt.data, got, want) } } diff --git a/runtime/marshal_proto_test.go b/runtime/marshal_proto_test.go index 1da30b8a8d6..d653aca653a 100644 --- a/runtime/marshal_proto_test.go +++ b/runtime/marshal_proto_test.go @@ -6,8 +6,8 @@ import ( "github.com/golang/protobuf/proto" "github.com/golang/protobuf/ptypes/timestamp" - "github.com/grpc-ecosystem/grpc-gateway/examples/proto/examplepb" "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/grpc-ecosystem/grpc-gateway/runtime/internal/examplepb" ) var message = &examplepb.ABitOfEverything{