Class StructType.Field (6.60.0)

public static final class StructType.Field extends GeneratedMessageV3 implements StructType.FieldOrBuilder

Message representing a single field of a struct.

Protobuf type google.spanner.v1.StructType.Field

Static Fields

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static StructType.Field getDefaultInstance()
Returns
TypeDescription
StructType.Field

getDescriptor()

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

newBuilder()

public static StructType.Field.Builder newBuilder()
Returns
TypeDescription
StructType.Field.Builder

newBuilder(StructType.Field prototype)

public static StructType.Field.Builder newBuilder(StructType.Field prototype)
Parameter
NameDescription
prototypeStructType.Field
Returns
TypeDescription
StructType.Field.Builder

parseDelimitedFrom(InputStream input)

public static StructType.Field parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
StructType.Field
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static StructType.Field parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
StructType.Field
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static StructType.Field parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
StructType.Field
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static StructType.Field parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
StructType.Field
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static StructType.Field parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
StructType.Field
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<StructType.Field> parser()
Returns
TypeDescription
Parser<Field>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public StructType.Field getDefaultInstanceForType()
Returns
TypeDescription
StructType.Field

getName()

public 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
TypeDescription
String

The name.

getNameBytes()

public 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
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<StructType.Field> getParserForType()
Returns
TypeDescription
Parser<Field>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getType()

public Type getType()

The type of the field.

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

Returns
TypeDescription
Type

The type.

getTypeOrBuilder()

public TypeOrBuilder getTypeOrBuilder()

The type of the field.

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

Returns
TypeDescription
TypeOrBuilder

hasType()

public boolean hasType()

The type of the field.

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

Returns
TypeDescription
boolean

Whether the type field is set.

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 StructType.Field.Builder newBuilderForType()
Returns
TypeDescription
StructType.Field.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public StructType.Field.Builder toBuilder()
Returns
TypeDescription
StructType.Field.Builder

writeTo(CodedOutputStream output)

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