public static final class CommitRequest.Builder extends GeneratedMessageV3.Builder<CommitRequest.Builder> implements CommitRequestOrBuilder
The request for [Commit][google.spanner.v1.Spanner.Commit].Protobuf type
google.spanner.v1.CommitRequest
Modifier and Type | Method and Description |
---|---|
CommitRequest.Builder |
addAllMutations(java.lang.Iterable<? extends Mutation> values)
The mutations to be executed when this transaction commits.
|
CommitRequest.Builder |
addMutations(int index,
Mutation.Builder builderForValue)
The mutations to be executed when this transaction commits.
|
CommitRequest.Builder |
addMutations(int index,
Mutation value)
The mutations to be executed when this transaction commits.
|
CommitRequest.Builder |
addMutations(Mutation.Builder builderForValue)
The mutations to be executed when this transaction commits.
|
CommitRequest.Builder |
addMutations(Mutation value)
The mutations to be executed when this transaction commits.
|
Mutation.Builder |
addMutationsBuilder()
The mutations to be executed when this transaction commits.
|
Mutation.Builder |
addMutationsBuilder(int index)
The mutations to be executed when this transaction commits.
|
CommitRequest.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
CommitRequest |
build() |
CommitRequest |
buildPartial() |
CommitRequest.Builder |
clear() |
CommitRequest.Builder |
clearField(Descriptors.FieldDescriptor field) |
CommitRequest.Builder |
clearMutations()
The mutations to be executed when this transaction commits.
|
CommitRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
CommitRequest.Builder |
clearSession()
Required.
|
CommitRequest.Builder |
clearSingleUseTransaction()
Execute mutations in a temporary transaction.
|
CommitRequest.Builder |
clearTransaction() |
CommitRequest.Builder |
clearTransactionId()
Commit a previously-started transaction.
|
CommitRequest.Builder |
clone() |
CommitRequest |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
Mutation |
getMutations(int index)
The mutations to be executed when this transaction commits.
|
Mutation.Builder |
getMutationsBuilder(int index)
The mutations to be executed when this transaction commits.
|
java.util.List<Mutation.Builder> |
getMutationsBuilderList()
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.
|
TransactionOptions.Builder |
getSingleUseTransactionBuilder()
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.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
CommitRequest.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
CommitRequest.Builder |
mergeFrom(CommitRequest other) |
CommitRequest.Builder |
mergeFrom(Message other) |
CommitRequest.Builder |
mergeSingleUseTransaction(TransactionOptions value)
Execute mutations in a temporary transaction.
|
CommitRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
CommitRequest.Builder |
removeMutations(int index)
The mutations to be executed when this transaction commits.
|
CommitRequest.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
CommitRequest.Builder |
setMutations(int index,
Mutation.Builder builderForValue)
The mutations to be executed when this transaction commits.
|
CommitRequest.Builder |
setMutations(int index,
Mutation value)
The mutations to be executed when this transaction commits.
|
CommitRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
CommitRequest.Builder |
setSession(java.lang.String value)
Required.
|
CommitRequest.Builder |
setSessionBytes(ByteString value)
Required.
|
CommitRequest.Builder |
setSingleUseTransaction(TransactionOptions.Builder builderForValue)
Execute mutations in a temporary transaction.
|
CommitRequest.Builder |
setSingleUseTransaction(TransactionOptions value)
Execute mutations in a temporary transaction.
|
CommitRequest.Builder |
setTransactionId(ByteString value)
Commit a previously-started transaction.
|
CommitRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
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.TransactionCase getTransactionCase()
getTransactionCase
in interface CommitRequestOrBuilder
public CommitRequest.Builder clearTransaction()
public java.lang.String getSession()
Required. The session in which the transaction to be committed is running.
string session = 1;
getSession
in interface CommitRequestOrBuilder
public ByteString getSessionBytes()
Required. The session in which the transaction to be committed is running.
string session = 1;
getSessionBytes
in interface CommitRequestOrBuilder
public CommitRequest.Builder setSession(java.lang.String value)
Required. The session in which the transaction to be committed is running.
string session = 1;
public CommitRequest.Builder clearSession()
Required. The session in which the transaction to be committed is running.
string session = 1;
public CommitRequest.Builder setSessionBytes(ByteString value)
Required. The session in which the transaction to be committed is running.
string session = 1;
public ByteString getTransactionId()
Commit a previously-started transaction.
bytes transaction_id = 2;
getTransactionId
in interface CommitRequestOrBuilder
public CommitRequest.Builder setTransactionId(ByteString value)
Commit a previously-started transaction.
bytes transaction_id = 2;
public CommitRequest.Builder clearTransactionId()
Commit a previously-started transaction.
bytes transaction_id = 2;
public 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;
hasSingleUseTransaction
in interface CommitRequestOrBuilder
public 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;
getSingleUseTransaction
in interface CommitRequestOrBuilder
public CommitRequest.Builder setSingleUseTransaction(TransactionOptions value)
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;
public CommitRequest.Builder setSingleUseTransaction(TransactionOptions.Builder builderForValue)
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;
public CommitRequest.Builder mergeSingleUseTransaction(TransactionOptions value)
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;
public CommitRequest.Builder clearSingleUseTransaction()
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;
public TransactionOptions.Builder getSingleUseTransactionBuilder()
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;
public 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;
getSingleUseTransactionOrBuilder
in interface CommitRequestOrBuilder
public 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;
getMutationsList
in interface CommitRequestOrBuilder
public 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;
getMutationsCount
in interface CommitRequestOrBuilder
public 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;
getMutations
in interface CommitRequestOrBuilder
public CommitRequest.Builder setMutations(int index, Mutation value)
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;
public CommitRequest.Builder setMutations(int index, Mutation.Builder builderForValue)
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;
public CommitRequest.Builder addMutations(Mutation value)
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;
public CommitRequest.Builder addMutations(int index, Mutation value)
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;
public CommitRequest.Builder addMutations(Mutation.Builder builderForValue)
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;
public CommitRequest.Builder addMutations(int index, Mutation.Builder builderForValue)
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;
public CommitRequest.Builder addAllMutations(java.lang.Iterable<? extends Mutation> values)
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;
public CommitRequest.Builder clearMutations()
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;
public CommitRequest.Builder removeMutations(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;
public Mutation.Builder getMutationsBuilder(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;
public 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;
getMutationsOrBuilder
in interface CommitRequestOrBuilder
public 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;
getMutationsOrBuilderList
in interface CommitRequestOrBuilder
public Mutation.Builder addMutationsBuilder()
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;
public Mutation.Builder addMutationsBuilder(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;
public java.util.List<Mutation.Builder> getMutationsBuilderList()
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;
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>