# Google Cloud Dataplex V1 Client - Class BigQueryPublishingConfig (1.14.0)

1.14.0 (latest) 1.13.0 1.12.0 1.11.0 1.10.0 1.9.1 1.8.0 1.7.1 1.6.1 1.4.0 1.3.0 1.2.1 1.1.1 1.0.1 0.16.1 0.15.1 0.14.0 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.3 0.1.6 Reference documentation and code samples for the Google Cloud Dataplex V1 Client class BigQueryPublishingConfig.

Describes BigQuery publishing configurations.

Generated from protobuf message `google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfig`

## Namespace

Google \\ Cloud \\ Dataplex \\ V1 \\ DataDiscoverySpec

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ table_type` | `int` Optional. Determines whether to publish discovered tables as BigLake external tables or non-BigLake external tables. |
| `↳ connection` | `string` Optional. The BigQuery connection used to create BigLake tables. Must be in the form `projects/{project_id}/locations/{location_id}/connections/{connection_id}` |
| `↳ location` | `string` Optional. The location of the BigQuery dataset to publish BigLake external or non-BigLake external tables to. 1. If the Cloud Storage bucket is located in a multi-region bucket, then BigQuery dataset can be in the same multi-region bucket or any single region that is included in the same multi-region bucket. The datascan can be created in any single region that is included in the same multi-region bucket 2. If the Cloud Storage bucket is located in a dual-region bucket, then BigQuery dataset can be located in regions that are included in the dual-region bucket, or in a multi-region that includes the dual-region. The datascan can be created in any single region that is included in the same dual-region bucket. 3. If the Cloud Storage bucket is located in a single region, then BigQuery dataset can be in the same single region or any multi-region bucket that includes the same single region. The datascan will be created in the same single region as the bucket. 4. If the BigQuery dataset is in single region, it must be in the same single region as the datascan. For supported values, refer to <https://cloud.google.com/bigquery/docs/locations#supported_locations>. |
| `↳ project` | `string` Optional. The project of the BigQuery dataset to publish BigLake external or non-BigLake external tables to. If not specified, the project of the Cloud Storage bucket will be used. The format is "projects/{project_id_or_number}". |

### getTableType

Optional. Determines whether to publish discovered tables as BigLake
external tables or non-BigLake external tables.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [TableType](https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.DataDiscoverySpec.BigQueryPublishingConfig.TableType). |

### setTableType

Optional. Determines whether to publish discovered tables as BigLake
external tables or non-BigLake external tables.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [TableType](https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.DataDiscoverySpec.BigQueryPublishingConfig.TableType). |

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

### getConnection

Optional. The BigQuery connection used to create BigLake tables.

Must be in the form
`projects/{project_id}/locations/{location_id}/connections/{connection_id}`

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

### setConnection

Optional. The BigQuery connection used to create BigLake tables.

Must be in the form
`projects/{project_id}/locations/{location_id}/connections/{connection_id}`

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

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

### getLocation

Optional. The location of the BigQuery dataset to publish BigLake
external or non-BigLake external tables to.

1. If the Cloud Storage bucket is located in a multi-region bucket, then BigQuery dataset can be in the same multi-region bucket or any single region that is included in the same multi-region bucket. The datascan can be created in any single region that is included in the same multi-region bucket
2. If the Cloud Storage bucket is located in a dual-region bucket, then BigQuery dataset can be located in regions that are included in the dual-region bucket, or in a multi-region that includes the dual-region. The datascan can be created in any single region that is included in the same dual-region bucket.
3. If the Cloud Storage bucket is located in a single region, then BigQuery dataset can be in the same single region or any multi-region bucket that includes the same single region. The datascan will be created in the same single region as the bucket.
4. If the BigQuery dataset is in single region, it must be in the same single region as the datascan. For supported values, refer to <https://cloud.google.com/bigquery/docs/locations#supported_locations>.

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

### setLocation

Optional. The location of the BigQuery dataset to publish BigLake
external or non-BigLake external tables to.

1. If the Cloud Storage bucket is located in a multi-region bucket, then BigQuery dataset can be in the same multi-region bucket or any single region that is included in the same multi-region bucket. The datascan can be created in any single region that is included in the same multi-region bucket
2. If the Cloud Storage bucket is located in a dual-region bucket, then BigQuery dataset can be located in regions that are included in the dual-region bucket, or in a multi-region that includes the dual-region. The datascan can be created in any single region that is included in the same dual-region bucket.
3. If the Cloud Storage bucket is located in a single region, then BigQuery dataset can be in the same single region or any multi-region bucket that includes the same single region. The datascan will be created in the same single region as the bucket.
4. If the BigQuery dataset is in single region, it must be in the same single region as the datascan. For supported values, refer to <https://cloud.google.com/bigquery/docs/locations#supported_locations>.

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

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

### getProject

Optional. The project of the BigQuery dataset to publish BigLake external
or non-BigLake external tables to. If not specified, the project of the
Cloud Storage bucket will be used. The format is
"projects/{project_id_or_number}".

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

### setProject

Optional. The project of the BigQuery dataset to publish BigLake external
or non-BigLake external tables to. If not specified, the project of the
Cloud Storage bucket will be used. The format is
"projects/{project_id_or_number}".

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

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