Send feedback Class TransactionSelector Stay organized with collections Save and categorize content based on your preferences.
Version 6.14.1keyboard_arrow_down
public final class TransactionSelector extends GeneratedMessageV3 implements TransactionSelectorOrBuilder
This message is used to select the transaction in which a Read or ExecuteSql call runs. See TransactionOptions for more information about transactions.
Protobuf type google.spanner.v1.TransactionSelector
Fields BEGIN_FIELD_NUMBER
public static final int BEGIN_FIELD_NUMBER
Field Value ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
Field Value SINGLE_USE_FIELD_NUMBER
public static final int SINGLE_USE_FIELD_NUMBER
Field Value Methods equals(Object obj)
public boolean equals ( Object obj )
Parameter Returns Overrides 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 , which is a Transaction .
.google.spanner.v1.TransactionOptions begin = 3;
Returns 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 , which is a Transaction .
.google.spanner.v1.TransactionOptions begin = 3;
Returns getDefaultInstance()
public static TransactionSelector getDefaultInstance ()
Returns getDefaultInstanceForType()
public TransactionSelector getDefaultInstanceForType ()
Returns getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns getId()
public ByteString getId ()
Execute the read or SQL query in a previously-started transaction.
bytes id = 2;
Returns getParserForType()
public Parser<TransactionSelector> getParserForType ()
Returns Overrides getSelectorCase()
public TransactionSelector . SelectorCase getSelectorCase ()
Returns getSerializedSize()
public int getSerializedSize ()
Returns Overrides 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;
Returns 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;
Returns getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
Returns Overrides 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 , which is a Transaction .
.google.spanner.v1.TransactionOptions begin = 3;
Returns Type Description boolean Whether the begin field is set.
hasId() Execute the read or SQL query in a previously-started transaction.
bytes id = 2;
Returns Type Description boolean Whether the id field is set.
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;
Returns Type Description boolean Whether the singleUse field is set.
hashCode() Returns Overrides internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns Overrides isInitialized()
public final boolean isInitialized ()
Returns Overrides newBuilder()
public static TransactionSelector . Builder newBuilder ()
Returns newBuilder(TransactionSelector )
public static TransactionSelector . Builder newBuilder ( TransactionSelector )
Parameter Returns newBuilderForType()
public TransactionSelector . Builder newBuilderForType ()
Returns newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected TransactionSelector . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter Returns Overrides newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter Returns Overrides
public static TransactionSelector parseDelimitedFrom ( InputStream input )
Parameter Returns Exceptions
public static TransactionSelector parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters Returns Exceptions parseFrom(byte[] data)
public static TransactionSelector parseFrom ( byte [] data )
Parameter Name Description data byte []
Returns Exceptions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TransactionSelector parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters Returns Exceptions parseFrom(ByteString data)
public static TransactionSelector parseFrom ( ByteString data )
Parameter Returns Exceptions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TransactionSelector parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters Returns Exceptions
public static TransactionSelector parseFrom ( CodedInputStream input )
Parameter Returns Exceptions
public static TransactionSelector parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters Returns Exceptions
public static TransactionSelector parseFrom ( InputStream input )
Parameter Returns Exceptions
public static TransactionSelector parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters Returns Exceptions parseFrom(ByteBuffer data)
public static TransactionSelector parseFrom ( ByteBuffer data )
Parameter Returns Exceptions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static TransactionSelector parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters Returns Exceptions parser()
public static Parser<TransactionSelector> parser ()
Returns toBuilder()
public TransactionSelector . Builder toBuilder ()
Returns writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Parameter Overrides Exceptions Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-10 UTC.
Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-10 UTC."],[],[]]