final case class Session(name: String = "", labels: Map[String, String] = _root_.scala.collection.immutable.Map.empty, createTime: Option[Timestamp] = _root_.scala.None, approximateLastUseTime: Option[Timestamp] = _root_.scala.None, creatorRole: String = "", multiplexed: Boolean = false, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[Session] with Product with Serializable

A session in the Cloud Spanner API.

name

Output only. The name of the session. This is always system-assigned.

labels

The labels for the session. * Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])?. * Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?. * No more than 64 labels can be associated with a given session. See https://goo.gl/xmQnxf for more information on and examples of labels.

createTime

Output only. The timestamp when the session is created.

approximateLastUseTime

Output only. The approximate timestamp when the session is last used. It is typically earlier than the actual last use time.

creatorRole

The database role which created this session.

multiplexed

Optional. If true, specifies a multiplexed session. A multiplexed session may be used for multiple, concurrent read-only operations but can not be used for read-write transactions, partitioned reads, or partitioned queries. Multiplexed sessions can be created via [CreateSession][google.spanner.v1.Spanner.CreateSession] but not via [BatchCreateSessions][google.spanner.v1.Spanner.BatchCreateSessions]. Multiplexed sessions may not be deleted nor listed.

Annotations
@SerialVersionUID()
Source
Session.scala
Linear Supertypes
Updatable[Session], GeneratedMessage, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Session
  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 Session(name: String = "", labels: Map[String, String] = _root_.scala.collection.immutable.Map.empty, createTime: Option[Timestamp] = _root_.scala.None, approximateLastUseTime: Option[Timestamp] = _root_.scala.None, creatorRole: String = "", multiplexed: Boolean = false, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty)

    name

    Output only. The name of the session. This is always system-assigned.

    labels

    The labels for the session. * Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])?. * Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?. * No more than 64 labels can be associated with a given session. See https://goo.gl/xmQnxf for more information on and examples of labels.

    createTime

    Output only. The timestamp when the session is created.

    approximateLastUseTime

    Output only. The approximate timestamp when the session is last used. It is typically earlier than the actual last use time.

    creatorRole

    The database role which created this session.

    multiplexed

    Optional. If true, specifies a multiplexed session. A multiplexed session may be used for multiple, concurrent read-only operations but can not be used for read-write transactions, partitioned reads, or partitioned queries. Multiplexed sessions can be created via [CreateSession][google.spanner.v1.Spanner.CreateSession] but not via [BatchCreateSessions][google.spanner.v1.Spanner.BatchCreateSessions]. Multiplexed sessions may not be deleted nor listed.

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. def addAllLabels(__vs: Iterable[(String, String)]): Session
  5. def addLabels(__vs: (String, String)*): Session
  6. val approximateLastUseTime: Option[Timestamp]
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clearApproximateLastUseTime: Session
  9. def clearCreateTime: Session
  10. def clearLabels: Session
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  12. def companion: Session.type
    Definition Classes
    Session → GeneratedMessage
  13. val createTime: Option[Timestamp]
  14. val creatorRole: String
  15. def discardUnknownFields: Session
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  18. def getApproximateLastUseTime: Timestamp
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def getCreateTime: Timestamp
  21. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    Session → GeneratedMessage
  22. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    Session → GeneratedMessage
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. val labels: Map[String, String]
  25. val multiplexed: Boolean
  26. val name: String
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. def productElementNames: Iterator[String]
    Definition Classes
    Product
  31. def serializedSize: Int
    Definition Classes
    Session → GeneratedMessage
  32. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  33. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  34. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  35. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  36. def toProtoString: String
    Definition Classes
    Session → GeneratedMessage
  37. val unknownFields: UnknownFieldSet
  38. def update(ms: (Lens[Session, Session]) => Mutation[Session]*): Session
    Definition Classes
    Updatable
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  42. def withApproximateLastUseTime(__v: Timestamp): Session
  43. def withCreateTime(__v: Timestamp): Session
  44. def withCreatorRole(__v: String): Session
  45. def withLabels(__v: Map[String, String]): Session
  46. def withMultiplexed(__v: Boolean): Session
  47. def withName(__v: String): Session
  48. def withUnknownFields(__v: UnknownFieldSet): Session
  49. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  50. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    Session → GeneratedMessage
  51. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Inherited from Updatable[Session]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped