Parse a Google Protocol Buffers datagram without a .proto file?

Is it possible to parse the google protocol buffers inbound datagram without any .proto file? I just now serialize it using protocol buffers, but have no idea about the IDL file.

Am I looking for a way to simply iterate over any value with some kind of reflection? Is it possible?

Thank!

+5
source share
1 answer

protoc --decode_raw < my_file

When checking the output, the following should be considered:

  • None of the field names are displayed, just the tag numbers.
  • All varint fields are shown as integers. This is normal for most types, but sint * will appear in a zigzag format.
  • Doubles and floats will be shown as hex.
  • , , .. .

, .proto , , , .

+5

All Articles