Class TransactionExecutionOptions.Builder (6.68.0)

public static final class TransactionExecutionOptions.Builder extends GeneratedMessageV3.Builder<TransactionExecutionOptions.Builder> implements TransactionExecutionOptionsOrBuilder

Options for executing the transaction.

Protobuf type google.spanner.executor.v1.TransactionExecutionOptions

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TransactionExecutionOptions build()
Returns
Type Description
TransactionExecutionOptions

buildPartial()

public TransactionExecutionOptions buildPartial()
Returns
Type Description
TransactionExecutionOptions

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOptimistic()

public TransactionExecutionOptions.Builder clearOptimistic()

Whether optimistic concurrency should be used to execute this transaction.

bool optimistic = 1;

Returns
Type Description
TransactionExecutionOptions.Builder

This builder for chaining.

clone()

public TransactionExecutionOptions.Builder clone()
Returns
Type Description
TransactionExecutionOptions.Builder
Overrides

getDefaultInstanceForType()

public TransactionExecutionOptions getDefaultInstanceForType()
Returns
Type Description
TransactionExecutionOptions

getDescriptorForType()

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

getOptimistic()

public boolean getOptimistic()

Whether optimistic concurrency should be used to execute this transaction.

bool optimistic = 1;

Returns
Type Description
boolean

The optimistic.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(TransactionExecutionOptions other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setOptimistic(boolean value)

public TransactionExecutionOptions.Builder setOptimistic(boolean value)

Whether optimistic concurrency should be used to execute this transaction.

bool optimistic = 1;

Parameter
Name Description
value boolean

The optimistic to set.

Returns
Type Description
TransactionExecutionOptions.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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