Class StructType (6.55.0)

public final class StructType extends GeneratedMessageV3 implements StructTypeOrBuilder

StructType defines the fields of a STRUCT type.

Protobuf type google.spanner.v1.StructType

Implements

StructTypeOrBuilder

Static Fields

FIELDS_FIELD_NUMBER

public static final int FIELDS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static StructType getDefaultInstance()
Returns
TypeDescription
StructType

getDescriptor()

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

newBuilder()

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

newBuilder(StructType prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public StructType getDefaultInstanceForType()
Returns
TypeDescription
StructType

getFields(int index)

public StructType.Field getFields(int index)

The list of fields that make up this struct. Order is significant, because values of this struct type are represented as lists, where the order of field values matches the order of fields in the StructType. In turn, the order of fields matches the order of columns in a read request, or the order of fields in the SELECT clause of a query.

repeated .google.spanner.v1.StructType.Field fields = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
StructType.Field

getFieldsCount()

public int getFieldsCount()

The list of fields that make up this struct. Order is significant, because values of this struct type are represented as lists, where the order of field values matches the order of fields in the StructType. In turn, the order of fields matches the order of columns in a read request, or the order of fields in the SELECT clause of a query.

repeated .google.spanner.v1.StructType.Field fields = 1;

Returns
TypeDescription
int

getFieldsList()

public List<StructType.Field> getFieldsList()

The list of fields that make up this struct. Order is significant, because values of this struct type are represented as lists, where the order of field values matches the order of fields in the StructType. In turn, the order of fields matches the order of columns in a read request, or the order of fields in the SELECT clause of a query.

repeated .google.spanner.v1.StructType.Field fields = 1;

Returns
TypeDescription
List<Field>

getFieldsOrBuilder(int index)

public StructType.FieldOrBuilder getFieldsOrBuilder(int index)

The list of fields that make up this struct. Order is significant, because values of this struct type are represented as lists, where the order of field values matches the order of fields in the StructType. In turn, the order of fields matches the order of columns in a read request, or the order of fields in the SELECT clause of a query.

repeated .google.spanner.v1.StructType.Field fields = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
StructType.FieldOrBuilder

getFieldsOrBuilderList()

public List<? extends StructType.FieldOrBuilder> getFieldsOrBuilderList()

The list of fields that make up this struct. Order is significant, because values of this struct type are represented as lists, where the order of field values matches the order of fields in the StructType. In turn, the order of fields matches the order of columns in a read request, or the order of fields in the SELECT clause of a query.

repeated .google.spanner.v1.StructType.Field fields = 1;

Returns
TypeDescription
List<? extends com.google.spanner.v1.StructType.FieldOrBuilder>

getParserForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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