v2
enum Foo {
foo = 1;
pika = 2;
}
message bar {
Foo baz = 1;
}
One could serialize with pika being the entry in baz
but deserialize on a v1 system!
What we should do is save the enum int that we couldn't understand
and serialize that number to send to someone who may understand it.
What we do here is: if we are a v1 system and got a proto like
bar{ baz = pika}
then we store the baz field as :%undefined-2.
Make unknown enum values pass through in lisp
We can't be sure we will get a member of the decided on set of enums on serialization. The problem occurs if:
v2 enum Foo { foo = 1; pika = 2; } message bar { Foo baz = 1; }