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)
Overrides
toBuilder()
public TransactionSelector.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides