BigQuery Data Transfer V1 Client - Class ImportedDataInfo (1.4.5)

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

Methods

__construct

Constructor.

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

getDestinationTableId

Table where results should be written.

Returns
TypeDescription
string

setDestinationTableId

Table where results should be written.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDestinationTableDescription

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

Returns
TypeDescription
string

setDestinationTableDescription

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

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var array<Google\Cloud\BigQuery\DataTransfer\V1\ImportedDataInfo\TableDefinition>
Returns
TypeDescription
$this

getUserDefinedFunctions

Inline code for User-defined function resources.

Ignored when "sql" parameter is empty.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setUserDefinedFunctions

Inline code for User-defined function resources.

Ignored when "sql" parameter is empty.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getWriteDisposition

Specifies the action if the destination table already exists.

Returns
TypeDescription
int

setWriteDisposition

Specifies the action if the destination table already exists.

Parameter
NameDescription
var int
Returns
TypeDescription
$this