I am assuming by "result file" you are talking about serialized data. For proto3, setting field to default value or not setting it is the same for serialized data. Neither of these cases will generate data during serialization. For proto2, setting field to default value is not the same as not setting it at all.
On Fri, Sep 1, 2017 at 10:50 AM Сергей Дранишников < [email protected]> wrote: > Hi all, > > I have some question about technique save data at file using Protocol > Buffers. > > To set the values in the Protocol Buffers message we use the set() > function. And we have opportunity use "optional" rules for field. > > Question: Will be change size of result file if we dont set some fields in > Protocol Buffers message? > > Thanks > > -- 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.
