# Google Cloud Data Fusion V1 Client - Class UpdateInstanceRequest (1.1.2)

1.1.2 (latest) 1.1.1 1.0.5 0.6.5 0.5.2 0.4.1 0.3.0 0.2.11 Reference documentation and code samples for the Google Cloud Data Fusion V1 Client class UpdateInstanceRequest.

Request message for updating a Data Fusion instance.

Data Fusion allows updating the labels, options, and stack driver settings.
This is also used for CDF version upgrade.

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

## Namespace

Google \\ Cloud \\ DataFusion \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ instance` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-fusion/latest/V1.Instance` Required. The instance resource that replaces the resource on the server. Currently, Data Fusion only allows replacing labels, options, and stack driver settings. All other fields will be ignored. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Field mask is used to specify the fields that the update will overwrite in an instance resource. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask, all the supported fields (labels, options, and version currently) will be overwritten. |

### getInstance

Required. The instance resource that replaces the resource on the server. Currently,
Data Fusion only allows replacing labels, options, and stack driver
settings. All other fields will be ignored.

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

### hasInstance

### clearInstance

### setInstance

Required. The instance resource that replaces the resource on the server. Currently,
Data Fusion only allows replacing labels, options, and stack driver
settings. All other fields will be ignored.

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

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

### getUpdateMask

Field mask is used to specify the fields that the update will overwrite
in an instance resource. The fields specified in the update_mask are
relative to the resource, not the full request.

A field will be overwritten if it is in the mask.
If the user does not provide a mask, all the supported fields (labels,
options, and version currently) will be overwritten.

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

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Field mask is used to specify the fields that the update will overwrite
in an instance resource. The fields specified in the update_mask are
relative to the resource, not the full request.

A field will be overwritten if it is in the mask.
If the user does not provide a mask, all the supported fields (labels,
options, and version currently) will be overwritten.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `instance` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-fusion/latest/V1.Instance` Required. The instance resource that replaces the resource on the server. Currently, Data Fusion only allows replacing labels, options, and stack driver settings. All other fields will be ignored. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Field mask is used to specify the fields that the update will overwrite in an instance resource. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask, all the supported fields (labels, options, and version currently) will be overwritten. |

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