public static final class CommitRequest.Builder extends com.google.protobuf.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(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(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CommitRequest |
build() |
CommitRequest |
buildPartial() |
CommitRequest.Builder |
clear() |
CommitRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
CommitRequest.Builder |
clearMutations()
The mutations to be executed when this transaction commits.
|
CommitRequest.Builder |
clearOneof(com.google.protobuf.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 com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.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.
|
List<Mutation.Builder> |
getMutationsBuilderList()
The mutations to be executed when this transaction commits.
|
int |
getMutationsCount()
The mutations to be executed when this transaction commits.
|
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.
|
List<? extends MutationOrBuilder> |
getMutationsOrBuilderList()
The mutations to be executed when this transaction commits.
|
String |
getSession()
Required.
|
com.google.protobuf.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() |
com.google.protobuf.ByteString |
getTransactionId()
Commit a previously-started transaction.
|
boolean |
hasSingleUseTransaction()
Execute mutations in a temporary transaction.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
CommitRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CommitRequest.Builder |
mergeFrom(CommitRequest other) |
CommitRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
CommitRequest.Builder |
mergeSingleUseTransaction(TransactionOptions value)
Execute mutations in a temporary transaction.
|
CommitRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
CommitRequest.Builder |
removeMutations(int index)
The mutations to be executed when this transaction commits.
|
CommitRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
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(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
CommitRequest.Builder |
setSession(String value)
Required.
|
CommitRequest.Builder |
setSessionBytes(com.google.protobuf.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(com.google.protobuf.ByteString value)
Commit a previously-started transaction.
|
CommitRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>public CommitRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>public CommitRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CommitRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CommitRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CommitRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>public CommitRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>public CommitRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>public CommitRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>public CommitRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>public CommitRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>public CommitRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CommitRequest.Builder>public CommitRequest.Builder mergeFrom(CommitRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>public CommitRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CommitRequest.Builder>IOExceptionpublic CommitRequest.TransactionCase getTransactionCase()
getTransactionCase in interface CommitRequestOrBuilderpublic CommitRequest.Builder clearTransaction()
public String getSession()
Required. The session in which the transaction to be committed is running.
string session = 1;getSession in interface CommitRequestOrBuilderpublic com.google.protobuf.ByteString getSessionBytes()
Required. The session in which the transaction to be committed is running.
string session = 1;getSessionBytes in interface CommitRequestOrBuilderpublic CommitRequest.Builder setSession(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(com.google.protobuf.ByteString value)
Required. The session in which the transaction to be committed is running.
string session = 1;public com.google.protobuf.ByteString getTransactionId()
Commit a previously-started transaction.
bytes transaction_id = 2;getTransactionId in interface CommitRequestOrBuilderpublic CommitRequest.Builder setTransactionId(com.google.protobuf.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 CommitRequestOrBuilderpublic 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 CommitRequestOrBuilderpublic 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 CommitRequestOrBuilderpublic 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 CommitRequestOrBuilderpublic 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 CommitRequestOrBuilderpublic 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 CommitRequestOrBuilderpublic 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(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 CommitRequestOrBuilderpublic 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 CommitRequestOrBuilderpublic 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 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(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>public final CommitRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>Copyright © 2019 Google LLC. All rights reserved.