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
Modifier and Type | Class and Description |
---|---|
static class |
Type.Builder
`Type` indicates the type of a Cloud Spanner value, as might be stored in a
table cell or returned from an SQL query.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
ARRAY_ELEMENT_TYPE_FIELD_NUMBER |
static int |
CODE_FIELD_NUMBER |
static int |
STRUCT_TYPE_FIELD_NUMBER |
static int |
TYPE_ANNOTATION_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Type |
getArrayElementType()
If [code][google.spanner.v1.Type.code] == [ARRAY][google.spanner.v1.TypeCode.ARRAY], then `array_element_type`
is the type of the array elements.
|
TypeOrBuilder |
getArrayElementTypeOrBuilder()
If [code][google.spanner.v1.Type.code] == [ARRAY][google.spanner.v1.TypeCode.ARRAY], then `array_element_type`
is the type of the array elements.
|
TypeCode |
getCode()
Required.
|
int |
getCodeValue()
Required.
|
static Type |
getDefaultInstance() |
Type |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Parser<Type> |
getParserForType() |
int |
getSerializedSize() |
StructType |
getStructType()
If [code][google.spanner.v1.Type.code] == [STRUCT][google.spanner.v1.TypeCode.STRUCT], then `struct_type`
provides type information for the struct's fields.
|
StructTypeOrBuilder |
getStructTypeOrBuilder()
If [code][google.spanner.v1.Type.code] == [STRUCT][google.spanner.v1.TypeCode.STRUCT], then `struct_type`
provides type information for the struct's fields.
|
TypeAnnotationCode |
getTypeAnnotation()
The [TypeAnnotationCode][google.spanner.v1.TypeAnnotationCode] that disambiguates SQL type that Spanner will
use to represent values of this type during query processing.
|
int |
getTypeAnnotationValue()
The [TypeAnnotationCode][google.spanner.v1.TypeAnnotationCode] that disambiguates SQL type that Spanner will
use to represent values of this type during query processing.
|
UnknownFieldSet |
getUnknownFields() |
boolean |
hasArrayElementType()
If [code][google.spanner.v1.Type.code] == [ARRAY][google.spanner.v1.TypeCode.ARRAY], then `array_element_type`
is the type of the array elements.
|
int |
hashCode() |
boolean |
hasStructType()
If [code][google.spanner.v1.Type.code] == [STRUCT][google.spanner.v1.TypeCode.STRUCT], then `struct_type`
provides type information for the struct's fields.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Type.Builder |
newBuilder() |
static Type.Builder |
newBuilder(Type prototype) |
Type.Builder |
newBuilderForType() |
protected Type.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) |
static Type |
parseDelimitedFrom(InputStream input) |
static Type |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Type |
parseFrom(byte[] data) |
static Type |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static Type |
parseFrom(ByteBuffer data) |
static Type |
parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static Type |
parseFrom(ByteString data) |
static Type |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Type |
parseFrom(CodedInputStream input) |
static Type |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static Type |
parseFrom(InputStream input) |
static Type |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<Type> |
parser() |
Type.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int CODE_FIELD_NUMBER
public static final int ARRAY_ELEMENT_TYPE_FIELD_NUMBER
public static final int STRUCT_TYPE_FIELD_NUMBER
public static final int TYPE_ANNOTATION_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public int getCodeValue()
Required. The [TypeCode][google.spanner.v1.TypeCode] for this type.
.google.spanner.v1.TypeCode code = 1 [(.google.api.field_behavior) = REQUIRED];
getCodeValue
in interface TypeOrBuilder
public TypeCode getCode()
Required. The [TypeCode][google.spanner.v1.TypeCode] for this type.
.google.spanner.v1.TypeCode code = 1 [(.google.api.field_behavior) = REQUIRED];
getCode
in interface TypeOrBuilder
public boolean hasArrayElementType()
If [code][google.spanner.v1.Type.code] == [ARRAY][google.spanner.v1.TypeCode.ARRAY], then `array_element_type` is the type of the array elements.
.google.spanner.v1.Type array_element_type = 2;
hasArrayElementType
in interface TypeOrBuilder
public Type getArrayElementType()
If [code][google.spanner.v1.Type.code] == [ARRAY][google.spanner.v1.TypeCode.ARRAY], then `array_element_type` is the type of the array elements.
.google.spanner.v1.Type array_element_type = 2;
getArrayElementType
in interface TypeOrBuilder
public TypeOrBuilder getArrayElementTypeOrBuilder()
If [code][google.spanner.v1.Type.code] == [ARRAY][google.spanner.v1.TypeCode.ARRAY], then `array_element_type` is the type of the array elements.
.google.spanner.v1.Type array_element_type = 2;
getArrayElementTypeOrBuilder
in interface TypeOrBuilder
public boolean hasStructType()
If [code][google.spanner.v1.Type.code] == [STRUCT][google.spanner.v1.TypeCode.STRUCT], then `struct_type` provides type information for the struct's fields.
.google.spanner.v1.StructType struct_type = 3;
hasStructType
in interface TypeOrBuilder
public StructType getStructType()
If [code][google.spanner.v1.Type.code] == [STRUCT][google.spanner.v1.TypeCode.STRUCT], then `struct_type` provides type information for the struct's fields.
.google.spanner.v1.StructType struct_type = 3;
getStructType
in interface TypeOrBuilder
public StructTypeOrBuilder getStructTypeOrBuilder()
If [code][google.spanner.v1.Type.code] == [STRUCT][google.spanner.v1.TypeCode.STRUCT], then `struct_type` provides type information for the struct's fields.
.google.spanner.v1.StructType struct_type = 3;
getStructTypeOrBuilder
in interface TypeOrBuilder
public int getTypeAnnotationValue()
The [TypeAnnotationCode][google.spanner.v1.TypeAnnotationCode] that disambiguates SQL type that Spanner will use to represent values of this type during query processing. This is necessary for some type codes because a single [TypeCode][google.spanner.v1.TypeCode] can be mapped to different SQL types depending on the SQL dialect. [type_annotation][google.spanner.v1.Type.type_annotation] typically is not needed to process the content of a value (it doesn't affect serialization) and clients can ignore it on the read path.
.google.spanner.v1.TypeAnnotationCode type_annotation = 4;
getTypeAnnotationValue
in interface TypeOrBuilder
public TypeAnnotationCode getTypeAnnotation()
The [TypeAnnotationCode][google.spanner.v1.TypeAnnotationCode] that disambiguates SQL type that Spanner will use to represent values of this type during query processing. This is necessary for some type codes because a single [TypeCode][google.spanner.v1.TypeCode] can be mapped to different SQL types depending on the SQL dialect. [type_annotation][google.spanner.v1.Type.type_annotation] typically is not needed to process the content of a value (it doesn't affect serialization) and clients can ignore it on the read path.
.google.spanner.v1.TypeAnnotationCode type_annotation = 4;
getTypeAnnotation
in interface TypeOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Type parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Type parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Type parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Type parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Type parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Type parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Type parseFrom(InputStream input) throws IOException
IOException
public static Type parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Type parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Type parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Type parseFrom(CodedInputStream input) throws IOException
IOException
public static Type parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Type.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Type.Builder newBuilder()
public static Type.Builder newBuilder(Type prototype)
public Type.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Type.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Type getDefaultInstance()
public Parser<Type> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Type getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.