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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > TypeImplements
TypeOrBuilderFields
ARRAY_ELEMENT_TYPE_FIELD_NUMBER
public static final int ARRAY_ELEMENT_TYPE_FIELD_NUMBER
Type | Description |
int |
CODE_FIELD_NUMBER
public static final int CODE_FIELD_NUMBER
Type | Description |
int |
STRUCT_TYPE_FIELD_NUMBER
public static final int STRUCT_TYPE_FIELD_NUMBER
Type | Description |
int |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
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;
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;
Type | Description |
TypeOrBuilder |
getCode()
public TypeCode getCode()
Required. The TypeCode for this type.
.google.spanner.v1.TypeCode code = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
TypeCode | The code. |
getCodeValue()
public int getCodeValue()
Required. The TypeCode for this type.
.google.spanner.v1.TypeCode code = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
int | The enum numeric value on the wire for code. |
getDefaultInstance()
public static Type getDefaultInstance()
Type | Description |
Type |
getDefaultInstanceForType()
public Type getDefaultInstanceForType()
Type | Description |
Type |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
getParserForType()
public Parser<Type> getParserForType()
Type | Description |
Parser<Type> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
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;
Type | Description |
StructType | The structType. |
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;
Type | Description |
StructTypeOrBuilder |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
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;
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;
Type | Description |
boolean | Whether the structType field is set. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilder()
public static Type.Builder newBuilder()
Type | Description |
Type.Builder |
newBuilder(Type prototype)
public static Type.Builder newBuilder(Type prototype)
Name | Description |
prototype | Type |
Type | Description |
Type.Builder |
newBuilderForType()
public Type.Builder newBuilderForType()
Type | Description |
Type.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Type.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
Type.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
parseDelimitedFrom(InputStream input)
public static Type parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Type |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Type parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Type |
Type | Description |
IOException |
parseFrom(byte[] data)
public static Type parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
Type |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Type parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Type |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static Type parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
Type |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Type parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Type |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static Type parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
Type |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Type parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Type |
Type | Description |
IOException |
parseFrom(InputStream input)
public static Type parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Type |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Type parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Type |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static Type parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
Type |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Type parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Type |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<Type> parser()
Type | Description |
Parser<Type> |
toBuilder()
public Type.Builder toBuilder()
Type | Description |
Type.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |