Package io.dingodb.version
Class Version.RangeRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Version.RangeRequest.Builder>
io.dingodb.version.Version.RangeRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Version.RangeRequestOrBuilder,Cloneable
- Enclosing class:
- Version.RangeRequest
public static final class Version.RangeRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Version.RangeRequest.Builder>
implements Version.RangeRequestOrBuilder
Protobuf type
dingodb.pb.version.RangeRequest-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()count_only when set returns only the count of the keys in the range.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearKey()key is the first key for the range.keys_only when set returns only the keys and not the values.limit is a limit on the number of keys returned for the request.max_create_revision is the upper bound for returned key create revisions; all keys with greater create revisions will be filtered away.max_mod_revision is the upper bound for returned key mod revisions; all keys with greater mod revisions will be filtered away.min_create_revision is the lower bound for returned key create revisions; all keys with lesser create revisions will be filtered away.min_mod_revision is the lower bound for returned key mod revisions; all keys with lesser mod revisions will be filtered away.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) range_end is the upper bound on the requested range [key, range_end)..dingodb.pb.common.RequestInfo request_info = 1;revision is the point-in-time of the key-value store to use for the range.serializable sets the range request to use serializable member-local reads.clone()booleancount_only when set returns only the count of the keys in the range.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.ByteStringgetKey()key is the first key for the range.booleankeys_only when set returns only the keys and not the values.longgetLimit()limit is a limit on the number of keys returned for the request.longmax_create_revision is the upper bound for returned key create revisions; all keys with greater create revisions will be filtered away.longmax_mod_revision is the upper bound for returned key mod revisions; all keys with greater mod revisions will be filtered away.longmin_create_revision is the lower bound for returned key create revisions; all keys with lesser create revisions will be filtered away.longmin_mod_revision is the lower bound for returned key mod revisions; all keys with lesser mod revisions will be filtered away.com.google.protobuf.ByteStringrange_end is the upper bound on the requested range [key, range_end)..dingodb.pb.common.RequestInfo request_info = 1;.dingodb.pb.common.RequestInfo request_info = 1;.dingodb.pb.common.RequestInfo request_info = 1;longrevision is the point-in-time of the key-value store to use for the range.booleanserializable sets the range request to use serializable member-local reads.boolean.dingodb.pb.common.RequestInfo request_info = 1;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Version.RangeRequest other) .dingodb.pb.common.RequestInfo request_info = 1;mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setCountOnly(boolean value) count_only when set returns only the count of the keys in the range.setKey(com.google.protobuf.ByteString value) key is the first key for the range.setKeysOnly(boolean value) keys_only when set returns only the keys and not the values.setLimit(long value) limit is a limit on the number of keys returned for the request.setMaxCreateRevision(long value) max_create_revision is the upper bound for returned key create revisions; all keys with greater create revisions will be filtered away.setMaxModRevision(long value) max_mod_revision is the upper bound for returned key mod revisions; all keys with greater mod revisions will be filtered away.setMinCreateRevision(long value) min_create_revision is the lower bound for returned key create revisions; all keys with lesser create revisions will be filtered away.setMinModRevision(long value) min_mod_revision is the lower bound for returned key mod revisions; all keys with lesser mod revisions will be filtered away.setRangeEnd(com.google.protobuf.ByteString value) range_end is the upper bound on the requested range [key, range_end).setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRequestInfo(Common.RequestInfo value) .dingodb.pb.common.RequestInfo request_info = 1;setRequestInfo(Common.RequestInfo.Builder builderForValue) .dingodb.pb.common.RequestInfo request_info = 1;setRevision(long value) revision is the point-in-time of the key-value store to use for the range.setSerializable(boolean value) serializable sets the range request to use serializable member-local reads.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Version.RangeRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Version.RangeRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Version.RangeRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Version.RangeRequest.Builder>
-
setField
public Version.RangeRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Version.RangeRequest.Builder>
-
clearField
public Version.RangeRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Version.RangeRequest.Builder>
-
clearOneof
public Version.RangeRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Version.RangeRequest.Builder>
-
setRepeatedField
public Version.RangeRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Version.RangeRequest.Builder>
-
addRepeatedField
public Version.RangeRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Version.RangeRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Version.RangeRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Version.RangeRequest.Builder>
-
mergeFrom
public Version.RangeRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Version.RangeRequest.Builder>- Throws:
IOException
-
hasRequestInfo
public boolean hasRequestInfo().dingodb.pb.common.RequestInfo request_info = 1;- Specified by:
hasRequestInfoin interfaceVersion.RangeRequestOrBuilder- Returns:
- Whether the requestInfo field is set.
-
getRequestInfo
.dingodb.pb.common.RequestInfo request_info = 1;- Specified by:
getRequestInfoin interfaceVersion.RangeRequestOrBuilder- Returns:
- The requestInfo.
-
setRequestInfo
.dingodb.pb.common.RequestInfo request_info = 1; -
setRequestInfo
.dingodb.pb.common.RequestInfo request_info = 1; -
mergeRequestInfo
.dingodb.pb.common.RequestInfo request_info = 1; -
clearRequestInfo
.dingodb.pb.common.RequestInfo request_info = 1; -
getRequestInfoBuilder
.dingodb.pb.common.RequestInfo request_info = 1; -
getRequestInfoOrBuilder
.dingodb.pb.common.RequestInfo request_info = 1;- Specified by:
getRequestInfoOrBuilderin interfaceVersion.RangeRequestOrBuilder
-
getKey
public com.google.protobuf.ByteString getKey()key is the first key for the range. If range_end is not given, the request only looks up key.
bytes key = 2;- Specified by:
getKeyin interfaceVersion.RangeRequestOrBuilder- Returns:
- The key.
-
setKey
key is the first key for the range. If range_end is not given, the request only looks up key.
bytes key = 2;- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
clearKey
key is the first key for the range. If range_end is not given, the request only looks up key.
bytes key = 2;- Returns:
- This builder for chaining.
-
getRangeEnd
public com.google.protobuf.ByteString getRangeEnd()range_end is the upper bound on the requested range [key, range_end). If range_end is '\0', the range is all keys >= key. If range_end is key plus one (e.g., "aa"+1 == "ab", "a\xff"+1 == "b"), then the range request gets all keys prefixed with key. If both key and range_end are '\0', then the range request returns all keys.
bytes range_end = 3;- Specified by:
getRangeEndin interfaceVersion.RangeRequestOrBuilder- Returns:
- The rangeEnd.
-
setRangeEnd
range_end is the upper bound on the requested range [key, range_end). If range_end is '\0', the range is all keys >= key. If range_end is key plus one (e.g., "aa"+1 == "ab", "a\xff"+1 == "b"), then the range request gets all keys prefixed with key. If both key and range_end are '\0', then the range request returns all keys.
bytes range_end = 3;- Parameters:
value- The rangeEnd to set.- Returns:
- This builder for chaining.
-
clearRangeEnd
range_end is the upper bound on the requested range [key, range_end). If range_end is '\0', the range is all keys >= key. If range_end is key plus one (e.g., "aa"+1 == "ab", "a\xff"+1 == "b"), then the range request gets all keys prefixed with key. If both key and range_end are '\0', then the range request returns all keys.
bytes range_end = 3;- Returns:
- This builder for chaining.
-
getLimit
public long getLimit()limit is a limit on the number of keys returned for the request. When limit is set to 0, it is treated as no limit.
int64 limit = 4;- Specified by:
getLimitin interfaceVersion.RangeRequestOrBuilder- Returns:
- The limit.
-
setLimit
limit is a limit on the number of keys returned for the request. When limit is set to 0, it is treated as no limit.
int64 limit = 4;- Parameters:
value- The limit to set.- Returns:
- This builder for chaining.
-
clearLimit
limit is a limit on the number of keys returned for the request. When limit is set to 0, it is treated as no limit.
int64 limit = 4;- Returns:
- This builder for chaining.
-
getRevision
public long getRevision()revision is the point-in-time of the key-value store to use for the range. If revision is less or equal to zero, the range is over the newest key-value store. If the revision has been compacted, ErrCompacted is returned as a response.
int64 revision = 5;- Specified by:
getRevisionin interfaceVersion.RangeRequestOrBuilder- Returns:
- The revision.
-
setRevision
revision is the point-in-time of the key-value store to use for the range. If revision is less or equal to zero, the range is over the newest key-value store. If the revision has been compacted, ErrCompacted is returned as a response.
int64 revision = 5;- Parameters:
value- The revision to set.- Returns:
- This builder for chaining.
-
clearRevision
revision is the point-in-time of the key-value store to use for the range. If revision is less or equal to zero, the range is over the newest key-value store. If the revision has been compacted, ErrCompacted is returned as a response.
int64 revision = 5;- Returns:
- This builder for chaining.
-
getSerializable
public boolean getSerializable()serializable sets the range request to use serializable member-local reads. Range requests are linearizable by default; linearizable requests have higher latency and lower throughput than serializable requests but reflect the current consensus of the cluster. For better performance, in exchange for possible stale reads, a serializable range request is served locally without needing to reach consensus with other nodes in the cluster.
bool serializable = 7;- Specified by:
getSerializablein interfaceVersion.RangeRequestOrBuilder- Returns:
- The serializable.
-
setSerializable
serializable sets the range request to use serializable member-local reads. Range requests are linearizable by default; linearizable requests have higher latency and lower throughput than serializable requests but reflect the current consensus of the cluster. For better performance, in exchange for possible stale reads, a serializable range request is served locally without needing to reach consensus with other nodes in the cluster.
bool serializable = 7;- Parameters:
value- The serializable to set.- Returns:
- This builder for chaining.
-
clearSerializable
serializable sets the range request to use serializable member-local reads. Range requests are linearizable by default; linearizable requests have higher latency and lower throughput than serializable requests but reflect the current consensus of the cluster. For better performance, in exchange for possible stale reads, a serializable range request is served locally without needing to reach consensus with other nodes in the cluster.
bool serializable = 7;- Returns:
- This builder for chaining.
-
getKeysOnly
public boolean getKeysOnly()keys_only when set returns only the keys and not the values.
bool keys_only = 8;- Specified by:
getKeysOnlyin interfaceVersion.RangeRequestOrBuilder- Returns:
- The keysOnly.
-
setKeysOnly
keys_only when set returns only the keys and not the values.
bool keys_only = 8;- Parameters:
value- The keysOnly to set.- Returns:
- This builder for chaining.
-
clearKeysOnly
keys_only when set returns only the keys and not the values.
bool keys_only = 8;- Returns:
- This builder for chaining.
-
getCountOnly
public boolean getCountOnly()count_only when set returns only the count of the keys in the range.
bool count_only = 9;- Specified by:
getCountOnlyin interfaceVersion.RangeRequestOrBuilder- Returns:
- The countOnly.
-
setCountOnly
count_only when set returns only the count of the keys in the range.
bool count_only = 9;- Parameters:
value- The countOnly to set.- Returns:
- This builder for chaining.
-
clearCountOnly
count_only when set returns only the count of the keys in the range.
bool count_only = 9;- Returns:
- This builder for chaining.
-
getMinModRevision
public long getMinModRevision()min_mod_revision is the lower bound for returned key mod revisions; all keys with lesser mod revisions will be filtered away.
int64 min_mod_revision = 10;- Specified by:
getMinModRevisionin interfaceVersion.RangeRequestOrBuilder- Returns:
- The minModRevision.
-
setMinModRevision
min_mod_revision is the lower bound for returned key mod revisions; all keys with lesser mod revisions will be filtered away.
int64 min_mod_revision = 10;- Parameters:
value- The minModRevision to set.- Returns:
- This builder for chaining.
-
clearMinModRevision
min_mod_revision is the lower bound for returned key mod revisions; all keys with lesser mod revisions will be filtered away.
int64 min_mod_revision = 10;- Returns:
- This builder for chaining.
-
getMaxModRevision
public long getMaxModRevision()max_mod_revision is the upper bound for returned key mod revisions; all keys with greater mod revisions will be filtered away.
int64 max_mod_revision = 11;- Specified by:
getMaxModRevisionin interfaceVersion.RangeRequestOrBuilder- Returns:
- The maxModRevision.
-
setMaxModRevision
max_mod_revision is the upper bound for returned key mod revisions; all keys with greater mod revisions will be filtered away.
int64 max_mod_revision = 11;- Parameters:
value- The maxModRevision to set.- Returns:
- This builder for chaining.
-
clearMaxModRevision
max_mod_revision is the upper bound for returned key mod revisions; all keys with greater mod revisions will be filtered away.
int64 max_mod_revision = 11;- Returns:
- This builder for chaining.
-
getMinCreateRevision
public long getMinCreateRevision()min_create_revision is the lower bound for returned key create revisions; all keys with lesser create revisions will be filtered away.
int64 min_create_revision = 12;- Specified by:
getMinCreateRevisionin interfaceVersion.RangeRequestOrBuilder- Returns:
- The minCreateRevision.
-
setMinCreateRevision
min_create_revision is the lower bound for returned key create revisions; all keys with lesser create revisions will be filtered away.
int64 min_create_revision = 12;- Parameters:
value- The minCreateRevision to set.- Returns:
- This builder for chaining.
-
clearMinCreateRevision
min_create_revision is the lower bound for returned key create revisions; all keys with lesser create revisions will be filtered away.
int64 min_create_revision = 12;- Returns:
- This builder for chaining.
-
getMaxCreateRevision
public long getMaxCreateRevision()max_create_revision is the upper bound for returned key create revisions; all keys with greater create revisions will be filtered away.
int64 max_create_revision = 13;- Specified by:
getMaxCreateRevisionin interfaceVersion.RangeRequestOrBuilder- Returns:
- The maxCreateRevision.
-
setMaxCreateRevision
max_create_revision is the upper bound for returned key create revisions; all keys with greater create revisions will be filtered away.
int64 max_create_revision = 13;- Parameters:
value- The maxCreateRevision to set.- Returns:
- This builder for chaining.
-
clearMaxCreateRevision
max_create_revision is the upper bound for returned key create revisions; all keys with greater create revisions will be filtered away.
int64 max_create_revision = 13;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Version.RangeRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Version.RangeRequest.Builder>
-
mergeUnknownFields
public final Version.RangeRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Version.RangeRequest.Builder>
-