You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.
The resulting service configuration file defines a google.protobuf.type for each field.
foobar remains foobar
fooBar' has a JSON name of foo_bar`
foo_bar has a JSON name of fooBar
There are a few problems with this:
When an API deployed with this service configuration, any client must use a different naming convention from the server.
A Proto Descriptor file and gRPC API Configuration YAML file can be used to deploy a service (API) to Cloud without the need for an explicit service configuration file. This approach does not rename any proto message fields. Therefore, any client code must change significantly depending on how the API is deployed.
Use the API Manager and subsequent API configuraton file, and fooBar is received as foo_bar.
Use a proto descriptor and gRPC config file, and fooBar is received as fooBar.
The text was updated successfully, but these errors were encountered:
jackwootton
changed the title
JSON name of proto field
JSON name of proto field unhelpful.
Oct 11, 2017
If an interface is defined with the following simple
.proto
:...and compiled with
protoc
:Google API Compiler can be used to generate the Service Configuration file:
The resulting service configuration file defines a google.protobuf.type for each field.
foobar
remainsfoobar
fooBar' has a JSON name of
foo_bar`foo_bar
has a JSON name offooBar
There are a few problems with this:
fooBar
is received asfoo_bar
.fooBar
is received asfooBar
.The text was updated successfully, but these errors were encountered: