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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CloseBatchTransactionAction.BuilderImplements
CloseBatchTransactionActionOrBuilderStatic 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 |
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 |
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 |
clearOneof(Descriptors.OneofDescriptor oneof)
public CloseBatchTransactionAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
CloseBatchTransactionAction.Builder |
clone()
public CloseBatchTransactionAction.Builder clone()
Returns | |
---|---|
Type | Description |
CloseBatchTransactionAction.Builder |
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 |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public CloseBatchTransactionAction.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
CloseBatchTransactionAction.Builder |
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 |
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 |
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final CloseBatchTransactionAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CloseBatchTransactionAction.Builder |