As a sender, I know I can use the has_*() functions to know if the field has been filled in. My question was whether it is guaranteed that the receiver can also use has_*() to know if the field was sent.
On Feb 11, 6:34 pm, Kenton Varda <ken...@google.com> wrote: > Yes. That's the purpose of has_*() -- to tell you if the field was/will be > sent explicitly. > > On Wed, Feb 11, 2009 at 3:09 PM, <ray.rizz...@gmail.com> wrote: > > > From what I have read, it seams that if I don't send an optional > > field, the field will have an explicit or implicit value at the > > receiver. However, will functions like has_ in C++ know that the > > received message is missing the optional field? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to protobuf@googlegroups.com To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~----------~----~----~----~------~----~------~--~---