public static final class TransactionSelector.Builder extends com.google.protobuf.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.TransactionSelector| Modifier and Type | Method and Description |
|---|---|
TransactionSelector.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
TransactionSelector |
build() |
TransactionSelector |
buildPartial() |
TransactionSelector.Builder |
clear() |
TransactionSelector.Builder |
clearBegin()
Begin a new transaction and execute this read or SQL query in
it.
|
TransactionSelector.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TransactionSelector.Builder |
clearId()
Execute the read or SQL query in a previously-started transaction.
|
TransactionSelector.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TransactionSelector.Builder |
clearSelector() |
TransactionSelector.Builder |
clearSingleUse()
Execute the read or SQL query in a temporary transaction.
|
TransactionSelector.Builder |
clone() |
TransactionOptions |
getBegin()
Begin a new transaction and execute this read or SQL query in
it.
|
TransactionOptions.Builder |
getBeginBuilder()
Begin a new transaction and execute this read or SQL query in
it.
|
TransactionOptionsOrBuilder |
getBeginOrBuilder()
Begin a new transaction and execute this read or SQL query in
it.
|
TransactionSelector |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getId()
Execute the read or SQL query in a previously-started transaction.
|
TransactionSelector.SelectorCase |
getSelectorCase() |
TransactionOptions |
getSingleUse()
Execute the read or SQL query in a temporary transaction.
|
TransactionOptions.Builder |
getSingleUseBuilder()
Execute the read or SQL query in a temporary transaction.
|
TransactionOptionsOrBuilder |
getSingleUseOrBuilder()
Execute the read or SQL query in a temporary transaction.
|
boolean |
hasBegin()
Begin a new transaction and execute this read or SQL query in
it.
|
boolean |
hasSingleUse()
Execute the read or SQL query in a temporary transaction.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TransactionSelector.Builder |
mergeBegin(TransactionOptions value)
Begin a new transaction and execute this read or SQL query in
it.
|
TransactionSelector.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TransactionSelector.Builder |
mergeFrom(com.google.protobuf.Message other) |
TransactionSelector.Builder |
mergeFrom(TransactionSelector other) |
TransactionSelector.Builder |
mergeSingleUse(TransactionOptions value)
Execute the read or SQL query in a temporary transaction.
|
TransactionSelector.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TransactionSelector.Builder |
setBegin(TransactionOptions.Builder builderForValue)
Begin a new transaction and execute this read or SQL query in
it.
|
TransactionSelector.Builder |
setBegin(TransactionOptions value)
Begin a new transaction and execute this read or SQL query in
it.
|
TransactionSelector.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
TransactionSelector.Builder |
setId(com.google.protobuf.ByteString value)
Execute the read or SQL query in a previously-started transaction.
|
TransactionSelector.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
TransactionSelector.Builder |
setSingleUse(TransactionOptions.Builder builderForValue)
Execute the read or SQL query in a temporary transaction.
|
TransactionSelector.Builder |
setSingleUse(TransactionOptions value)
Execute the read or SQL query in a temporary transaction.
|
TransactionSelector.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionSelector.Builder>public TransactionSelector.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionSelector.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionSelector.Builder>public TransactionSelector getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TransactionSelector build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TransactionSelector buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TransactionSelector.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionSelector.Builder>public TransactionSelector.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionSelector.Builder>public TransactionSelector.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionSelector.Builder>public TransactionSelector.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionSelector.Builder>public TransactionSelector.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionSelector.Builder>public TransactionSelector.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionSelector.Builder>public TransactionSelector.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransactionSelector.Builder>public TransactionSelector.Builder mergeFrom(TransactionSelector other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionSelector.Builder>public TransactionSelector.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.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 com.google.protobuf.ByteString getId()
Execute the read or SQL query in a previously-started transaction.
bytes id = 2;getId in interface TransactionSelectorOrBuilderpublic TransactionSelector.Builder setId(com.google.protobuf.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(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionSelector.Builder>public final TransactionSelector.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionSelector.Builder>