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.Builder
addAllMutations(Iterable<? extends Mutation> values)
The mutations to perform.CommitRequest.Builder
addMutations(int index, Mutation value)
The mutations to perform.CommitRequest.Builder
addMutations(int index, Mutation.Builder builderForValue)
The mutations to perform.CommitRequest.Builder
addMutations(Mutation value)
The mutations to perform.CommitRequest.Builder
addMutations(Mutation.Builder builderForValue)
The mutations to perform.Mutation.Builder
addMutationsBuilder()
The mutations to perform.Mutation.Builder
addMutationsBuilder(int index)
The mutations to perform.CommitRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CommitRequest
build()
CommitRequest
buildPartial()
CommitRequest.Builder
clear()
CommitRequest.Builder
clearDatabaseId()
The ID of the database against which to make the request.CommitRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
CommitRequest.Builder
clearMode()
The type of commit to perform.CommitRequest.Builder
clearMutations()
The mutations to perform.CommitRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
CommitRequest.Builder
clearProjectId()
Required.CommitRequest.Builder
clearSingleUseTransaction()
Options for beginning a new transaction for this request.CommitRequest.Builder
clearTransaction()
The identifier of the transaction associated with the commit.CommitRequest.Builder
clearTransactionSelector()
CommitRequest.Builder
clone()
String
getDatabaseId()
The ID of the database against which to make the request.com.google.protobuf.ByteString
getDatabaseIdBytes()
The ID of the database against which to make the request.CommitRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
CommitRequest.Mode
getMode()
The type of commit to perform.int
getModeValue()
The type of commit to perform.Mutation
getMutations(int index)
The mutations to perform.Mutation.Builder
getMutationsBuilder(int index)
The mutations to perform.List<Mutation.Builder>
getMutationsBuilderList()
The mutations to perform.int
getMutationsCount()
The mutations to perform.List<Mutation>
getMutationsList()
The mutations to perform.MutationOrBuilder
getMutationsOrBuilder(int index)
The mutations to perform.List<? extends MutationOrBuilder>
getMutationsOrBuilderList()
The mutations to perform.String
getProjectId()
Required.com.google.protobuf.ByteString
getProjectIdBytes()
Required.TransactionOptions
getSingleUseTransaction()
Options for beginning a new transaction for this request.TransactionOptions.Builder
getSingleUseTransactionBuilder()
Options for beginning a new transaction for this request.TransactionOptionsOrBuilder
getSingleUseTransactionOrBuilder()
Options for beginning a new transaction for this request.com.google.protobuf.ByteString
getTransaction()
The identifier of the transaction associated with the commit.CommitRequest.TransactionSelectorCase
getTransactionSelectorCase()
boolean
hasSingleUseTransaction()
Options for beginning a new transaction for this request.boolean
hasTransaction()
The identifier of the transaction associated with the commit.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
CommitRequest.Builder
mergeFrom(CommitRequest other)
CommitRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CommitRequest.Builder
mergeFrom(com.google.protobuf.Message other)
CommitRequest.Builder
mergeSingleUseTransaction(TransactionOptions value)
Options for beginning a new transaction for this request.CommitRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CommitRequest.Builder
removeMutations(int index)
The mutations to perform.CommitRequest.Builder
setDatabaseId(String value)
The ID of the database against which to make the request.CommitRequest.Builder
setDatabaseIdBytes(com.google.protobuf.ByteString value)
The ID of the database against which to make the request.CommitRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CommitRequest.Builder
setMode(CommitRequest.Mode value)
The type of commit to perform.CommitRequest.Builder
setModeValue(int value)
The type of commit to perform.CommitRequest.Builder
setMutations(int index, Mutation value)
The mutations to perform.CommitRequest.Builder
setMutations(int index, Mutation.Builder builderForValue)
The mutations to perform.CommitRequest.Builder
setProjectId(String value)
Required.CommitRequest.Builder
setProjectIdBytes(com.google.protobuf.ByteString value)
Required.CommitRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
CommitRequest.Builder
setSingleUseTransaction(TransactionOptions value)
Options for beginning a new transaction for this request.CommitRequest.Builder
setSingleUseTransaction(TransactionOptions.Builder builderForValue)
Options for beginning a new transaction for this request.CommitRequest.Builder
setTransaction(com.google.protobuf.ByteString value)
The identifier of the transaction associated with the commit.CommitRequest.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
clear
public CommitRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
getDefaultInstanceForType
public CommitRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CommitRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CommitRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CommitRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
setField
public CommitRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
clearField
public CommitRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
clearOneof
public CommitRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
setRepeatedField
public CommitRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
addRepeatedField
public CommitRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
mergeFrom
public CommitRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CommitRequest.Builder>
-
mergeFrom
public CommitRequest.Builder mergeFrom(CommitRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CommitRequest.Builder>
- Throws:
IOException
-
getTransactionSelectorCase
public CommitRequest.TransactionSelectorCase getTransactionSelectorCase()
- Specified by:
getTransactionSelectorCase
in 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:
getProjectId
in 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:
getProjectIdBytes
in 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:
getDatabaseId
in 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:
getDatabaseIdBytes
in 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:
getModeValue
in 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:
getMode
in 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:
hasTransaction
in 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:
getTransaction
in 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:
hasSingleUseTransaction
in 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:
getSingleUseTransaction
in 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:
getSingleUseTransactionOrBuilder
in 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:
getMutationsList
in 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:
getMutationsCount
in 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:
getMutations
in 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:
getMutationsOrBuilder
in 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:
getMutationsOrBuilderList
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
mergeUnknownFields
public final CommitRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
-