1

If I have a grpc server running that is exposing the reflection service, is there some way to connect to it and generate the stub in some language to call it?

Like using protoc but referencing the server instead of the .proto files

I don't want a way to dynamically call the message, but rather a way to generate the proper Java (or other languages) stub code

rascio
  • 8,968
  • 19
  • 68
  • 108

1 Answers1

0

Yes, it can be done by create a generic stub and then generate descriptor, you can reference How to create GRPC client directly from protobuf without compiling it into java code in Java

HelloWood
  • 727
  • 4
  • 13
  • Maybe I wrongly stated the issue, I don't want to use the dynamic message, but rather compile it into Java code – rascio Jul 31 '22 at 08:36