# Google Cloud Redis V1 Client - Class UpdateInstanceRequest (2.2.3)

2.2.3 (latest) 2.2.2 2.1.6 2.0.0 1.9.5 1.8.4 1.7.0 1.6.12 Reference documentation and code samples for the Google Cloud Redis V1 Client class UpdateInstanceRequest.

Request for
[UpdateInstance](https://docs.cloud.google.com/php/docs/reference/cloud-redis/latest/V1.Client.CloudRedisClient#_Google_Cloud_Redis_V1_Client_CloudRedisClient__updateInstance__).

Generated from protobuf message `google.cloud.redis.v1.UpdateInstanceRequest`

## Namespace

Google \\ Cloud \\ Redis \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from [Instance](https://docs.cloud.google.com/php/docs/reference/cloud-redis/latest/V1.Instance): \* \* `displayName` \* \* `labels` \* \* `memorySizeGb` \* \* `redisConfig` \* \* `replica_count` |
| `↳ instance` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis/latest/V1.Instance` Required. Update description. Only fields specified in update_mask are updated. |

### getUpdateMask

Required. Mask of fields to update. At least one path must be supplied in
this field. The elements of the repeated paths field may only include these
fields from [Instance](https://docs.cloud.google.com/php/docs/reference/cloud-redis/latest/V1.Instance):

- `displayName`
- `labels`
- `memorySizeGb`
- `redisConfig`
- `replica_count`

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

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Required. Mask of fields to update. At least one path must be supplied in
this field. The elements of the repeated paths field may only include these
fields from [Instance](https://docs.cloud.google.com/php/docs/reference/cloud-redis/latest/V1.Instance):

- `displayName`
- `labels`
- `memorySizeGb`
- `redisConfig`
- `replica_count`

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

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

### getInstance

Required. Update description.

Only fields specified in update_mask are updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-redis/latest/V1.Instance|null` |   |

### hasInstance

### clearInstance

### setInstance

Required. Update description.

Only fields specified in update_mask are updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis/latest/V1.Instance` |

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from [Instance](https://docs.cloud.google.com/php/docs/reference/cloud-redis/latest/V1.Instance): - - `displayName` - - `labels` - - `memorySizeGb` - - `redisConfig` - - `replica_count` |
| `instance` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis/latest/V1.Instance` Required. Update description. Only fields specified in update_mask are updated. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-redis/latest/V1.UpdateInstanceRequest` |   |