# Google BigQuery Connection V1 Client - Class CreateConnectionRequest (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 CreateConnectionRequest.

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

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Parent resource name. Must be in the format `projects/{project_id}/locations/{location_id}` |
| `↳ connection_id` | `string` Optional. Connection id that should be assigned to the created connection. |
| `↳ connection` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-connection/latest/V1.Connection` Required. Connection to create. |

### getParent

Required. Parent resource name.

Must be in the format `projects/{project_id}/locations/{location_id}`

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

### setParent

Required. Parent resource name.

Must be in the format `projects/{project_id}/locations/{location_id}`

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

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

### getConnectionId

Optional. Connection id that should be assigned to the created connection.

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

### setConnectionId

Optional. Connection id that should be assigned to the created connection.

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

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

### getConnection

Required. Connection to create.

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

### hasConnection

### clearConnection

### setConnection

Required. Connection to create.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Parent resource name. Must be in the format `projects/{project_id}/locations/{location_id}` Please see ConnectionServiceClient::locationName() for help formatting this field. |
| `connection` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-connection/latest/V1.Connection` Required. Connection to create. |
| `connectionId` | `string` Optional. Connection id that should be assigned to the created connection. |

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