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(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,
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 |
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 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.
|
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.
|
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 |
hasRequestOptions()
Common options for this request.
|
boolean |
hasSingleUseTransaction()
Execute mutations in a temporary transaction.
|
boolean |
hasTransactionId()
Commit a previously-started 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 |
mergeRequestOptions(RequestOptions value)
Common options for this request.
|
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,
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,
Object value) |
CommitRequest.Builder |
setRequestOptions(RequestOptions.Builder builderForValue)
Common options for this request.
|
CommitRequest.Builder |
setRequestOptions(RequestOptions value)
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(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, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
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, 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, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<CommitRequest.Builder>
public CommitRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, 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 IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<CommitRequest.Builder>
IOException
public CommitRequest.TransactionCase getTransactionCase()
getTransactionCase
in interface CommitRequestOrBuilder
public CommitRequest.Builder clearTransaction()
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) = { ... }
getSession
in interface CommitRequestOrBuilder
public 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) = { ... }
getSessionBytes
in interface CommitRequestOrBuilder
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) = { ... }
value
- The session to set.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) = { ... }
public CommitRequest.Builder setSessionBytes(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) = { ... }
value
- The bytes for session to set.public boolean hasTransactionId()
Commit a previously-started transaction.
bytes transaction_id = 2;
hasTransactionId
in interface CommitRequestOrBuilder
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;
value
- The transactionId to set.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 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(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 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 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 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;
getReturnCommitStats
in interface CommitRequestOrBuilder
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;
value
- The returnCommitStats to set.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;
public boolean hasRequestOptions()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 6;
hasRequestOptions
in interface CommitRequestOrBuilder
public RequestOptions getRequestOptions()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 6;
getRequestOptions
in interface CommitRequestOrBuilder
public CommitRequest.Builder setRequestOptions(RequestOptions value)
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 6;
public CommitRequest.Builder setRequestOptions(RequestOptions.Builder builderForValue)
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 6;
public CommitRequest.Builder mergeRequestOptions(RequestOptions value)
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 6;
public CommitRequest.Builder clearRequestOptions()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 6;
public RequestOptions.Builder getRequestOptionsBuilder()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 6;
public RequestOptionsOrBuilder getRequestOptionsOrBuilder()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 6;
getRequestOptionsOrBuilder
in interface CommitRequestOrBuilder
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>
Copyright © 2022 Google LLC. All rights reserved.