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.TransactionSelector
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<TransactionSelector.Builder>
public TransactionSelector.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<TransactionSelector.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<TransactionSelector.Builder>
public TransactionSelector getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public TransactionSelector build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public TransactionSelector buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public TransactionSelector.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<TransactionSelector.Builder>
public TransactionSelector.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<TransactionSelector.Builder>
public TransactionSelector.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<TransactionSelector.Builder>
public TransactionSelector.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<TransactionSelector.Builder>
public TransactionSelector.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<TransactionSelector.Builder>
public TransactionSelector.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<TransactionSelector.Builder>
public TransactionSelector.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<TransactionSelector.Builder>
public TransactionSelector.Builder mergeFrom(TransactionSelector other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<TransactionSelector.Builder>
public TransactionSelector.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<TransactionSelector.Builder>
IOException
public TransactionSelector.SelectorCase getSelectorCase()
getSelectorCase
in interface TransactionSelectorOrBuilder
public 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 TransactionSelectorOrBuilder
public 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 TransactionSelectorOrBuilder
public 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 TransactionSelectorOrBuilder
public boolean hasId()
Execute the read or SQL query in a previously-started transaction.
bytes id = 2;
hasId
in interface TransactionSelectorOrBuilder
public ByteString getId()
Execute the read or SQL query in a previously-started transaction.
bytes id = 2;
getId
in interface TransactionSelectorOrBuilder
public TransactionSelector.Builder setId(ByteString value)
Execute the read or SQL query in a previously-started transaction.
bytes id = 2;
value
- The id to set.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 TransactionSelectorOrBuilder
public 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 TransactionSelectorOrBuilder
public 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 TransactionSelectorOrBuilder
public final TransactionSelector.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<TransactionSelector.Builder>
public final TransactionSelector.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<TransactionSelector.Builder>
Copyright © 2022 Google LLC. All rights reserved.