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.WriteOrBuilderMethods
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;
Name | Description |
values | Iterable<String> The columns to add. |
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;
Name | Description |
values | Iterable<? extends com.google.protobuf.ListValue> |
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;
Name | Description |
value | String The columns to add. |
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;
Name | Description |
value | ByteString The bytes of the columns to add. |
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)
Name | Description |
field | FieldDescriptor |
value | Object |
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;
Name | Description |
value | ListValue |
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;
Name | Description |
builderForValue | Builder |
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;
Name | Description |
index | int |
value | ListValue |
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;
Name | Description |
index | int |
builderForValue | Builder |
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;
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;
Name | Description |
index | int |
Type | Description |
Builder |
build()
public Mutation.Write build()
Type | Description |
Mutation.Write |
buildPartial()
public Mutation.Write buildPartial()
Type | Description |
Mutation.Write |
clear()
public Mutation.Write.Builder clear()
Type | Description |
Mutation.Write.Builder |
clearColumns()
public Mutation.Write.Builder clearColumns()
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;
Type | Description |
Mutation.Write.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Mutation.Write.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Mutation.Write.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Mutation.Write.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Mutation.Write.Builder |
clearTable()
public Mutation.Write.Builder clearTable()
Required. The table whose rows will be written.
string table = 1;
Type | Description |
Mutation.Write.Builder | This builder for chaining. |
clearValues()
public Mutation.Write.Builder clearValues()
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;
Type | Description |
Mutation.Write.Builder |
clone()
public Mutation.Write.Builder clone()
Type | Description |
Mutation.Write.Builder |
getColumns(int index)
public String getColumns(int index)
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;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The columns at the given index. |
getColumnsBytes(int index)
public ByteString getColumnsBytes(int index)
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;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the columns at the given index. |
getColumnsCount()
public int getColumnsCount()
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;
Type | Description |
int | The count of columns. |
getColumnsList()
public ProtocolStringList getColumnsList()
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;
Type | Description |
ProtocolStringList | A list containing the columns. |
getDefaultInstanceForType()
public Mutation.Write getDefaultInstanceForType()
Type | Description |
Mutation.Write |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getTable()
public String getTable()
Required. The table whose rows will be written.
string table = 1;
Type | Description |
String | The table. |
getTableBytes()
public ByteString getTableBytes()
Required. The table whose rows will be written.
string table = 1;
Type | Description |
ByteString | The bytes for table. |
getValues(int index)
public ListValue getValues(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;
Name | Description |
index | int |
Type | Description |
ListValue |
getValuesBuilder(int index)
public ListValue.Builder getValuesBuilder(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;
Name | Description |
index | int |
Type | Description |
Builder |
getValuesBuilderList()
public List<ListValue.Builder> getValuesBuilderList()
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;
Type | Description |
List<Builder> |
getValuesCount()
public int getValuesCount()
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;
Type | Description |
int |
getValuesList()
public List<ListValue> getValuesList()
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;
Type | Description |
List<ListValue> |
getValuesOrBuilder(int index)
public ListValueOrBuilder getValuesOrBuilder(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;
Name | Description |
index | int |
Type | Description |
ListValueOrBuilder |
getValuesOrBuilderList()
public List<? extends ListValueOrBuilder> getValuesOrBuilderList()
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;
Type | Description |
List<? extends com.google.protobuf.ListValueOrBuilder> |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Mutation.Write.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Mutation.Write.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Mutation.Write.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Mutation.Write.Builder |
mergeFrom(Mutation.Write other)
public Mutation.Write.Builder mergeFrom(Mutation.Write other)
Name | Description |
other | Mutation.Write |
Type | Description |
Mutation.Write.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Mutation.Write.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Mutation.Write.Builder |
removeValues(int index)
public Mutation.Write.Builder removeValues(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;
Name | Description |
index | int |
Type | Description |
Mutation.Write.Builder |
setColumns(int index, String value)
public Mutation.Write.Builder setColumns(int index, 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;
Name | Description |
index | int The index to set the value at. |
value | String The columns to set. |
Type | Description |
Mutation.Write.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Mutation.Write.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Mutation.Write.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Mutation.Write.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Mutation.Write.Builder |
setTable(String value)
public Mutation.Write.Builder setTable(String value)
Required. The table whose rows will be written.
string table = 1;
Name | Description |
value | String The table to set. |
Type | Description |
Mutation.Write.Builder | This builder for chaining. |
setTableBytes(ByteString value)
public Mutation.Write.Builder setTableBytes(ByteString value)
Required. The table whose rows will be written.
string table = 1;
Name | Description |
value | ByteString The bytes for table to set. |
Type | Description |
Mutation.Write.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Mutation.Write.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Mutation.Write.Builder |
setValues(int index, ListValue value)
public Mutation.Write.Builder setValues(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;
Name | Description |
index | int |
value | ListValue |
Type | Description |
Mutation.Write.Builder |
setValues(int index, ListValue.Builder builderForValue)
public Mutation.Write.Builder setValues(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;
Name | Description |
index | int |
builderForValue | Builder |
Type | Description |
Mutation.Write.Builder |