Hi,

The doc <https://developers.google.com/protocol-buffers/docs/proto#oneof>warns 
about moving optional fields into oneof: 'You may lose some of your 
information (some fields will be cleared) after the message is serialized 
and parsed'
I want to move an single optional field into an oneof, i.e. I'd like to 
evolve:

into:
message SampleMessage {
   oneof test_oneof {
     string name = 4;
     MyType new_field = 5;
  }
}

Will that wipe any existing values of name?

Thanks,
Mircea
 

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to