package type
- Alphabetic
- Public
- Protected
Type Members
- 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
StructTypedefines the fields of a [STRUCT][google.spanner.v1.TypeCode.STRUCT] type.StructTypedefines 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
SELECTclause of a query.
- Annotations
- @SerialVersionUID()
- 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
Typeindicates the type of a Cloud Spanner value, as might be stored in a table cell or returned from an SQL query.Typeindicates 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_typeis the type of the array elements.- structType
If [code][google.spanner.v1.Type.code] == [STRUCT][google.spanner.v1.TypeCode.STRUCT], then
struct_typeprovides 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_fqnis the fully qualified name of the proto type representing the proto/enum definition.
- Annotations
- @SerialVersionUID()
- sealed abstract class TypeAnnotationCode extends GeneratedEnum
TypeAnnotationCodeis used as a part of [Type][google.spanner.v1.Type] to disambiguate SQL types that should be used for a given Cloud Spanner value.TypeAnnotationCodeis 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. - sealed abstract class TypeCode extends GeneratedEnum
TypeCodeis used as part of [Type][google.spanner.v1.Type] to indicate the type of a Cloud Spanner value.TypeCodeis 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 JSONnull.
Value Members
- object StructType extends GeneratedMessageCompanion[StructType]
- object Type extends GeneratedMessageCompanion[Type]
- object TypeAnnotationCode extends GeneratedEnumCompanion[TypeAnnotationCode]
- object TypeCode extends GeneratedEnumCompanion[TypeCode]
- object TypeProto extends GeneratedFileObject