by packetslave · 8y ago · 0 comments
message X { optional string foo = 1; } message Y { optional X foo = 1; }
Encoded buffers of X will decode as Y just fine.
Then again, if you're accepting arbitrary bytes off the wire and blindly assuming they're going to be the correct proto as long as they decode, you're... most stubby services I worked on. :-)