Reference documentation and code samples for the BigQuery Data Transfer V1 Client class TableDefinition.
External table definition. These tables can be referenced with 'name' in the query and can be read just like any other table.
Generated from protobuf message google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ table_id |
string
BigQuery table_id (required). This will be used to reference this table in the query. |
↳ source_uris |
string[]
URIs for the data to be imported. All URIs must be from the same storage system. |
↳ format |
int
Describes the format of the data in source_uri. |
↳ max_bad_records |
int
Specify the maximum number of bad records that can be ignored. If bad records exceed this threshold the query is aborted. |
↳ encoding |
int
Character encoding of the input when applicable (CSV, JSON). Defaults to UTF8. |
↳ csv_options |
Google\Cloud\BigQuery\DataTransfer\V1\ImportedDataInfo\TableDefinition\CsvOptions
CSV specific options. |
↳ schema |
Google\Cloud\BigQuery\DataTransfer\V1\ImportedDataInfo\RecordSchema
Optional schema for the data. When not specified for JSON and CSV formats we will try to detect it automatically. |
↳ ignore_unknown_values |
Google\Protobuf\BoolValue
Indicates if extra values that are not represented in the table schema is allowed. |
getTableId
BigQuery table_id (required). This will be used to reference this table in the query.
Generated from protobuf field string table_id = 1;
Returns | |
---|---|
Type | Description |
string |
setTableId
BigQuery table_id (required). This will be used to reference this table in the query.
Generated from protobuf field string table_id = 1;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getSourceUris
URIs for the data to be imported. All URIs must be from the same storage system.
Generated from protobuf field repeated string source_uris = 2;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setSourceUris
URIs for the data to be imported. All URIs must be from the same storage system.
Generated from protobuf field repeated string source_uris = 2;
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |
getFormat
Describes the format of the data in source_uri.
Generated from protobuf field .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format format = 3;
Returns | |
---|---|
Type | Description |
int |
setFormat
Describes the format of the data in source_uri.
Generated from protobuf field .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format format = 3;
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getMaxBadRecords
Specify the maximum number of bad records that can be ignored.
If bad records exceed this threshold the query is aborted.
Generated from protobuf field int32 max_bad_records = 4;
Returns | |
---|---|
Type | Description |
int |
setMaxBadRecords
Specify the maximum number of bad records that can be ignored.
If bad records exceed this threshold the query is aborted.
Generated from protobuf field int32 max_bad_records = 4;
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getEncoding
Character encoding of the input when applicable (CSV, JSON).
Defaults to UTF8.
Generated from protobuf field .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding encoding = 5;
Returns | |
---|---|
Type | Description |
int |
setEncoding
Character encoding of the input when applicable (CSV, JSON).
Defaults to UTF8.
Generated from protobuf field .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding encoding = 5;
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getCsvOptions
CSV specific options.
Generated from protobuf field .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;
Returns | |
---|---|
Type | Description |
Google\Cloud\BigQuery\DataTransfer\V1\ImportedDataInfo\TableDefinition\CsvOptions |
setCsvOptions
CSV specific options.
Generated from protobuf field .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\BigQuery\DataTransfer\V1\ImportedDataInfo\TableDefinition\CsvOptions
|
Returns | |
---|---|
Type | Description |
$this |
getSchema
Optional schema for the data. When not specified for JSON and CSV formats we will try to detect it automatically.
Generated from protobuf field .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 7;
Returns | |
---|---|
Type | Description |
Google\Cloud\BigQuery\DataTransfer\V1\ImportedDataInfo\RecordSchema |
setSchema
Optional schema for the data. When not specified for JSON and CSV formats we will try to detect it automatically.
Generated from protobuf field .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 7;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\BigQuery\DataTransfer\V1\ImportedDataInfo\RecordSchema
|
Returns | |
---|---|
Type | Description |
$this |
getIgnoreUnknownValues
Indicates if extra values that are not represented in the table schema is allowed.
Generated from protobuf field .google.protobuf.BoolValue ignore_unknown_values = 10;
Returns | |
---|---|
Type | Description |
Google\Protobuf\BoolValue |
getIgnoreUnknownValuesValue
Returns the unboxed value from getIgnoreUnknownValues()
Indicates if extra values that are not represented in the table schema is allowed.
Generated from protobuf field .google.protobuf.BoolValue ignore_unknown_values = 10;
Returns | |
---|---|
Type | Description |
bool|null |
setIgnoreUnknownValues
Indicates if extra values that are not represented in the table schema is allowed.
Generated from protobuf field .google.protobuf.BoolValue ignore_unknown_values = 10;
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\BoolValue
|
Returns | |
---|---|
Type | Description |
$this |
setIgnoreUnknownValuesValue
Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
Indicates if extra values that are not represented in the table schema is allowed.
Generated from protobuf field .google.protobuf.BoolValue ignore_unknown_values = 10;
Parameter | |
---|---|
Name | Description |
var |
bool|null
|
Returns | |
---|---|
Type | Description |
$this |