gRPC-Kotlin <https://github.com/grpc/grpc-kotlin> provides a Kotlin codegen 
plugin <https://github.com/grpc/grpc-kotlin/tree/master/compiler> for 
protoc that generates Kotlin-style gRPC stub/service interface. Its usage 
is the same as for any other languages, you can see the usage in its 
README. 

If you are using Gradle with protobuf-gradle-plugin, you only need to 
provide the Kotlin plugin to the protobuf configuration block. An example 
can be seen in grpc-kotlin example 
<https://github.com/grpc/grpc-kotlin/blob/4250d5d4ced6c9f42adf806cb099cac7f2c43863/examples/stub/build.gradle.kts#L27-L47>
.

On Wednesday, November 11, 2020 at 10:05:32 PM UTC-8 GrayBeard wrote:

> How can I generate service definition on kotlin using protoc?
>
> -Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/88f88962-0a04-4f9d-ad6f-f854d1bfe9e2n%40googlegroups.com.

Reply via email to