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.
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.
Generated from protobuf field string sql = 1;
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.
Generated from protobuf field string sql = 1;
var
string
$this
getDestinationTableId
Table where results should be written.
Generated from protobuf field string destination_table_id = 2;
string
setDestinationTableId
Table where results should be written.
Generated from protobuf field string destination_table_id = 2;
var
string
$this
getDestinationTableDescription
The description of a destination table. This can be several sentences or paragraphs describing the table contents in detail.
Generated from protobuf field string destination_table_description = 10;
string
setDestinationTableDescription
The description of a destination table. This can be several sentences or paragraphs describing the table contents in detail.
Generated from protobuf field string destination_table_description = 10;
var
string
$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.
Generated from protobuf field repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
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.
Generated from protobuf field repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
$this
getUserDefinedFunctions
Inline code for User-defined function resources.
Ignored when "sql" parameter is empty.
Generated from protobuf field repeated string user_defined_functions = 4;
Google\Protobuf\Internal\RepeatedField
setUserDefinedFunctions
Inline code for User-defined function resources.
Ignored when "sql" parameter is empty.
Generated from protobuf field repeated string user_defined_functions = 4;
var
string[]
$this
getWriteDisposition
Specifies the action if the destination table already exists.
Generated from protobuf field .google.cloud.bigquery.datatransfer.v1.WriteDisposition write_disposition = 6;
int
setWriteDisposition
Specifies the action if the destination table already exists.
Generated from protobuf field .google.cloud.bigquery.datatransfer.v1.WriteDisposition write_disposition = 6;
var
int
$this