Write

com.google.spanner.v1.mutation.Mutation.Write
See theWrite companion object
final case class Write(table: String, columns: Seq[String], values: Seq[ListValue], unknownFields: UnknownFieldSet) extends GeneratedMessage, Updatable[Write]

Arguments to [insert][google.spanner.v1.Mutation.insert], [update][google.spanner.v1.Mutation.update], [insert_or_update][google.spanner.v1.Mutation.insert_or_update], and [replace][google.spanner.v1.Mutation.replace] operations.

Value parameters

columns

The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written. The list of columns must contain enough columns to allow Cloud Spanner to derive values for all primary key columns in the row(s) to be modified.

table

Required. The table whose rows will be written.

values

The values to be written. values can contain more than one list of values. If it does, then multiple rows are written, one for each entry in values. Each list in values must have exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns] above. Sending multiple lists is equivalent to sending multiple Mutations, each containing one values entry and repeating [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are encoded as described [here][google.spanner.v1.TypeCode].

Attributes

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

Members list

Value members

Concrete methods

def addAllColumns(`__vs`: Iterable[String]): Write

Attributes

Source
Mutation.scala
def addAllValues(`__vs`: Iterable[ListValue]): Write

Attributes

Source
Mutation.scala
def addColumns(`__vs`: String*): Write

Attributes

Source
Mutation.scala
def addValues(`__vs`: ListValue*): Write

Attributes

Source
Mutation.scala

Attributes

Source
Mutation.scala

Attributes

Source
Mutation.scala
def companion: Write.type

Attributes

Source
Mutation.scala

Attributes

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

Attributes

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

Attributes

Source
Mutation.scala
override def serializedSize: Int

Attributes

Definition Classes
GeneratedMessage
Source
Mutation.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
Mutation.scala
def withColumns(`__v`: Seq[String]): Write

Attributes

Source
Mutation.scala
def withTable(`__v`: String): Write

Attributes

Source
Mutation.scala
def withUnknownFields(`__v`: UnknownFieldSet): Write

Attributes

Source
Mutation.scala
def withValues(`__v`: Seq[ListValue]): Write

Attributes

Source
Mutation.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
Mutation.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[Write, Write] => () => Write*): 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