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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > TransactionSelectorImplements
TransactionSelectorOrBuilderFields
BEGIN_FIELD_NUMBER
public static final int BEGIN_FIELD_NUMBER
Type | Description |
int |
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
Type | Description |
int |
SINGLE_USE_FIELD_NUMBER
public static final int SINGLE_USE_FIELD_NUMBER
Type | Description |
int |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
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;
Type | Description |
TransactionOptions | The begin. |
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;
Type | Description |
TransactionOptionsOrBuilder |
getDefaultInstance()
public static TransactionSelector getDefaultInstance()
Type | Description |
TransactionSelector |
getDefaultInstanceForType()
public TransactionSelector getDefaultInstanceForType()
Type | Description |
TransactionSelector |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
getId()
public ByteString getId()
Execute the read or SQL query in a previously-started transaction.
bytes id = 2;
Type | Description |
ByteString | The id. |
getParserForType()
public Parser<TransactionSelector> getParserForType()
Type | Description |
Parser<TransactionSelector> |
getSelectorCase()
public TransactionSelector.SelectorCase getSelectorCase()
Type | Description |
TransactionSelector.SelectorCase |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
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;
Type | Description |
TransactionOptions | The singleUse. |
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;
Type | Description |
TransactionOptionsOrBuilder |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
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;
Type | Description |
boolean | Whether the begin field is set. |
hasId()
public boolean hasId()
Execute the read or SQL query in a previously-started transaction.
bytes id = 2;
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;
Type | Description |
boolean | Whether the singleUse field is set. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilder()
public static TransactionSelector.Builder newBuilder()
Type | Description |
TransactionSelector.Builder |
newBuilder(TransactionSelector prototype)
public static TransactionSelector.Builder newBuilder(TransactionSelector prototype)
Name | Description |
prototype | TransactionSelector |
Type | Description |
TransactionSelector.Builder |
newBuilderForType()
public TransactionSelector.Builder newBuilderForType()
Type | Description |
TransactionSelector.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected TransactionSelector.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
TransactionSelector.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
parseDelimitedFrom(InputStream input)
public static TransactionSelector parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
TransactionSelector |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static TransactionSelector parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TransactionSelector |
Type | Description |
IOException |
parseFrom(byte[] data)
public static TransactionSelector parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
TransactionSelector |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TransactionSelector parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TransactionSelector |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static TransactionSelector parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
TransactionSelector |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TransactionSelector parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TransactionSelector |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static TransactionSelector parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
TransactionSelector |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static TransactionSelector parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TransactionSelector |
Type | Description |
IOException |
parseFrom(InputStream input)
public static TransactionSelector parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
TransactionSelector |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static TransactionSelector parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TransactionSelector |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static TransactionSelector parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
TransactionSelector |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static TransactionSelector parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TransactionSelector |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<TransactionSelector> parser()
Type | Description |
Parser<TransactionSelector> |
toBuilder()
public TransactionSelector.Builder toBuilder()
Type | Description |
TransactionSelector.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |