class Mutation_Write extends Message

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.

Protobuf type Google\Spanner\V1\Mutation\Write

Methods

__construct()

No description

string
getTable()

Required. The table whose rows will be written.

setTable(string $var)

Required. The table whose rows will be written.

RepeatedField
getColumns()

The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.

setColumns(array|RepeatedField $var)

The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.

RepeatedField
getValues()

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].

setValues(array|RepeatedField $var)

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].

Details

at line 48
__construct()

at line 59
string getTable()

Required. The table whose rows will be written.

Generated from protobuf field string table = 1;

Return Value

string

at line 70
setTable(string $var)

Required. The table whose rows will be written.

Generated from protobuf field string table = 1;

Parameters

string $var

at line 85
RepeatedField getColumns()

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.

Generated from protobuf field repeated string columns = 2;

Return Value

RepeatedField

at line 99
setColumns(array|RepeatedField $var)

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.

Generated from protobuf field repeated string columns = 2;

Parameters

array|RepeatedField $var

at line 118
RepeatedField getValues()

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].

Generated from protobuf field repeated .google.protobuf.ListValue values = 3;

Return Value

RepeatedField

at line 136
setValues(array|RepeatedField $var)

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].

Generated from protobuf field repeated .google.protobuf.ListValue values = 3;

Parameters

array|RepeatedField $var