Class CloseBatchTransactionAction.Builder (6.57.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CloseBatchTransactionAction build()
Returns
TypeDescription
CloseBatchTransactionAction

buildPartial()

public CloseBatchTransactionAction buildPartial()
Returns
TypeDescription
CloseBatchTransactionAction

clear()

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

clearCleanup()

public CloseBatchTransactionAction.Builder clearCleanup()

Indicates whether the transaction needs to be cleaned up.

bool cleanup = 1;

Returns
TypeDescription
CloseBatchTransactionAction.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCleanup()

public boolean getCleanup()

Indicates whether the transaction needs to be cleaned up.

bool cleanup = 1;

Returns
TypeDescription
boolean

The cleanup.

getDefaultInstanceForType()

public CloseBatchTransactionAction getDefaultInstanceForType()
Returns
TypeDescription
CloseBatchTransactionAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(CloseBatchTransactionAction other)

public CloseBatchTransactionAction.Builder mergeFrom(CloseBatchTransactionAction other)
Parameter
NameDescription
otherCloseBatchTransactionAction
Returns
TypeDescription
CloseBatchTransactionAction.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CloseBatchTransactionAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The cleanup to set.

Returns
TypeDescription
CloseBatchTransactionAction.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public CloseBatchTransactionAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CloseBatchTransactionAction.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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