I'd like to find a way to convert a binary protobuf message into a human readable description of the contained data, without using the .proto files.
The background is that I have a .proto message that it being rejected by the parser on Android, but it's not entirely clear why. I could go through the message by hand, but it's rather tedious.
I tried protoc --decode_raw
, but it just gives the error "Failed to parse input.". I google hoping/expecting someone would have done a nice web utility that might do this, but haven't found anything obvious.
I'm just hoping to get some output like:
field 1: varint: 128
field 4: string: "foo"
Any pointers in the right direction would be most welcome!
You could try forcing it through the wireshark plugin, or you could probably borrow the "reader" part of some of the implementations (I know how I would do this in C#, for example, but I doubt that is what you meant).
However, be cautious - string in protocol buffers doesn't really mean "string" - it could be: