public interface CommitRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
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.Mode |
getMode()
The type of commit to perform.
|
int |
getModeValue()
The type of commit to perform.
|
Mutation |
getMutations(int index)
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.
|
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.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
String getProjectId()
Required. The ID of the project against which to make the request.
string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
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];
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;
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;
int getModeValue()
The type of commit to perform. Defaults to `TRANSACTIONAL`.
.google.datastore.v1.CommitRequest.Mode mode = 5;
CommitRequest.Mode getMode()
The type of commit to perform. Defaults to `TRANSACTIONAL`.
.google.datastore.v1.CommitRequest.Mode mode = 5;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
CommitRequest.TransactionSelectorCase getTransactionSelectorCase()
Copyright © 2023 Google LLC. All rights reserved.