# Google Cloud Data Catalog V1 Client - Class CloudSqlBigQueryConnectionSpec (2.4.2)

2.4.2 (latest) 2.4.1 2.3.2 2.2.4 2.1.0 2.0.2 1.10.3 1.9.1 1.8.2 1.7.1 1.6.0 1.5.1 1.4.2 1.3.9 Reference documentation and code samples for the Google Cloud Data Catalog V1 Client class CloudSqlBigQueryConnectionSpec.

Specification for the BigQuery connection to a Cloud SQL instance.

Generated from protobuf message `google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec`

## Namespace

Google \\ Cloud \\ DataCatalog \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ instance_id` | `string` Cloud SQL instance ID in the format of `project:location:instance`. |
| `↳ database` | `string` Database name. |
| `↳ type` | `int` Type of the Cloud SQL database. |

### getInstanceId

Cloud SQL instance ID in the format of `project:location:instance`.

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

### setInstanceId

Cloud SQL instance ID in the format of `project:location:instance`.

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

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

### getDatabase

Database name.

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

### setDatabase

Database name.

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

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

### getType

Type of the Cloud SQL database.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [DatabaseType](https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.CloudSqlBigQueryConnectionSpec.DatabaseType). |

### setType

Type of the Cloud SQL database.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [DatabaseType](https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.CloudSqlBigQueryConnectionSpec.DatabaseType). |

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