Class StartTransactionAction.Builder (6.74.1)

public static final class StartTransactionAction.Builder extends GeneratedMessageV3.Builder<StartTransactionAction.Builder> implements StartTransactionActionOrBuilder

StartTransactionAction defines an action of initializing a transaction.

Protobuf type google.spanner.executor.v1.StartTransactionAction

Static Methods

getDescriptor()

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

Methods

addAllTable(Iterable<? extends TableMetadata> values)

public StartTransactionAction.Builder addAllTable(Iterable<? extends TableMetadata> values)

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
values Iterable<? extends com.google.spanner.executor.v1.TableMetadata>
Returns
Type Description
StartTransactionAction.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StartTransactionAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StartTransactionAction.Builder
Overrides

addTable(TableMetadata value)

public StartTransactionAction.Builder addTable(TableMetadata value)

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
value TableMetadata
Returns
Type Description
StartTransactionAction.Builder

addTable(TableMetadata.Builder builderForValue)

public StartTransactionAction.Builder addTable(TableMetadata.Builder builderForValue)

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
builderForValue TableMetadata.Builder
Returns
Type Description
StartTransactionAction.Builder

addTable(int index, TableMetadata value)

public StartTransactionAction.Builder addTable(int index, TableMetadata value)

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;

Parameters
Name Description
index int
value TableMetadata
Returns
Type Description
StartTransactionAction.Builder

addTable(int index, TableMetadata.Builder builderForValue)

public StartTransactionAction.Builder addTable(int index, TableMetadata.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue TableMetadata.Builder
Returns
Type Description
StartTransactionAction.Builder

addTableBuilder()

public TableMetadata.Builder addTableBuilder()

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
TableMetadata.Builder

addTableBuilder(int index)

public TableMetadata.Builder addTableBuilder(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.Builder

build()

public StartTransactionAction build()
Returns
Type Description
StartTransactionAction

buildPartial()

public StartTransactionAction buildPartial()
Returns
Type Description
StartTransactionAction

clear()

public StartTransactionAction.Builder clear()
Returns
Type Description
StartTransactionAction.Builder
Overrides

clearConcurrency()

public StartTransactionAction.Builder clearConcurrency()

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
StartTransactionAction.Builder

clearExecutionOptions()

public StartTransactionAction.Builder clearExecutionOptions()

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

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

Returns
Type Description
StartTransactionAction.Builder

clearField(Descriptors.FieldDescriptor field)

public StartTransactionAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StartTransactionAction.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StartTransactionAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
StartTransactionAction.Builder
Overrides

clearTable()

public StartTransactionAction.Builder clearTable()

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
StartTransactionAction.Builder

clearTransactionSeed()

public StartTransactionAction.Builder clearTransactionSeed()

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

string transaction_seed = 3;

Returns
Type Description
StartTransactionAction.Builder

This builder for chaining.

clone()

public StartTransactionAction.Builder clone()
Returns
Type Description
StartTransactionAction.Builder
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.

getConcurrencyBuilder()

public Concurrency.Builder getConcurrencyBuilder()

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.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getExecutionOptionsBuilder()

public TransactionExecutionOptions.Builder getExecutionOptionsBuilder()

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

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

Returns
Type Description
TransactionExecutionOptions.Builder

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

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

getTableBuilder(int index)

public TableMetadata.Builder getTableBuilder(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.Builder

getTableBuilderList()

public List<TableMetadata.Builder> getTableBuilderList()

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<Builder>

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeConcurrency(Concurrency value)

public StartTransactionAction.Builder mergeConcurrency(Concurrency value)

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

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

Parameter
Name Description
value Concurrency
Returns
Type Description
StartTransactionAction.Builder

mergeExecutionOptions(TransactionExecutionOptions value)

public StartTransactionAction.Builder mergeExecutionOptions(TransactionExecutionOptions value)

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

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

Parameter
Name Description
value TransactionExecutionOptions
Returns
Type Description
StartTransactionAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StartTransactionAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StartTransactionAction.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StartTransactionAction.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StartTransactionAction.Builder
Overrides

mergeFrom(StartTransactionAction other)

public StartTransactionAction.Builder mergeFrom(StartTransactionAction other)
Parameter
Name Description
other StartTransactionAction
Returns
Type Description
StartTransactionAction.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StartTransactionAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StartTransactionAction.Builder
Overrides

removeTable(int index)

public StartTransactionAction.Builder removeTable(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
StartTransactionAction.Builder

setConcurrency(Concurrency value)

public StartTransactionAction.Builder setConcurrency(Concurrency value)

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

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

Parameter
Name Description
value Concurrency
Returns
Type Description
StartTransactionAction.Builder

setConcurrency(Concurrency.Builder builderForValue)

public StartTransactionAction.Builder setConcurrency(Concurrency.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue Concurrency.Builder
Returns
Type Description
StartTransactionAction.Builder

setExecutionOptions(TransactionExecutionOptions value)

public StartTransactionAction.Builder setExecutionOptions(TransactionExecutionOptions value)

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

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

Parameter
Name Description
value TransactionExecutionOptions
Returns
Type Description
StartTransactionAction.Builder

setExecutionOptions(TransactionExecutionOptions.Builder builderForValue)

public StartTransactionAction.Builder setExecutionOptions(TransactionExecutionOptions.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue TransactionExecutionOptions.Builder
Returns
Type Description
StartTransactionAction.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public StartTransactionAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StartTransactionAction.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public StartTransactionAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StartTransactionAction.Builder
Overrides

setTable(int index, TableMetadata value)

public StartTransactionAction.Builder setTable(int index, TableMetadata value)

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;

Parameters
Name Description
index int
value TableMetadata
Returns
Type Description
StartTransactionAction.Builder

setTable(int index, TableMetadata.Builder builderForValue)

public StartTransactionAction.Builder setTable(int index, TableMetadata.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue TableMetadata.Builder
Returns
Type Description
StartTransactionAction.Builder

setTransactionSeed(String value)

public StartTransactionAction.Builder setTransactionSeed(String value)

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

string transaction_seed = 3;

Parameter
Name Description
value String

The transactionSeed to set.

Returns
Type Description
StartTransactionAction.Builder

This builder for chaining.

setTransactionSeedBytes(ByteString value)

public StartTransactionAction.Builder setTransactionSeedBytes(ByteString value)

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

string transaction_seed = 3;

Parameter
Name Description
value ByteString

The bytes for transactionSeed to set.

Returns
Type Description
StartTransactionAction.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final StartTransactionAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StartTransactionAction.Builder
Overrides