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

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

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

## 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 requested connection, for example: `projects/{project_id}/locations/{location_id}/connections/{connection_id}` |

### getName

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

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

### setName

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

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the requested connection, for example: `projects/{project_id}/locations/{location_id}/connections/{connection_id}` Please see ConnectionServiceClient::connectionName() for help formatting this field. |

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