Google Cloud Asset V1 Client - Class BigQueryDestination (1.13.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
NameDescription
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
TypeDescription
string

setDataset

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

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this