Port existing control protocol to proto3?

30 Views Asked by At

I am trying to port an existing control protocol definition to Google Protocol Buffers (proto3) toward the goal of generating decoding (not encoding) tools and libraries that produce human-readable strings. This control protocol has numerous one and two byte fields; however, proto3 does not appear to support these types. How can I implement support for one and two byte fields? Can proto3 even help me accomplish this goal.

Thank you, Ira

1

There are 1 best solutions below

0
Marc Gravell On

Protobuf (any version) is not intended for this purpose; it is opinionated about the protocol - it does not allow you to map things to an existing non-protobuf protocol.