You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FileDescriptorProto comes from protobuf-java library, the oficial
SDK for protobuf in Java. The idea would be to use FileDescriptorProto.parseFrom to convert from the bytes generated
with protoc compilation into something with more semantics, like a FileDescriptorProto.
Convert message declarations to ProtobufF
This is done with a Droste's Coalgebra, and the process would be
similar to the one we are doing for avro here.
Proton uses sbt-protoc and scalapb behind the scenes to read the proto file so it can be helpful to discover how to proceed in some cases.
Thank you @pepegar
It would be great to have a way to parse protocol buffers in
Skeuomorph!
This task would involve several smaller tasks to be completed (we can
address each one in a separate PR if we like):
FileDescriptorProto
out of itProtobufF
declarations.protocol.
Compile proto file
To do this we can use protoc-jar as a library.
Convert proto bytes into a FileDescriptorProto
FileDescriptorProto
comes from protobuf-java library, the oficialSDK for protobuf in Java. The idea would be to use
FileDescriptorProto.parseFrom
to convert from the bytes generatedwith protoc compilation into something with more semantics, like a
FileDescriptorProto
.Convert message declarations to ProtobufF
This is done with a Droste's
Coalgebra
, and the process would besimilar to the one we are doing for avro here.
Create a skeuomorph.protobuf.Protocol
This should be similar to Avro's.
Conversion Protobuf -> Mu
This should be similar to Mu's fromAvroProtocol
Thanks @AdrianRaFo for https://github.com/AdrianRaFo/proton, from which I pulled the inspiration to create this issue a la skeuomorph
The text was updated successfully, but these errors were encountered: