Class TableMetadata (6.57.0)

public final class TableMetadata extends GeneratedMessageV3 implements TableMetadataOrBuilder

TableMetadata contains metadata of a single table.

Protobuf type google.spanner.executor.v1.TableMetadata

Static Fields

COLUMN_FIELD_NUMBER

public static final int COLUMN_FIELD_NUMBER
Field Value
TypeDescription
int

KEY_COLUMN_FIELD_NUMBER

public static final int KEY_COLUMN_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TableMetadata getDefaultInstance()
Returns
TypeDescription
TableMetadata

getDescriptor()

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

newBuilder()

public static TableMetadata.Builder newBuilder()
Returns
TypeDescription
TableMetadata.Builder

newBuilder(TableMetadata prototype)

public static TableMetadata.Builder newBuilder(TableMetadata prototype)
Parameter
NameDescription
prototypeTableMetadata
Returns
TypeDescription
TableMetadata.Builder

parseDelimitedFrom(InputStream input)

public static TableMetadata parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TableMetadata
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TableMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TableMetadata
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TableMetadata parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TableMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TableMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TableMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TableMetadata parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TableMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TableMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TableMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TableMetadata parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TableMetadata
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TableMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TableMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TableMetadata parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TableMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TableMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TableMetadata
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TableMetadata parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TableMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TableMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TableMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<TableMetadata> parser()
Returns
TypeDescription
Parser<TableMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

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

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

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.

getParserForType()

public Parser<TableMetadata> getParserForType()
Returns
TypeDescription
Parser<TableMetadata>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public TableMetadata.Builder newBuilderForType()
Returns
TypeDescription
TableMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TableMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TableMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public TableMetadata.Builder toBuilder()
Returns
TypeDescription
TableMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException