Package com.google.spanner.v1
Class CommitRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- 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.Builder
addAllMutations(Iterable<? extends Mutation> values)
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(int index, 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.CommitRequest.Builder
addMutations(Mutation.Builder builderForValue)
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
clearRequestOptions()
Common options for this request.CommitRequest.Builder
clearReturnCommitStats()
If `true`, then statistics related to the transaction will be included in the [CommitResponse][google.spanner.v1.CommitResponse.commit_stats].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.RequestOptions
getRequestOptions()
Common options for this request.RequestOptions.Builder
getRequestOptionsBuilder()
Common options for this request.RequestOptionsOrBuilder
getRequestOptionsOrBuilder()
Common options for this request.boolean
getReturnCommitStats()
If `true`, then statistics related to the transaction will be included in the [CommitResponse][google.spanner.v1.CommitResponse.commit_stats].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
hasRequestOptions()
Common options for this request.boolean
hasSingleUseTransaction()
Execute mutations in a temporary transaction.boolean
hasTransactionId()
Commit a previously-started 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(com.google.protobuf.Message other)
CommitRequest.Builder
mergeFrom(CommitRequest other)
CommitRequest.Builder
mergeRequestOptions(RequestOptions value)
Common options for this request.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 value)
The mutations to be executed when this transaction commits.CommitRequest.Builder
setMutations(int index, Mutation.Builder builderForValue)
The mutations to be executed when this transaction commits.CommitRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
CommitRequest.Builder
setRequestOptions(RequestOptions value)
Common options for this request.CommitRequest.Builder
setRequestOptions(RequestOptions.Builder builderForValue)
Common options for this request.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].CommitRequest.Builder
setSession(String value)
Required.CommitRequest.Builder
setSessionBytes(com.google.protobuf.ByteString value)
Required.CommitRequest.Builder
setSingleUseTransaction(TransactionOptions value)
Execute mutations in a temporary transaction.CommitRequest.Builder
setSingleUseTransaction(TransactionOptions.Builder builderForValue)
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)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
clear
public CommitRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
getDefaultInstanceForType
public CommitRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CommitRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CommitRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CommitRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
setField
public CommitRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
clearField
public CommitRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
clearOneof
public CommitRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
setRepeatedField
public CommitRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
addRepeatedField
public CommitRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
mergeFrom
public CommitRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CommitRequest.Builder>
-
mergeFrom
public CommitRequest.Builder mergeFrom(CommitRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CommitRequest.Builder>
- Throws:
IOException
-
getTransactionCase
public CommitRequest.TransactionCase getTransactionCase()
- Specified by:
getTransactionCase
in 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:
getSession
in 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:
getSessionBytes
in 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:
hasTransactionId
in 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:
getTransactionId
in 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:
hasSingleUseTransaction
in 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:
getSingleUseTransaction
in 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:
getSingleUseTransactionOrBuilder
in 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:
getMutationsList
in 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:
getMutationsCount
in 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:
getMutations
in 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:
getMutationsOrBuilder
in 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:
getMutationsOrBuilderList
in 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:
getReturnCommitStats
in 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:
hasRequestOptions
in 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:
getRequestOptions
in 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:
getRequestOptionsOrBuilder
in interfaceCommitRequestOrBuilder
-
setUnknownFields
public final CommitRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
mergeUnknownFields
public final CommitRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
-
-