Hi everyone,

I've just started with protobuf.

I've noticed that using proto3 means that if you set a parameter with 
default values (e.g. bool false) it is no longer serialised. For my 
application, sending the default value conveys information, so this is 
unacceptable as the deserialiser does not know that the variable was set. I 
noticed that proto 2 has a 'optional' keyword which seems to do what I 
want. I also found a work around in proto 3 in the link below but it is 
really ugly.


My questions are

What is the long term support plan for proto 2? Will it be abandoned by 
google in the future?
What would be computationally more efficient, using proto 2 or using proto 
3 with the work around?


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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to