Class TableMetadata.Builder (6.58.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.spanner.executor.v1.ColumnMetadata>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.spanner.executor.v1.ColumnMetadata>
Returns
TypeDescription
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
NameDescription
valueColumnMetadata
Returns
TypeDescription
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
NameDescription
builderForValueColumnMetadata.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueColumnMetadata
Returns
TypeDescription
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
NameDescription
indexint
builderForValueColumnMetadata.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueColumnMetadata
Returns
TypeDescription
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
NameDescription
builderForValueColumnMetadata.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueColumnMetadata
Returns
TypeDescription
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
NameDescription
indexint
builderForValueColumnMetadata.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ColumnMetadata.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TableMetadata build()
Returns
TypeDescription
TableMetadata

buildPartial()

public TableMetadata buildPartial()
Returns
TypeDescription
TableMetadata

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public TableMetadata.Builder clearName()

Table name.

string name = 1;

Returns
TypeDescription
TableMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public TableMetadata.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getColumnCount()

public int getColumnCount()

Columns, in the same order as in the schema.

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

Returns
TypeDescription
int

getColumnList()

public List<ColumnMetadata> getColumnList()

Columns, in the same order as in the schema.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.spanner.executor.v1.ColumnMetadataOrBuilder>

getDefaultInstanceForType()

public TableMetadata getDefaultInstanceForType()
Returns
TypeDescription
TableMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.spanner.executor.v1.ColumnMetadataOrBuilder>

getName()

public String getName()

Table name.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Table name.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(TableMetadata other)

public TableMetadata.Builder mergeFrom(TableMetadata other)
Parameter
NameDescription
otherTableMetadata
Returns
TypeDescription
TableMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TableMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueColumnMetadata
Returns
TypeDescription
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
NameDescription
indexint
builderForValueColumnMetadata.Builder
Returns
TypeDescription
TableMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TableMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueColumnMetadata
Returns
TypeDescription
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
NameDescription
indexint
builderForValueColumnMetadata.Builder
Returns
TypeDescription
TableMetadata.Builder

setName(String value)

public TableMetadata.Builder setName(String value)

Table name.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
TableMetadata.Builder

This builder for chaining.

setNameBytes(ByteString value)

public TableMetadata.Builder setNameBytes(ByteString value)

Table name.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TableMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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