public static final class Kvrpcpb.CleanupRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.CleanupRequest.Builder> implements Kvrpcpb.CleanupRequestOrBuilder
Cleanup a key by possibly unlocking it. From 4.0 onwards, this message is no longer used.Protobuf type
kvrpcpb.CleanupRequest
Modifier and Type | Method and Description |
---|---|
Kvrpcpb.CleanupRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Kvrpcpb.CleanupRequest |
build() |
Kvrpcpb.CleanupRequest |
buildPartial() |
Kvrpcpb.CleanupRequest.Builder |
clear() |
Kvrpcpb.CleanupRequest.Builder |
clearContext()
.kvrpcpb.Context context = 1; |
Kvrpcpb.CleanupRequest.Builder |
clearCurrentTs()
The current timestamp, used in combination with a lock's TTL to determine
if the lock has expired.
|
Kvrpcpb.CleanupRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Kvrpcpb.CleanupRequest.Builder |
clearKey()
bytes key = 2; |
Kvrpcpb.CleanupRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Kvrpcpb.CleanupRequest.Builder |
clearStartVersion()
uint64 start_version = 3; |
Kvrpcpb.CleanupRequest.Builder |
clone() |
Kvrpcpb.Context |
getContext()
.kvrpcpb.Context context = 1; |
Kvrpcpb.Context.Builder |
getContextBuilder()
.kvrpcpb.Context context = 1; |
Kvrpcpb.ContextOrBuilder |
getContextOrBuilder()
.kvrpcpb.Context context = 1; |
long |
getCurrentTs()
The current timestamp, used in combination with a lock's TTL to determine
if the lock has expired.
|
Kvrpcpb.CleanupRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getKey()
bytes key = 2; |
long |
getStartVersion()
uint64 start_version = 3; |
boolean |
hasContext()
.kvrpcpb.Context context = 1; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Kvrpcpb.CleanupRequest.Builder |
mergeContext(Kvrpcpb.Context value)
.kvrpcpb.Context context = 1; |
Kvrpcpb.CleanupRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Kvrpcpb.CleanupRequest.Builder |
mergeFrom(Kvrpcpb.CleanupRequest other) |
Kvrpcpb.CleanupRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
Kvrpcpb.CleanupRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Kvrpcpb.CleanupRequest.Builder |
setContext(Kvrpcpb.Context.Builder builderForValue)
.kvrpcpb.Context context = 1; |
Kvrpcpb.CleanupRequest.Builder |
setContext(Kvrpcpb.Context value)
.kvrpcpb.Context context = 1; |
Kvrpcpb.CleanupRequest.Builder |
setCurrentTs(long value)
The current timestamp, used in combination with a lock's TTL to determine
if the lock has expired.
|
Kvrpcpb.CleanupRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Kvrpcpb.CleanupRequest.Builder |
setKey(com.google.protobuf.ByteString value)
bytes key = 2; |
Kvrpcpb.CleanupRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Kvrpcpb.CleanupRequest.Builder |
setStartVersion(long value)
uint64 start_version = 3; |
Kvrpcpb.CleanupRequest.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.CleanupRequest.Builder>
public Kvrpcpb.CleanupRequest.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.CleanupRequest.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.CleanupRequest.Builder>
public Kvrpcpb.CleanupRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Kvrpcpb.CleanupRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Kvrpcpb.CleanupRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Kvrpcpb.CleanupRequest.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.CleanupRequest.Builder>
public Kvrpcpb.CleanupRequest.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.CleanupRequest.Builder>
public Kvrpcpb.CleanupRequest.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.CleanupRequest.Builder>
public Kvrpcpb.CleanupRequest.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.CleanupRequest.Builder>
public Kvrpcpb.CleanupRequest.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.CleanupRequest.Builder>
public Kvrpcpb.CleanupRequest.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.CleanupRequest.Builder>
public Kvrpcpb.CleanupRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Kvrpcpb.CleanupRequest.Builder>
public Kvrpcpb.CleanupRequest.Builder mergeFrom(Kvrpcpb.CleanupRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.CleanupRequest.Builder>
public Kvrpcpb.CleanupRequest.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.CleanupRequest.Builder>
IOException
public boolean hasContext()
.kvrpcpb.Context context = 1;
hasContext
in interface Kvrpcpb.CleanupRequestOrBuilder
public Kvrpcpb.Context getContext()
.kvrpcpb.Context context = 1;
getContext
in interface Kvrpcpb.CleanupRequestOrBuilder
public Kvrpcpb.CleanupRequest.Builder setContext(Kvrpcpb.Context value)
.kvrpcpb.Context context = 1;
public Kvrpcpb.CleanupRequest.Builder setContext(Kvrpcpb.Context.Builder builderForValue)
.kvrpcpb.Context context = 1;
public Kvrpcpb.CleanupRequest.Builder mergeContext(Kvrpcpb.Context value)
.kvrpcpb.Context context = 1;
public Kvrpcpb.CleanupRequest.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.CleanupRequestOrBuilder
public com.google.protobuf.ByteString getKey()
bytes key = 2;
getKey
in interface Kvrpcpb.CleanupRequestOrBuilder
public Kvrpcpb.CleanupRequest.Builder setKey(com.google.protobuf.ByteString value)
bytes key = 2;
value
- The key to set.public Kvrpcpb.CleanupRequest.Builder clearKey()
bytes key = 2;
public long getStartVersion()
uint64 start_version = 3;
getStartVersion
in interface Kvrpcpb.CleanupRequestOrBuilder
public Kvrpcpb.CleanupRequest.Builder setStartVersion(long value)
uint64 start_version = 3;
value
- The startVersion to set.public Kvrpcpb.CleanupRequest.Builder clearStartVersion()
uint64 start_version = 3;
public long getCurrentTs()
The current timestamp, used in combination with a lock's TTL to determine if the lock has expired. If `current_ts == 0`, then the key will be unlocked irrespective of its TTL.
uint64 current_ts = 4;
getCurrentTs
in interface Kvrpcpb.CleanupRequestOrBuilder
public Kvrpcpb.CleanupRequest.Builder setCurrentTs(long value)
The current timestamp, used in combination with a lock's TTL to determine if the lock has expired. If `current_ts == 0`, then the key will be unlocked irrespective of its TTL.
uint64 current_ts = 4;
value
- The currentTs to set.public Kvrpcpb.CleanupRequest.Builder clearCurrentTs()
The current timestamp, used in combination with a lock's TTL to determine if the lock has expired. If `current_ts == 0`, then the key will be unlocked irrespective of its TTL.
uint64 current_ts = 4;
public final Kvrpcpb.CleanupRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.CleanupRequest.Builder>
public final Kvrpcpb.CleanupRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.CleanupRequest.Builder>
Copyright © 2024 PingCAP. All rights reserved.