# Google Cloud Storage Batch Operations V1 Client - Class RetentionMode (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.0 0.3.1 0.2.1 0.1.2 Reference documentation and code samples for the Google Cloud Storage Batch Operations V1 Client class RetentionMode.

Describes the retention mode.

Protobuf type `google.cloud.storagebatchoperations.v1.ObjectRetention.RetentionMode`

## Namespace

Google \\ Cloud \\ StorageBatchOperations \\ V1 \\ ObjectRetention

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### RETENTION_MODE_UNSPECIFIED

    Value: 0

If set and retain_until_time is empty, clears the retention.

Generated from protobuf enum `RETENTION_MODE_UNSPECIFIED = 0;`

### LOCKED

    Value: 1

Sets the retention mode to locked.

Generated from protobuf enum `LOCKED = 1;`

### UNLOCKED

    Value: 2

Sets the retention mode to unlocked.

Generated from protobuf enum `UNLOCKED = 2;`