protos are also gaining "Well-known Types", some of which are "boxed" (Message) versions of the primitive types: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf
I believe the actual docs on well-known types are currently Google-internal :-( Zellyn On Saturday, March 26, 2016 at 2:43:00 PM UTC-4, Yoav H wrote: > > Hi, > > I wanted ask regarding the decision to populate fields with default > values, even if they do not appear in the encoded message. > If I want to send a "patch" message, where I want to update just the > provided fields, how can I do that with protobuf (without adding IsXXXSet > for every field)? > > Why not add another type, representing a default value? > So the schematics would be, if the field is missing, it is null, and if > the field exists, but with this "missing value" type, it will get the > default value? > > Thanks, > Yoav. > -- 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.
