android Kotlin GRPC

50 views
Skip to first unread message

GrayBeard

unread,
Nov 12, 2020, 1:05:32 AM11/12/20
to grpc.io
How can I generate service definition on kotlin using protoc?

-Thanks

Chengyuan Zhang

unread,
Nov 12, 2020, 1:35:32 AM11/12/20
to grpc.io
gRPC-Kotlin provides a Kotlin codegen plugin 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.

Reply all
Reply to author
Forward
0 new messages