public final class Type extends GeneratedMessageV3 implements TypeOrBuilder
Type
indicates the type of a Cloud Spanner value, as might be stored in a
table cell or returned from an SQL query.
Protobuf type google.spanner.v1.Type
Fields
ARRAY_ELEMENT_TYPE_FIELD_NUMBER
public static final int ARRAY_ELEMENT_TYPE_FIELD_NUMBER
Field Value
CODE_FIELD_NUMBER
public static final int CODE_FIELD_NUMBER
Field Value
STRUCT_TYPE_FIELD_NUMBER
public static final int STRUCT_TYPE_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getArrayElementType()
public Type getArrayElementType()
If code == ARRAY, then array_element_type
is the type of the array elements.
.google.spanner.v1.Type array_element_type = 2;
Returns
Type | Description |
Type | The arrayElementType.
|
getArrayElementTypeOrBuilder()
public TypeOrBuilder getArrayElementTypeOrBuilder()
If code == ARRAY, then array_element_type
is the type of the array elements.
.google.spanner.v1.Type array_element_type = 2;
Returns
getCode()
public TypeCode getCode()
Required. The TypeCode for this type.
.google.spanner.v1.TypeCode code = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getCodeValue()
public int getCodeValue()
Required. The TypeCode for this type.
.google.spanner.v1.TypeCode code = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
int | The enum numeric value on the wire for code.
|
getDefaultInstance()
public static Type getDefaultInstance()
Returns
getDefaultInstanceForType()
public Type getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getParserForType()
public Parser<Type> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getStructType()
public StructType getStructType()
If code == STRUCT, then struct_type
provides type information for the struct's fields.
.google.spanner.v1.StructType struct_type = 3;
Returns
getStructTypeOrBuilder()
public StructTypeOrBuilder getStructTypeOrBuilder()
If code == STRUCT, then struct_type
provides type information for the struct's fields.
.google.spanner.v1.StructType struct_type = 3;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasArrayElementType()
public boolean hasArrayElementType()
If code == ARRAY, then array_element_type
is the type of the array elements.
.google.spanner.v1.Type array_element_type = 2;
Returns
Type | Description |
boolean | Whether the arrayElementType field is set.
|
hasStructType()
public boolean hasStructType()
If code == STRUCT, then struct_type
provides type information for the struct's fields.
.google.spanner.v1.StructType struct_type = 3;
Returns
Type | Description |
boolean | Whether the structType field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static Type.Builder newBuilder()
Returns
newBuilder(Type prototype)
public static Type.Builder newBuilder(Type prototype)
Parameter
Name | Description |
prototype | Type
|
Returns
newBuilderForType()
public Type.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Type.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static Type parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Type parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Type parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Type parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Type parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Type parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Type parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Type parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Type parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Type parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Type parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Type parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Type> parser()
Returns
toBuilder()
public Type.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions