public interface CommitRequestOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getMode()
public abstract CommitRequest.Mode getMode()
The type of commit to perform. Defaults to TRANSACTIONAL
.
.google.datastore.v1.CommitRequest.Mode mode = 5;
Type | Description |
CommitRequest.Mode | The mode. |
getModeValue()
public abstract int getModeValue()
The type of commit to perform. Defaults to TRANSACTIONAL
.
.google.datastore.v1.CommitRequest.Mode mode = 5;
Type | Description |
int | The enum numeric value on the wire for mode. |
getMutations(int index)
public abstract 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 byinsert
update
followed byinsert
upsert
followed byinsert
delete
followed byupdate
When mode isNON_TRANSACTIONAL
, no two mutations may affect a single entity.
repeated .google.datastore.v1.Mutation mutations = 6;
Name | Description |
index | int |
Type | Description |
Mutation |
getMutationsCount()
public abstract 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 byinsert
update
followed byinsert
upsert
followed byinsert
delete
followed byupdate
When mode isNON_TRANSACTIONAL
, no two mutations may affect a single entity.
repeated .google.datastore.v1.Mutation mutations = 6;
Type | Description |
int |
getMutationsList()
public abstract 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 byinsert
update
followed byinsert
upsert
followed byinsert
delete
followed byupdate
When mode isNON_TRANSACTIONAL
, no two mutations may affect a single entity.
repeated .google.datastore.v1.Mutation mutations = 6;
Type | Description |
List<Mutation> |
getMutationsOrBuilder(int index)
public abstract 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 byinsert
update
followed byinsert
upsert
followed byinsert
delete
followed byupdate
When mode isNON_TRANSACTIONAL
, no two mutations may affect a single entity.
repeated .google.datastore.v1.Mutation mutations = 6;
Name | Description |
index | int |
Type | Description |
MutationOrBuilder |
getMutationsOrBuilderList()
public abstract 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 byinsert
update
followed byinsert
upsert
followed byinsert
delete
followed byupdate
When mode isNON_TRANSACTIONAL
, no two mutations may affect a single entity.
repeated .google.datastore.v1.Mutation mutations = 6;
Type | Description |
List<? extends com.google.datastore.v1.MutationOrBuilder> |
getProjectId()
public abstract String getProjectId()
Required. The ID of the project against which to make the request.
string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
String | The projectId. |
getProjectIdBytes()
public abstract ByteString getProjectIdBytes()
Required. The ID of the project against which to make the request.
string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ByteString | The bytes for projectId. |
getTransaction()
public abstract ByteString getTransaction()
The identifier of the transaction associated with the commit. A transaction identifier is returned by a call to Datastore.BeginTransaction.
bytes transaction = 1;
Type | Description |
ByteString | The transaction. |
getTransactionSelectorCase()
public abstract CommitRequest.TransactionSelectorCase getTransactionSelectorCase()
Type | Description |
CommitRequest.TransactionSelectorCase |
hasTransaction()
public abstract boolean hasTransaction()
The identifier of the transaction associated with the commit. A transaction identifier is returned by a call to Datastore.BeginTransaction.
bytes transaction = 1;
Type | Description |
boolean | Whether the transaction field is set. |