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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > MultiplexedSessionPrecommitToken.BuilderImplements
MultiplexedSessionPrecommitTokenOrBuilderStatic 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 |
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 |
clearField(Descriptors.FieldDescriptor field)
public MultiplexedSessionPrecommitToken.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
MultiplexedSessionPrecommitToken.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public MultiplexedSessionPrecommitToken.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
MultiplexedSessionPrecommitToken.Builder |
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 |
getDefaultInstanceForType()
public MultiplexedSessionPrecommitToken getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
MultiplexedSessionPrecommitToken |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public MultiplexedSessionPrecommitToken.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
MultiplexedSessionPrecommitToken.Builder |
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 |
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 |
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 |
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 |