Within the API, proto3 does not have the concept of field presence. All fields are "present" and default to their type's zero value.
Since the client can handle this, there is no need to explicitly serialize default values.
Since the client can handle this, there is no need to explicitly serialize default values.
Example:
{
'update_record': {
# Set foo=bar
'foo': 'bar'
},
'fields_to_update': {
'foo': true,
# Set some_int_flag=0 (default)
'some_int_flag': true
}
}
See also "Field Masks in Update Operations"
https://developers.google.com/protocol-buffers/docs/referenc...