If all my fields in a protobuf are `optional`, will ParseFromArray ever 
return false? I am doing some tests right now, and I am testing two 
scenarios: 
 

> Person 

optional string name;


 Vehicle 

 optional int64 wheels;


1. Empty buffer is passed into Person#ParseFromArray. Returns true.
2. Instance of Person is serialized into a buffer. Buffer is passed into 
Vehicle#ParseFromArray. Returns true.

Is this expected behavior?

-- 
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