LabelOperation

  • Describes a single operation (create, remove, or update) on a label.

  • The update_mask field determines which fields are modified during an update operation.

  • The operation union field specifies whether the action is to create, update, or remove a label.

  • The create operation does not require a resource name for the new label.

  • The remove operation requires a resource name in the format customers/{customer_id}/labels/{label_id}.

A single operation (create, remove, update) on a label.

Proto definition

Fields

operation

Union field. The mutate operation.

operation can be only one of the following:

create

Label

Create operation: No resource name is expected for the new label.

remove

string

Remove operation: A resource name for the label being removed, in this format:

customers/{customer_id}/labels/{label_id}

update

Label

Update operation: The label is expected to have a valid resource name.

update_mask

FieldMask

FieldMask that determines which resource fields are modified in an update.