Re: [protobuf] Moving optional field into oneof

2016-08-08 Thread 'Jie Luo' via Protocol Buffers
It will not be dropped after serialize and parse, because you only have one field in the old message. On Mon, Aug 8, 2016 at 3:39 PM, 'Mircea Markus' via Protocol Buffers < protobuf@googlegroups.com> wrote: > Hi, > > The oneof documentation >

[protobuf] Moving optional field into oneof

2016-08-08 Thread 'Mircea Markus' via Protocol Buffers
Hi, The oneof documentation states that if I move an optional field into an oneof, I "may lose some of your information (some fields will be cleared) after the message is serialized and parsed" Can y