Package com.google.spanner.v1
Class CommitRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
- com.google.spanner.v1.CommitRequest.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CommitRequestOrBuilder,Cloneable
- Enclosing class:
- CommitRequest
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 typegoogle.spanner.v1.CommitRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CommitRequest.BuilderaddAllMutations(Iterable<? extends Mutation> values)The mutations to be executed when this transaction commits.CommitRequest.BuilderaddMutations(int index, Mutation value)The mutations to be executed when this transaction commits.CommitRequest.BuilderaddMutations(int index, Mutation.Builder builderForValue)The mutations to be executed when this transaction commits.CommitRequest.BuilderaddMutations(Mutation value)The mutations to be executed when this transaction commits.CommitRequest.BuilderaddMutations(Mutation.Builder builderForValue)The mutations to be executed when this transaction commits.Mutation.BuilderaddMutationsBuilder()The mutations to be executed when this transaction commits.Mutation.BuilderaddMutationsBuilder(int index)The mutations to be executed when this transaction commits.CommitRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CommitRequestbuild()CommitRequestbuildPartial()CommitRequest.Builderclear()CommitRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)CommitRequest.BuilderclearMutations()The mutations to be executed when this transaction commits.CommitRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)CommitRequest.BuilderclearRequestOptions()Common options for this request.CommitRequest.BuilderclearReturnCommitStats()If `true`, then statistics related to the transaction will be included in the [CommitResponse][google.spanner.v1.CommitResponse.commit_stats].CommitRequest.BuilderclearSession()Required.CommitRequest.BuilderclearSingleUseTransaction()Execute mutations in a temporary transaction.CommitRequest.BuilderclearTransaction()CommitRequest.BuilderclearTransactionId()Commit a previously-started transaction.CommitRequest.Builderclone()CommitRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()MutationgetMutations(int index)The mutations to be executed when this transaction commits.Mutation.BuildergetMutationsBuilder(int index)The mutations to be executed when this transaction commits.List<Mutation.Builder>getMutationsBuilderList()The mutations to be executed when this transaction commits.intgetMutationsCount()The mutations to be executed when this transaction commits.List<Mutation>getMutationsList()The mutations to be executed when this transaction commits.MutationOrBuildergetMutationsOrBuilder(int index)The mutations to be executed when this transaction commits.List<? extends MutationOrBuilder>getMutationsOrBuilderList()The mutations to be executed when this transaction commits.RequestOptionsgetRequestOptions()Common options for this request.RequestOptions.BuildergetRequestOptionsBuilder()Common options for this request.RequestOptionsOrBuildergetRequestOptionsOrBuilder()Common options for this request.booleangetReturnCommitStats()If `true`, then statistics related to the transaction will be included in the [CommitResponse][google.spanner.v1.CommitResponse.commit_stats].StringgetSession()Required.com.google.protobuf.ByteStringgetSessionBytes()Required.TransactionOptionsgetSingleUseTransaction()Execute mutations in a temporary transaction.TransactionOptions.BuildergetSingleUseTransactionBuilder()Execute mutations in a temporary transaction.TransactionOptionsOrBuildergetSingleUseTransactionOrBuilder()Execute mutations in a temporary transaction.CommitRequest.TransactionCasegetTransactionCase()com.google.protobuf.ByteStringgetTransactionId()Commit a previously-started transaction.booleanhasRequestOptions()Common options for this request.booleanhasSingleUseTransaction()Execute mutations in a temporary transaction.booleanhasTransactionId()Commit a previously-started transaction.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()CommitRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CommitRequest.BuildermergeFrom(com.google.protobuf.Message other)CommitRequest.BuildermergeFrom(CommitRequest other)CommitRequest.BuildermergeRequestOptions(RequestOptions value)Common options for this request.CommitRequest.BuildermergeSingleUseTransaction(TransactionOptions value)Execute mutations in a temporary transaction.CommitRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CommitRequest.BuilderremoveMutations(int index)The mutations to be executed when this transaction commits.CommitRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CommitRequest.BuildersetMutations(int index, Mutation value)The mutations to be executed when this transaction commits.CommitRequest.BuildersetMutations(int index, Mutation.Builder builderForValue)The mutations to be executed when this transaction commits.CommitRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)CommitRequest.BuildersetRequestOptions(RequestOptions value)Common options for this request.CommitRequest.BuildersetRequestOptions(RequestOptions.Builder builderForValue)Common options for this request.CommitRequest.BuildersetReturnCommitStats(boolean value)If `true`, then statistics related to the transaction will be included in the [CommitResponse][google.spanner.v1.CommitResponse.commit_stats].CommitRequest.BuildersetSession(String value)Required.CommitRequest.BuildersetSessionBytes(com.google.protobuf.ByteString value)Required.CommitRequest.BuildersetSingleUseTransaction(TransactionOptions value)Execute mutations in a temporary transaction.CommitRequest.BuildersetSingleUseTransaction(TransactionOptions.Builder builderForValue)Execute mutations in a temporary transaction.CommitRequest.BuildersetTransactionId(com.google.protobuf.ByteString value)Commit a previously-started transaction.CommitRequest.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
clear
public CommitRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
getDefaultInstanceForType
public CommitRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CommitRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CommitRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CommitRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
setField
public CommitRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
clearField
public CommitRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
clearOneof
public CommitRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
setRepeatedField
public CommitRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
addRepeatedField
public CommitRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
mergeFrom
public CommitRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommitRequest.Builder>
-
mergeFrom
public CommitRequest.Builder mergeFrom(CommitRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
mergeFrom
public CommitRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommitRequest.Builder>- Throws:
IOException
-
getTransactionCase
public CommitRequest.TransactionCase getTransactionCase()
- Specified by:
getTransactionCasein interfaceCommitRequestOrBuilder
-
clearTransaction
public CommitRequest.Builder clearTransaction()
-
getSession
public String getSession()
Required. The session in which the transaction to be committed is running.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getSessionin interfaceCommitRequestOrBuilder- Returns:
- The session.
-
getSessionBytes
public com.google.protobuf.ByteString getSessionBytes()
Required. The session in which the transaction to be committed is running.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getSessionBytesin interfaceCommitRequestOrBuilder- Returns:
- The bytes for session.
-
setSession
public CommitRequest.Builder setSession(String value)
Required. The session in which the transaction to be committed is running.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The session to set.- Returns:
- This builder for chaining.
-
clearSession
public CommitRequest.Builder clearSession()
Required. The session in which the transaction to be committed is running.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setSessionBytes
public CommitRequest.Builder setSessionBytes(com.google.protobuf.ByteString value)
Required. The session in which the transaction to be committed is running.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for session to set.- Returns:
- This builder for chaining.
-
hasTransactionId
public boolean hasTransactionId()
Commit a previously-started transaction.
bytes transaction_id = 2;- Specified by:
hasTransactionIdin interfaceCommitRequestOrBuilder- Returns:
- Whether the transactionId field is set.
-
getTransactionId
public com.google.protobuf.ByteString getTransactionId()
Commit a previously-started transaction.
bytes transaction_id = 2;- Specified by:
getTransactionIdin interfaceCommitRequestOrBuilder- Returns:
- The transactionId.
-
setTransactionId
public CommitRequest.Builder setTransactionId(com.google.protobuf.ByteString value)
Commit a previously-started transaction.
bytes transaction_id = 2;- Parameters:
value- The transactionId to set.- Returns:
- This builder for chaining.
-
clearTransactionId
public CommitRequest.Builder clearTransactionId()
Commit a previously-started transaction.
bytes transaction_id = 2;- Returns:
- This builder for chaining.
-
hasSingleUseTransaction
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;- Specified by:
hasSingleUseTransactionin interfaceCommitRequestOrBuilder- Returns:
- Whether the singleUseTransaction field is set.
-
getSingleUseTransaction
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;- Specified by:
getSingleUseTransactionin interfaceCommitRequestOrBuilder- Returns:
- The singleUseTransaction.
-
setSingleUseTransaction
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;
-
setSingleUseTransaction
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;
-
mergeSingleUseTransaction
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;
-
clearSingleUseTransaction
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;
-
getSingleUseTransactionBuilder
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;
-
getSingleUseTransactionOrBuilder
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;- Specified by:
getSingleUseTransactionOrBuilderin interfaceCommitRequestOrBuilder
-
getMutationsList
public 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;- Specified by:
getMutationsListin interfaceCommitRequestOrBuilder
-
getMutationsCount
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;- Specified by:
getMutationsCountin interfaceCommitRequestOrBuilder
-
getMutations
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;- Specified by:
getMutationsin interfaceCommitRequestOrBuilder
-
setMutations
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;
-
setMutations
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;
-
addMutations
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;
-
addMutations
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;
-
addMutations
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;
-
addMutations
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;
-
addAllMutations
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;
-
clearMutations
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;
-
removeMutations
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;
-
getMutationsBuilder
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;
-
getMutationsOrBuilder
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;- Specified by:
getMutationsOrBuilderin interfaceCommitRequestOrBuilder
-
getMutationsOrBuilderList
public 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;- Specified by:
getMutationsOrBuilderListin interfaceCommitRequestOrBuilder
-
addMutationsBuilder
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;
-
addMutationsBuilder
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;
-
getMutationsBuilderList
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;
-
getReturnCommitStats
public boolean getReturnCommitStats()
If `true`, then statistics related to the transaction will be included in the [CommitResponse][google.spanner.v1.CommitResponse.commit_stats]. Default value is `false`.
bool return_commit_stats = 5;- Specified by:
getReturnCommitStatsin interfaceCommitRequestOrBuilder- Returns:
- The returnCommitStats.
-
setReturnCommitStats
public CommitRequest.Builder setReturnCommitStats(boolean value)
If `true`, then statistics related to the transaction will be included in the [CommitResponse][google.spanner.v1.CommitResponse.commit_stats]. Default value is `false`.
bool return_commit_stats = 5;- Parameters:
value- The returnCommitStats to set.- Returns:
- This builder for chaining.
-
clearReturnCommitStats
public CommitRequest.Builder clearReturnCommitStats()
If `true`, then statistics related to the transaction will be included in the [CommitResponse][google.spanner.v1.CommitResponse.commit_stats]. Default value is `false`.
bool return_commit_stats = 5;- Returns:
- This builder for chaining.
-
hasRequestOptions
public boolean hasRequestOptions()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 6;- Specified by:
hasRequestOptionsin interfaceCommitRequestOrBuilder- Returns:
- Whether the requestOptions field is set.
-
getRequestOptions
public RequestOptions getRequestOptions()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 6;- Specified by:
getRequestOptionsin interfaceCommitRequestOrBuilder- Returns:
- The requestOptions.
-
setRequestOptions
public CommitRequest.Builder setRequestOptions(RequestOptions value)
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 6;
-
setRequestOptions
public CommitRequest.Builder setRequestOptions(RequestOptions.Builder builderForValue)
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 6;
-
mergeRequestOptions
public CommitRequest.Builder mergeRequestOptions(RequestOptions value)
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 6;
-
clearRequestOptions
public CommitRequest.Builder clearRequestOptions()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 6;
-
getRequestOptionsBuilder
public RequestOptions.Builder getRequestOptionsBuilder()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 6;
-
getRequestOptionsOrBuilder
public RequestOptionsOrBuilder getRequestOptionsOrBuilder()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 6;- Specified by:
getRequestOptionsOrBuilderin interfaceCommitRequestOrBuilder
-
setUnknownFields
public final CommitRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
mergeUnknownFields
public final CommitRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
-