Class TableSchema.Builder (3.4.0)

public static final class TableSchema.Builder extends GeneratedMessageV3.Builder<TableSchema.Builder> implements TableSchemaOrBuilder

Schema of a table. This schema is a subset of google.cloud.bigquery.v2.TableSchema containing information necessary to generate valid message to write to BigQuery.

Protobuf type google.cloud.bigquery.storage.v1.TableSchema

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllFields(Iterable<? extends TableFieldSchema> values)

public TableSchema.Builder addAllFields(Iterable<? extends TableFieldSchema> values)

Describes the fields in a table.

repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.bigquery.storage.v1.TableFieldSchema>
Returns
TypeDescription
TableSchema.Builder

addFields(TableFieldSchema value)

public TableSchema.Builder addFields(TableFieldSchema value)

Describes the fields in a table.

repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1;

Parameter
NameDescription
valueTableFieldSchema
Returns
TypeDescription
TableSchema.Builder

addFields(TableFieldSchema.Builder builderForValue)

public TableSchema.Builder addFields(TableFieldSchema.Builder builderForValue)

Describes the fields in a table.

repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1;

Parameter
NameDescription
builderForValueTableFieldSchema.Builder
Returns
TypeDescription
TableSchema.Builder

addFields(int index, TableFieldSchema value)

public TableSchema.Builder addFields(int index, TableFieldSchema value)

Describes the fields in a table.

repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1;

Parameters
NameDescription
indexint
valueTableFieldSchema
Returns
TypeDescription
TableSchema.Builder

addFields(int index, TableFieldSchema.Builder builderForValue)

public TableSchema.Builder addFields(int index, TableFieldSchema.Builder builderForValue)

Describes the fields in a table.

repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1;

Parameters
NameDescription
indexint
builderForValueTableFieldSchema.Builder
Returns
TypeDescription
TableSchema.Builder

addFieldsBuilder()

public TableFieldSchema.Builder addFieldsBuilder()

Describes the fields in a table.

repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1;

Returns
TypeDescription
TableFieldSchema.Builder

addFieldsBuilder(int index)

public TableFieldSchema.Builder addFieldsBuilder(int index)

Describes the fields in a table.

repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
TableFieldSchema.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TableSchema.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TableSchema.Builder
Overrides

build()

public TableSchema build()
Returns
TypeDescription
TableSchema

buildPartial()

public TableSchema buildPartial()
Returns
TypeDescription
TableSchema

clear()

public TableSchema.Builder clear()
Returns
TypeDescription
TableSchema.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public TableSchema.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TableSchema.Builder
Overrides

clearFields()

public TableSchema.Builder clearFields()

Describes the fields in a table.

repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1;

Returns
TypeDescription
TableSchema.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public TableSchema.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TableSchema.Builder
Overrides

clone()

public TableSchema.Builder clone()
Returns
TypeDescription
TableSchema.Builder
Overrides

getDefaultInstanceForType()

public TableSchema getDefaultInstanceForType()
Returns
TypeDescription
TableSchema

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFields(int index)

public TableFieldSchema getFields(int index)

Describes the fields in a table.

repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
TableFieldSchema

getFieldsBuilder(int index)

public TableFieldSchema.Builder getFieldsBuilder(int index)

Describes the fields in a table.

repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
TableFieldSchema.Builder

getFieldsBuilderList()

public List<TableFieldSchema.Builder> getFieldsBuilderList()

Describes the fields in a table.

repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1;

Returns
TypeDescription
List<Builder>

getFieldsCount()

public int getFieldsCount()

Describes the fields in a table.

repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1;

Returns
TypeDescription
int

getFieldsList()

public List<TableFieldSchema> getFieldsList()

Describes the fields in a table.

repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1;

Returns
TypeDescription
List<TableFieldSchema>

getFieldsOrBuilder(int index)

public TableFieldSchemaOrBuilder getFieldsOrBuilder(int index)

Describes the fields in a table.

repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
TableFieldSchemaOrBuilder

getFieldsOrBuilderList()

public List<? extends TableFieldSchemaOrBuilder> getFieldsOrBuilderList()

Describes the fields in a table.

repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1;

Returns
TypeDescription
List<? extends com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TableSchema other)

public TableSchema.Builder mergeFrom(TableSchema other)
Parameter
NameDescription
otherTableSchema
Returns
TypeDescription
TableSchema.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public TableSchema.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TableSchema.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TableSchema.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TableSchema.Builder
Overrides

removeFields(int index)

public TableSchema.Builder removeFields(int index)

Describes the fields in a table.

repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
TableSchema.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TableSchema.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TableSchema.Builder
Overrides

setFields(int index, TableFieldSchema value)

public TableSchema.Builder setFields(int index, TableFieldSchema value)

Describes the fields in a table.

repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1;

Parameters
NameDescription
indexint
valueTableFieldSchema
Returns
TypeDescription
TableSchema.Builder

setFields(int index, TableFieldSchema.Builder builderForValue)

public TableSchema.Builder setFields(int index, TableFieldSchema.Builder builderForValue)

Describes the fields in a table.

repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1;

Parameters
NameDescription
indexint
builderForValueTableFieldSchema.Builder
Returns
TypeDescription
TableSchema.Builder

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

public TableSchema.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TableSchema.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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