I have compiled the health.proto for my Java application, using
protoc --java_out=...... --grpc-java_out=... -I=..... proto .....health.proto
Compiles OK and creates the required java classes.
The health.proto is directly grabbed from [grpc github repo][1]
In there, there are 2 rpc defined as :
rpc Check(HealthCheckRequest) returns (HealthCheckResponse);
rpc Watch(HealthCheckRequest) returns (stream HealthCheckResponse);
(Note capital C and W)
However, both methods have lost the Capitalization on the generated java stubs, and they are now check() and watch() lowercase both.
As a result of the above, if I add a HealthStatusImpl as a service on my server, it can not be reached from another grpc component developed in Python which is trying to invoke
stub.Watch() and stub.Check()
(tests performed from a client written in Java, using lowercase versions, works as expected)
Is there any way to bypass this feature? As far as I can see, there is no:
https://protobuf.dev/getting-started/javatutorial/
3
Indeed, There was an error elsewhere. Sorry for that.
It is clear that capitalization is not a problem when creating stubs in different languages.
Many thanks again Louis Wasserman