Transaction

com.google.spanner.v1.transaction.Transaction
See theTransaction companion object
final case class Transaction(id: ByteString, readTimestamp: Option[Timestamp], unknownFields: UnknownFieldSet) extends GeneratedMessage, Updatable[Transaction]

A transaction.

Value parameters

id

id may be used to identify the transaction in subsequent [Read][google.spanner.v1.Spanner.Read], [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql], [Commit][google.spanner.v1.Spanner.Commit], or [Rollback][google.spanner.v1.Spanner.Rollback] calls. Single-use read-only transactions do not have IDs, because single-use transactions do not support multiple requests.

readTimestamp

For snapshot read-only transactions, the read timestamp chosen for the transaction. Not returned by default: see [TransactionOptions.ReadOnly.return_read_timestamp][google.spanner.v1.TransactionOptions.ReadOnly.return_read_timestamp]. A timestamp in RFC3339 UTC &92;"Zulu&92;" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

Attributes

Companion
object
Source
Transaction.scala
Graph
Supertypes
trait Updatable[Transaction]
trait GeneratedMessage
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Attributes

Source
Transaction.scala
def getField(`__field`: FieldDescriptor): PValue

Attributes

Source
Transaction.scala
def getFieldByNumber(`__fieldNumber`: Int): Any

Attributes

Source
Transaction.scala
override def serializedSize: Int

Attributes

Definition Classes
GeneratedMessage
Source
Transaction.scala
def toProtoString: String

Returns a human-readable ASCII format representation of this message.

Returns a human-readable ASCII format representation of this message.

The original message can be decoded from this format by using fromAscii on the companion object.

Attributes

Returns

human-readable representation of this message.

Source
Transaction.scala
def withId(`__v`: ByteString): Transaction

Attributes

Source
Transaction.scala

Attributes

Source
Transaction.scala
def withUnknownFields(`__v`: UnknownFieldSet): Transaction

Attributes

Source
Transaction.scala
def writeTo(`_output__`: CodedOutputStream): Unit

Serializes the message into the given coded output stream

Serializes the message into the given coded output stream

Attributes

Source
Transaction.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
final def toByteArray: Array[Byte]

Serializes the message and returns a byte array containing its raw bytes

Serializes the message and returns a byte array containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def toByteString: ByteString

Serializes the message and returns a ByteString containing its raw bytes

Serializes the message and returns a ByteString containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def toPMessage: PMessage

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
def update(ms: Lens[Transaction, Transaction] => () => Transaction*): A

Attributes

Inherited from:
Updatable
Source
Lenses.scala
final def writeDelimitedTo(output: OutputStream): Unit

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def writeTo(output: OutputStream): Unit

Serializes the message into the given output stream

Serializes the message into the given output stream

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala