public static final class TransactionSelector.Builder extends GeneratedMessageV3.Builder<TransactionSelector.Builder> implements TransactionSelectorOrBuilder
This message is used to select the transaction in which a [Read][google.spanner.v1.Spanner.Read] or [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] call runs. See [TransactionOptions][google.spanner.v1.TransactionOptions] for more information about transactions.Protobuf type
google.spanner.v1.TransactionSelectorgetAllFields, 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, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<TransactionSelector.Builder>public TransactionSelector.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<TransactionSelector.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<TransactionSelector.Builder>public TransactionSelector getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic TransactionSelector build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic TransactionSelector buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic TransactionSelector.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<TransactionSelector.Builder>public TransactionSelector.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<TransactionSelector.Builder>public TransactionSelector.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<TransactionSelector.Builder>public TransactionSelector.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<TransactionSelector.Builder>public TransactionSelector.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<TransactionSelector.Builder>public TransactionSelector.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<TransactionSelector.Builder>public TransactionSelector.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<TransactionSelector.Builder>public TransactionSelector.Builder mergeFrom(TransactionSelector other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<TransactionSelector.Builder>public TransactionSelector.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<TransactionSelector.Builder>java.io.IOExceptionpublic TransactionSelector.SelectorCase getSelectorCase()
getSelectorCase in interface TransactionSelectorOrBuilderpublic TransactionSelector.Builder clearSelector()
public boolean hasSingleUse()
Execute the read or SQL query in a temporary transaction. This is the most efficient way to execute a transaction that consists of a single SQL query.
.google.spanner.v1.TransactionOptions single_use = 1;hasSingleUse in interface TransactionSelectorOrBuilderpublic TransactionOptions getSingleUse()
Execute the read or SQL query in a temporary transaction. This is the most efficient way to execute a transaction that consists of a single SQL query.
.google.spanner.v1.TransactionOptions single_use = 1;getSingleUse in interface TransactionSelectorOrBuilderpublic TransactionSelector.Builder setSingleUse(TransactionOptions value)
Execute the read or SQL query in a temporary transaction. This is the most efficient way to execute a transaction that consists of a single SQL query.
.google.spanner.v1.TransactionOptions single_use = 1;public TransactionSelector.Builder setSingleUse(TransactionOptions.Builder builderForValue)
Execute the read or SQL query in a temporary transaction. This is the most efficient way to execute a transaction that consists of a single SQL query.
.google.spanner.v1.TransactionOptions single_use = 1;public TransactionSelector.Builder mergeSingleUse(TransactionOptions value)
Execute the read or SQL query in a temporary transaction. This is the most efficient way to execute a transaction that consists of a single SQL query.
.google.spanner.v1.TransactionOptions single_use = 1;public TransactionSelector.Builder clearSingleUse()
Execute the read or SQL query in a temporary transaction. This is the most efficient way to execute a transaction that consists of a single SQL query.
.google.spanner.v1.TransactionOptions single_use = 1;public TransactionOptions.Builder getSingleUseBuilder()
Execute the read or SQL query in a temporary transaction. This is the most efficient way to execute a transaction that consists of a single SQL query.
.google.spanner.v1.TransactionOptions single_use = 1;public TransactionOptionsOrBuilder getSingleUseOrBuilder()
Execute the read or SQL query in a temporary transaction. This is the most efficient way to execute a transaction that consists of a single SQL query.
.google.spanner.v1.TransactionOptions single_use = 1;getSingleUseOrBuilder in interface TransactionSelectorOrBuilderpublic ByteString getId()
Execute the read or SQL query in a previously-started transaction.
bytes id = 2;getId in interface TransactionSelectorOrBuilderpublic TransactionSelector.Builder setId(ByteString value)
Execute the read or SQL query in a previously-started transaction.
bytes id = 2;public TransactionSelector.Builder clearId()
Execute the read or SQL query in a previously-started transaction.
bytes id = 2;public boolean hasBegin()
Begin a new transaction and execute this read or SQL query in it. The transaction ID of the new transaction is returned in [ResultSetMetadata.transaction][google.spanner.v1.ResultSetMetadata.transaction], which is a [Transaction][google.spanner.v1.Transaction].
.google.spanner.v1.TransactionOptions begin = 3;hasBegin in interface TransactionSelectorOrBuilderpublic TransactionOptions getBegin()
Begin a new transaction and execute this read or SQL query in it. The transaction ID of the new transaction is returned in [ResultSetMetadata.transaction][google.spanner.v1.ResultSetMetadata.transaction], which is a [Transaction][google.spanner.v1.Transaction].
.google.spanner.v1.TransactionOptions begin = 3;getBegin in interface TransactionSelectorOrBuilderpublic TransactionSelector.Builder setBegin(TransactionOptions value)
Begin a new transaction and execute this read or SQL query in it. The transaction ID of the new transaction is returned in [ResultSetMetadata.transaction][google.spanner.v1.ResultSetMetadata.transaction], which is a [Transaction][google.spanner.v1.Transaction].
.google.spanner.v1.TransactionOptions begin = 3;public TransactionSelector.Builder setBegin(TransactionOptions.Builder builderForValue)
Begin a new transaction and execute this read or SQL query in it. The transaction ID of the new transaction is returned in [ResultSetMetadata.transaction][google.spanner.v1.ResultSetMetadata.transaction], which is a [Transaction][google.spanner.v1.Transaction].
.google.spanner.v1.TransactionOptions begin = 3;public TransactionSelector.Builder mergeBegin(TransactionOptions value)
Begin a new transaction and execute this read or SQL query in it. The transaction ID of the new transaction is returned in [ResultSetMetadata.transaction][google.spanner.v1.ResultSetMetadata.transaction], which is a [Transaction][google.spanner.v1.Transaction].
.google.spanner.v1.TransactionOptions begin = 3;public TransactionSelector.Builder clearBegin()
Begin a new transaction and execute this read or SQL query in it. The transaction ID of the new transaction is returned in [ResultSetMetadata.transaction][google.spanner.v1.ResultSetMetadata.transaction], which is a [Transaction][google.spanner.v1.Transaction].
.google.spanner.v1.TransactionOptions begin = 3;public TransactionOptions.Builder getBeginBuilder()
Begin a new transaction and execute this read or SQL query in it. The transaction ID of the new transaction is returned in [ResultSetMetadata.transaction][google.spanner.v1.ResultSetMetadata.transaction], which is a [Transaction][google.spanner.v1.Transaction].
.google.spanner.v1.TransactionOptions begin = 3;public TransactionOptionsOrBuilder getBeginOrBuilder()
Begin a new transaction and execute this read or SQL query in it. The transaction ID of the new transaction is returned in [ResultSetMetadata.transaction][google.spanner.v1.ResultSetMetadata.transaction], which is a [Transaction][google.spanner.v1.Transaction].
.google.spanner.v1.TransactionOptions begin = 3;getBeginOrBuilder in interface TransactionSelectorOrBuilderpublic final TransactionSelector.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<TransactionSelector.Builder>public final TransactionSelector.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<TransactionSelector.Builder>