Class TransactionExecutionOptions.Builder (6.58.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TransactionExecutionOptions build()
Returns
TypeDescription
TransactionExecutionOptions

buildPartial()

public TransactionExecutionOptions buildPartial()
Returns
TypeDescription
TransactionExecutionOptions

clear()

public TransactionExecutionOptions.Builder clear()
Returns
TypeDescription
TransactionExecutionOptions.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public TransactionExecutionOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TransactionExecutionOptions.Builder
Overrides

clearOptimistic()

public TransactionExecutionOptions.Builder clearOptimistic()

Whether optimistic concurrency should be used to execute this transaction.

bool optimistic = 1;

Returns
TypeDescription
TransactionExecutionOptions.Builder

This builder for chaining.

clone()

public TransactionExecutionOptions.Builder clone()
Returns
TypeDescription
TransactionExecutionOptions.Builder
Overrides

getDefaultInstanceForType()

public TransactionExecutionOptions getDefaultInstanceForType()
Returns
TypeDescription
TransactionExecutionOptions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getOptimistic()

public boolean getOptimistic()

Whether optimistic concurrency should be used to execute this transaction.

bool optimistic = 1;

Returns
TypeDescription
boolean

The optimistic.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(TransactionExecutionOptions other)

public TransactionExecutionOptions.Builder mergeFrom(TransactionExecutionOptions other)
Parameter
NameDescription
otherTransactionExecutionOptions
Returns
TypeDescription
TransactionExecutionOptions.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TransactionExecutionOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TransactionExecutionOptions.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TransactionExecutionOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueboolean

The optimistic to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TransactionExecutionOptions.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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