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

2.2.3 (latest) 2.2.2 2.1.1 2.0.4 1.5.7 1.4.0 1.3.2 1.2.1 1.1.2 1.0.3 Reference documentation and code samples for the Google Cloud Filestore V1 Client class UpdateInstanceRequest.

UpdateInstanceRequest updates the settings of an instance.

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

## Namespace

Google \\ Cloud \\ Filestore \\ 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` 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: \* \* "description" \* \* "file_shares" \* \* "labels" \* \* "performance_config" \* \* "deletion_protection_enabled" \* \* "deletion_protection_reason" |
| `↳ instance` | `https://docs.cloud.google.com/php/docs/reference/cloud-filestore/latest/V1.Instance` Only fields specified in update_mask are updated. |

### getUpdateMask

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:

- "description"
- "file_shares"
- "labels"
- "performance_config"
- "deletion_protection_enabled"
- "deletion_protection_reason"

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

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

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:

- "description"
- "file_shares"
- "labels"
- "performance_config"
- "deletion_protection_enabled"
- "deletion_protection_reason"

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

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

### getInstance

Only fields specified in update_mask are updated.

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

### hasInstance

### clearInstance

### setInstance

Only fields specified in update_mask are updated.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `instance` | `https://docs.cloud.google.com/php/docs/reference/cloud-filestore/latest/V1.Instance` Only fields specified in update_mask are updated. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` 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: - - "description" - - "file_shares" - - "labels" - - "performance_config" - - "deletion_protection_enabled" - - "deletion_protection_reason" |

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