# ListLabelLocksResponse

- [JSON representation](https://developers.google.com/workspace/drive/labels/reference/rest/v2beta/ListLabelLocksResponse#SCHEMA_REPRESENTATION)
- [LabelLock](https://developers.google.com/workspace/drive/labels/reference/rest/v2beta/ListLabelLocksResponse#LabelLock)
  - [JSON representation](https://developers.google.com/workspace/drive/labels/reference/rest/v2beta/ListLabelLocksResponse#LabelLock.SCHEMA_REPRESENTATION)
- [Capabilities](https://developers.google.com/workspace/drive/labels/reference/rest/v2beta/ListLabelLocksResponse#Capabilities)
  - [JSON representation](https://developers.google.com/workspace/drive/labels/reference/rest/v2beta/ListLabelLocksResponse#Capabilities.SCHEMA_REPRESENTATION)
- [State](https://developers.google.com/workspace/drive/labels/reference/rest/v2beta/ListLabelLocksResponse#State)

The response to a ListLabelLocksRequest.

| JSON representation |
|---|
| ``` { "labelLocks": [ { object (`https://developers.google.com/workspace/drive/labels/reference/rest/v2beta/ListLabelLocksResponse#LabelLock`) } ], "nextPageToken": string } ``` |

| Fields ||
|---|---|
| `labelLocks[]` | ``object (`https://developers.google.com/workspace/drive/labels/reference/rest/v2beta/ListLabelLocksResponse#LabelLock`)`` LabelLocks. |
| `nextPageToken` | `string` The token of the next page in the response. |

## LabelLock

A Lock that can be applied to a Label, Field, or Choice.

| JSON representation |
|---|
| ``` { "name": string, "fieldId": string, "choiceId": string, "createTime": string, "creator": { object (`https://developers.google.com/workspace/drive/labels/reference/rest/v2beta/labels#UserInfo`) }, "deleteTime": string, "capabilities": { object (`https://developers.google.com/workspace/drive/labels/reference/rest/v2beta/ListLabelLocksResponse#Capabilities`) }, "state": enum (`https://developers.google.com/workspace/drive/labels/reference/rest/v2beta/ListLabelLocksResponse#State`) } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. Resource name of this LabelLock. |
| `fieldId` | `string` The ID of the Field that should be locked. Empty if the whole Label should be locked. |
| `choiceId` | `string` The ID of the Selection Field Choice that should be locked. If present, `fieldId` must also be present. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The time this LabelLock was created. |
| `creator` | ``object (`https://developers.google.com/workspace/drive/labels/reference/rest/v2beta/labels#UserInfo`)`` 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. |
| `deleteTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` 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. |
| `capabilities` | ``object (`https://developers.google.com/workspace/drive/labels/reference/rest/v2beta/ListLabelLocksResponse#Capabilities`)`` Output only. The user's capabilities on this LabelLock. |
| `state` | ``enum (`https://developers.google.com/workspace/drive/labels/reference/rest/v2beta/ListLabelLocksResponse#State`)`` Output only. This LabelLock's state. |

## Capabilities

A description of a user's capabilities on a LabelLock.

| JSON representation |
|---|
| ``` { "canViewPolicy": boolean } ``` |

| Fields ||
|---|---|
| `canViewPolicy` | `boolean` True if the user is authorized to view the policy. |

## State

A description of a LabelLock's state.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | Unknown state. |
| `ACTIVE` | The LabelLock is active and is being enforced by the server. |
| `DELETING` | The LabelLock is being deleted. The LabelLock will continue to be enforced by the server until it has been fully removed. |