Class CloseBatchTransactionAction.Builder (6.69.0)

public static final class CloseBatchTransactionAction.Builder extends GeneratedMessageV3.Builder<CloseBatchTransactionAction.Builder> implements CloseBatchTransactionActionOrBuilder

Closes or cleans up the currently opened batch read-only transaction.

Once a transaction is closed, the Executor can be disposed of or used to start start another transaction. Closing a batch transaction in one Executor doesn't affect the transaction's state in other Executors that also read from it.

When a transaction is cleaned up, it becomes globally invalid. Cleaning up is optional, but recommended.

Protobuf type google.spanner.executor.v1.CloseBatchTransactionAction

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CloseBatchTransactionAction build()
Returns
Type Description
CloseBatchTransactionAction

buildPartial()

public CloseBatchTransactionAction buildPartial()
Returns
Type Description
CloseBatchTransactionAction

clear()

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

clearCleanup()

public CloseBatchTransactionAction.Builder clearCleanup()

Indicates whether the transaction needs to be cleaned up.

bool cleanup = 1;

Returns
Type Description
CloseBatchTransactionAction.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCleanup()

public boolean getCleanup()

Indicates whether the transaction needs to be cleaned up.

bool cleanup = 1;

Returns
Type Description
boolean

The cleanup.

getDefaultInstanceForType()

public CloseBatchTransactionAction getDefaultInstanceForType()
Returns
Type Description
CloseBatchTransactionAction

getDescriptorForType()

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

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 CloseBatchTransactionAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloseBatchTransactionAction.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(CloseBatchTransactionAction other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCleanup(boolean value)

public CloseBatchTransactionAction.Builder setCleanup(boolean value)

Indicates whether the transaction needs to be cleaned up.

bool cleanup = 1;

Parameter
Name Description
value boolean

The cleanup to set.

Returns
Type Description
CloseBatchTransactionAction.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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