There is a wirehark tool for this.
The problem here is that the protobuf format is ambiguous if you don't know the circuit:
- fixed-32 can be a float or unsigned integer (32 bits)
- fixed-64 can be a double or signed or unsigned integer (64 bit)
- varint can be a signed or unsigned integer, a zigzag integer, or a boolean
- The string can be utf-8, a packed array of primitives, a sub-message, or raw bytes.
In fact, the only unambiguous tokens are the beginning and the end group, and they are not subject to obsolescence!
So: this is kind of doable, but you may need to provide multiple interpretations of the same data
You can also specify only field numbers: in binary format there are no participant names
source share