Get desktop application:
View/edit binary Protocol Buffers messages
Manage metadata taxonomies based on Labels and Fields that may be used within Google Drive to organize and find files using custom metadata.
Gets the user capabilities.
Request to get the capabilities for a user.
Required. The resource name of the user. Only "users/me/capabilities" is supported.
The customer to scope this request to. For example: "customers/abcd1234". If unset, will return settings within the current customer.
The capabilities of a user.
Output only. Resource name for the user capabilities.
Output only. Whether the user is allowed access to the label manager.
Output only. Whether the user is an administrator for the shared labels feature.
Output only. Whether the user is allowed to create new shared labels.
Output only. Whether the user is allowed to create new admin labels.
List labels.
Request to list labels available to the current user.
Set to `true` in order to use the user's admin credentials. This will return all Labels within the customer.
Specifies the level of access the user must have on the returned Labels. The minimum role a user must have on a label. Defaults to `READER`.
Whether to include only published labels in the results. * When `true`, only the current published label revisions are returned. Disabled labels are included. Returned label resource names reference the published revision (`labels/{id}/{revision_id}`). * When `false`, the current label revisions are returned, which might not be published. Returned label resource names don't reference a specific revision (`labels/{id}`).
The customer to scope this list request to. For example: "customers/abcd1234". If unset, will return all labels within the current customer.
The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language are used.
Maximum number of labels to return per page. Default: 50. Max: 200.
The token of the page to return.
When specified, only certain fields belonging to the indicated view are returned.
Response for listing Labels.
Labels.
The token of the next page in the response.
Get a label by its resource name. Resource name may be any of: * `labels/{id}` - See `labels/{id}@latest` * `labels/{id}@latest` - Gets the latest revision of the label. * `labels/{id}@published` - Gets the current published revision of the label. * `labels/{id}@{revision_id}` - Gets the label at the specified revision ID.
Request to get a label by resource name.
Required. Label resource name. May be any of: * `labels/{id}` (equivalent to labels/{id}@latest) * `labels/{id}@latest` * `labels/{id}@published` * `labels/{id}@{revision_id}`
Set to `true` in order to use the user's admin credentials. The server verifies that the user is an admin for the label before allowing access.
The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language are used.
When specified, only certain fields belonging to the indicated view are returned.
Get the constraints on the structure of a Label; such as, the maximum number of Fields allowed and maximum length of the label title.
Request to get the limits for a Label.
Required. Label revision resource name Must be: "limits/label"
Label constraints governing the structure of a Label; such as, the maximum number of Fields allowed and maximum length of the label title.
Resource name.
The maximum number of characters allowed for the title.
The maximum number of characters allowed for the description.
The maximum number of Fields allowed within the label.
The maximum number of published Fields that can be deleted.
The maximum number of draft revisions that will be kept before deleting old drafts.
The limits for Fields.
Creates a new Label.
Request to create a Label.
Required. The label to create.
Set to `true` in order to use the user's admin privileges. The server will verify the user is an admin before allowing access.
The BCP-47 language code to use for evaluating localized Field labels in response. When not specified, values in the default configured language will be used.
Updates a single Label by applying a set of update requests resulting in a new draft revision. The batch update is all-or-nothing: If any of the update requests are invalid, no changes are applied. The resulting draft revision must be published before the changes may be used with Drive Items.
The set of requests for updating aspects of a Label. If any request is not valid, no requests will be applied.
Required. The resource name of the Label to update.
Provides control over how write requests are executed.
A list of updates to apply to the Label. Requests will be applied in the order they are specified.
Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.
When specified, only certain fields belonging to the indicated view will be returned.
The BCP-47 language code to use for evaluating localized Field labels when `include_label_in_response` is `true`.
Response for Label update.
The reply of the updates. This maps 1:1 with the updates, although responses to some requests may be empty.
The label after updates were applied. This is only set if [BatchUpdateLabelResponse2.include_label_in_response] is `true` and there were no errors.
Updates a Label's `CopyMode`. Changes to this policy are not revisioned, do not require publishing, and take effect immediately.
Request to update the `CopyMode` of the given Label. Changes to this policy are not revisioned, do not require publishing, and take effect immediately. \
Required. The resource name of the Label to update.
Required. Indicates how the applied Label, and Field values should be copied when a Drive item is copied.
Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.
The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language will be used.
When specified, only certain fields belonging to the indicated view will be returned.
Publish all draft changes to the Label. Once published, the Label may not return to its draft state. See `google.apps.drive.labels.v2.Lifecycle` for more information. Publishing a Label will result in a new published revision. All previous draft revisions will be deleted. Previous published revisions will be kept but are subject to automated deletion as needed. Once published, some changes are no longer permitted. Generally, any change that would invalidate or cause new restrictions on existing metadata related to the Label will be rejected. For example, the following changes to a Label will be rejected after the Label is published: * The label cannot be directly deleted. It must be disabled first, then deleted. * Field.FieldType cannot be changed. * Changes to Field validation options cannot reject something that was previously accepted. * Reducing the max entries.
Request to publish a label.
Required. Label resource name.
Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.
Provides control over how write requests are executed. Defaults to unset, which means last write wins.
The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language will be used.
Disable a published Label. Disabling a Label will result in a new disabled published revision based on the current published revision. If there is a draft revision, a new disabled draft revision will be created based on the latest draft revision. Older draft revisions will be deleted. Once disabled, a label may be deleted with `DeleteLabel`.
Request to deprecate a published Label.
The fields that should be updated. At least one field must be specified. The root `disabled_policy` is implied and should not be specified. A single `*` can be used as short-hand for updating every field.
Required. Label resource name.
Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.
Provides control over how write requests are executed. Defaults to unset, which means last write wins.
Disabled policy to use.
The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language will be used.
Enable a disabled Label and restore it to its published state. This will result in a new published revision based on the current disabled published revision. If there is an existing disabled draft revision, a new revision will be created based on that draft and will be enabled.
Request to enable a label.
Required. Label resource name.
Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.
Provides control over how write requests are executed. Defaults to unset, which means last write wins.
The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language will be used.
Permanently deletes a Label and related metadata on Drive Items. Once deleted, the Label and related Drive item metadata will be deleted. Only draft Labels, and disabled Labels may be deleted.
Request to delete a label.
Required. Label resource name.
Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.
Provides control over how write requests are executed. Defaults to unset, which means last write wins.
Lists a Label's permissions.
Request to list the permissions on a Label.
Required. The parent Label resource name on which Label Permission are listed. Format: labels/{label}
Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.
Maximum number of permissions to return per page. Default: 50. Max: 200.
The token of the page to return.
Response for listing the permissions on a Label.
Label permissions.
The token of the next page in the response.
Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.
Creates or updates a permission on the Label. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.
Required. The parent Label resource name on the Label Permission is created. Format: labels/{label}
Required. The permission to create or update on the Label.
Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.
Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.
Deletes a Label's permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.
Updates Label permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.
Updates one or more Label Permissions.
Required. The parent Label resource name shared by all permissions being updated. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest messages must either be empty or match this field.
Required. The request message specifying the resources to update.
Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. If this is set, the use_admin_access field in the UpdateLabelPermissionRequest messages must either be empty or match this field.
Response for updating one or more Label Permissions.
Required. Permissions updated.
Deletes Label permissions. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.
Deletes one of more Label Permissions.
Required. The request message specifying the resources to update.
Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. If this is set, the use_admin_access field in the DeleteLabelPermissionRequest messages must either be empty or match this field.
Required. The parent Label resource name shared by all permissions being deleted. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest messages must either be empty or match this field.
Lists the LabelLocks on a Label.
A request to list the LabelLocks on a Label.
Required. Label on which Locks are applied. Format: labels/{label}
Maximum number of Locks to return per page. Default: 100. Max: 200.
The token of the page to return.
The response to a ListLabelLocksRequest.
LabelLocks.
The token of the next page in the response.
The color derived from BadgeConfig and changed to the closest recommended supported color.
Used in:
Output only. Badge background that pairs with the foreground.
Output only. Badge foreground that pairs with the background.
Output only. Color that can be used for text without a background.
Badge status of the label.
Used in:
The color of the badge. When not specified, no badge is rendered. The background, foreground, and solo (light and dark mode) colors set here are changed in the Drive UI into the closest recommended supported color.
Override the default global priority of this badge. When set to 0, the default priority heuristic is used.
Limits for date Field type.
Used in:
Minimum value for the date Field type.
Maximum value for the date Field type.
Deletes a Label Permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.
Used as request type in: LabelService.DeleteLabelPermission
Used as field type in:
Required. Label Permission resource name.
Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.
Request to create a Field within a Label.
Used in:
Required. Field to create.
Request to create a Selection Choice.
Used in:
Required. The Selection Field in which a Choice will be created.
Required. The Choice to create.
Request to delete the Field.
Used in:
Required. ID of the Field to delete.
Request to delete a Choice.
Used in:
Required. The Selection Field from which a Choice will be deleted.
Required. Choice to delete.
Request to disable the Field.
Used in:
The fields that should be updated. At least one field must be specified. The root `disabled_policy` is implied and should not be specified. A single `*` can be used as short-hand for updating every field.
Required. Key of the Field to disable.
Required. Field Disabled Policy.
Request to disable a Choice.
Used in:
The fields that should be updated. At least one field must be specified. The root `disabled_policy` is implied and should not be specified. A single `*` can be used as short-hand for updating every field.
Required. The Selection Field in which a Choice will be disabled.
Required. Choice to disable.
Required. The disabled policy to update.
Request to enable the Field.
Used in:
Required. ID of the Field to enable.
Request to enable a Choice.
Used in:
Required. The Selection Field in which a Choice will be enabled.
Required. Choice to enable.
A single kind of update to apply to a Label.
Used in:
The kind of update. Exactly one Field is required.
Updates the Label properties.
Creates a new Field.
Updates basic properties of a Field.
Update Field type and/or type options.
Enables the Field.
Disables the Field.
Deletes a Field from the label.
Creates Choice within a Selection field.
Update a Choice properties within a Selection Field.
Enable a Choice within a Selection Field.
Disable a Choice within a Selection Field.
Delete a Choice within a Selection Field.
Request to update Field properties.
Used in:
The fields that should be updated. At least one field must be specified. The root `properties` is implied and should not be specified. A single `*` can be used as short-hand for updating every field.
Required. The Field to update.
Required. Basic Field properties.
Request to change the type of a Field.
Used in:
Update field to Text.
Update field to Integer.
Update field to Date.
Update field to Selection.
Update field to User.
The fields that should be updated. At least one field must be specified. The root of `type_options` is implied and should not be specified. A single `*` can be used as short-hand for updating every field.
Required. The Field to update.
Updates basic properties of a Label.
Used in:
The fields that should be updated. At least one field must be specified. The root `label_properties` is implied and should not be specified. A single `*` can be used as short-hand for updating every field.
Required. Label properties to update.
Request to update a Choice properties.
Used in:
The fields that should be updated. At least one field must be specified. The root `properties` is implied and should not be specified. A single `*` can be used as short-hand for updating every field.
Required. The Selection Field to update.
Required. The Choice to update.
Required. The Choice properties to update.
Response following Field create.
Used in:
The field of the created field. When left blank in a create request, a key will be autogenerated and can be identified here.
The priority of the created field. The priority may change from what was specified to assure contiguous priorities between fields (1-n).
Response following Selection Choice create.
Used in:
The server-generated id of the field.
The server-generated ID of the created choice within the Field
Response following Field delete.
Used in:
(message has no fields)
Response following Choice delete.
Used in:
(message has no fields)
Response following Field disable.
Used in:
(message has no fields)
Response following Choice disable.
Used in:
(message has no fields)
Response following Field enable.
Used in:
(message has no fields)
Response following Choice enable.
Used in:
(message has no fields)
A single response from an update.
Used in:
The response for the corresponding request.
Updated basic properties of a Label.
Creates a new Field.
Updates basic properties of a Field.
Update Field type and/or type options.
Enables Field.
Disables Field.
Deletes a Field from the label.
Creates a new selection list option to add to a Selection Field.
Updates a Choice within a Selection Field.
Enables a Choice within a Selection Field.
Disables a Choice within a Selection Field.
Deletes a Choice from a Selection Field.
Response following update to Field properties.
Used in:
The priority of the updated field. The priority may change from what was specified to assure contiguous priorities between fields (1-n).
Response following update to Field type.
Used in:
(message has no fields)
Response following update to Label properties.
Used in:
(message has no fields)
Response following update to Selection Choice properties.
Used in:
The priority of the updated choice. The priority may change from what was specified to assure contiguous priorities between choices (1-n).
Exception detail.
The type of exception that occurred. Required.
Every ExceptionType maps to one and only one Exception class. This allows internal clients to identify the exact server exception that caused the error for debugging and logging purposes. Add new ExceptionTypes to EXCEPTION_TYPE_TO_ERROR_CODE_MAP in j/c/g/apps/boq/metadata/model/service/exceptions/CategoryExceptionHelper
Used in:
Unknown ExceptionType.
The required field is missing.
Unable to create a metamodel with the given ID because it already exists.
Metamodel was not found
Metamodel state transition isn't allowed.
Metamodel deprecation policy is invalid.
Cannot delete a metamodel due to the pending deprecation policy.
A Field value is invalid.
Precondition failed when updating a metamodel
Multiple fields had the same key.
Removing a field from a Metamodel (e.g. a published Metamodel) is not permitted.
Cannot specify field options for a different field type.
Some changes are not supported
Cannot change the metamodel state in an update
The page token is expired
The user is not authorized to make the request.
Illegal field state transition
Illegal choice set option state transition
Invalid choice set options
Invalid field key
A specified property on a field is outside the allowed range.
A localized string wasn't valid. This may be because the locale is invalid, its missing a default value, or the translation is empty for a set locale.
cannot change a property on a published field
A field update is not inclusive of the previous value
A field update is not inclusive of the previous value
An unknown error occurred
Defines a field that has a display name, data type, and other configuration options. This field defines the kind of metadata that may be set on a Drive item.
Used in:
,The data type and options of this field. Once published, the data type cannot be changed.
Text field options.
Integer field options.
Date field options.
Selection field options.
User field options.
Output only. The key of a field, unique within a label or library. This value is autogenerated. Matches the regex: `([a-zA-Z0-9])+`
Output only. The key to use when constructing Drive search queries to find files based on values defined for this field on files. For example, "`{query_key}` > 2001-01-01".
The basic properties of the field.
Output only. The lifecycle of this field.
Output only. UI display hints for rendering a field.
Output only. The capabilities this user has when editing this field.
Output only. The capabilities this user has on this field and its value when the label is applied on Drive items.
Output only. The user who created this field.
Output only. The time this field was created.
Output only. The user who modified this field.
Output only. The time this field was updated.
Output only. The user who published this field. This value has no meaning when the field is not published.
Output only. The user who disabled this field. This value has no meaning when the field is not disabled.
Output only. The time this field was disabled. This value has no meaning when the field is not disabled.
Output only. The LockStatus of this field.
The capabilities related to this field on applied metadata.
Used in:
Whether the user can read related applied metadata on items.
Whether the user can search for Drive items referencing this field.
Whether the user can set this field on Drive items.
Options for the date field type.
Used in:
,Localized date formatting option. Field values are rendered in this format according to their locale.
Output only. ICU date format.
Output only. Minimum valid value (year, month, day).
Output only. Maximum valid value (year, month, day).
Localized date format options.
Used in:
Date format unspecified.
Includes full month name. For example, January 12, 1999 (MMMM d, y)
Short, numeric, representation. For example, 12/13/99 (M/d/yy)
UI display hints for rendering a field.
Used in:
Whether the field should be shown as required in the UI.
Whether the field should be shown in the UI as disabled.
This field should be hidden in the search menu when searching for Drive items.
This field should be shown in the apply menu when applying values to a Drive item.
Options for the Integer field type.
Used in:
,Output only. The minimum valid value for the integer field.
Output only. The maximum valid value for the integer field.
Options for a multi-valued variant of an associated field type.
Used in:
,Maximum number of entries permitted.
The basic properties of the field.
Used in:
,Required. The display text to show in the UI identifying this field.
Whether the field should be marked as required.
Input only. Insert or move this field before the indicated field. If empty, the field is placed at the end of the list.
The capabilities related to this field when editing the field.
Used in:
Whether the user can change this field.
Whether the user can delete this field. The user must have permission and the field must be deprecated.
Whether the user can disable this field. The user must have permission and this field must not already be disabled.
Whether the user can enable this field. The user must have permission and this field must be disabled.
Options for the selection field type.
Used in:
,When specified, indicates this field supports a list of values. Once the field is published, this cannot be changed.
The options available for this selection field. The list order is consistent, and modified with `insert_before_choice`.
Selection field choice.
Used in:
,The unique value of the choice. This ID is autogenerated. Matches the regex: `([a-zA-Z0-9_])+`.
Basic properties of the choice.
Output only. Lifecycle of the choice.
Output only. UI display hints for rendering a choice.
Output only. The capabilities related to this option when editing the option.
Output only. The capabilities related to this choice on applied metadata.
Output only. The user who created this choice.
Output only. The time this choice was created.
Output only. The user who updated this choice last.
Output only. The time this choice was updated last.
Output only. The user who published this choice. This value has no meaning when the choice is not published.
Output only. The time this choice was published. This value has no meaning when the choice is not published.
Output only. The user who disabled this choice. This value has no meaning when the option is not disabled.
Output only. The time this choice was disabled. This value has no meaning when the choice is not disabled.
Output only. The LockStatus of this choice.
The capabilities related to this choice on applied metadata.
Used in:
Whether the user can read related applied metadata on items.
Whether the user can use this choice in search queries.
Whether the user can select this choice on an item.
UI display hints for rendering an option.
Used in:
Whether the option should be shown in the UI as disabled.
This option should be hidden in the search menu when searching for Drive items.
This option should be shown in the apply menu when applying values to a Drive item.
The colors to use for the badge. Changed to Google Material colors based on the chosen `properties.badge_config.color`.
The dark-mode color to use for the badge. Changed to Google Material colors based on the chosen `properties.badge_config.color`.
The priority of this badge. Used to compare and sort between multiple badges. A lower number means the badge should be shown first. When a badging configuration is not present, this will be 0. Otherwise, this will be set to `BadgeConfig.priority_override` or the default heuristic which prefers creation date of the label, and field and option priority.
Basic properties of the choice.
Used in:
,Required. The display text to show in the UI identifying this field.
The description of this label.
The badge configuration for this choice. When set, the label that owns this choice is considered a "badged label".
Input only. Insert or move this choice before the indicated choice. If empty, the choice is placed at the end of the list.
The capabilities related to this choice when editing the choice.
Used in:
Whether the user can update this choice.
Whether the user can delete this choice.
Whether the user can disable this choice.
Whether the user can enable this choice.
Options for the Text field type.
Used in:
,Output only. The minimum valid length of values for the text field.
Output only. The maximum valid length of values for the text field.
Options for the user field type.
Used in:
,When specified, indicates that this field supports a list of values. Once the field is published, this cannot be changed.
Field constants governing the structure of a Field; such as, the maximum title length, minimum and maximum field values or length, etc.
Used in:
Max length for the id.
Limits for Field title.
Limits for Field description, also called help text.
The relevant limits for the specified Field.Type. Text Field limits.
Long text Field limits.
Integer Field limits.
Date Field limits.
User Field limits.
Selection Field limits.
Limits for integer Field type.
Used in:
Minimum value for an integer Field type.
Maximum value for an integer Field type.
Describes violations in a request to create or update a Label or its Fields.
Describes all violations in a client request.
Describes the Field in which the violation occurred.
Used in:
The path to the field where this violation occurred. This path is specified using `FieldMask` format: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
The detailed reason for this FieldViolation.
A message that describes the violation. This message is intended to be shown to end users, and is localized into the requesting user's preferred language.
Possible reasons a field is invalid.
Used in:
Unknown reason.
The referenced field is required.
The referenced value was invalid.
The specified numeric value is out of the allowed range.
The specified string value was too long.
The number of entries exceeded the maximum.
The specified field is not found in the Label.
The specified choice is not found in the Field.
A label defines a taxonomy that can be applied to Drive items in order to organize and search across items. Labels can be simple strings, or can contain fields that describe additional metadata that can be further used to organize and search Drive items.
Used as response type in: LabelService.CreateLabel, LabelService.DisableLabel, LabelService.EnableLabel, LabelService.GetLabel, LabelService.PublishLabel, LabelService.UpdateLabelCopyMode
Used as field type in:
, ,Output only. Resource name of the label. Will be in the form of either: `labels/{id}` or `labels/{id}@{revision_id}` depending on the request. See `id` and `revision_id` below.
Output only. Globally unique identifier of this label. ID makes up part of the label `name`, but unlike `name`, ID is consistent between revisions. Matches the regex: `([a-zA-Z0-9])+`
Output only. Revision ID of the label. Revision ID might be part of the label `name` depending on the request issued. A new revision is created whenever revisioned properties of a label are changed. Matches the regex: `([a-zA-Z0-9])+`
Required. The type of label.
Output only. The user who created this label.
Output only. The time this label was created.
Output only. The user who created this label revision.
Output only. The time this label revision was created.
Output only. The user who published this label. This value has no meaning when the label is not published.
Output only. The time this label was published. This value has no meaning when the label is not published.
Output only. The user who disabled this label. This value has no meaning when the label is not disabled.
Output only. The time this label was disabled. This value has no meaning when the label is not disabled.
Output only. The customer this label belongs to. For example: "customers/123abc789."
Required. The basic properties of the label.
Output only. The lifecycle state of the label including whether it's published, deprecated, and has draft changes.
Output only. UI display hints for rendering the label.
Output only. The capabilities related to this label on applied metadata.
Output only. The capabilities the user has on this label.
Output only. Behavior of this label when it's applied to Drive items.
List of fields in descending priority order.
Custom URL to present to users to allow them to learn more about this label and how it should be used.
Output only. The LockStatus of this label.
The capabilities a user has on this label's applied metadata.
Used in:
Whether the user can read applied metadata related to this label.
Whether the user can apply this label to items.
Whether the user can remove this label from items.
Behavior of this label when it's applied to Drive items.
Used in:
Indicates how the applied label and field values should be copied when a Drive item is copied.
Indicates how the applied label and field values should be copied when a Drive item is copied.
Used in:
,Copy mode unspecified.
The applied label and field values are not copied by default when the Drive item it's applied to is copied.
The applied label and field values are always copied when the Drive item it's applied to is copied. Only admins can use this mode.
The applied label and field values are copied if the label is appliable by the user making the copy.
UI display hints for rendering the label.
Used in:
Whether the label should be shown in the UI as disabled.
This label should be hidden in the search menu when searching for Drive items.
This label should be shown in the apply menu when applying values to a Drive item.
Order to display label in a list.
The type of this label.
Used in:
Unknown label type.
Shared labels may be shared with users to apply to Drive items.
Admin-owned label. Only creatable and editable by admins. Supports some additional admin-only features.
A label owned by an internal Google application rather than a customer. These labels are read-only.
Basic properties of the label.
Used in:
,Required. Title of the label.
The description of the label.
The capabilities related to this label when editing the label.
Used in:
Whether the user can change this label.
Whether the user can delete this label. The user must have permission and the label must be disabled.
Whether the user can disable this label. The user must have permission and this label must not already be disabled.
Whether the user can enable this label. The user must have permission and this label must be disabled.
A Lock that can be applied to a Label, Field, or Choice.
Used in:
Output only. Resource name of this LabelLock.
The ID of the Field that should be locked. Empty if the whole Label should be locked.
The ID of the Selection Field Choice that should be locked. If present, `field_id` must also be present.
Output only. The time this LabelLock was created.
Output only. The user whose credentials were used to create the LabelLock. This will not be present if no user was responsible for creating the LabelLock.
Output only. A timestamp indicating when this LabelLock was scheduled for deletion. This will be present only if this LabelLock is in the DELETING state.
Output only. The user's capabilities on this LabelLock.
Output only. This LabelLock's state.
A description of a user's capabilities on a LabelLock.
Used in:
True if the user is authorized to view the policy.
A description of a LabelLock's state.
Used in:
Unknown state.
The LabelLock is active and is being enforced by the server.
The LabelLock is being deleted. The LabelLock will continue to be enforced by the server until it has been fully removed.
The permission that applies to a principal (user, group, audience) on a label.
Used as response type in: LabelService.CreateLabelPermission, LabelService.UpdateLabelPermission
Used as field type in:
, , ,The principal this permission applies to. Must be either an email, user, group, or audience. Example: * people/12345 * groups/45678 * audiences/default
Person resource name.
Group resource name.
Audience to grant a role to. The magic value of `audiences/default` may be used to apply the role to the default audience in the context of the organization that owns the Label.
Resource name of this permission.
Specifies the email address for a user or group pricinpal. Not populated for audience principals. User and Group permissions may only be inserted using email address. On update requests, if email address is specified, no principal should be specified.
The role the principal should have.
Roles are concentric with subsequent role.
Used in:
,Unknown role.
A reader can read the label and associated metadata applied to Drive items.
An applier can write associated metadata on Drive items in which they also have write access to. Implies `READER`.
An organizer can pin this label in shared drives they manage and add new appliers to the label.
Editors can make any update including deleting the label which also deletes the associated Drive item metadata. Implies `APPLIER`.
Resource view that can be applied to label responses. The default value `LABEL_VIEW_BASIC` implies the field mask: `name,id,revision_id,label_type,properties.*`\
Used in:
, , ,Implies the field mask: `name,id,revision_id,label_type,properties.*`
All possible fields.
The lifecycle state of an object, such as label, field, or choice. The lifecycle enforces the following transitions: * `UNPUBLISHED_DRAFT` (starting state) * `UNPUBLISHED_DRAFT` -> `PUBLISHED` * `UNPUBLISHED_DRAFT` -> (Deleted) * `PUBLISHED` -> `DISABLED` * `DISABLED` -> `PUBLISHED` * `DISABLED` -> (Deleted) The published and disabled states have some distinct characteristics: * Published—Some kinds of changes might be made to an object in this state, in which case `has_unpublished_changes` will be true. Also, some kinds of changes are not permitted. Generally, any change that would invalidate or cause new restrictions on existing metadata related to the label are rejected. * Disabled—When disabled, the configured `DisabledPolicy` takes effect.
Used in:
, ,Output only. The state of the object associated with this lifecycle.
Output only. Whether the object associated with this lifecycle has unpublished changes.
The policy that governs how to show a disabled label, field, or selection choice.
The policy that governs how to treat a disabled label, field, or selection choice in different contexts.
Used in:
, , ,Whether to hide this disabled object in the search menu for Drive items. * When `false`, the object is generally shown in the UI as disabled but it appears in the search results when searching for Drive items. * When `true`, the object is generally hidden in the UI when searching for Drive items.
Whether to show this disabled object in the apply menu on Drive items. * When `true`, the object is generally shown in the UI as disabled and is unselectable. * When `false`, the object is generally hidden in the UI.
The state of the object associated with this lifecycle.
Used in:
Unknown State.
The initial state of an object. Once published, the object can never return to this state. Once an object is published, certain kinds of changes are no longer permitted.
The object has been published. The object might have unpublished draft changes as indicated by `has_unpublished_changes`.
The object has been published and has since been disabled. The object might have unpublished draft changes as indicated by `has_unpublished_changes`.
The object has been deleted.
Limits for list-variant of a Field type.
Used in:
,Maximum number of values allowed for the Field type.
Contains information about whether a label component should be considered locked.
Used in:
, ,Output only. Indicates whether this label component is the (direct) target of a LabelLock. A label component can be implicitly locked even if it's not the direct target of a LabelLock, in which case this field is set to false.
Limits for long text Field type.
Used in:
Minimum length allowed for a long text Field type.
Maximum length allowed for a long text Field type.
Describes what preconditions have failed.
Describes all violations in a client request.
Specific failure reason.
Used in:
The path to the field where this violation occurred. This path is specified using `FieldMask` format: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
The type of this violation.
A message that describes the violation. This message is intended to be shown to end users, and is localized into the requesting user's preferred language.
The possible reasons a the violation occurred.
Used in:
Unknown violation type.
This Resource cannot be Disabled. Only Published resources can be Disabled.
This Resource cannot be Enabled. Only Disabled resources can be Enabled.
This Resource cannot be Published. Only Draft or Disabled resources can be Published.
This Resource cannot be Unpublished. Once published, resources may not be set in "Draft" state.
This Resource cannot be Deleted. Only Disabled resources can be Deleted.
The request modified a range in a Field, but the new range does not include the previous range. When this error happens, `field` points at the Field where the violation occurred.
The specified change cannot be made to published Resources.
The customer cannot create new labels because the maximum number of labels for the customer has been reached.
The Field type cannot be changed because the Field has been published.
The Label component is locked and cannot be deleted
The Label cannot be enabled in the target application or applications.
Limits for selection Field type.
Used in:
Limits for list-variant of a Field type.
Maximum ID length for a selection options.
Maximum length for display name.
The max number of choices.
Maximum number of deleted choices.
Limits for text Field type.
Used in:
Minimum length allowed for a text Field type.
Maximum length allowed for a text Field type.
Updates a Label Permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.
Used as request type in: LabelService.UpdateLabelPermission
Used as field type in:
Required. The parent Label resource name.
Required. The permission to create or update on the Label.
Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.
Information about a user.
Used in:
, , ,The identifier for this user that can be used with the People API to get more information. For example, people/12345678.
Limits for Field.Type.USER.
Used in:
Limits for list-variant of a Field type.
Provides control over how write requests are executed. When not specified, the last write wins.
Used in:
, , , ,Determines the revision of the label to write to and how the request should behave if that revision is not the current revision of the label.
The [revision_id][google.apps.drive.labels.v1.Label.revision_id] of the label that the write request will be applied to. If this is not the latest revision of the label, the request will not be processed and will return a 400 Bad Request error.