BigQuery Data Transfer V1 Client - Class ImportedDataInfo (1.8.6)

Reference documentation and code samples for the BigQuery Data Transfer V1 Client class ImportedDataInfo.

Describes data which should be imported.

Generated from protobuf message google.cloud.bigquery.datatransfer.v1.ImportedDataInfo

Namespace

Google \ Cloud \ BigQuery \ DataTransfer \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ sql string

SQL query to run. When empty, API checks that there is only one table_def specified and loads this table. Only Standard SQL queries are accepted. Legacy SQL is not allowed.

↳ destination_table_id string

Table where results should be written.

↳ destination_table_description string

The description of a destination table. This can be several sentences or paragraphs describing the table contents in detail.

↳ table_defs array<Google\Cloud\BigQuery\DataTransfer\V1\ImportedDataInfo\TableDefinition>

When used WITHOUT the "sql" parameter, describes the schema of the destination table. When used WITH the "sql" parameter, describes tables with data stored outside of BigQuery.

↳ user_defined_functions string[]

Inline code for User-defined function resources. Ignored when "sql" parameter is empty.

↳ write_disposition int

Specifies the action if the destination table already exists.

getSql

SQL query to run. When empty, API checks that there is only one table_def specified and loads this table. Only Standard SQL queries are accepted. Legacy SQL is not allowed.

Returns
Type Description
string

setSql

SQL query to run. When empty, API checks that there is only one table_def specified and loads this table. Only Standard SQL queries are accepted. Legacy SQL is not allowed.

Parameter
Name Description
var string
Returns
Type Description
$this

getDestinationTableId

Table where results should be written.

Returns
Type Description
string

setDestinationTableId

Table where results should be written.

Parameter
Name Description
var string
Returns
Type Description
$this

getDestinationTableDescription

The description of a destination table. This can be several sentences or paragraphs describing the table contents in detail.

Returns
Type Description
string

setDestinationTableDescription

The description of a destination table. This can be several sentences or paragraphs describing the table contents in detail.

Parameter
Name Description
var string
Returns
Type Description
$this

getTableDefs

When used WITHOUT the "sql" parameter, describes the schema of the destination table.

When used WITH the "sql" parameter, describes tables with data stored outside of BigQuery.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setTableDefs

When used WITHOUT the "sql" parameter, describes the schema of the destination table.

When used WITH the "sql" parameter, describes tables with data stored outside of BigQuery.

Parameter
Name Description
var array<Google\Cloud\BigQuery\DataTransfer\V1\ImportedDataInfo\TableDefinition>
Returns
Type Description
$this

getUserDefinedFunctions

Inline code for User-defined function resources.

Ignored when "sql" parameter is empty.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setUserDefinedFunctions

Inline code for User-defined function resources.

Ignored when "sql" parameter is empty.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getWriteDisposition

Specifies the action if the destination table already exists.

Returns
Type Description
int

setWriteDisposition

Specifies the action if the destination table already exists.

Parameter
Name Description
var int
Returns
Type Description
$this