Send feedback
Class TransactionSelector (6.74.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 6.74.0 keyboard_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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
BEGIN_FIELD_NUMBER
public static final int BEGIN_FIELD_NUMBER
Field Value
Type
Description
int
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
Field Value
Type
Description
int
SINGLE_USE_FIELD_NUMBER
public static final int SINGLE_USE_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static TransactionSelector getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static TransactionSelector . Builder newBuilder ()
newBuilder(TransactionSelector prototype)
public static TransactionSelector . Builder newBuilder ( TransactionSelector prototype )
public static TransactionSelector parseDelimitedFrom ( InputStream input )
public static TransactionSelector parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static TransactionSelector parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TransactionSelector parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static TransactionSelector parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TransactionSelector parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static TransactionSelector parseFrom ( CodedInputStream input )
public static TransactionSelector parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static TransactionSelector parseFrom ( InputStream input )
public static TransactionSelector parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static TransactionSelector parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static TransactionSelector parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<TransactionSelector> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
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;
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;
getDefaultInstanceForType()
public TransactionSelector getDefaultInstanceForType ()
getId()
public ByteString getId ()
Execute the read or SQL query in a previously-started transaction.
bytes id = 2;
getParserForType()
public Parser<TransactionSelector> getParserForType ()
Overrides
getSelectorCase()
public TransactionSelector . SelectorCase getSelectorCase ()
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
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;
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;
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
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public TransactionSelector . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected TransactionSelector . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public TransactionSelector . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
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-01-27 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-01-27 UTC."],[],[]]