Packages

package type

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. final case class StructType(fields: Seq[Field] = _root_.scala.Seq.empty, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[StructType] with Product with Serializable

    StructType defines the fields of a [STRUCT][google.spanner.v1.TypeCode.STRUCT] type.

    StructType defines the fields of a [STRUCT][google.spanner.v1.TypeCode.STRUCT] type.

    fields

    The list of fields that make up this struct. Order is significant, because values of this struct type are represented as lists, where the order of field values matches the order of fields in the [StructType][google.spanner.v1.StructType]. In turn, the order of fields matches the order of columns in a read request, or the order of fields in the SELECT clause of a query.

    Annotations
    @SerialVersionUID()
  2. final case class Type(code: TypeCode = com.google.spanner.v1.`type`.TypeCode.TYPE_CODE_UNSPECIFIED, arrayElementType: Option[Type] = _root_.scala.None, structType: Option[StructType] = _root_.scala.None, typeAnnotation: TypeAnnotationCode = com.google.spanner.v1.`type`.TypeAnnotationCode.TYPE_ANNOTATION_CODE_UNSPECIFIED, protoTypeFqn: String = "", unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[Type] with Product with Serializable

    Type indicates the type of a Cloud Spanner value, as might be stored in a table cell or returned from an SQL query.

    Type indicates the type of a Cloud Spanner value, as might be stored in a table cell or returned from an SQL query.

    code

    Required. The [TypeCode][google.spanner.v1.TypeCode] for this type.

    arrayElementType

    If [code][google.spanner.v1.Type.code] == [ARRAY][google.spanner.v1.TypeCode.ARRAY], then array_element_type is the type of the array elements.

    structType

    If [code][google.spanner.v1.Type.code] == [STRUCT][google.spanner.v1.TypeCode.STRUCT], then struct_type provides type information for the struct's fields.

    typeAnnotation

    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.

    protoTypeFqn

    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.

    Annotations
    @SerialVersionUID()
  3. sealed abstract class TypeAnnotationCode extends GeneratedEnum

    TypeAnnotationCode is used as a part of [Type][google.spanner.v1.Type] to disambiguate SQL types that should be used for a given Cloud Spanner value.

    TypeAnnotationCode is used as a part of [Type][google.spanner.v1.Type] to disambiguate SQL types that should be used for a given Cloud Spanner value. Disambiguation is needed because the same Cloud Spanner type can be mapped to different SQL types depending on SQL dialect. TypeAnnotationCode doesn't affect the way value is serialized.

  4. sealed abstract class TypeCode extends GeneratedEnum

    TypeCode is used as part of [Type][google.spanner.v1.Type] to indicate the type of a Cloud Spanner value.

    TypeCode is used as part of [Type][google.spanner.v1.Type] to indicate the type of a Cloud Spanner value.

    Each legal value of a type can be encoded to or decoded from a JSON value, using the encodings described below. All Cloud Spanner values can be null, regardless of type; nulls are always encoded as a JSON null.

Value Members

  1. object StructType extends GeneratedMessageCompanion[StructType]
  2. object Type extends GeneratedMessageCompanion[Type]
  3. object TypeAnnotationCode extends GeneratedEnumCompanion[TypeAnnotationCode]
  4. object TypeCode extends GeneratedEnumCompanion[TypeCode]
  5. object TypeProto extends GeneratedFileObject

Ungrouped