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_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()
- Source
- Type.scala
- Alphabetic
- By Inheritance
- Type
- Updatable
- GeneratedMessage
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- 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_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.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val arrayElementType: Option[Type]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearArrayElementType: Type
- def clearStructType: Type
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val code: TypeCode
- def companion: Type.type
- Definition Classes
- Type → GeneratedMessage
- def discardUnknownFields: Type
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def getArrayElementType: Type
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getField(__field: FieldDescriptor): PValue
- Definition Classes
- Type → GeneratedMessage
- def getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- Type → GeneratedMessage
- def getStructType: StructType
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val protoTypeFqn: String
- def serializedSize: Int
- Definition Classes
- Type → GeneratedMessage
- val structType: Option[StructType]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def toByteArray: Array[Byte]
- Definition Classes
- GeneratedMessage
- final def toByteString: ByteString
- Definition Classes
- GeneratedMessage
- final def toPMessage: PMessage
- Definition Classes
- GeneratedMessage
- def toProtoString: String
- Definition Classes
- Type → GeneratedMessage
- val typeAnnotation: TypeAnnotationCode
- val unknownFields: UnknownFieldSet
- def update(ms: (Lens[Type, Type]) => Mutation[Type]*): Type
- Definition Classes
- Updatable
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withArrayElementType(__v: Type): Type
- def withCode(__v: TypeCode): Type
- def withProtoTypeFqn(__v: String): Type
- def withStructType(__v: StructType): Type
- def withTypeAnnotation(__v: TypeAnnotationCode): Type
- def withUnknownFields(__v: UnknownFieldSet): Type
- final def writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
- def writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- Type → GeneratedMessage
- final def writeTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage