Class StartTransactionAction (6.57.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
TypeDescription
int

EXECUTION_OPTIONS_FIELD_NUMBER

public static final int EXECUTION_OPTIONS_FIELD_NUMBER
Field Value
TypeDescription
int

TABLE_FIELD_NUMBER

public static final int TABLE_FIELD_NUMBER
Field Value
TypeDescription
int

TRANSACTION_SEED_FIELD_NUMBER

public static final int TRANSACTION_SEED_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static StartTransactionAction getDefaultInstance()
Returns
TypeDescription
StartTransactionAction

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static StartTransactionAction.Builder newBuilder()
Returns
TypeDescription
StartTransactionAction.Builder

newBuilder(StartTransactionAction prototype)

public static StartTransactionAction.Builder newBuilder(StartTransactionAction prototype)
Parameter
NameDescription
prototypeStartTransactionAction
Returns
TypeDescription
StartTransactionAction.Builder

parseDelimitedFrom(InputStream input)

public static StartTransactionAction parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
StartTransactionAction
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StartTransactionAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StartTransactionAction
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static StartTransactionAction parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
StartTransactionAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static StartTransactionAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StartTransactionAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static StartTransactionAction parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
StartTransactionAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static StartTransactionAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StartTransactionAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static StartTransactionAction parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
StartTransactionAction
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static StartTransactionAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StartTransactionAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static StartTransactionAction parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
StartTransactionAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StartTransactionAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StartTransactionAction
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static StartTransactionAction parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
StartTransactionAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static StartTransactionAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StartTransactionAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<StartTransactionAction> parser()
Returns
TypeDescription
Parser<StartTransactionAction>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ConcurrencyOrBuilder

getDefaultInstanceForType()

public StartTransactionAction getDefaultInstanceForType()
Returns
TypeDescription
StartTransactionAction

getExecutionOptions()

public TransactionExecutionOptions getExecutionOptions()

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

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

Returns
TypeDescription
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
TypeDescription
TransactionExecutionOptionsOrBuilder

getParserForType()

public Parser<StartTransactionAction> getParserForType()
Returns
TypeDescription
Parser<StartTransactionAction>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the executionOptions field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public StartTransactionAction.Builder newBuilderForType()
Returns
TypeDescription
StartTransactionAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected StartTransactionAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
StartTransactionAction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public StartTransactionAction.Builder toBuilder()
Returns
TypeDescription
StartTransactionAction.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException