public static final class Mutation.Write.Builder extends GeneratedMessageV3.Builder<Mutation.Write.Builder> implements Mutation.WriteOrBuilder
Arguments to insert, update, insert_or_update, and replace operations.
Protobuf type google.spanner.v1.Mutation.Write
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Mutation.Write.BuilderImplements
Mutation.WriteOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllColumns(Iterable<String> values)
public Mutation.Write.Builder addAllColumns(Iterable<String> values)
The names of the columns in 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.
repeated string columns = 2;
Parameter | |
---|---|
Name | Description |
values |
Iterable<String> The columns to add. |
Returns | |
---|---|
Type | Description |
Mutation.Write.Builder |
This builder for chaining. |
addAllValues(Iterable<? extends ListValue> values)
public Mutation.Write.Builder addAllValues(Iterable<? extends ListValue> 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
above. Sending multiple lists is equivalent to sending multiple
Mutation
s, each containing one values
entry and repeating
table and columns. Individual values in each list are
encoded as described here.
repeated .google.protobuf.ListValue values = 3;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.protobuf.ListValue> |
Returns | |
---|---|
Type | Description |
Mutation.Write.Builder |
addColumns(String value)
public Mutation.Write.Builder addColumns(String value)
The names of the columns in 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.
repeated string columns = 2;
Parameter | |
---|---|
Name | Description |
value |
String The columns to add. |
Returns | |
---|---|
Type | Description |
Mutation.Write.Builder |
This builder for chaining. |
addColumnsBytes(ByteString value)
public Mutation.Write.Builder addColumnsBytes(ByteString value)
The names of the columns in 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.
repeated string columns = 2;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes of the columns to add. |
Returns | |
---|---|
Type | Description |
Mutation.Write.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Mutation.Write.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Mutation.Write.Builder |
addValues(ListValue value)
public Mutation.Write.Builder addValues(ListValue value)
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
above. Sending multiple lists is equivalent to sending multiple
Mutation
s, each containing one values
entry and repeating
table and columns. Individual values in each list are
encoded as described here.
repeated .google.protobuf.ListValue values = 3;
Parameter | |
---|---|
Name | Description |
value |
ListValue |
Returns | |
---|---|
Type | Description |
Mutation.Write.Builder |
addValues(ListValue.Builder builderForValue)
public Mutation.Write.Builder addValues(ListValue.Builder builderForValue)
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
above. Sending multiple lists is equivalent to sending multiple
Mutation
s, each containing one values
entry and repeating
table and columns. Individual values in each list are
encoded as described here.
repeated .google.protobuf.ListValue values = 3;
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
Mutation.Write.Builder |
addValues(int index, ListValue value)
public Mutation.Write.Builder addValues(int index, ListValue value)
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
above. Sending multiple lists is equivalent to sending multiple
Mutation
s, each containing one values
entry and repeating
table and columns. Individual values in each list are
encoded as described here.
repeated .google.protobuf.ListValue values = 3;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
ListValue |
Returns | |
---|---|
Type | Description |
Mutation.Write.Builder |
addValues(int index, ListValue.Builder builderForValue)
public Mutation.Write.Builder addValues(int index, ListValue.Builder builderForValue)
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
above. Sending multiple lists is equivalent to sending multiple
Mutation
s, each containing one values
entry and repeating
table and columns. Individual values in each list are
encoded as described here.
repeated .google.protobuf.ListValue values = 3;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
Mutation.Write.Builder |
addValuesBuilder()
public ListValue.Builder addValuesBuilder()
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
above. Sending multiple lists is equivalent to sending multiple
Mutation
s, each containing one values
entry and repeating
table and columns. Individual values in each list are
encoded as described here.
repeated .google.protobuf.ListValue values = 3;
Returns | |
---|---|
Type | Description |
Builder |
addValuesBuilder(int index)
public ListValue.Builder addValuesBuilder(int index)
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
above. Sending multiple lists is equivalent to sending multiple
Mutation
s, each containing one values
entry and repeating
table and columns. Individual values in each list are
encoded as described here.
repeated .google.protobuf.ListValue values = 3;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Builder |
build()
public Mutation.Write