Package com.google.spanner.v1
Class TransactionSelector.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TransactionSelector.Builder>
-
- com.google.spanner.v1.TransactionSelector.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,TransactionSelectorOrBuilder,Cloneable
- Enclosing class:
- TransactionSelector
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 typegoogle.spanner.v1.TransactionSelector
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransactionSelector.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TransactionSelectorbuild()TransactionSelectorbuildPartial()TransactionSelector.Builderclear()TransactionSelector.BuilderclearBegin()Begin a new transaction and execute this read or SQL query in it.TransactionSelector.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)TransactionSelector.BuilderclearId()Execute the read or SQL query in a previously-started transaction.TransactionSelector.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)TransactionSelector.BuilderclearSelector()TransactionSelector.BuilderclearSingleUse()Execute the read or SQL query in a temporary transaction.TransactionSelector.Builderclone()TransactionOptionsgetBegin()Begin a new transaction and execute this read or SQL query in it.TransactionOptions.BuildergetBeginBuilder()Begin a new transaction and execute this read or SQL query in it.TransactionOptionsOrBuildergetBeginOrBuilder()Begin a new transaction and execute this read or SQL query in it.TransactionSelectorgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.ByteStringgetId()Execute the read or SQL query in a previously-started transaction.TransactionSelector.SelectorCasegetSelectorCase()TransactionOptionsgetSingleUse()Execute the read or SQL query in a temporary transaction.TransactionOptions.BuildergetSingleUseBuilder()Execute the read or SQL query in a temporary transaction.TransactionOptionsOrBuildergetSingleUseOrBuilder()Execute the read or SQL query in a temporary transaction.booleanhasBegin()Begin a new transaction and execute this read or SQL query in it.booleanhasId()Execute the read or SQL query in a previously-started transaction.booleanhasSingleUse()Execute the read or SQL query in a temporary transaction.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()TransactionSelector.BuildermergeBegin(TransactionOptions value)Begin a new transaction and execute this read or SQL query in it.TransactionSelector.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TransactionSelector.BuildermergeFrom(com.google.protobuf.Message other)TransactionSelector.BuildermergeFrom(TransactionSelector other)TransactionSelector.BuildermergeSingleUse(TransactionOptions value)Execute the read or SQL query in a temporary transaction.TransactionSelector.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TransactionSelector.BuildersetBegin(TransactionOptions value)Begin a new transaction and execute this read or SQL query in it.TransactionSelector.BuildersetBegin(TransactionOptions.Builder builderForValue)Begin a new transaction and execute this read or SQL query in it.TransactionSelector.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TransactionSelector.BuildersetId(com.google.protobuf.ByteString value)Execute the read or SQL query in a previously-started transaction.TransactionSelector.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)TransactionSelector.BuildersetSingleUse(TransactionOptions value)Execute the read or SQL query in a temporary transaction.TransactionSelector.BuildersetSingleUse(TransactionOptions.Builder builderForValue)Execute the read or SQL query in a temporary transaction.TransactionSelector.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionSelector.Builder>
-
clear
public TransactionSelector.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionSelector.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionSelector.Builder>
-
getDefaultInstanceForType
public TransactionSelector getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TransactionSelector build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TransactionSelector buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TransactionSelector.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionSelector.Builder>
-
setField
public TransactionSelector.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionSelector.Builder>
-
clearField
public TransactionSelector.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionSelector.Builder>
-
clearOneof
public TransactionSelector.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionSelector.Builder>
-
setRepeatedField
public TransactionSelector.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionSelector.Builder>
-
addRepeatedField
public TransactionSelector.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionSelector.Builder>
-
mergeFrom
public TransactionSelector.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TransactionSelector.Builder>
-
mergeFrom
public TransactionSelector.Builder mergeFrom(TransactionSelector other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionSelector.Builder>
-
mergeFrom
public TransactionSelector.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TransactionSelector.Builder>- Throws:
IOException
-
getSelectorCase
public TransactionSelector.SelectorCase getSelectorCase()
- Specified by:
getSelectorCasein interfaceTransactionSelectorOrBuilder
-
clearSelector
public TransactionSelector.Builder clearSelector()
-
hasSingleUse
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;- Specified by:
hasSingleUsein interfaceTransactionSelectorOrBuilder- Returns:
- Whether the singleUse field is set.
-
getSingleUse
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;- Specified by:
getSingleUsein interfaceTransactionSelectorOrBuilder- Returns:
- The singleUse.
-
setSingleUse
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;
-
setSingleUse
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;
-
mergeSingleUse
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;
-
clearSingleUse
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;
-
getSingleUseBuilder
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;
-
getSingleUseOrBuilder
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;- Specified by:
getSingleUseOrBuilderin interfaceTransactionSelectorOrBuilder
-
hasId
public boolean hasId()
Execute the read or SQL query in a previously-started transaction.
bytes id = 2;- Specified by:
hasIdin interfaceTransactionSelectorOrBuilder- Returns:
- Whether the id field is set.
-
getId
public com.google.protobuf.ByteString getId()
Execute the read or SQL query in a previously-started transaction.
bytes id = 2;- Specified by:
getIdin interfaceTransactionSelectorOrBuilder- Returns:
- The id.
-
setId
public TransactionSelector.Builder setId(com.google.protobuf.ByteString value)
Execute the read or SQL query in a previously-started transaction.
bytes id = 2;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
public TransactionSelector.Builder clearId()
Execute the read or SQL query in a previously-started transaction.
bytes id = 2;- Returns:
- This builder for chaining.
-
hasBegin
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;- Specified by:
hasBeginin interfaceTransactionSelectorOrBuilder- Returns:
- Whether the begin field is set.
-
getBegin
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;- Specified by:
getBeginin interfaceTransactionSelectorOrBuilder- Returns:
- The begin.
-
setBegin
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;
-
setBegin
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;
-
mergeBegin
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;
-
clearBegin
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;
-
getBeginBuilder
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;
-
getBeginOrBuilder
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;- Specified by:
getBeginOrBuilderin interfaceTransactionSelectorOrBuilder
-
setUnknownFields
public final TransactionSelector.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionSelector.Builder>
-
mergeUnknownFields
public final TransactionSelector.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionSelector.Builder>
-
-