# Google Cloud Storage Control V2 Client - Class UpdateAnywhereCacheRequest (1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.3 1.5.0 1.4.1 1.3.0 1.1.0 1.0.3 0.2.1 0.1.1 Reference documentation and code samples for the Google Cloud Storage Control V2 Client class UpdateAnywhereCacheRequest.

Request message for UpdateAnywhereCache.

Generated from protobuf message `google.storage.control.v2.UpdateAnywhereCacheRequest`

## Namespace

Google \\ Cloud \\ Storage \\ Control \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ anywhere_cache` | `https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.AnywhereCache` Required. The Anywhere Cache instance to be updated. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Required. List of fields to be updated. Mutable fields of AnywhereCache include `ttl` and `admission_policy`. To specify ALL fields, specify a single field with the value `*`. Note: We recommend against doing this. If a new field is introduced at a later time, an older client updating with the `*` may accidentally reset the new field's value. Not specifying any fields is an error. |
| `↳ request_id` | `string` Optional. A unique identifier for this request. UUID is the recommended format, but other formats are still accepted. This request is only idempotent if a `request_id` is provided. |

### getAnywhereCache

Required. The Anywhere Cache instance to be updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.AnywhereCache|null` |   |

### hasAnywhereCache

### clearAnywhereCache

### setAnywhereCache

Required. The Anywhere Cache instance to be updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.AnywhereCache` |

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

### getUpdateMask

Required. List of fields to be updated. Mutable fields of AnywhereCache
include `ttl` and `admission_policy`.

To specify ALL fields, specify a single field with the value `*`. Note: We
recommend against doing this. If a new field is introduced at a later time,
an older client updating with the `*` may accidentally reset the new
field's value.
Not specifying any fields is an error.

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

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Required. List of fields to be updated. Mutable fields of AnywhereCache
include `ttl` and `admission_policy`.

To specify ALL fields, specify a single field with the value `*`. Note: We
recommend against doing this. If a new field is introduced at a later time,
an older client updating with the `*` may accidentally reset the new
field's value.
Not specifying any fields is an error.

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

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

### getRequestId

Optional. A unique identifier for this request. UUID is the recommended
format, but other formats are still accepted. This request is only
idempotent if a `request_id` is provided.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setRequestId

Optional. A unique identifier for this request. UUID is the recommended
format, but other formats are still accepted. This request is only
idempotent if a `request_id` is provided.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `anywhereCache` | `https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.AnywhereCache` Required. The Anywhere Cache instance to be updated. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Required. List of fields to be updated. Mutable fields of AnywhereCache include `ttl` and `admission_policy`. To specify ALL fields, specify a single field with the value `*`. Note: We recommend against doing this. If a new field is introduced at a later time, an older client updating with the `*` may accidentally reset the new field's value. Not specifying any fields is an error. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.UpdateAnywhereCacheRequest` |   |