Hello,
The AIP-203 specification defines custom behavior for updates using field masks :
- a field with
(google.api.field_behavior) = OUTPUT_ONLY should be ignored
- a field with
(google.api.field_behavior) = IMMUTABLE should raise an error when the field is modified
At the moment, these behaviors are not taken into account by the fieldmask module and I think that it would be nice if it was supported.
What do you think about adding it in the fieldmask.Update(mask *fieldmaskpb.FieldMask, dst, src proto.Message) function ?