Package com.google.spanner.v1
Interface TypeOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Type
,Type.Builder
public interface TypeOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getCodeValue
int getCodeValue()
Required. The [TypeCode][google.spanner.v1.TypeCode] for this type.
.google.spanner.v1.TypeCode code = 1 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- The enum numeric value on the wire for code.
-
getCode
TypeCode getCode()
Required. The [TypeCode][google.spanner.v1.TypeCode] for this type.
.google.spanner.v1.TypeCode code = 1 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- The code.
-
hasArrayElementType
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;
- Returns:
- Whether the arrayElementType field is set.
-
getArrayElementType
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;
- Returns:
- The arrayElementType.
-
getArrayElementTypeOrBuilder
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;
-
hasStructType
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;
- Returns:
- Whether the structType field is set.
-
getStructType
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;
- Returns:
- The structType.
-
getStructTypeOrBuilder
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;
-
getTypeAnnotationValue
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;
- Returns:
- The enum numeric value on the wire for typeAnnotation.
-
getTypeAnnotation
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;
- Returns:
- The typeAnnotation.
-
-