public static final class Kvrpcpb.ScanLockRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.ScanLockRequest.Builder> implements Kvrpcpb.ScanLockRequestOrBuilder
Scan the database for locks. Used at the start of the GC process to find all old locks.Protobuf type
kvrpcpb.ScanLockRequest
Modifier and Type | Method and Description |
---|---|
Kvrpcpb.ScanLockRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Kvrpcpb.ScanLockRequest |
build() |
Kvrpcpb.ScanLockRequest |
buildPartial() |
Kvrpcpb.ScanLockRequest.Builder |
clear() |
Kvrpcpb.ScanLockRequest.Builder |
clearContext()
.kvrpcpb.Context context = 1; |
Kvrpcpb.ScanLockRequest.Builder |
clearEndKey()
The exclusive upperbound for scanning.
|
Kvrpcpb.ScanLockRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Kvrpcpb.ScanLockRequest.Builder |
clearLimit()
The maximum number of locks to return.
|
Kvrpcpb.ScanLockRequest.Builder |
clearMaxVersion()
Returns all locks with a start timestamp before `max_version`.
|
Kvrpcpb.ScanLockRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Kvrpcpb.ScanLockRequest.Builder |
clearStartKey()
Start scanning from this key.
|
Kvrpcpb.ScanLockRequest.Builder |
clone() |
Kvrpcpb.Context |
getContext()
.kvrpcpb.Context context = 1; |
Kvrpcpb.Context.Builder |
getContextBuilder()
.kvrpcpb.Context context = 1; |
Kvrpcpb.ContextOrBuilder |
getContextOrBuilder()
.kvrpcpb.Context context = 1; |
Kvrpcpb.ScanLockRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getEndKey()
The exclusive upperbound for scanning.
|
int |
getLimit()
The maximum number of locks to return.
|
long |
getMaxVersion()
Returns all locks with a start timestamp before `max_version`.
|
com.google.protobuf.ByteString |
getStartKey()
Start scanning from this key.
|
boolean |
hasContext()
.kvrpcpb.Context context = 1; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Kvrpcpb.ScanLockRequest.Builder |
mergeContext(Kvrpcpb.Context value)
.kvrpcpb.Context context = 1; |
Kvrpcpb.ScanLockRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Kvrpcpb.ScanLockRequest.Builder |
mergeFrom(Kvrpcpb.ScanLockRequest other) |
Kvrpcpb.ScanLockRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
Kvrpcpb.ScanLockRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Kvrpcpb.ScanLockRequest.Builder |
setContext(Kvrpcpb.Context.Builder builderForValue)
.kvrpcpb.Context context = 1; |
Kvrpcpb.ScanLockRequest.Builder |
setContext(Kvrpcpb.Context value)
.kvrpcpb.Context context = 1; |
Kvrpcpb.ScanLockRequest.Builder |
setEndKey(com.google.protobuf.ByteString value)
The exclusive upperbound for scanning.
|
Kvrpcpb.ScanLockRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Kvrpcpb.ScanLockRequest.Builder |
setLimit(int value)
The maximum number of locks to return.
|
Kvrpcpb.ScanLockRequest.Builder |
setMaxVersion(long value)
Returns all locks with a start timestamp before `max_version`.
|
Kvrpcpb.ScanLockRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Kvrpcpb.ScanLockRequest.Builder |
setStartKey(com.google.protobuf.ByteString value)
Start scanning from this key.
|
Kvrpcpb.ScanLockRequest.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.ScanLockRequest.Builder>
public Kvrpcpb.ScanLockRequest.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.ScanLockRequest.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.ScanLockRequest.Builder>
public Kvrpcpb.ScanLockRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Kvrpcpb.ScanLockRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Kvrpcpb.ScanLockRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Kvrpcpb.ScanLockRequest.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.ScanLockRequest.Builder>
public Kvrpcpb.ScanLockRequest.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.ScanLockRequest.Builder>
public Kvrpcpb.ScanLockRequest.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.ScanLockRequest.Builder>
public Kvrpcpb.ScanLockRequest.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.ScanLockRequest.Builder>
public Kvrpcpb.ScanLockRequest.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.ScanLockRequest.Builder>
public Kvrpcpb.ScanLockRequest.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.ScanLockRequest.Builder>
public Kvrpcpb.ScanLockRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Kvrpcpb.ScanLockRequest.Builder>
public Kvrpcpb.ScanLockRequest.Builder mergeFrom(Kvrpcpb.ScanLockRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.ScanLockRequest.Builder>
public Kvrpcpb.ScanLockRequest.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.ScanLockRequest.Builder>
IOException
public boolean hasContext()
.kvrpcpb.Context context = 1;
hasContext
in interface Kvrpcpb.ScanLockRequestOrBuilder
public Kvrpcpb.Context getContext()
.kvrpcpb.Context context = 1;
getContext
in interface Kvrpcpb.ScanLockRequestOrBuilder
public Kvrpcpb.ScanLockRequest.Builder setContext(Kvrpcpb.Context value)
.kvrpcpb.Context context = 1;
public Kvrpcpb.ScanLockRequest.Builder setContext(Kvrpcpb.Context.Builder builderForValue)
.kvrpcpb.Context context = 1;
public Kvrpcpb.ScanLockRequest.Builder mergeContext(Kvrpcpb.Context value)
.kvrpcpb.Context context = 1;
public Kvrpcpb.ScanLockRequest.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.ScanLockRequestOrBuilder
public long getMaxVersion()
Returns all locks with a start timestamp before `max_version`.
uint64 max_version = 2;
getMaxVersion
in interface Kvrpcpb.ScanLockRequestOrBuilder
public Kvrpcpb.ScanLockRequest.Builder setMaxVersion(long value)
Returns all locks with a start timestamp before `max_version`.
uint64 max_version = 2;
value
- The maxVersion to set.public Kvrpcpb.ScanLockRequest.Builder clearMaxVersion()
Returns all locks with a start timestamp before `max_version`.
uint64 max_version = 2;
public com.google.protobuf.ByteString getStartKey()
Start scanning from this key.
bytes start_key = 3;
getStartKey
in interface Kvrpcpb.ScanLockRequestOrBuilder
public Kvrpcpb.ScanLockRequest.Builder setStartKey(com.google.protobuf.ByteString value)
Start scanning from this key.
bytes start_key = 3;
value
- The startKey to set.public Kvrpcpb.ScanLockRequest.Builder clearStartKey()
Start scanning from this key.
bytes start_key = 3;
public int getLimit()
The maximum number of locks to return.
uint32 limit = 4;
getLimit
in interface Kvrpcpb.ScanLockRequestOrBuilder
public Kvrpcpb.ScanLockRequest.Builder setLimit(int value)
The maximum number of locks to return.
uint32 limit = 4;
value
- The limit to set.public Kvrpcpb.ScanLockRequest.Builder clearLimit()
The maximum number of locks to return.
uint32 limit = 4;
public com.google.protobuf.ByteString getEndKey()
The exclusive upperbound for scanning.
bytes end_key = 5;
getEndKey
in interface Kvrpcpb.ScanLockRequestOrBuilder
public Kvrpcpb.ScanLockRequest.Builder setEndKey(com.google.protobuf.ByteString value)
The exclusive upperbound for scanning.
bytes end_key = 5;
value
- The endKey to set.public Kvrpcpb.ScanLockRequest.Builder clearEndKey()
The exclusive upperbound for scanning.
bytes end_key = 5;
public final Kvrpcpb.ScanLockRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.ScanLockRequest.Builder>
public final Kvrpcpb.ScanLockRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.ScanLockRequest.Builder>
Copyright © 2024 PingCAP. All rights reserved.