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
- Alphabetic
- By Inheritance
- Session
- Updatable
- GeneratedMessage
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- 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
- 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
- def addAllLabels(__vs: Iterable[(String, String)]): Session
- def addLabels(__vs: (String, String)*): Session
- val approximateLastUseTime: Option[Timestamp]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearApproximateLastUseTime: Session
- def clearCreateTime: Session
- def clearLabels: Session
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def companion: Session.type
- Definition Classes
- Session → GeneratedMessage
- val createTime: Option[Timestamp]
- val creatorRole: String
- def discardUnknownFields: Session
- 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 getApproximateLastUseTime: Timestamp
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getCreateTime: Timestamp
- def getField(__field: FieldDescriptor): PValue
- Definition Classes
- Session → GeneratedMessage
- def getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- Session → GeneratedMessage
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val labels: Map[String, String]
- val multiplexed: Boolean
- val name: String
- 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
- def serializedSize: Int
- Definition Classes
- Session → GeneratedMessage
- 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
- Session → GeneratedMessage
- val unknownFields: UnknownFieldSet
- def update(ms: (Lens[Session, Session]) => Mutation[Session]*): Session
- 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 withApproximateLastUseTime(__v: Timestamp): Session
- def withCreateTime(__v: Timestamp): Session
- def withCreatorRole(__v: String): Session
- def withLabels(__v: Map[String, String]): Session
- def withMultiplexed(__v: Boolean): Session
- def withName(__v: String): Session
- def withUnknownFields(__v: UnknownFieldSet): Session
- final def writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
- def writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- Session → GeneratedMessage
- final def writeTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage