public static final class CommitRequest.Builder extends GeneratedMessageV3.Builder<CommitRequest.Builder> implements CommitRequestOrBuilder
The request for [Datastore.Commit][google.datastore.v1.Datastore.Commit].Protobuf type
google.datastore.v1.CommitRequest
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<CommitRequest.Builder>
public CommitRequest.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<CommitRequest.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<CommitRequest.Builder>
public CommitRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public CommitRequest build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public CommitRequest buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public CommitRequest.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<CommitRequest.Builder>
public CommitRequest.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<CommitRequest.Builder>
public CommitRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<CommitRequest.Builder>
public CommitRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<CommitRequest.Builder>
public CommitRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<CommitRequest.Builder>
public CommitRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<CommitRequest.Builder>
public CommitRequest.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<CommitRequest.Builder>
public CommitRequest.Builder mergeFrom(CommitRequest other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<CommitRequest.Builder>
public CommitRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<CommitRequest.Builder>
java.io.IOException
public CommitRequest.TransactionSelectorCase getTransactionSelectorCase()
getTransactionSelectorCase
in interface CommitRequestOrBuilder
public CommitRequest.Builder clearTransactionSelector()
public java.lang.String getProjectId()
The ID of the project against which to make the request.
string project_id = 8;
getProjectId
in interface CommitRequestOrBuilder
public ByteString getProjectIdBytes()
The ID of the project against which to make the request.
string project_id = 8;
getProjectIdBytes
in interface CommitRequestOrBuilder
public CommitRequest.Builder setProjectId(java.lang.String value)
The ID of the project against which to make the request.
string project_id = 8;
public CommitRequest.Builder clearProjectId()
The ID of the project against which to make the request.
string project_id = 8;
public CommitRequest.Builder setProjectIdBytes(ByteString value)
The ID of the project against which to make the request.
string project_id = 8;
public int getModeValue()
The type of commit to perform. Defaults to `TRANSACTIONAL`.
.google.datastore.v1.CommitRequest.Mode mode = 5;
getModeValue
in interface CommitRequestOrBuilder
public CommitRequest.Builder setModeValue(int value)
The type of commit to perform. Defaults to `TRANSACTIONAL`.
.google.datastore.v1.CommitRequest.Mode mode = 5;
public CommitRequest.Mode getMode()
The type of commit to perform. Defaults to `TRANSACTIONAL`.
.google.datastore.v1.CommitRequest.Mode mode = 5;
getMode
in interface CommitRequestOrBuilder
public CommitRequest.Builder setMode(CommitRequest.Mode value)
The type of commit to perform. Defaults to `TRANSACTIONAL`.
.google.datastore.v1.CommitRequest.Mode mode = 5;
public CommitRequest.Builder clearMode()
The type of commit to perform. Defaults to `TRANSACTIONAL`.
.google.datastore.v1.CommitRequest.Mode mode = 5;
public 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;
getTransaction
in interface CommitRequestOrBuilder
public CommitRequest.Builder setTransaction(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;
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;
public java.util.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;
getMutationsList
in interface CommitRequestOrBuilder
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;
getMutationsCount
in interface CommitRequestOrBuilder
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;
getMutations
in interface CommitRequestOrBuilder
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;
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;
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;
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;
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;
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;
public CommitRequest.Builder addAllMutations(java.lang.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;
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;
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;
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;
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;
getMutationsOrBuilder
in interface CommitRequestOrBuilder
public java.util.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;
getMutationsOrBuilderList
in interface CommitRequestOrBuilder
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;
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;
public java.util.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;
public final CommitRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<CommitRequest.Builder>
public final CommitRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<CommitRequest.Builder>