public interface CommitRequestOrBuilder extends MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
Mutation |
getMutations(int index)
The mutations to be executed when this transaction commits.
|
int |
getMutationsCount()
The mutations to be executed when this transaction commits.
|
java.util.List<Mutation> |
getMutationsList()
The mutations to be executed when this transaction commits.
|
MutationOrBuilder |
getMutationsOrBuilder(int index)
The mutations to be executed when this transaction commits.
|
java.util.List<? extends MutationOrBuilder> |
getMutationsOrBuilderList()
The mutations to be executed when this transaction commits.
|
java.lang.String |
getSession()
Required.
|
ByteString |
getSessionBytes()
Required.
|
TransactionOptions |
getSingleUseTransaction()
Execute mutations in a temporary transaction.
|
TransactionOptionsOrBuilder |
getSingleUseTransactionOrBuilder()
Execute mutations in a temporary transaction.
|
CommitRequest.TransactionCase |
getTransactionCase() |
ByteString |
getTransactionId()
Commit a previously-started transaction.
|
boolean |
hasSingleUseTransaction()
Execute mutations in a temporary transaction.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
isInitialized
java.lang.String getSession()
Required. The session in which the transaction to be committed is running.
string session = 1;
ByteString getSessionBytes()
Required. The session in which the transaction to be committed is running.
string session = 1;
ByteString getTransactionId()
Commit a previously-started transaction.
bytes transaction_id = 2;
boolean hasSingleUseTransaction()
Execute mutations in a temporary transaction. Note that unlike commit of a previously-started transaction, commit with a temporary transaction is non-idempotent. That is, if the `CommitRequest` is sent to Cloud Spanner more than once (for instance, due to retries in the application, or in the transport library), it is possible that the mutations are executed more than once. If this is undesirable, use [BeginTransaction][google.spanner.v1.Spanner.BeginTransaction] and [Commit][google.spanner.v1.Spanner.Commit] instead.
.google.spanner.v1.TransactionOptions single_use_transaction = 3;
TransactionOptions getSingleUseTransaction()
Execute mutations in a temporary transaction. Note that unlike commit of a previously-started transaction, commit with a temporary transaction is non-idempotent. That is, if the `CommitRequest` is sent to Cloud Spanner more than once (for instance, due to retries in the application, or in the transport library), it is possible that the mutations are executed more than once. If this is undesirable, use [BeginTransaction][google.spanner.v1.Spanner.BeginTransaction] and [Commit][google.spanner.v1.Spanner.Commit] instead.
.google.spanner.v1.TransactionOptions single_use_transaction = 3;
TransactionOptionsOrBuilder getSingleUseTransactionOrBuilder()
Execute mutations in a temporary transaction. Note that unlike commit of a previously-started transaction, commit with a temporary transaction is non-idempotent. That is, if the `CommitRequest` is sent to Cloud Spanner more than once (for instance, due to retries in the application, or in the transport library), it is possible that the mutations are executed more than once. If this is undesirable, use [BeginTransaction][google.spanner.v1.Spanner.BeginTransaction] and [Commit][google.spanner.v1.Spanner.Commit] instead.
.google.spanner.v1.TransactionOptions single_use_transaction = 3;
java.util.List<Mutation> getMutationsList()
The mutations to be executed when this transaction commits. All mutations are applied atomically, in the order they appear in this list.
repeated .google.spanner.v1.Mutation mutations = 4;
Mutation getMutations(int index)
The mutations to be executed when this transaction commits. All mutations are applied atomically, in the order they appear in this list.
repeated .google.spanner.v1.Mutation mutations = 4;
int getMutationsCount()
The mutations to be executed when this transaction commits. All mutations are applied atomically, in the order they appear in this list.
repeated .google.spanner.v1.Mutation mutations = 4;
java.util.List<? extends MutationOrBuilder> getMutationsOrBuilderList()
The mutations to be executed when this transaction commits. All mutations are applied atomically, in the order they appear in this list.
repeated .google.spanner.v1.Mutation mutations = 4;
MutationOrBuilder getMutationsOrBuilder(int index)
The mutations to be executed when this transaction commits. All mutations are applied atomically, in the order they appear in this list.
repeated .google.spanner.v1.Mutation mutations = 4;
CommitRequest.TransactionCase getTransactionCase()