public interface TypeOrBuilder extends MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
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.
|
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.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
isInitialized
int getCodeValue()
Required. The [TypeCode][google.spanner.v1.TypeCode] for this type.
.google.spanner.v1.TypeCode code = 1 [(.google.api.field_behavior) = REQUIRED];
TypeCode getCode()
Required. The [TypeCode][google.spanner.v1.TypeCode] for this type.
.google.spanner.v1.TypeCode code = 1 [(.google.api.field_behavior) = REQUIRED];
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;
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;
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;
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;
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;
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;
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;
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;
Copyright © 2022 Google LLC. All rights reserved.