Class ImportedDataInfo.TableDefinition.Builder (2.47.0)

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

Static 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
Overrides

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
Overrides

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
Overrides

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
Overrides

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
Overrides

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
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
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
Overrides

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 ImportedDataInfo.RecordSchema
Returns
Type Description
ImportedDataInfo.TableDefinition.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportedDataInfo.TableDefinition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ImportedDataInfo.TableDefinition.Builder
Overrides

setCsvOptions(ImportedDataInfo.TableDefinition.CsvOptions value)

public ImportedDataInfo.TableDefinition.Builder setCsvOptions(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

setCsvOptions(ImportedDataInfo.TableDefinition.CsvOptions.Builder builderForValue)

public ImportedDataInfo.TableDefinition.Builder setCsvOptions(ImportedDataInfo.TableDefinition.CsvOptions.Builder builderForValue)

CSV specific options.

.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;

Parameter
Name Description
builderForValue ImportedDataInfo.TableDefinition.CsvOptions.Builder
Returns
Type Description
ImportedDataInfo.TableDefinition.Builder

setEncoding(ImportedDataInfo.Encoding value)

public ImportedDataInfo.TableDefinition.Builder setEncoding(ImportedDataInfo.Encoding value)

Character encoding of the input when applicable (CSV, JSON). Defaults to UTF8.

.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding encoding = 5;

Parameter
Name Description
value ImportedDataInfo.Encoding
Returns
Type Description
ImportedDataInfo.TableDefinition.Builder

setEncodingValue(int value)

public ImportedDataInfo.TableDefinition.Builder setEncodingValue(int value)

Character encoding of the input when applicable (CSV, JSON). Defaults to UTF8.

.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding encoding = 5;

Parameter
Name Description
value int
Returns
Type Description
ImportedDataInfo.TableDefinition.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ImportedDataInfo.TableDefinition.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ImportedDataInfo.TableDefinition.Builder
Overrides

setFormat(ImportedDataInfo.Format value)

public ImportedDataInfo.TableDefinition.Builder setFormat(ImportedDataInfo.Format value)

Describes the format of the data in source_uri.

.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format format = 3;

Parameter
Name Description
value ImportedDataInfo.Format
Returns
Type Description
ImportedDataInfo.TableDefinition.Builder

setFormatValue(int value)

public ImportedDataInfo.TableDefinition.Builder setFormatValue(int value)

Describes the format of the data in source_uri.

.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format format = 3;

Parameter
Name Description
value int
Returns
Type Description
ImportedDataInfo.TableDefinition.Builder

setIgnoreUnknownValues(BoolValue value)

public ImportedDataInfo.TableDefinition.Builder setIgnoreUnknownValues(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

setIgnoreUnknownValues(BoolValue.Builder builderForValue)

public ImportedDataInfo.TableDefinition.Builder setIgnoreUnknownValues(BoolValue.Builder builderForValue)

Indicates if extra values that are not represented in the table schema is allowed.

.google.protobuf.BoolValue ignore_unknown_values = 10;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ImportedDataInfo.TableDefinition.Builder

setMaxBadRecords(int value)

public ImportedDataInfo.TableDefinition.Builder setMaxBadRecords(int value)

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;

Parameter
Name Description
value int
Returns
Type Description
ImportedDataInfo.TableDefinition.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ImportedDataInfo.TableDefinition.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ImportedDataInfo.TableDefinition.Builder
Overrides

setSchema(ImportedDataInfo.RecordSchema value)

public ImportedDataInfo.TableDefinition.Builder setSchema(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 ImportedDataInfo.RecordSchema
Returns
Type Description
ImportedDataInfo.TableDefinition.Builder

setSchema(ImportedDataInfo.RecordSchema.Builder builderForValue)

public ImportedDataInfo.TableDefinition.Builder setSchema(ImportedDataInfo.RecordSchema.Builder builderForValue)

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
builderForValue ImportedDataInfo.RecordSchema.Builder
Returns
Type Description
ImportedDataInfo.TableDefinition.Builder

setSourceUris(int index, String value)

public ImportedDataInfo.TableDefinition.Builder setSourceUris(int index, String value)

URIs for the data to be imported. All URIs must be from the same storage system.

repeated string source_uris = 2;

Parameters
Name Description
index int
value String
Returns
Type Description
ImportedDataInfo.TableDefinition.Builder

setTableId(String value)

public ImportedDataInfo.TableDefinition.Builder setTableId(String value)

BigQuery table_id (required). This will be used to reference this table in the query.

string table_id = 1;

Parameter
Name Description
value String
Returns
Type Description
ImportedDataInfo.TableDefinition.Builder

setTableIdBytes(ByteString value)

public ImportedDataInfo.TableDefinition.Builder setTableIdBytes(ByteString value)

BigQuery table_id (required). This will be used to reference this table in the query.

string table_id = 1;

Parameter
Name Description
value ByteString
Returns
Type Description
ImportedDataInfo.TableDefinition.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ImportedDataInfo.TableDefinition.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ImportedDataInfo.TableDefinition.Builder
Overrides