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 prototype)
public static TransactionSelector.Builder newBuilder(TransactionSelector prototype)
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