0

In my grpc application, I need to have a service that has just two client-side streaming methods. Is it possible to define the service, messages without creating a .proto file in grpc-java?. If yes, can you point me to an example or tutorial.

saikamesh
  • 4,569
  • 11
  • 53
  • 93
  • Yes, probably! I'm most familiar with Golang which has `types/dynamicpb` but this answer (DynamicMessage) may help get you going: https://stackoverflow.com/a/37690755/609290 – DazWilkin Aug 31 '20 at 18:01
  • Are you wanting to use protocol buffers, just not create a .proto, or are you wanting to use some other form of message? – Eric Anderson Aug 31 '20 at 18:11
  • @EricAnderson Yes, Can we use gRPC with JSON. Or Can we have gRPC service which expose both protobuf and JSON and response on basis of Content-Type? – dReAmEr Nov 26 '20 at 07:50
  • @dReAmEr As you mentioned "Or Can we have gRPC service which expose both protobuf and JSON and response on basis of Content-Type". How to achieve the same in Java. – Debjit Feb 02 '23 at 19:52

0 Answers0