public static final class ImportedDataInfo.TableDefinition.Builder extends GeneratedMessageV3.Builder<ImportedDataInfo.TableDefinition.Builder> implements ImportedDataInfo.TableDefinitionOrBuilder
External table definition. These tables can be referenced with 'name' in the query and can be read just like any other table.
Protobuf type google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ImportedDataInfo.TableDefinition.BuilderImplements
ImportedDataInfo.TableDefinitionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllSourceUris(Iterable<String> values)
public ImportedDataInfo.TableDefinition.Builder addAllSourceUris(Iterable<String> values)
URIs for the data to be imported. All URIs must be from the same storage system.
repeated string source_uris = 2;
Parameter | |
---|---|
Name | Description |
values | Iterable<String> |
Returns | |
---|---|
Type | Description |
ImportedDataInfo.TableDefinition.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ImportedDataInfo.TableDefinition.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
ImportedDataInfo.TableDefinition.Builder |
addSourceUris(String value)
public ImportedDataInfo.TableDefinition.Builder addSourceUris(String value)
URIs for the data to be imported. All URIs must be from the same storage system.
repeated string source_uris = 2;
Parameter | |
---|---|
Name | Description |
value | String |
Returns | |
---|---|
Type | Description |
ImportedDataInfo.TableDefinition.Builder |
addSourceUrisBytes(ByteString value)
public ImportedDataInfo.TableDefinition.Builder addSourceUrisBytes(ByteString value)
URIs for the data to be imported. All URIs must be from the same storage system.
repeated string source_uris = 2;
Parameter | |
---|---|
Name | Description |
value | ByteString |
Returns | |
---|---|
Type | Description |
ImportedDataInfo.TableDefinition.Builder |
build()
public ImportedDataInfo.TableDefinition build()
Returns | |
---|---|
Type | Description |
ImportedDataInfo.TableDefinition |
buildPartial()
public ImportedDataInfo.TableDefinition buildPartial()
Returns | |
---|---|
Type | Description |
ImportedDataInfo.TableDefinition |
clear()
public ImportedDataInfo.TableDefinition.Builder clear()
Returns | |
---|---|
Type | Description |
ImportedDataInfo.TableDefinition.Builder |
clearCsvOptions()
public ImportedDataInfo.TableDefinition.Builder clearCsvOptions()
CSV specific options.
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;
Returns | |
---|---|
Type | Description |
ImportedDataInfo.TableDefinition.Builder |
clearEncoding()
public ImportedDataInfo.TableDefinition.Builder clearEncoding()
Character encoding of the input when applicable (CSV, JSON). Defaults to UTF8.
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding encoding = 5;
Returns | |
---|---|
Type | Description |
ImportedDataInfo.TableDefinition.Builder |
clearField(Descriptors.FieldDescriptor field)
public ImportedDataInfo.TableDefinition.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
ImportedDataInfo.TableDefinition.Builder |
clearFormat()
public ImportedDataInfo.TableDefinition.Builder clearFormat()
Describes the format of the data in source_uri.
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format format = 3;
Returns | |
---|---|
Type | Description |
ImportedDataInfo.TableDefinition.Builder |
clearIgnoreUnknownValues()
public ImportedDataInfo.TableDefinition.Builder clearIgnoreUnknownValues()
Indicates if extra values that are not represented in the table schema is allowed.
.google.protobuf.BoolValue ignore_unknown_values = 10;
Returns | |
---|---|
Type | Description |
ImportedDataInfo.TableDefinition.Builder |
clearMaxBadRecords()
public ImportedDataInfo.TableDefinition.Builder clearMaxBadRecords()
Specify the maximum number of bad records that can be ignored. If bad records exceed this threshold the query is aborted.
int32 max_bad_records = 4;
Returns | |
---|---|
Type | Description |
ImportedDataInfo.TableDefinition.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ImportedDataInfo.TableDefinition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
ImportedDataInfo.TableDefinition.Builder |
clearSchema()
public ImportedDataInfo.TableDefinition.Builder clearSchema()
Optional schema for the data. When not specified for JSON and CSV formats we will try to detect it automatically.
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 7;
Returns | |
---|---|
Type | Description |
ImportedDataInfo.TableDefinition.Builder |
clearSourceUris()
public ImportedDataInfo.TableDefinition.Builder clearSourceUris()
URIs for the data to be imported. All URIs must be from the same storage system.
repeated string source_uris = 2;
Returns | |
---|---|
Type | Description |
ImportedDataInfo.TableDefinition.Builder |
clearTableId()
public ImportedDataInfo.TableDefinition.Builder clearTableId()
BigQuery table_id (required). This will be used to reference this table in the query.
string table_id = 1;
Returns | |
---|---|
Type | Description |
ImportedDataInfo.TableDefinition.Builder |
clone()
public ImportedDataInfo.TableDefinition.Builder clone()
Returns | |
---|---|
Type | Description |
ImportedDataInfo.TableDefinition.Builder |
getCsvOptions()
public ImportedDataInfo.TableDefinition.CsvOptions getCsvOptions()
CSV specific options.
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;
Returns | |
---|---|
Type | Description |
ImportedDataInfo.TableDefinition.CsvOptions |
getCsvOptionsBuilder()
public ImportedDataInfo.TableDefinition.CsvOptions.Builder getCsvOptionsBuilder()
CSV specific options.
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;
Returns | |
---|---|
Type | Description |
ImportedDataInfo.TableDefinition.CsvOptions.Builder |
getCsvOptionsOrBuilder()
public ImportedDataInfo.TableDefinition.CsvOptionsOrBuilder getCsvOptionsOrBuilder()
CSV specific options.
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;
Returns | |
---|---|
Type | Description |
ImportedDataInfo.TableDefinition.CsvOptionsOrBuilder |
getDefaultInstanceForType()
public ImportedDataInfo.TableDefinition getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ImportedDataInfo.TableDefinition |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getEncoding()
public ImportedDataInfo.Encoding getEncoding()
Character encoding of the input when applicable (CSV, JSON). Defaults to UTF8.
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding encoding = 5;
Returns | |
---|---|
Type | Description |
ImportedDataInfo.Encoding |
getEncodingValue()
public int getEncodingValue()
Character encoding of the input when applicable (CSV, JSON). Defaults to UTF8.
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding encoding = 5;
Returns | |
---|---|
Type | Description |
int |
getFormat()
public ImportedDataInfo.Format getFormat()
Describes the format of the data in source_uri.
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format format = 3;
Returns | |
---|---|
Type | Description |
ImportedDataInfo.Format |
getFormatValue()
public int getFormatValue()
Describes the format of the data in source_uri.
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format format = 3;
Returns | |
---|---|
Type | Description |
int |
getIgnoreUnknownValues()
public BoolValue getIgnoreUnknownValues()
Indicates if extra values that are not represented in the table schema is allowed.
.google.protobuf.BoolValue ignore_unknown_values = 10;
Returns | |
---|---|
Type | Description |
BoolValue |
getIgnoreUnknownValuesBuilder()
public BoolValue.Builder getIgnoreUnknownValuesBuilder()
Indicates if extra values that are not represented in the table schema is allowed.
.google.protobuf.BoolValue ignore_unknown_values = 10;
Returns | |
---|---|
Type | Description |
Builder |
getIgnoreUnknownValuesOrBuilder()
public BoolValueOrBuilder getIgnoreUnknownValuesOrBuilder()
Indicates if extra values that are not represented in the table schema is allowed.
.google.protobuf.BoolValue ignore_unknown_values = 10;
Returns | |
---|---|
Type | Description |
BoolValueOrBuilder |
getMaxBadRecords()
public int getMaxBadRecords()
Specify the maximum number of bad records that can be ignored. If bad records exceed this threshold the query is aborted.
int32 max_bad_records = 4;
Returns | |
---|---|
Type | Description |
int |
getSchema()
public ImportedDataInfo.RecordSchema getSchema()
Optional schema for the data. When not specified for JSON and CSV formats we will try to detect it automatically.
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 7;
Returns | |
---|---|
Type | Description |
ImportedDataInfo.RecordSchema |
getSchemaBuilder()
public ImportedDataInfo.RecordSchema.Builder getSchemaBuilder()
Optional schema for the data. When not specified for JSON and CSV formats we will try to detect it automatically.
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 7;
Returns | |
---|---|
Type | Description |
ImportedDataInfo.RecordSchema.Builder |
getSchemaOrBuilder()
public ImportedDataInfo.RecordSchemaOrBuilder getSchemaOrBuilder()
Optional schema for the data. When not specified for JSON and CSV formats we will try to detect it automatically.
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 7;
Returns | |
---|---|
Type | Description |
ImportedDataInfo.RecordSchemaOrBuilder |
getSourceUris(int index)
public String getSourceUris(int index)
URIs for the data to be imported. All URIs must be from the same storage system.
repeated string source_uris = 2;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
String |
getSourceUrisBytes(int index)
public ByteString getSourceUrisBytes(int index)
URIs for the data to be imported. All URIs must be from the same storage system.
repeated string source_uris = 2;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
ByteString |
getSourceUrisCount()
public int getSourceUrisCount()
URIs for the data to be imported. All URIs must be from the same storage system.
repeated string source_uris = 2;
Returns | |
---|---|
Type | Description |
int |
getSourceUrisList()
public ProtocolStringList getSourceUrisList()
URIs for the data to be imported. All URIs must be from the same storage system.
repeated string source_uris = 2;
Returns | |
---|---|
Type | Description |
ProtocolStringList |
getTableId()
public String getTableId()
BigQuery table_id (required). This will be used to reference this table in the query.
string table_id = 1;
Returns | |
---|---|
Type | Description |
String |
getTableIdBytes()
public ByteString getTableIdBytes()
BigQuery table_id (required). This will be used to reference this table in the query.
string table_id = 1;
Returns | |
---|---|
Type | Description |
ByteString |
hasCsvOptions()
public boolean hasCsvOptions()
CSV specific options.
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;
Returns | |
---|---|
Type | Description |
boolean |
hasIgnoreUnknownValues()
public boolean hasIgnoreUnknownValues()
Indicates if extra values that are not represented in the table schema is allowed.
.google.protobuf.BoolValue ignore_unknown_values = 10;
Returns | |
---|---|
Type | Description |
boolean |
hasSchema()
public boolean hasSchema()
Optional schema for the data. When not specified for JSON and CSV formats we will try to detect it automatically.
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 7;
Returns | |
---|---|
Type | Description |
boolean |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeCsvOptions(ImportedDataInfo.TableDefinition.CsvOptions value)
public ImportedDataInfo.TableDefinition.Builder mergeCsvOptions(ImportedDataInfo.TableDefinition.CsvOptions value)
CSV specific options.
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;
Parameter | |
---|---|
Name | Description |
value | ImportedDataInfo.TableDefinition.CsvOptions |
Returns | |
---|---|
Type | Description |
ImportedDataInfo.TableDefinition.Builder |
mergeFrom(ImportedDataInfo.TableDefinition other)
public ImportedDataInfo.TableDefinition.Builder mergeFrom(ImportedDataInfo.TableDefinition other)
Parameter | |
---|---|
Name | Description |
other | ImportedDataInfo.TableDefinition |
Returns | |
---|---|
Type | Description |
ImportedDataInfo.TableDefinition.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ImportedDataInfo.TableDefinition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ImportedDataInfo.TableDefinition.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ImportedDataInfo.TableDefinition.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
ImportedDataInfo.TableDefinition.Builder |
mergeIgnoreUnknownValues(BoolValue value)
public ImportedDataInfo.TableDefinition.Builder mergeIgnoreUnknownValues(BoolValue value)
Indicates if extra values that are not represented in the table schema is allowed.
.google.protobuf.BoolValue ignore_unknown_values = 10;
Parameter | |
---|---|
Name | Description |
value | BoolValue |
Returns | |
---|---|
Type | Description |
ImportedDataInfo.TableDefinition.Builder |
mergeSchema(ImportedDataInfo.RecordSchema value)
public ImportedDataInfo.TableDefinition.Builder mergeSchema(ImportedDataInfo.RecordSchema value)
Optional schema for the data. When not specified for JSON and CSV formats we will try to detect it automatically.
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 7;
Parameter | |
---|---|
Name | Description |
value | Import |