nl.topicus.jdbc.shaded.com.google.spanner.v1.CommitRequestOrBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spanner-jdbc Show documentation
Show all versions of spanner-jdbc Show documentation
JDBC Driver for Google Cloud Spanner
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/spanner/v1/spanner.proto
package nl.topicus.jdbc.shaded.com.google.spanner.v1;
public interface CommitRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.spanner.v1.CommitRequest)
nl.topicus.jdbc.shaded.com.google.protobuf.MessageOrBuilder {
/**
*
* Required. The session in which the transaction to be committed is running.
*
*
* string session = 1;
*/
java.lang.String getSession();
/**
*
* Required. The session in which the transaction to be committed is running.
*
*
* string session = 1;
*/
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString
getSessionBytes();
/**
*
* Commit a previously-started transaction.
*
*
* bytes transaction_id = 2;
*/
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getTransactionId();
/**
*
* 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;
*/
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;
*/
nl.topicus.jdbc.shaded.com.google.spanner.v1.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;
*/
nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionOptionsOrBuilder getSingleUseTransactionOrBuilder();
/**
*
* 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
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;
*/
nl.topicus.jdbc.shaded.com.google.spanner.v1.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 nl.topicus.jdbc.shaded.com.google.spanner.v1.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;
*/
nl.topicus.jdbc.shaded.com.google.spanner.v1.MutationOrBuilder getMutationsOrBuilder(
int index);
public nl.topicus.jdbc.shaded.com.google.spanner.v1.CommitRequest.TransactionCase getTransactionCase();
}