Class MultiplexedSessionPrecommitToken.Builder (6.79.0)

public static final class MultiplexedSessionPrecommitToken.Builder extends GeneratedMessageV3.Builder<MultiplexedSessionPrecommitToken.Builder> implements MultiplexedSessionPrecommitTokenOrBuilder

When a read-write transaction is executed on a multiplexed session, this precommit token is sent back to the client as a part of the [Transaction] message in the BeginTransaction response and also as a part of the [ResultSet] and [PartialResultSet] responses.

Protobuf type google.spanner.v1.MultiplexedSessionPrecommitToken

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MultiplexedSessionPrecommitToken build()
Returns
Type Description
MultiplexedSessionPrecommitToken

buildPartial()

public MultiplexedSessionPrecommitToken buildPartial()
Returns
Type Description
MultiplexedSessionPrecommitToken

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrecommitToken()

public MultiplexedSessionPrecommitToken.Builder clearPrecommitToken()

Opaque precommit token.

bytes precommit_token = 1;

Returns
Type Description
MultiplexedSessionPrecommitToken.Builder

This builder for chaining.

clearSeqNum()

public MultiplexedSessionPrecommitToken.Builder clearSeqNum()

An incrementing seq number is generated on every precommit token that is returned. Clients should remember the precommit token with the highest sequence number from the current transaction attempt.

int32 seq_num = 2;

Returns
Type Description
MultiplexedSessionPrecommitToken.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public MultiplexedSessionPrecommitToken getDefaultInstanceForType()
Returns
Type Description
MultiplexedSessionPrecommitToken

getDescriptorForType()

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

getPrecommitToken()

public ByteString getPrecommitToken()

Opaque precommit token.

bytes precommit_token = 1;

Returns
Type Description
ByteString

The precommitToken.

getSeqNum()

public int getSeqNum()

An incrementing seq number is generated on every precommit token that is returned. Clients should remember the precommit token with the highest sequence number from the current transaction attempt.

int32 seq_num = 2;

Returns
Type Description
int

The seqNum.

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

mergeFrom(Message other)

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

mergeFrom(MultiplexedSessionPrecommitToken other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPrecommitToken(ByteString value)

public MultiplexedSessionPrecommitToken.Builder setPrecommitToken(ByteString value)

Opaque precommit token.

bytes precommit_token = 1;

Parameter
Name Description
value ByteString

The precommitToken to set.

Returns
Type Description
MultiplexedSessionPrecommitToken.Builder

This builder for chaining.

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

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

setSeqNum(int value)

public MultiplexedSessionPrecommitToken.Builder setSeqNum(int value)

An incrementing seq number is generated on every precommit token that is returned. Clients should remember the precommit token with the highest sequence number from the current transaction attempt.

int32 seq_num = 2;

Parameter
Name Description
value int

The seqNum to set.

Returns
Type Description
MultiplexedSessionPrecommitToken.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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