The stub adapters are pretty straight forward and do not really need to be a class. This PR moves all the generated client code to a set of extension function on the original Java stub class.
Users should not simply instantiate a regular Java stub where earlier the Kotlin stub was generated.
- val greeter = GreeterGrpcKt.newStub(channel)
+ val greeter = GreeterGrpc.newStub(channel)
The stub adapters are pretty straight forward and do not really need to be a class. This PR moves all the generated client code to a set of extension function on the original Java stub class.
Users should not simply instantiate a regular Java stub where earlier the Kotlin stub was generated.