Packages

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.

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()
Source
Type.scala
Linear Supertypes
Updatable[Type], GeneratedMessage, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Type
  2. Updatable
  3. GeneratedMessage
  4. Serializable
  5. Product
  6. Equals
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new 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)

    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.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val arrayElementType: Option[Type]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clearArrayElementType: Type
  7. def clearStructType: Type
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  9. val code: TypeCode
  10. def companion: Type.type
    Definition Classes
    Type → GeneratedMessage
  11. def discardUnknownFields: Type
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  14. def getArrayElementType: Type
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    Type → GeneratedMessage
  17. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    Type → GeneratedMessage
  18. def getStructType: StructType
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. def productElementNames: Iterator[String]
    Definition Classes
    Product
  24. val protoTypeFqn: String
  25. def serializedSize: Int
    Definition Classes
    Type → GeneratedMessage
  26. val structType: Option[StructType]
  27. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  28. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  29. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  30. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  31. def toProtoString: String
    Definition Classes
    Type → GeneratedMessage
  32. val typeAnnotation: TypeAnnotationCode
  33. val unknownFields: UnknownFieldSet
  34. def update(ms: (Lens[Type, Type]) => Mutation[Type]*): Type
    Definition Classes
    Updatable
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  38. def withArrayElementType(__v: Type): Type
  39. def withCode(__v: TypeCode): Type
  40. def withProtoTypeFqn(__v: String): Type
  41. def withStructType(__v: StructType): Type
  42. def withTypeAnnotation(__v: TypeAnnotationCode): Type
  43. def withUnknownFields(__v: UnknownFieldSet): Type
  44. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  45. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    Type → GeneratedMessage
  46. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Inherited from Updatable[Type]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped