Skip to content

fieldmask: use field behavior for applying updates #134

@nlachfr

Description

@nlachfr

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions