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

    Modifier and Type
    Method
    Description
    If [code][google.spanner.v1.Type.code] == [ARRAY][google.spanner.v1.TypeCode.ARRAY], then `array_element_type` is the type of the array elements.
    If [code][google.spanner.v1.Type.code] == [ARRAY][google.spanner.v1.TypeCode.ARRAY], then `array_element_type` is the type of the array elements.
    Required.
    int
    Required.
    If [code][google.spanner.v1.Type.code] == [PROTO][google.spanner.v1.TypeCode.PROTO] or [code][google.spanner.v1.Type.code] == [ENUM][google.spanner.v1.TypeCode.ENUM], then `proto_type_fqn` is the fully qualified name of the proto type representing the proto/enum definition.
    com.google.protobuf.ByteString
    If [code][google.spanner.v1.Type.code] == [PROTO][google.spanner.v1.TypeCode.PROTO] or [code][google.spanner.v1.Type.code] == [ENUM][google.spanner.v1.TypeCode.ENUM], then `proto_type_fqn` is the fully qualified name of the proto type representing the proto/enum definition.
    If [code][google.spanner.v1.Type.code] == [STRUCT][google.spanner.v1.TypeCode.STRUCT], then `struct_type` provides type information for the struct's fields.
    If [code][google.spanner.v1.Type.code] == [STRUCT][google.spanner.v1.TypeCode.STRUCT], then `struct_type` provides type information for the struct's fields.
    The [TypeAnnotationCode][google.spanner.v1.TypeAnnotationCode] that disambiguates SQL type that Spanner will use to represent values of this type during query processing.
    int
    The [TypeAnnotationCode][google.spanner.v1.TypeAnnotationCode] that disambiguates SQL type that Spanner will use to represent values of this type during query processing.
    boolean
    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
    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.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • 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.
    • getProtoTypeFqn

      String getProtoTypeFqn()
       If [code][google.spanner.v1.Type.code] ==
       [PROTO][google.spanner.v1.TypeCode.PROTO] or
       [code][google.spanner.v1.Type.code] ==
       [ENUM][google.spanner.v1.TypeCode.ENUM], then `proto_type_fqn` is the fully
       qualified name of the proto type representing the proto/enum definition.
       
      string proto_type_fqn = 5;
      Returns:
      The protoTypeFqn.
    • getProtoTypeFqnBytes

      com.google.protobuf.ByteString getProtoTypeFqnBytes()
       If [code][google.spanner.v1.Type.code] ==
       [PROTO][google.spanner.v1.TypeCode.PROTO] or
       [code][google.spanner.v1.Type.code] ==
       [ENUM][google.spanner.v1.TypeCode.ENUM], then `proto_type_fqn` is the fully
       qualified name of the proto type representing the proto/enum definition.
       
      string proto_type_fqn = 5;
      Returns:
      The bytes for protoTypeFqn.