I'm trying to find the right Java APIs to do what protoc --decode_raw and
protoc --decode do.
Essentially handling two cases:
1) When I don't have the proto, and only the raw protobuf msg.
eg protoc --decode_raw < rawmsg.bin
2) When I have the .proto(not the generated classes, neither the parsed
eg protoc --decode some.pkg.name.Person $proto_file_path < rawmsg.bin
I did dig google groups.
>From those the hints I've got is
For case 1) Using CodedInputStream write my own parser? parsing bytes by
making informed guesses.
For case 2) well nothing. Everything I got assumed I have
FileDescriptorProto for my .proto or instance of my message type.
Are there any add-on libraries present to handle these scenarios?
Or any logic to go about solving them?
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to firstname.lastname@example.org.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.