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 | |
---|---|
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.
Generated from protobuf field string sql = 1;
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.
Generated from protobuf field string sql = 1;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getDestinationTableId
Table where results should be written.
Generated from protobuf field string destination_table_id = 2;
Returns | |
---|---|
Type | Description |
string |
setDestinationTableId
Table where results should be written.
Generated from protobuf field string destination_table_id = 2;
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.
Generated from protobuf field string destination_table_description = 10;
Returns | |
---|---|
Type | Description |
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;
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.
Generated from protobuf field repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
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.
Generated from protobuf field repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
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.
Generated from protobuf field repeated string user_defined_functions = 4;
Returns | |
---|---|
Type | Description |
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;
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |
getWriteDisposition
Specifies the action if the destination table already exists.
Generated from protobuf field .google.cloud.bigquery.datatransfer.v1.WriteDisposition write_disposition = 6;
Returns | |
---|---|
Type | Description |
int |
setWriteDisposition
Specifies the action if the destination table already exists.
Generated from protobuf field .google.cloud.bigquery.datatransfer.v1.WriteDisposition write_disposition = 6;
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |