# Google BigQuery Connection V1 Client - Class UpdateConnectionRequest (2.1.3)

2.1.3 (latest) 2.1.2 2.0.5 1.5.5 1.4.1 1.3.1 1.2.2 1.1.0 1.0.3 Reference documentation and code samples for the Google BigQuery Connection V1 Client class UpdateConnectionRequest.

The request for
[ConnectionService.UpdateConnection](https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-connection/latest/V1.Client.ConnectionServiceClient#_Google_Cloud_BigQuery_Connection_V1_Client_ConnectionServiceClient__updateConnection__).

Generated from protobuf message `google.cloud.bigquery.connection.v1.UpdateConnectionRequest`

## Namespace

Google \\ Cloud \\ BigQuery \\ Connection \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. Name of the connection to update, for example: `projects/{project_id}/locations/{location_id}/connections/{connection_id}` |
| `↳ connection` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-connection/latest/V1.Connection` Required. Connection containing the updated fields. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Required. Update mask for the connection fields to be updated. |

### getName

Required. Name of the connection to update, for example:
`projects/{project_id}/locations/{location_id}/connections/{connection_id}`

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

### setName

Required. Name of the connection to update, for example:
`projects/{project_id}/locations/{location_id}/connections/{connection_id}`

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

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

### getConnection

Required. Connection containing the updated fields.

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

### hasConnection

### clearConnection

### setConnection

Required. Connection containing the updated fields.

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

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

### getUpdateMask

Required. Update mask for the connection fields to be updated.

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

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Required. Update mask for the connection fields to be updated.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the connection to update, for example: `projects/{project_id}/locations/{location_id}/connections/{connection_id}` Please see ConnectionServiceClient::connectionName() for help formatting this field. |
| `connection` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-connection/latest/V1.Connection` Required. Connection containing the updated fields. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Required. Update mask for the connection fields to be updated. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-connection/latest/V1.UpdateConnectionRequest` |   |