Package com.google.datastore.v1
Class CommitRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
- com.google.datastore.v1.CommitRequest.Builder
-
- All Implemented Interfaces:
CommitRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CommitRequest
public static final class CommitRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder> implements CommitRequestOrBuilder
The request for [Datastore.Commit][google.datastore.v1.Datastore.Commit].
Protobuf typegoogle.datastore.v1.CommitRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CommitRequest.BuilderaddAllMutations(Iterable<? extends Mutation> values)The mutations to perform.CommitRequest.BuilderaddMutations(int index, Mutation value)The mutations to perform.CommitRequest.BuilderaddMutations(int index, Mutation.Builder builderForValue)The mutations to perform.CommitRequest.BuilderaddMutations(Mutation value)The mutations to perform.CommitRequest.BuilderaddMutations(Mutation.Builder builderForValue)The mutations to perform.Mutation.BuilderaddMutationsBuilder()The mutations to perform.Mutation.BuilderaddMutationsBuilder(int index)The mutations to perform.CommitRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CommitRequestbuild()CommitRequestbuildPartial()CommitRequest.Builderclear()CommitRequest.BuilderclearDatabaseId()The ID of the database against which to make the request.CommitRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)CommitRequest.BuilderclearMode()The type of commit to perform.CommitRequest.BuilderclearMutations()The mutations to perform.CommitRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)CommitRequest.BuilderclearProjectId()Required.CommitRequest.BuilderclearSingleUseTransaction()Options for beginning a new transaction for this request.CommitRequest.BuilderclearTransaction()The identifier of the transaction associated with the commit.CommitRequest.BuilderclearTransactionSelector()CommitRequest.Builderclone()StringgetDatabaseId()The ID of the database against which to make the request.com.google.protobuf.ByteStringgetDatabaseIdBytes()The ID of the database against which to make the request.CommitRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()CommitRequest.ModegetMode()The type of commit to perform.intgetModeValue()The type of commit to perform.MutationgetMutations(int index)The mutations to perform.Mutation.BuildergetMutationsBuilder(int index)The mutations to perform.List<Mutation.Builder>getMutationsBuilderList()The mutations to perform.intgetMutationsCount()The mutations to perform.List<Mutation>getMutationsList()The mutations to perform.MutationOrBuildergetMutationsOrBuilder(int index)The mutations to perform.List<? extends MutationOrBuilder>getMutationsOrBuilderList()The mutations to perform.StringgetProjectId()Required.com.google.protobuf.ByteStringgetProjectIdBytes()Required.TransactionOptionsgetSingleUseTransaction()Options for beginning a new transaction for this request.TransactionOptions.BuildergetSingleUseTransactionBuilder()Options for beginning a new transaction for this request.TransactionOptionsOrBuildergetSingleUseTransactionOrBuilder()Options for beginning a new transaction for this request.com.google.protobuf.ByteStringgetTransaction()The identifier of the transaction associated with the commit.CommitRequest.TransactionSelectorCasegetTransactionSelectorCase()booleanhasSingleUseTransaction()Options for beginning a new transaction for this request.booleanhasTransaction()The identifier of the transaction associated with the commit.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()CommitRequest.BuildermergeFrom(CommitRequest other)CommitRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CommitRequest.BuildermergeFrom(com.google.protobuf.Message other)CommitRequest.BuildermergeSingleUseTransaction(TransactionOptions value)Options for beginning a new transaction for this request.CommitRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CommitRequest.BuilderremoveMutations(int index)The mutations to perform.CommitRequest.BuildersetDatabaseId(String value)The ID of the database against which to make the request.CommitRequest.BuildersetDatabaseIdBytes(com.google.protobuf.ByteString value)The ID of the database against which to make the request.CommitRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CommitRequest.BuildersetMode(CommitRequest.Mode value)The type of commit to perform.CommitRequest.BuildersetModeValue(int value)The type of commit to perform.CommitRequest.BuildersetMutations(int index, Mutation value)The mutations to perform.CommitRequest.BuildersetMutations(int index, Mutation.Builder builderForValue)The mutations to perform.CommitRequest.BuildersetProjectId(String value)Required.CommitRequest.BuildersetProjectIdBytes(com.google.protobuf.ByteString value)Required.CommitRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)CommitRequest.BuildersetSingleUseTransaction(TransactionOptions value)Options for beginning a new transaction for this request.CommitRequest.BuildersetSingleUseTransaction(TransactionOptions.Builder builderForValue)Options for beginning a new transaction for this request.CommitRequest.BuildersetTransaction(com.google.protobuf.ByteString value)The identifier of the transaction associated with the commit.CommitRequest.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
clear
public CommitRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
getDefaultInstanceForType
public CommitRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CommitRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CommitRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CommitRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
setField
public CommitRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
clearField
public CommitRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
clearOneof
public CommitRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
setRepeatedField
public CommitRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
addRepeatedField
public CommitRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
mergeFrom
public CommitRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommitRequest.Builder>
-
mergeFrom
public CommitRequest.Builder mergeFrom(CommitRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
mergeFrom
public CommitRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommitRequest.Builder>- Throws:
IOException
-
getTransactionSelectorCase
public CommitRequest.TransactionSelectorCase getTransactionSelectorCase()
- Specified by:
getTransactionSelectorCasein interfaceCommitRequestOrBuilder
-
clearTransactionSelector
public CommitRequest.Builder clearTransactionSelector()
-
getProjectId
public String getProjectId()
Required. The ID of the project against which to make the request.
string project_id = 8 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getProjectIdin interfaceCommitRequestOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
public com.google.protobuf.ByteString getProjectIdBytes()
Required. The ID of the project against which to make the request.
string project_id = 8 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getProjectIdBytesin interfaceCommitRequestOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
public CommitRequest.Builder setProjectId(String value)
Required. The ID of the project against which to make the request.
string project_id = 8 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The projectId to set.- Returns:
- This builder for chaining.
-
clearProjectId
public CommitRequest.Builder clearProjectId()
Required. The ID of the project against which to make the request.
string project_id = 8 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setProjectIdBytes
public CommitRequest.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
Required. The ID of the project against which to make the request.
string project_id = 8 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for projectId to set.- Returns:
- This builder for chaining.
-
getDatabaseId
public String getDatabaseId()
The ID of the database against which to make the request. '(default)' is not allowed; please use empty string '' to refer the default database.
string database_id = 9;- Specified by:
getDatabaseIdin interfaceCommitRequestOrBuilder- Returns:
- The databaseId.
-
getDatabaseIdBytes
public com.google.protobuf.ByteString getDatabaseIdBytes()
The ID of the database against which to make the request. '(default)' is not allowed; please use empty string '' to refer the default database.
string database_id = 9;- Specified by:
getDatabaseIdBytesin interfaceCommitRequestOrBuilder- Returns:
- The bytes for databaseId.
-
setDatabaseId
public CommitRequest.Builder setDatabaseId(String value)
The ID of the database against which to make the request. '(default)' is not allowed; please use empty string '' to refer the default database.
string database_id = 9;- Parameters:
value- The databaseId to set.- Returns:
- This builder for chaining.
-
clearDatabaseId
public CommitRequest.Builder clearDatabaseId()
The ID of the database against which to make the request. '(default)' is not allowed; please use empty string '' to refer the default database.
string database_id = 9;- Returns:
- This builder for chaining.
-
setDatabaseIdBytes
public CommitRequest.Builder setDatabaseIdBytes(com.google.protobuf.ByteString value)
The ID of the database against which to make the request. '(default)' is not allowed; please use empty string '' to refer the default database.
string database_id = 9;- Parameters:
value- The bytes for databaseId to set.- Returns:
- This builder for chaining.
-
getModeValue
public int getModeValue()
The type of commit to perform. Defaults to `TRANSACTIONAL`.
.google.datastore.v1.CommitRequest.Mode mode = 5;- Specified by:
getModeValuein interfaceCommitRequestOrBuilder- Returns:
- The enum numeric value on the wire for mode.
-
setModeValue
public CommitRequest.Builder setModeValue(int value)
The type of commit to perform. Defaults to `TRANSACTIONAL`.
.google.datastore.v1.CommitRequest.Mode mode = 5;- Parameters:
value- The enum numeric value on the wire for mode to set.- Returns:
- This builder for chaining.
-
getMode
public CommitRequest.Mode getMode()
The type of commit to perform. Defaults to `TRANSACTIONAL`.
.google.datastore.v1.CommitRequest.Mode mode = 5;- Specified by:
getModein interfaceCommitRequestOrBuilder- Returns:
- The mode.
-
setMode
public CommitRequest.Builder setMode(CommitRequest.Mode value)
The type of commit to perform. Defaults to `TRANSACTIONAL`.
.google.datastore.v1.CommitRequest.Mode mode = 5;- Parameters:
value- The mode to set.- Returns:
- This builder for chaining.
-
clearMode
public CommitRequest.Builder clearMode()
The type of commit to perform. Defaults to `TRANSACTIONAL`.
.google.datastore.v1.CommitRequest.Mode mode = 5;- Returns:
- This builder for chaining.
-
hasTransaction
public boolean hasTransaction()
The identifier of the transaction associated with the commit. A transaction identifier is returned by a call to [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
bytes transaction = 1;- Specified by:
hasTransactionin interfaceCommitRequestOrBuilder- Returns:
- Whether the transaction field is set.
-
getTransaction
public com.google.protobuf.ByteString getTransaction()
The identifier of the transaction associated with the commit. A transaction identifier is returned by a call to [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
bytes transaction = 1;- Specified by:
getTransactionin interfaceCommitRequestOrBuilder- Returns:
- The transaction.
-
setTransaction
public CommitRequest.Builder setTransaction(com.google.protobuf.ByteString value)
The identifier of the transaction associated with the commit. A transaction identifier is returned by a call to [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
bytes transaction = 1;- Parameters:
value- The transaction to set.- Returns:
- This builder for chaining.
-
clearTransaction
public CommitRequest.Builder clearTransaction()
The identifier of the transaction associated with the commit. A transaction identifier is returned by a call to [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
bytes transaction = 1;- Returns:
- This builder for chaining.
-
hasSingleUseTransaction
public boolean hasSingleUseTransaction()
Options for beginning a new transaction for this request. The transaction is committed when the request completes. If specified, [TransactionOptions.mode][google.datastore.v1.TransactionOptions] must be [TransactionOptions.ReadWrite][google.datastore.v1.TransactionOptions.ReadWrite].
.google.datastore.v1.TransactionOptions single_use_transaction = 10;- Specified by:
hasSingleUseTransactionin interfaceCommitRequestOrBuilder- Returns:
- Whether the singleUseTransaction field is set.
-
getSingleUseTransaction
public TransactionOptions getSingleUseTransaction()
Options for beginning a new transaction for this request. The transaction is committed when the request completes. If specified, [TransactionOptions.mode][google.datastore.v1.TransactionOptions] must be [TransactionOptions.ReadWrite][google.datastore.v1.TransactionOptions.ReadWrite].
.google.datastore.v1.TransactionOptions single_use_transaction = 10;- Specified by:
getSingleUseTransactionin interfaceCommitRequestOrBuilder- Returns:
- The singleUseTransaction.
-
setSingleUseTransaction
public CommitRequest.Builder setSingleUseTransaction(TransactionOptions value)
Options for beginning a new transaction for this request. The transaction is committed when the request completes. If specified, [TransactionOptions.mode][google.datastore.v1.TransactionOptions] must be [TransactionOptions.ReadWrite][google.datastore.v1.TransactionOptions.ReadWrite].
.google.datastore.v1.TransactionOptions single_use_transaction = 10;
-
setSingleUseTransaction
public CommitRequest.Builder setSingleUseTransaction(TransactionOptions.Builder builderForValue)
Options for beginning a new transaction for this request. The transaction is committed when the request completes. If specified, [TransactionOptions.mode][google.datastore.v1.TransactionOptions] must be [TransactionOptions.ReadWrite][google.datastore.v1.TransactionOptions.ReadWrite].
.google.datastore.v1.TransactionOptions single_use_transaction = 10;
-
mergeSingleUseTransaction
public CommitRequest.Builder mergeSingleUseTransaction(TransactionOptions value)
Options for beginning a new transaction for this request. The transaction is committed when the request completes. If specified, [TransactionOptions.mode][google.datastore.v1.TransactionOptions] must be [TransactionOptions.ReadWrite][google.datastore.v1.TransactionOptions.ReadWrite].
.google.datastore.v1.TransactionOptions single_use_transaction = 10;
-
clearSingleUseTransaction
public CommitRequest.Builder clearSingleUseTransaction()
Options for beginning a new transaction for this request. The transaction is committed when the request completes. If specified, [TransactionOptions.mode][google.datastore.v1.TransactionOptions] must be [TransactionOptions.ReadWrite][google.datastore.v1.TransactionOptions.ReadWrite].
.google.datastore.v1.TransactionOptions single_use_transaction = 10;
-
getSingleUseTransactionBuilder
public TransactionOptions.Builder getSingleUseTransactionBuilder()
Options for beginning a new transaction for this request. The transaction is committed when the request completes. If specified, [TransactionOptions.mode][google.datastore.v1.TransactionOptions] must be [TransactionOptions.ReadWrite][google.datastore.v1.TransactionOptions.ReadWrite].
.google.datastore.v1.TransactionOptions single_use_transaction = 10;
-
getSingleUseTransactionOrBuilder
public TransactionOptionsOrBuilder getSingleUseTransactionOrBuilder()
Options for beginning a new transaction for this request. The transaction is committed when the request completes. If specified, [TransactionOptions.mode][google.datastore.v1.TransactionOptions] must be [TransactionOptions.ReadWrite][google.datastore.v1.TransactionOptions.ReadWrite].
.google.datastore.v1.TransactionOptions single_use_transaction = 10;- Specified by:
getSingleUseTransactionOrBuilderin interfaceCommitRequestOrBuilder
-
getMutationsList
public List<Mutation> getMutationsList()
The mutations to perform. When mode is `TRANSACTIONAL`, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a single `Commit` request: - `insert` followed by `insert` - `update` followed by `insert` - `upsert` followed by `insert` - `delete` followed by `update` When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single entity.
repeated .google.datastore.v1.Mutation mutations = 6;- Specified by:
getMutationsListin interfaceCommitRequestOrBuilder
-
getMutationsCount
public int getMutationsCount()
The mutations to perform. When mode is `TRANSACTIONAL`, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a single `Commit` request: - `insert` followed by `insert` - `update` followed by `insert` - `upsert` followed by `insert` - `delete` followed by `update` When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single entity.
repeated .google.datastore.v1.Mutation mutations = 6;- Specified by:
getMutationsCountin interfaceCommitRequestOrBuilder
-
getMutations
public Mutation getMutations(int index)
The mutations to perform. When mode is `TRANSACTIONAL`, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a single `Commit` request: - `insert` followed by `insert` - `update` followed by `insert` - `upsert` followed by `insert` - `delete` followed by `update` When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single entity.
repeated .google.datastore.v1.Mutation mutations = 6;- Specified by:
getMutationsin interfaceCommitRequestOrBuilder
-
setMutations
public CommitRequest.Builder setMutations(int index, Mutation value)
The mutations to perform. When mode is `TRANSACTIONAL`, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a single `Commit` request: - `insert` followed by `insert` - `update` followed by `insert` - `upsert` followed by `insert` - `delete` followed by `update` When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single entity.
repeated .google.datastore.v1.Mutation mutations = 6;
-
setMutations
public CommitRequest.Builder setMutations(int index, Mutation.Builder builderForValue)
The mutations to perform. When mode is `TRANSACTIONAL`, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a single `Commit` request: - `insert` followed by `insert` - `update` followed by `insert` - `upsert` followed by `insert` - `delete` followed by `update` When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single entity.
repeated .google.datastore.v1.Mutation mutations = 6;
-
addMutations
public CommitRequest.Builder addMutations(Mutation value)
The mutations to perform. When mode is `TRANSACTIONAL`, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a single `Commit` request: - `insert` followed by `insert` - `update` followed by `insert` - `upsert` followed by `insert` - `delete` followed by `update` When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single entity.
repeated .google.datastore.v1.Mutation mutations = 6;
-
addMutations
public CommitRequest.Builder addMutations(int index, Mutation value)
The mutations to perform. When mode is `TRANSACTIONAL`, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a single `Commit` request: - `insert` followed by `insert` - `update` followed by `insert` - `upsert` followed by `insert` - `delete` followed by `update` When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single entity.
repeated .google.datastore.v1.Mutation mutations = 6;
-
addMutations
public CommitRequest.Builder addMutations(Mutation.Builder builderForValue)
The mutations to perform. When mode is `TRANSACTIONAL`, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a single `Commit` request: - `insert` followed by `insert` - `update` followed by `insert` - `upsert` followed by `insert` - `delete` followed by `update` When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single entity.
repeated .google.datastore.v1.Mutation mutations = 6;
-
addMutations
public CommitRequest.Builder addMutations(int index, Mutation.Builder builderForValue)
The mutations to perform. When mode is `TRANSACTIONAL`, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a single `Commit` request: - `insert` followed by `insert` - `update` followed by `insert` - `upsert` followed by `insert` - `delete` followed by `update` When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single entity.
repeated .google.datastore.v1.Mutation mutations = 6;
-
addAllMutations
public CommitRequest.Builder addAllMutations(Iterable<? extends Mutation> values)
The mutations to perform. When mode is `TRANSACTIONAL`, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a single `Commit` request: - `insert` followed by `insert` - `update` followed by `insert` - `upsert` followed by `insert` - `delete` followed by `update` When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single entity.
repeated .google.datastore.v1.Mutation mutations = 6;
-
clearMutations
public CommitRequest.Builder clearMutations()
The mutations to perform. When mode is `TRANSACTIONAL`, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a single `Commit` request: - `insert` followed by `insert` - `update` followed by `insert` - `upsert` followed by `insert` - `delete` followed by `update` When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single entity.
repeated .google.datastore.v1.Mutation mutations = 6;
-
removeMutations
public CommitRequest.Builder removeMutations(int index)
The mutations to perform. When mode is `TRANSACTIONAL`, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a single `Commit` request: - `insert` followed by `insert` - `update` followed by `insert` - `upsert` followed by `insert` - `delete` followed by `update` When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single entity.
repeated .google.datastore.v1.Mutation mutations = 6;
-
getMutationsBuilder
public Mutation.Builder getMutationsBuilder(int index)
The mutations to perform. When mode is `TRANSACTIONAL`, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a single `Commit` request: - `insert` followed by `insert` - `update` followed by `insert` - `upsert` followed by `insert` - `delete` followed by `update` When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single entity.
repeated .google.datastore.v1.Mutation mutations = 6;
-
getMutationsOrBuilder
public MutationOrBuilder getMutationsOrBuilder(int index)
The mutations to perform. When mode is `TRANSACTIONAL`, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a single `Commit` request: - `insert` followed by `insert` - `update` followed by `insert` - `upsert` followed by `insert` - `delete` followed by `update` When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single entity.
repeated .google.datastore.v1.Mutation mutations = 6;- Specified by:
getMutationsOrBuilderin interfaceCommitRequestOrBuilder
-
getMutationsOrBuilderList
public List<? extends MutationOrBuilder> getMutationsOrBuilderList()
The mutations to perform. When mode is `TRANSACTIONAL`, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a single `Commit` request: - `insert` followed by `insert` - `update` followed by `insert` - `upsert` followed by `insert` - `delete` followed by `update` When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single entity.
repeated .google.datastore.v1.Mutation mutations = 6;- Specified by:
getMutationsOrBuilderListin interfaceCommitRequestOrBuilder
-
addMutationsBuilder
public Mutation.Builder addMutationsBuilder()
The mutations to perform. When mode is `TRANSACTIONAL`, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a single `Commit` request: - `insert` followed by `insert` - `update` followed by `insert` - `upsert` followed by `insert` - `delete` followed by `update` When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single entity.
repeated .google.datastore.v1.Mutation mutations = 6;
-
addMutationsBuilder
public Mutation.Builder addMutationsBuilder(int index)
The mutations to perform. When mode is `TRANSACTIONAL`, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a single `Commit` request: - `insert` followed by `insert` - `update` followed by `insert` - `upsert` followed by `insert` - `delete` followed by `update` When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single entity.
repeated .google.datastore.v1.Mutation mutations = 6;
-
getMutationsBuilderList
public List<Mutation.Builder> getMutationsBuilderList()
The mutations to perform. When mode is `TRANSACTIONAL`, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a single `Commit` request: - `insert` followed by `insert` - `update` followed by `insert` - `upsert` followed by `insert` - `delete` followed by `update` When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single entity.
repeated .google.datastore.v1.Mutation mutations = 6;
-
setUnknownFields
public final CommitRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
mergeUnknownFields
public final CommitRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
-