Class StartTransactionAction (6.74.0)

public final class StartTransactionAction extends GeneratedMessageV3 implements StartTransactionActionOrBuilder

StartTransactionAction defines an action of initializing a transaction.

Protobuf type google.spanner.executor.v1.StartTransactionAction

Static Fields

CONCURRENCY_FIELD_NUMBER

public static final int CONCURRENCY_FIELD_NUMBER
Field Value
Type Description
int

EXECUTION_OPTIONS_FIELD_NUMBER

public static final int EXECUTION_OPTIONS_FIELD_NUMBER
Field Value
Type Description
int

TABLE_FIELD_NUMBER

public static final int TABLE_FIELD_NUMBER
Field Value
Type Description
int

TRANSACTION_SEED_FIELD_NUMBER

public static final int TRANSACTION_SEED_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static StartTransactionAction getDefaultInstance()
Returns
Type Description
StartTransactionAction

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static StartTransactionAction.Builder newBuilder()
Returns
Type Description
StartTransactionAction.Builder

newBuilder(StartTransactionAction prototype)

public static StartTransactionAction.Builder newBuilder(StartTransactionAction prototype)
Parameter
Name Description
prototype StartTransactionAction
Returns
Type Description
StartTransactionAction.Builder

parseDelimitedFrom(InputStream input)

public static StartTransactionAction parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StartTransactionAction
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StartTransactionAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StartTransactionAction
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static StartTransactionAction parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
StartTransactionAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static StartTransactionAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StartTransactionAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static StartTransactionAction parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
StartTransactionAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static StartTransactionAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StartTransactionAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static StartTransactionAction parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
StartTransactionAction
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static StartTransactionAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StartTransactionAction
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static StartTransactionAction parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StartTransactionAction
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StartTransactionAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StartTransactionAction
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static StartTransactionAction parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
StartTransactionAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static StartTransactionAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StartTransactionAction
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<StartTransactionAction> parser()
Returns
Type Description
Parser<StartTransactionAction>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getConcurrency()

public Concurrency getConcurrency()

Concurrency is for read-only transactions and must be omitted for read-write transactions.

optional .google.spanner.executor.v1.Concurrency concurrency = 1;

Returns
Type Description
Concurrency

The concurrency.

getConcurrencyOrBuilder()

public ConcurrencyOrBuilder getConcurrencyOrBuilder()

Concurrency is for read-only transactions and must be omitted for read-write transactions.

optional .google.spanner.executor.v1.Concurrency concurrency = 1;

Returns
Type Description
ConcurrencyOrBuilder

getDefaultInstanceForType()

public StartTransactionAction getDefaultInstanceForType()
Returns
Type Description
StartTransactionAction

getExecutionOptions()

public TransactionExecutionOptions getExecutionOptions()

Execution options (e.g., whether transaction is opaque, optimistic).

optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;

Returns
Type Description
TransactionExecutionOptions

The executionOptions.

getExecutionOptionsOrBuilder()

public TransactionExecutionOptionsOrBuilder getExecutionOptionsOrBuilder()

Execution options (e.g., whether transaction is opaque, optimistic).

optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;

Returns
Type Description
TransactionExecutionOptionsOrBuilder

getParserForType()

public Parser<StartTransactionAction> getParserForType()
Returns
Type Description
Parser<StartTransactionAction>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTable(int index)

public TableMetadata getTable(int index)

Metadata about tables and columns that will be involved in this transaction. It is to convert values of key parts correctly.

repeated .google.spanner.executor.v1.TableMetadata table = 2;

Parameter
Name Description
index int
Returns
Type Description
TableMetadata

getTableCount()

public int getTableCount()

Metadata about tables and columns that will be involved in this transaction. It is to convert values of key parts correctly.

repeated .google.spanner.executor.v1.TableMetadata table = 2;

Returns
Type Description
int

getTableList()

public List<TableMetadata> getTableList()

Metadata about tables and columns that will be involved in this transaction. It is to convert values of key parts correctly.

repeated .google.spanner.executor.v1.TableMetadata table = 2;

Returns
Type Description
List<TableMetadata>

getTableOrBuilder(int index)

public TableMetadataOrBuilder getTableOrBuilder(int index)

Metadata about tables and columns that will be involved in this transaction. It is to convert values of key parts correctly.

repeated .google.spanner.executor.v1.TableMetadata table = 2;

Parameter
Name Description
index int
Returns
Type Description
TableMetadataOrBuilder

getTableOrBuilderList()

public List<? extends TableMetadataOrBuilder> getTableOrBuilderList()

Metadata about tables and columns that will be involved in this transaction. It is to convert values of key parts correctly.

repeated .google.spanner.executor.v1.TableMetadata table = 2;

Returns
Type Description
List<? extends com.google.spanner.executor.v1.TableMetadataOrBuilder>

getTransactionSeed()

public String getTransactionSeed()

Transaction_seed contains workid and op pair for this transaction, used for testing.

string transaction_seed = 3;

Returns
Type Description
String

The transactionSeed.

getTransactionSeedBytes()

public ByteString getTransactionSeedBytes()

Transaction_seed contains workid and op pair for this transaction, used for testing.

string transaction_seed = 3;

Returns
Type Description
ByteString

The bytes for transactionSeed.

hasConcurrency()

public boolean hasConcurrency()

Concurrency is for read-only transactions and must be omitted for read-write transactions.

optional .google.spanner.executor.v1.Concurrency concurrency = 1;

Returns
Type Description
boolean

Whether the concurrency field is set.

hasExecutionOptions()

public boolean hasExecutionOptions()

Execution options (e.g., whether transaction is opaque, optimistic).

optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;

Returns
Type Description
boolean

Whether the executionOptions field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public StartTransactionAction.Builder newBuilderForType()
Returns
Type Description
StartTransactionAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected StartTransactionAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
StartTransactionAction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public StartTransactionAction.Builder toBuilder()
Returns
Type Description
StartTransactionAction.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException