Is there any Protobuf libraries that create kotlin...
# getting-started
a
Is there any Protobuf libraries that create kotlin data classes directly from the .proto files?
d
afaik official work to support Kotlin natively is WIP
a
Interesting, thanks
d
you could use https://github.com/marcoferrer/kroto-plus to generate kotlin style builders
*but in the end it will rely on models generated for Java
for completeness official grpc lib -> https://github.com/grpc/grpc-kotlin
(you can use
kroto+
models with
grpc-kotlin
)
a
Right now I have data classes that translate the proto models from java taking only the data need and aggregates different models in one. But it would be much easier to use kotlin data objects directly
But thanks