# Google Cloud Asset V1 Client - Class BigQueryDestination (2.3.3)

2.3.3 (latest) 2.3.2 2.2.3 2.1.3 2.0.1 1.16.4 1.14.1 1.13.2 1.12.2 1.11.3 1.10.2 1.9.2 Reference documentation and code samples for the Google Cloud Asset V1 Client class BigQueryDestination.

BigQuery destination.

Generated from protobuf message `google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination`

## Namespace

Google \\ Cloud \\ Asset \\ V1 \\ QueryAssetsOutputConfig

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ dataset` | `string` Required. The BigQuery dataset where the query results will be saved. It has the format of "projects/{projectId}/datasets/{datasetId}". |
| `↳ table` | `string` Required. The BigQuery table where the query results will be saved. If this table does not exist, a new table with the given name will be created. |
| `↳ write_disposition` | `string` Specifies the action that occurs if the destination table or partition already exists. The following values are supported: \* \* WRITE_TRUNCATE: If the table or partition already exists, BigQuery overwrites the entire table or all the partitions data. \* \* WRITE_APPEND: If the table or partition already exists, BigQuery appends the data to the table or the latest partition. \* \* WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_EMPTY. |

### getDataset

Required. The BigQuery dataset where the query results will be saved. It
has the format of "projects/{projectId}/datasets/{datasetId}".

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

### setDataset

Required. The BigQuery dataset where the query results will be saved. It
has the format of "projects/{projectId}/datasets/{datasetId}".

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

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

### getTable

Required. The BigQuery table where the query results will be saved. If
this table does not exist, a new table with the given name will be
created.

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

### setTable

Required. The BigQuery table where the query results will be saved. If
this table does not exist, a new table with the given name will be
created.

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

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

### getWriteDisposition

Specifies the action that occurs if the destination table or partition
already exists. The following values are supported:

- WRITE_TRUNCATE: If the table or partition already exists, BigQuery
  overwrites the entire table or all the partitions data.

- WRITE_APPEND: If the table or partition already exists, BigQuery
  appends the data to the table or the latest partition.

- WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_EMPTY.

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

### setWriteDisposition

Specifies the action that occurs if the destination table or partition
already exists. The following values are supported:

- WRITE_TRUNCATE: If the table or partition already exists, BigQuery
  overwrites the entire table or all the partitions data.

- WRITE_APPEND: If the table or partition already exists, BigQuery
  appends the data to the table or the latest partition.

- WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_EMPTY.

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

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