Yes, I add fields in my new protocol buffers types without changing any
data type of an existing fields. After I posted my problems, I tried member
function ParsePartialFromCodedStream in the message class, and it told me
that I have UnknownFields, and is it the way protocol buffers designed to
What exactly happens? Protocol buffers are designed to be forwards
compatible, so adding fields etc is usually fine and expected. Depending on
the implementation unexpected fields may be ignored or stored as extension
fields. So: is that what you did? And: what happened?
Note: changing the data
I am using protocol buffer in C++ and I notice that if I use an old
protocol buffer generated code and parse a new protocol buffer file, it
will crash.
Is there any way to partial parse the file like just ignore the
unrecognized structure in my new file and get the supported total file?