public static final class Mutation.Write.Builder extends GeneratedMessageV3.Builder<Mutation.Write.Builder> implements Mutation.WriteOrBuilder
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
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Mutation.Write.Builder>
public Mutation.Write.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Mutation.Write.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Mutation.Write.Builder>
public Mutation.Write getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Mutation.Write build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Mutation.Write buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Mutation.Write.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Mutation.Write.Builder>
public Mutation.Write.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Mutation.Write.Builder>
public Mutation.Write.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Mutation.Write.Builder>
public Mutation.Write.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Mutation.Write.Builder>
public Mutation.Write.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Mutation.Write.Builder>
public Mutation.Write.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Mutation.Write.Builder>
public Mutation.Write.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Mutation.Write.Builder>
public Mutation.Write.Builder mergeFrom(Mutation.Write other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Mutation.Write.Builder>
public Mutation.Write.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Mutation.Write.Builder>
IOException
public String getTable()
Required. The table whose rows will be written.
string table = 1 [(.google.api.field_behavior) = REQUIRED];
getTable
in interface Mutation.WriteOrBuilder
public ByteString getTableBytes()
Required. The table whose rows will be written.
string table = 1 [(.google.api.field_behavior) = REQUIRED];
getTableBytes
in interface Mutation.WriteOrBuilder
public Mutation.Write.Builder setTable(String value)
Required. The table whose rows will be written.
string table = 1 [(.google.api.field_behavior) = REQUIRED];
value
- The table to set.public Mutation.Write.Builder clearTable()
Required. The table whose rows will be written.
string table = 1 [(.google.api.field_behavior) = REQUIRED];
public Mutation.Write.Builder setTableBytes(ByteString value)
Required. The table whose rows will be written.
string table = 1 [(.google.api.field_behavior) = REQUIRED];
value
- The bytes for table to set.public ProtocolStringList getColumnsList()
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.
repeated string columns = 2;
getColumnsList
in interface Mutation.WriteOrBuilder
public int getColumnsCount()
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.
repeated string columns = 2;
getColumnsCount
in interface Mutation.WriteOrBuilder
public String getColumns(int index)
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.
repeated string columns = 2;
getColumns
in interface Mutation.WriteOrBuilder
index
- The index of the element to return.public ByteString getColumnsBytes(int index)
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.
repeated string columns = 2;
getColumnsBytes
in interface Mutation.WriteOrBuilder
index
- The index of the value to return.public Mutation.Write.Builder setColumns(int index, String value)
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.
repeated string columns = 2;
index
- The index to set the value at.value
- The columns to set.public Mutation.Write.Builder addColumns(String value)
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.
repeated string columns = 2;
value
- The columns to add.public Mutation.Write.Builder addAllColumns(Iterable<String> values)
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.
repeated string columns = 2;
values
- The columns to add.public Mutation.Write.Builder clearColumns()
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.
repeated string columns = 2;
public Mutation.Write.Builder addColumnsBytes(ByteString value)
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.
repeated string columns = 2;
value
- The bytes of the columns to add.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][google.spanner.v1.Mutation.Write.columns] above. Sending multiple lists is equivalent to sending multiple `Mutation`s, 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].
repeated .google.protobuf.ListValue values = 3;
getValuesList
in interface Mutation.WriteOrBuilder
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][google.spanner.v1.Mutation.Write.columns] above. Sending multiple lists is equivalent to sending multiple `Mutation`s, 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].
repeated .google.protobuf.ListValue values = 3;
getValuesCount
in interface Mutation.WriteOrBuilder
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][google.spanner.v1.Mutation.Write.columns] above. Sending multiple lists is equivalent to sending multiple `Mutation`s, 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].
repeated .google.protobuf.ListValue values = 3;
getValues
in interface Mutation.WriteOrBuilder
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][google.spanner.v1.Mutation.Write.columns] above. Sending multiple lists is equivalent to sending multiple `Mutation`s, 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].
repeated .google.protobuf.ListValue values = 3;
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][google.spanner.v1.Mutation.Write.columns] above. Sending multiple lists is equivalent to sending multiple `Mutation`s, 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].
repeated .google.protobuf.ListValue values = 3;
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][google.spanner.v1.Mutation.Write.columns] above. Sending multiple lists is equivalent to sending multiple `Mutation`s, 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].
repeated .google.protobuf.ListValue values = 3;
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][google.spanner.v1.Mutation.Write.columns] above. Sending multiple lists is equivalent to sending multiple `Mutation`s, 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].
repeated .google.protobuf.ListValue values = 3;
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][google.spanner.v1.Mutation.Write.columns] above. Sending multiple lists is equivalent to sending multiple `Mutation`s, 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].
repeated .google.protobuf.ListValue values = 3;
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][google.spanner.v1.Mutation.Write.columns] above. Sending multiple lists is equivalent to sending multiple `Mutation`s, 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].
repeated .google.protobuf.ListValue values = 3;
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][google.spanner.v1.Mutation.Write.columns] above. Sending multiple lists is equivalent to sending multiple `Mutation`s, 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].
repeated .google.protobuf.ListValue values = 3;
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][google.spanner.v1.Mutation.Write.columns] above. Sending multiple lists is equivalent to sending multiple `Mutation`s, 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].
repeated .google.protobuf.ListValue values = 3;
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][google.spanner.v1.Mutation.Write.columns] above. Sending multiple lists is equivalent to sending multiple `Mutation`s, 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].
repeated .google.protobuf.ListValue values = 3;
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][google.spanner.v1.Mutation.Write.columns] above. Sending multiple lists is equivalent to sending multiple `Mutation`s, 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].
repeated .google.protobuf.ListValue values = 3;
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][google.spanner.v1.Mutation.Write.columns] above. Sending multiple lists is equivalent to sending multiple `Mutation`s, 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].
repeated .google.protobuf.ListValue values = 3;
getValuesOrBuilder
in interface Mutation.WriteOrBuilder
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][google.spanner.v1.Mutation.Write.columns] above. Sending multiple lists is equivalent to sending multiple `Mutation`s, 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].
repeated .google.protobuf.ListValue values = 3;
getValuesOrBuilderList
in interface Mutation.WriteOrBuilder
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][google.spanner.v1.Mutation.Write.columns] above. Sending multiple lists is equivalent to sending multiple `Mutation`s, 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].
repeated .google.protobuf.ListValue values = 3;
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][google.spanner.v1.Mutation.Write.columns] above. Sending multiple lists is equivalent to sending multiple `Mutation`s, 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].
repeated .google.protobuf.ListValue values = 3;
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][google.spanner.v1.Mutation.Write.columns] above. Sending multiple lists is equivalent to sending multiple `Mutation`s, 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].
repeated .google.protobuf.ListValue values = 3;
public final Mutation.Write.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Mutation.Write.Builder>
public final Mutation.Write.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Mutation.Write.Builder>
Copyright © 2022 Google LLC. All rights reserved.