public static final class Kvrpcpb.TxnHeartBeatRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.TxnHeartBeatRequest.Builder> implements Kvrpcpb.TxnHeartBeatRequestOrBuilder
Used to update the lock_ttl of a psessimistic and/or large transaction to prevent it from been killed.Protobuf type
kvrpcpb.TxnHeartBeatRequest
Modifier and Type | Method and Description |
---|---|
Kvrpcpb.TxnHeartBeatRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Kvrpcpb.TxnHeartBeatRequest |
build() |
Kvrpcpb.TxnHeartBeatRequest |
buildPartial() |
Kvrpcpb.TxnHeartBeatRequest.Builder |
clear() |
Kvrpcpb.TxnHeartBeatRequest.Builder |
clearAdviseLockTtl()
The new TTL the sender would like.
|
Kvrpcpb.TxnHeartBeatRequest.Builder |
clearContext()
.kvrpcpb.Context context = 1; |
Kvrpcpb.TxnHeartBeatRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Kvrpcpb.TxnHeartBeatRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Kvrpcpb.TxnHeartBeatRequest.Builder |
clearPrimaryLock()
The key of the lock to update.
|
Kvrpcpb.TxnHeartBeatRequest.Builder |
clearStartVersion()
Start timestamp of the large transaction.
|
Kvrpcpb.TxnHeartBeatRequest.Builder |
clone() |
long |
getAdviseLockTtl()
The new TTL the sender would like.
|
Kvrpcpb.Context |
getContext()
.kvrpcpb.Context context = 1; |
Kvrpcpb.Context.Builder |
getContextBuilder()
.kvrpcpb.Context context = 1; |
Kvrpcpb.ContextOrBuilder |
getContextOrBuilder()
.kvrpcpb.Context context = 1; |
Kvrpcpb.TxnHeartBeatRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getPrimaryLock()
The key of the lock to update.
|
long |
getStartVersion()
Start timestamp of the large transaction.
|
boolean |
hasContext()
.kvrpcpb.Context context = 1; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Kvrpcpb.TxnHeartBeatRequest.Builder |
mergeContext(Kvrpcpb.Context value)
.kvrpcpb.Context context = 1; |
Kvrpcpb.TxnHeartBeatRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Kvrpcpb.TxnHeartBeatRequest.Builder |
mergeFrom(Kvrpcpb.TxnHeartBeatRequest other) |
Kvrpcpb.TxnHeartBeatRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
Kvrpcpb.TxnHeartBeatRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Kvrpcpb.TxnHeartBeatRequest.Builder |
setAdviseLockTtl(long value)
The new TTL the sender would like.
|
Kvrpcpb.TxnHeartBeatRequest.Builder |
setContext(Kvrpcpb.Context.Builder builderForValue)
.kvrpcpb.Context context = 1; |
Kvrpcpb.TxnHeartBeatRequest.Builder |
setContext(Kvrpcpb.Context value)
.kvrpcpb.Context context = 1; |
Kvrpcpb.TxnHeartBeatRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Kvrpcpb.TxnHeartBeatRequest.Builder |
setPrimaryLock(com.google.protobuf.ByteString value)
The key of the lock to update.
|
Kvrpcpb.TxnHeartBeatRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Kvrpcpb.TxnHeartBeatRequest.Builder |
setStartVersion(long value)
Start timestamp of the large transaction.
|
Kvrpcpb.TxnHeartBeatRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.TxnHeartBeatRequest.Builder>
public Kvrpcpb.TxnHeartBeatRequest.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.TxnHeartBeatRequest.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.TxnHeartBeatRequest.Builder>
public Kvrpcpb.TxnHeartBeatRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Kvrpcpb.TxnHeartBeatRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Kvrpcpb.TxnHeartBeatRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Kvrpcpb.TxnHeartBeatRequest.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.TxnHeartBeatRequest.Builder>
public Kvrpcpb.TxnHeartBeatRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.TxnHeartBeatRequest.Builder>
public Kvrpcpb.TxnHeartBeatRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.TxnHeartBeatRequest.Builder>
public Kvrpcpb.TxnHeartBeatRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.TxnHeartBeatRequest.Builder>
public Kvrpcpb.TxnHeartBeatRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.TxnHeartBeatRequest.Builder>
public Kvrpcpb.TxnHeartBeatRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.TxnHeartBeatRequest.Builder>
public Kvrpcpb.TxnHeartBeatRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Kvrpcpb.TxnHeartBeatRequest.Builder>
public Kvrpcpb.TxnHeartBeatRequest.Builder mergeFrom(Kvrpcpb.TxnHeartBeatRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.TxnHeartBeatRequest.Builder>
public Kvrpcpb.TxnHeartBeatRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Kvrpcpb.TxnHeartBeatRequest.Builder>
IOException
public boolean hasContext()
.kvrpcpb.Context context = 1;
hasContext
in interface Kvrpcpb.TxnHeartBeatRequestOrBuilder
public Kvrpcpb.Context getContext()
.kvrpcpb.Context context = 1;
getContext
in interface Kvrpcpb.TxnHeartBeatRequestOrBuilder
public Kvrpcpb.TxnHeartBeatRequest.Builder setContext(Kvrpcpb.Context value)
.kvrpcpb.Context context = 1;
public Kvrpcpb.TxnHeartBeatRequest.Builder setContext(Kvrpcpb.Context.Builder builderForValue)
.kvrpcpb.Context context = 1;
public Kvrpcpb.TxnHeartBeatRequest.Builder mergeContext(Kvrpcpb.Context value)
.kvrpcpb.Context context = 1;
public Kvrpcpb.TxnHeartBeatRequest.Builder clearContext()
.kvrpcpb.Context context = 1;
public Kvrpcpb.Context.Builder getContextBuilder()
.kvrpcpb.Context context = 1;
public Kvrpcpb.ContextOrBuilder getContextOrBuilder()
.kvrpcpb.Context context = 1;
getContextOrBuilder
in interface Kvrpcpb.TxnHeartBeatRequestOrBuilder
public com.google.protobuf.ByteString getPrimaryLock()
The key of the lock to update.
bytes primary_lock = 2;
getPrimaryLock
in interface Kvrpcpb.TxnHeartBeatRequestOrBuilder
public Kvrpcpb.TxnHeartBeatRequest.Builder setPrimaryLock(com.google.protobuf.ByteString value)
The key of the lock to update.
bytes primary_lock = 2;
value
- The primaryLock to set.public Kvrpcpb.TxnHeartBeatRequest.Builder clearPrimaryLock()
The key of the lock to update.
bytes primary_lock = 2;
public long getStartVersion()
Start timestamp of the large transaction.
uint64 start_version = 3;
getStartVersion
in interface Kvrpcpb.TxnHeartBeatRequestOrBuilder
public Kvrpcpb.TxnHeartBeatRequest.Builder setStartVersion(long value)
Start timestamp of the large transaction.
uint64 start_version = 3;
value
- The startVersion to set.public Kvrpcpb.TxnHeartBeatRequest.Builder clearStartVersion()
Start timestamp of the large transaction.
uint64 start_version = 3;
public long getAdviseLockTtl()
The new TTL the sender would like.
uint64 advise_lock_ttl = 4;
getAdviseLockTtl
in interface Kvrpcpb.TxnHeartBeatRequestOrBuilder
public Kvrpcpb.TxnHeartBeatRequest.Builder setAdviseLockTtl(long value)
The new TTL the sender would like.
uint64 advise_lock_ttl = 4;
value
- The adviseLockTtl to set.public Kvrpcpb.TxnHeartBeatRequest.Builder clearAdviseLockTtl()
The new TTL the sender would like.
uint64 advise_lock_ttl = 4;
public final Kvrpcpb.TxnHeartBeatRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.TxnHeartBeatRequest.Builder>
public final Kvrpcpb.TxnHeartBeatRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.TxnHeartBeatRequest.Builder>
Copyright © 2024 PingCAP. All rights reserved.