Class StartTransactionAction.Builder (6.60.0)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.spanner.executor.v1.TableMetadata>
Returns
TypeDescription
StartTransactionAction.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StartTransactionAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueTableMetadata
Returns
TypeDescription
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
NameDescription
builderForValueTableMetadata.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueTableMetadata
Returns
TypeDescription
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
NameDescription
indexint
builderForValueTableMetadata.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
TableMetadata.Builder

build()

public StartTransactionAction build()
Returns
TypeDescription
StartTransactionAction

buildPartial()

public StartTransactionAction buildPartial()
Returns
TypeDescription
StartTransactionAction

clear()

public StartTransactionAction.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
StartTransactionAction.Builder

clearField(Descriptors.FieldDescriptor field)

public StartTransactionAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
StartTransactionAction.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StartTransactionAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
StartTransactionAction.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public StartTransactionAction getDefaultInstanceForType()
Returns
TypeDescription
StartTransactionAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueConcurrency
Returns
TypeDescription
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
NameDescription
valueTransactionExecutionOptions
Returns
TypeDescription
StartTransactionAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StartTransactionAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StartTransactionAction.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public StartTransactionAction.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
StartTransactionAction.Builder
Overrides

mergeFrom(StartTransactionAction other)

public StartTransactionAction.Builder mergeFrom(StartTransactionAction other)
Parameter
NameDescription
otherStartTransactionAction
Returns
TypeDescription
StartTransactionAction.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StartTransactionAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueConcurrency
Returns
TypeDescription
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
NameDescription
builderForValueConcurrency.Builder
Returns
TypeDescription
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
NameDescription
valueTransactionExecutionOptions
Returns
TypeDescription
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
NameDescription
builderForValueTransactionExecutionOptions.Builder
Returns
TypeDescription
StartTransactionAction.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public StartTransactionAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StartTransactionAction.Builder
Overrides

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

public StartTransactionAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueTableMetadata
Returns
TypeDescription
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
NameDescription
indexint
builderForValueTableMetadata.Builder
Returns
TypeDescription
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
NameDescription
valueString

The transactionSeed to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for transactionSeed to set.

Returns
TypeDescription
StartTransactionAction.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final StartTransactionAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StartTransactionAction.Builder
Overrides