Interface StructType.FieldOrBuilder (6.72.0)

public static interface StructType.FieldOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getName()

public abstract String getName()

The name of the field. For reads, this is the column name. For SQL queries, it is the column alias (e.g., "Word" in the query "SELECT 'hello' AS Word"), or the column name (e.g., "ColName" in the query "SELECT ColName FROM Table"). Some columns might have an empty name (e.g., "SELECT UPPER(ColName)"). Note that a query result can contain multiple fields with the same name.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

The name of the field. For reads, this is the column name. For SQL queries, it is the column alias (e.g., "Word" in the query "SELECT 'hello' AS Word"), or the column name (e.g., "ColName" in the query "SELECT ColName FROM Table"). Some columns might have an empty name (e.g., "SELECT UPPER(ColName)"). Note that a query result can contain multiple fields with the same name.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getType()

public abstract Type getType()

The type of the field.

.google.spanner.v1.Type type = 2;

Returns
Type Description
Type

The type.

getTypeOrBuilder()

public abstract TypeOrBuilder getTypeOrBuilder()

The type of the field.

.google.spanner.v1.Type type = 2;

Returns
Type Description
TypeOrBuilder

hasType()

public abstract boolean hasType()

The type of the field.

.google.spanner.v1.Type type = 2;

Returns
Type Description
boolean

Whether the type field is set.