Class FinishTransactionAction.Builder (6.56.0)

public static final class FinishTransactionAction.Builder extends GeneratedMessageV3.Builder<FinishTransactionAction.Builder> implements FinishTransactionActionOrBuilder

FinishTransactionAction defines an action of finishing a transaction.

Protobuf type google.spanner.executor.v1.FinishTransactionAction

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FinishTransactionAction build()
Returns
TypeDescription
FinishTransactionAction

buildPartial()

public FinishTransactionAction buildPartial()
Returns
TypeDescription
FinishTransactionAction

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMode()

public FinishTransactionAction.Builder clearMode()

Defines how exactly the transaction should be completed, e.g. with commit or abortion.

.google.spanner.executor.v1.FinishTransactionAction.Mode mode = 1;

Returns
TypeDescription
FinishTransactionAction.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public FinishTransactionAction getDefaultInstanceForType()
Returns
TypeDescription
FinishTransactionAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMode()

public FinishTransactionAction.Mode getMode()

Defines how exactly the transaction should be completed, e.g. with commit or abortion.

.google.spanner.executor.v1.FinishTransactionAction.Mode mode = 1;

Returns
TypeDescription
FinishTransactionAction.Mode

The mode.

getModeValue()

public int getModeValue()

Defines how exactly the transaction should be completed, e.g. with commit or abortion.

.google.spanner.executor.v1.FinishTransactionAction.Mode mode = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for mode.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(FinishTransactionAction other)

public FinishTransactionAction.Builder mergeFrom(FinishTransactionAction other)
Parameter
NameDescription
otherFinishTransactionAction
Returns
TypeDescription
FinishTransactionAction.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMode(FinishTransactionAction.Mode value)

public FinishTransactionAction.Builder setMode(FinishTransactionAction.Mode value)

Defines how exactly the transaction should be completed, e.g. with commit or abortion.

.google.spanner.executor.v1.FinishTransactionAction.Mode mode = 1;

Parameter
NameDescription
valueFinishTransactionAction.Mode

The mode to set.

Returns
TypeDescription
FinishTransactionAction.Builder

This builder for chaining.

setModeValue(int value)

public FinishTransactionAction.Builder setModeValue(int value)

Defines how exactly the transaction should be completed, e.g. with commit or abortion.

.google.spanner.executor.v1.FinishTransactionAction.Mode mode = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for mode to set.

Returns
TypeDescription
FinishTransactionAction.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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