Class ImportedDataInfo.TableDefinition.Builder (2.6.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
TypeDescription
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
NameDescription
valuesIterable<String>
Returns
TypeDescription
ImportedDataInfo.TableDefinition.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImportedDataInfo.TableDefinition.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString
Returns
TypeDescription
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
NameDescription
valueByteString
Returns
TypeDescription
ImportedDataInfo.TableDefinition.Builder

build()

public ImportedDataInfo.TableDefinition build()
Returns
TypeDescription
ImportedDataInfo.TableDefinition

buildPartial()

public ImportedDataInfo.TableDefinition buildPartial()
Returns
TypeDescription
ImportedDataInfo.TableDefinition

clear()

public ImportedDataInfo.TableDefinition.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ImportedDataInfo.TableDefinition.Builder

clearField(Descriptors.FieldDescriptor field)

public ImportedDataInfo.TableDefinition.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ImportedDataInfo.TableDefinition.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ImportedDataInfo.TableDefinition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ImportedDataInfo.TableDefinition.Builder

clone()

public ImportedDataInfo.TableDefinition.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ImportedDataInfo.TableDefinition.CsvOptionsOrBuilder

getDefaultInstanceForType()

public ImportedDataInfo.TableDefinition getDefaultInstanceForType()
Returns
TypeDescription
ImportedDataInfo.TableDefinition

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

hasCsvOptions()

public boolean hasCsvOptions()

CSV specific options.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueImportedDataInfo.TableDefinition.CsvOptions
Returns
TypeDescription
ImportedDataInfo.TableDefinition.Builder

mergeFrom(ImportedDataInfo.TableDefinition other)

public ImportedDataInfo.TableDefinition.Builder mergeFrom(ImportedDataInfo.TableDefinition other)
Parameter
NameDescription
otherImportedDataInfo.TableDefinition
Returns
TypeDescription
ImportedDataInfo.TableDefinition.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImportedDataInfo.TableDefinition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportedDataInfo.TableDefinition.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ImportedDataInfo.TableDefinition.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueBoolValue
Returns
TypeDescription
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
NameDescription
valueImportedDataInfo.RecordSchema
Returns
TypeDescription
ImportedDataInfo.TableDefinition.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportedDataInfo.TableDefinition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueImportedDataInfo.TableDefinition.CsvOptions
Returns
TypeDescription
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
NameDescription
builderForValueImportedDataInfo.TableDefinition.CsvOptions.Builder
Returns
TypeDescription
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
NameDescription
valueImportedDataInfo.Encoding
Returns
TypeDescription
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
NameDescription
valueint
Returns
TypeDescription
ImportedDataInfo.TableDefinition.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ImportedDataInfo.TableDefinition.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueImportedDataInfo.Format
Returns
TypeDescription
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
NameDescription
valueint
Returns
TypeDescription
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
NameDescription
valueBoolValue
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueint
Returns
TypeDescription
ImportedDataInfo.TableDefinition.Builder

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

public ImportedDataInfo.TableDefinition.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueImportedDataInfo.RecordSchema
Returns
TypeDescription
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
NameDescription
builderForValueImportedDataInfo.RecordSchema.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueString
Returns
TypeDescription
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
NameDescription
valueString
Returns
TypeDescription
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
NameDescription
valueByteString
Returns
TypeDescription
ImportedDataInfo.TableDefinition.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ImportedDataInfo.TableDefinition.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImportedDataInfo.TableDefinition.Builder
Overrides