# Google Cloud Storage Batch Operations V1 Client - Class CustomContextUpdates (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 CustomContextUpdates.

Describes a collection of updates to apply to custom contexts identified
by key.

Generated from protobuf message `google.cloud.storagebatchoperations.v1.CustomContextUpdates`

## Namespace

Google \\ Cloud \\ StorageBatchOperations \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ updates` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. Insert or update the existing custom contexts. |
| `↳ keys_to_clear` | `string[]` Optional. Custom contexts to clear by key. A key cannot be present in both `updates` and `keys_to_clear`. |

### getUpdates

Optional. Insert or update the existing custom contexts.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setUpdates

Optional. Insert or update the existing custom contexts.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getKeysToClear

Optional. Custom contexts to clear by key.

A key cannot be present in both `updates` and `keys_to_clear`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setKeysToClear

Optional. Custom contexts to clear by key.

A key cannot be present in both `updates` and `keys_to_clear`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |