Class TableMetadata.Builder (6.72.0)

public static final class TableMetadata.Builder extends GeneratedMessageV3.Builder<TableMetadata.Builder> implements TableMetadataOrBuilder

TableMetadata contains metadata of a single table.

Protobuf type google.spanner.executor.v1.TableMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllColumn(Iterable<? extends ColumnMetadata> values)

public TableMetadata.Builder addAllColumn(Iterable<? extends ColumnMetadata> values)

Columns, in the same order as in the schema.

repeated .google.spanner.executor.v1.ColumnMetadata column = 2;

Parameter
Name Description
values Iterable<? extends com.google.spanner.executor.v1.ColumnMetadata>
Returns
Type Description
TableMetadata.Builder

addAllKeyColumn(Iterable<? extends ColumnMetadata> values)

public TableMetadata.Builder addAllKeyColumn(Iterable<? extends ColumnMetadata> values)

Keys, in order. Column name is currently not populated.

repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;

Parameter
Name Description
values Iterable<? extends com.google.spanner.executor.v1.ColumnMetadata>
Returns
Type Description
TableMetadata.Builder

addColumn(ColumnMetadata value)

public TableMetadata.Builder addColumn(ColumnMetadata value)

Columns, in the same order as in the schema.

repeated .google.spanner.executor.v1.ColumnMetadata column = 2;

Parameter
Name Description
value ColumnMetadata
Returns
Type Description
TableMetadata.Builder

addColumn(ColumnMetadata.Builder builderForValue)

public TableMetadata.Builder addColumn(ColumnMetadata.Builder builderForValue)

Columns, in the same order as in the schema.

repeated .google.spanner.executor.v1.ColumnMetadata column = 2;

Parameter
Name Description
builderForValue ColumnMetadata.Builder
Returns
Type Description
TableMetadata.Builder

addColumn(int index, ColumnMetadata value)

public TableMetadata.Builder addColumn(int index, ColumnMetadata value)

Columns, in the same order as in the schema.

repeated .google.spanner.executor.v1.ColumnMetadata column = 2;

Parameters
Name Description
index int
value ColumnMetadata
Returns
Type Description
TableMetadata.Builder

addColumn(int index, ColumnMetadata.Builder builderForValue)

public TableMetadata.Builder addColumn(int index, ColumnMetadata.Builder builderForValue)

Columns, in the same order as in the schema.

repeated .google.spanner.executor.v1.ColumnMetadata column = 2;

Parameters
Name Description
index int
builderForValue ColumnMetadata.Builder
Returns
Type Description
TableMetadata.Builder

addColumnBuilder()

public ColumnMetadata.Builder addColumnBuilder()

Columns, in the same order as in the schema.

repeated .google.spanner.executor.v1.ColumnMetadata column = 2;

Returns
Type Description
ColumnMetadata.Builder

addColumnBuilder(int index)

public ColumnMetadata.Builder addColumnBuilder(int index)

Columns, in the same order as in the schema.

repeated .google.spanner.executor.v1.ColumnMetadata column = 2;

Parameter
Name Description
index int
Returns
Type Description
ColumnMetadata.Builder

addKeyColumn(ColumnMetadata value)

public TableMetadata.Builder addKeyColumn(ColumnMetadata value)

Keys, in order. Column name is currently not populated.

repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;

Parameter
Name Description
value ColumnMetadata
Returns
Type Description
TableMetadata.Builder

addKeyColumn(ColumnMetadata.Builder builderForValue)

public TableMetadata.Builder addKeyColumn(ColumnMetadata.Builder builderForValue)

Keys, in order. Column name is currently not populated.

repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;

Parameter
Name Description
builderForValue ColumnMetadata.Builder
Returns
Type Description
TableMetadata.Builder

addKeyColumn(int index, ColumnMetadata value)

public TableMetadata.Builder addKeyColumn(int index, ColumnMetadata value)

Keys, in order. Column name is currently not populated.

repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;

Parameters
Name Description
index int
value ColumnMetadata
Returns
Type Description
TableMetadata.Builder

addKeyColumn(int index, ColumnMetadata.Builder builderForValue)

public TableMetadata.Builder addKeyColumn(int index, ColumnMetadata.Builder builderForValue)

Keys, in order. Column name is currently not populated.

repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;

Parameters
Name Description
index int
builderForValue ColumnMetadata.Builder
Returns
Type Description
TableMetadata.Builder

addKeyColumnBuilder()

public ColumnMetadata.Builder addKeyColumnBuilder()

Keys, in order. Column name is currently not populated.

repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;

Returns
Type Description
ColumnMetadata.Builder

addKeyColumnBuilder(int index)

public ColumnMetadata.Builder addKeyColumnBuilder(int index)

Keys, in order. Column name is currently not populated.

repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;

Parameter
Name Description
index int
Returns
Type Description
ColumnMetadata.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TableMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TableMetadata.Builder
Overrides

build()

public TableMetadata build()
Returns
Type Description
TableMetadata

buildPartial()

public TableMetadata buildPartial()
Returns
Type Description
TableMetadata

clear()

public TableMetadata.Builder clear()
Returns
Type Description
TableMetadata.Builder
Overrides

clearColumn()

public TableMetadata.Builder clearColumn()

Columns, in the same order as in the schema.

repeated .google.spanner.executor.v1.ColumnMetadata column = 2;

Returns
Type Description
TableMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

public TableMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TableMetadata.Builder
Overrides

clearKeyColumn()

public TableMetadata.Builder clearKeyColumn()

Keys, in order. Column name is currently not populated.

repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;

Returns
Type Description
TableMetadata.Builder

clearName()

public TableMetadata.Builder clearName()

Table name.

string name = 1;

Returns
Type Description
TableMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TableMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TableMetadata.Builder
Overrides

clone()

public TableMetadata.Builder clone()
Returns
Type Description
TableMetadata.Builder
Overrides

getColumn(int index)

public ColumnMetadata getColumn(int index)

Columns, in the same order as in the schema.

repeated .google.spanner.executor.v1.ColumnMetadata column = 2;

Parameter
Name Description
index int
Returns
Type Description
ColumnMetadata

getColumnBuilder(int index)

public ColumnMetadata.Builder getColumnBuilder(int index)

Columns, in the same order as in the schema.

repeated .google.spanner.executor.v1.ColumnMetadata column = 2;

Parameter
Name Description
index int
Returns
Type Description
ColumnMetadata.Builder

getColumnBuilderList()

public List<ColumnMetadata.Builder> getColumnBuilderList()

Columns, in the same order as in the schema.

repeated .google.spanner.executor.v1.ColumnMetadata column = 2;

Returns
Type Description
List<Builder>

getColumnCount()

public int getColumnCount()

Columns, in the same order as in the schema.

repeated .google.spanner.executor.v1.ColumnMetadata column = 2;

Returns
Type Description
int

getColumnList()

public List<ColumnMetadata> getColumnList()

Columns, in the same order as in the schema.

repeated .google.spanner.executor.v1.ColumnMetadata column = 2;

Returns
Type Description
List<ColumnMetadata>

getColumnOrBuilder(int index)

public ColumnMetadataOrBuilder getColumnOrBuilder(int index)

Columns, in the same order as in the schema.

repeated .google.spanner.executor.v1.ColumnMetadata column = 2;

Parameter
Name Description
index int
Returns
Type Description
ColumnMetadataOrBuilder

getColumnOrBuilderList()

public List<? extends ColumnMetadataOrBuilder> getColumnOrBuilderList()

Columns, in the same order as in the schema.

repeated .google.spanner.executor.v1.ColumnMetadata column = 2;

Returns
Type Description
List<? extends com.google.spanner.executor.v1.ColumnMetadataOrBuilder>

getDefaultInstanceForType()

public TableMetadata getDefaultInstanceForType()
Returns
Type Description
TableMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getKeyColumn(int index)

public ColumnMetadata getKeyColumn(int index)

