- 6.99.0 (latest)
- 6.98.1
- 6.97.1
- 6.96.1
- 6.95.1
- 6.94.0
- 6.93.0
- 6.89.0
- 6.88.0
- 6.87.0
- 6.86.0
- 6.85.0
- 6.83.0
- 6.82.0
- 6.80.1
- 6.79.0
- 6.77.0
- 6.74.1
- 6.72.0
- 6.71.0
- 6.69.0
- 6.68.0
- 6.66.0
- 6.65.1
- 6.62.0
- 6.60.0
- 6.58.0
- 6.57.0
- 6.56.0
- 6.55.0
- 6.54.0
- 6.53.0
- 6.52.1
- 6.51.0
- 6.50.1
- 6.49.0
- 6.25.1
- 6.24.0
- 6.23.4
- 6.22.0
- 6.21.2
- 6.20.0
- 6.19.1
- 6.18.0
- 6.17.4
- 6.14.1
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
TypeOrBuilderStatic Fields
ARRAY_ELEMENT_TYPE_FIELD_NUMBER
public
static
final
int
ARRAY_ELEMENT_TYPE_FIELD_NUMBER
CODE_FIELD_NUMBER
public
static
final
int
CODE_FIELD_NUMBER
PROTO_TYPE_FQN_FIELD_NUMBER
public
static
final
int
PROTO_TYPE_FQN_FIELD_NUMBER
STRUCT_TYPE_FIELD_NUMBER
public
static
final
int
STRUCT_TYPE_FIELD_NUMBER
TYPE_ANNOTATION_FIELD_NUMBER
public
static
final
int
TYPE_ANNOTATION_FIELD_NUMBER
Static Methods
getDefaultInstance()
public
static
Type
getDefaultInstance
()
getDescriptor()
public
static
final
Descriptors
.
Descriptor
getDescriptor
()
newBuilder()
public
static
Type
.
Builder
newBuilder
()
newBuilder(Type prototype)
public
static
Type
.
Builder
newBuilder
(
Type
prototype
)
parseDelimitedFrom(InputStream input)
public
static
Type
parseDelimitedFrom
(
InputStream
input
)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Type
parseDelimitedFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(byte[] data)
public
static
Type
parseFrom
(
byte
[]
data
)
data
byte
[]
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public
static
Type
parseFrom
(
byte
[]
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteString data)
public
static
Type
parseFrom
(
ByteString
data
)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public
static
Type
parseFrom
(
ByteString
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(CodedInputStream input)
public
static
Type
parseFrom
(
CodedInputStream
input
)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Type
parseFrom
(
CodedInputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(InputStream input)
public
static
Type
parseFrom
(
InputStream
input
)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Type
parseFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteBuffer data)
public
static
Type
parseFrom
(
ByteBuffer
data
)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public
static
Type
parseFrom
(
ByteBuffer
data
,
ExtensionRegistryLite
extensionRegistry
)
parser()
public
static
Parser<Type>
parser
()
Methods
equals(Object obj)
public
boolean
equals
(
Object
obj
)
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;
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;
getCode()
public
TypeCode
getCode
()
Required. The TypeCode for this type.
.google.spanner.v1.TypeCode code = 1 [(.google.api.field_behavior) = REQUIRED];
getCodeValue()
public
int
getCodeValue
()
Required. The TypeCode for this type.
.google.spanner.v1.TypeCode code = 1 [(.google.api.field_behavior) = REQUIRED];
getDefaultInstanceForType()
public
Type
getDefaultInstanceForType
()
getParserForType()
public
Parser<Type>
getParserForType
()
getProtoTypeFqn()
public
String
getProtoTypeFqn
()
If code
== PROTO
or code
== ENUM
, then proto_type_fqn
is the fully
qualified name of the proto type representing the proto/enum definition.
string proto_type_fqn = 5;
getProtoTypeFqnBytes()
public
ByteString
getProtoTypeFqnBytes
()
If code
== PROTO
or code
== ENUM
, then proto_type_fqn
is the fully
qualified name of the proto type representing the proto/enum definition.
string proto_type_fqn = 5;
getSerializedSize()
public
int
getSerializedSize
()
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;
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;
getTypeAnnotation()
public
TypeAnnotationCode
getTypeAnnotation
()
The 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 can be mapped to different SQL types depending on the SQL dialect. 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()
public
int
getTypeAnnotationValue
()
The 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 can be mapped to different SQL types depending on the SQL dialect. 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;
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;
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;
hashCode()
public
int
hashCode
()
internalGetFieldAccessorTable()
protected
GeneratedMessageV3
.
FieldAccessorTable
internalGetFieldAccessorTable
()
isInitialized()
public
final
boolean
isInitialized
()
newBuilderForType()
public
Type
.
Builder
newBuilderForType
()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected
Type
.
Builder
newBuilderForType
(
GeneratedMessageV3
.
BuilderParent
parent
)
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected
Object
newInstance
(
GeneratedMessageV3
.
UnusedPrivateParameter
unused
)
toBuilder()
public
Type
.
Builder
toBuilder
()
writeTo(CodedOutputStream output)
public
void
writeTo
(
CodedOutputStream
output
)