Keys, in order. Column name is currently not populated.

repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;

Parameter
Name Description
index int
Returns
Type Description
ColumnMetadata

getKeyColumnBuilder(int index)

public ColumnMetadata.Builder getKeyColumnBuilder(int index)

Keys, in order. Column name is currently not populated.

repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;

Parameter
Name Description
index int
Returns
Type Description
ColumnMetadata.Builder

getKeyColumnBuilderList()

public List<ColumnMetadata.Builder> getKeyColumnBuilderList()

Keys, in order. Column name is currently not populated.

repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;

Returns
Type Description
List<Builder>

getKeyColumnCount()

public int getKeyColumnCount()

Keys, in order. Column name is currently not populated.

repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;

Returns
Type Description
int

getKeyColumnList()

public List<ColumnMetadata> getKeyColumnList()

Keys, in order. Column name is currently not populated.

repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;

Returns
Type Description
List<ColumnMetadata>

getKeyColumnOrBuilder(int index)

public ColumnMetadataOrBuilder getKeyColumnOrBuilder(int index)

Keys, in order. Column name is currently not populated.

repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;

Parameter
Name Description
index int
Returns
Type Description
ColumnMetadataOrBuilder

getKeyColumnOrBuilderList()

public List<? extends ColumnMetadataOrBuilder> getKeyColumnOrBuilderList()

Keys, in order. Column name is currently not populated.

repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;

Returns
Type Description
List<? extends com.google.spanner.executor.v1.ColumnMetadataOrBuilder>

getName()

public String getName()

Table name.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Table name.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TableMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TableMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TableMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TableMetadata.Builder
Overrides

mergeFrom(TableMetadata other)

public TableMetadata.Builder mergeFrom(TableMetadata other)
Parameter
Name Description
other TableMetadata
Returns
Type Description
TableMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeColumn(int index)

public TableMetadata.Builder removeColumn(int index)

Columns, in the same order as in the schema.

repeated .google.spanner.executor.v1.ColumnMetadata column = 2;

Parameter
Name Description
index int
Returns
Type Description
TableMetadata.Builder

removeKeyColumn(int index)

public TableMetadata.Builder removeKeyColumn(int index)

Keys, in order. Column name is currently not populated.

repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;

Parameter
Name Description
index int
Returns
Type Description
TableMetadata.Builder

setColumn(int index, ColumnMetadata value)

public TableMetadata.Builder setColumn(int index, ColumnMetadata value)

Columns, in the same order as in the schema.

repeated .google.spanner.executor.v1.ColumnMetadata column = 2;

Parameters
Name Description
index int
value ColumnMetadata
Returns
Type Description
TableMetadata.Builder

setColumn(int index, ColumnMetadata.Builder builderForValue)

public TableMetadata.Builder setColumn(int index, ColumnMetadata.Builder builderForValue)

Columns, in the same order as in the schema.

repeated .google.spanner.executor.v1.ColumnMetadata column = 2;

Parameters
Name Description
index int
builderForValue ColumnMetadata.Builder
Returns
Type Description
TableMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setKeyColumn(int index, ColumnMetadata value)

public TableMetadata.Builder setKeyColumn(int index, ColumnMetadata value)

Keys, in order. Column name is currently not populated.

repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;

Parameters
Name Description
index int
value ColumnMetadata
Returns
Type Description
TableMetadata.Builder

setKeyColumn(int index, ColumnMetadata.Builder builderForValue)

public TableMetadata.Builder setKeyColumn(int index, ColumnMetadata.Builder builderForValue)

Keys, in order. Column name is currently not populated.

repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;

Parameters
Name Description
index int
builderForValue ColumnMetadata.Builder
Returns
Type Description
TableMetadata.Builder

setName(String value)

public TableMetadata.Builder setName(String value)

Table name.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
TableMetadata.Builder

This builder for chaining.

setNameBytes(ByteString value)

public TableMetadata.Builder setNameBytes(ByteString value)

Table name.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
TableMetadata.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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