public final class RangeRequest extends com.google.protobuf.GeneratedMessageV3 implements RangeRequestOrBuilder
etcdserverpb.RangeRequest| Modifier and Type | Class and Description |
|---|---|
static class |
RangeRequest.Builder
Protobuf type
etcdserverpb.RangeRequest |
static class |
RangeRequest.SortOrder
Protobuf enum
etcdserverpb.RangeRequest.SortOrder |
static class |
RangeRequest.SortTarget
Protobuf enum
etcdserverpb.RangeRequest.SortTarget |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
COUNT_ONLY_FIELD_NUMBER |
static int |
KEY_FIELD_NUMBER |
static int |
KEYS_ONLY_FIELD_NUMBER |
static int |
LIMIT_FIELD_NUMBER |
static int |
MAX_CREATE_REVISION_FIELD_NUMBER |
static int |
MAX_MOD_REVISION_FIELD_NUMBER |
static int |
MIN_CREATE_REVISION_FIELD_NUMBER |
static int |
MIN_MOD_REVISION_FIELD_NUMBER |
static int |
RANGE_END_FIELD_NUMBER |
static int |
REVISION_FIELD_NUMBER |
static int |
SERIALIZABLE_FIELD_NUMBER |
static int |
SORT_ORDER_FIELD_NUMBER |
static int |
SORT_TARGET_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
getCountOnly()
count_only when set returns only the count of the keys in the range.
|
static RangeRequest |
getDefaultInstance() |
RangeRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.ByteString |
getKey()
key is the first key for the range.
|
boolean |
getKeysOnly()
keys_only when set returns only the keys and not the values.
|
long |
getLimit()
limit is a limit on the number of keys returned for the request.
|
long |
getMaxCreateRevision()
max_create_revision is the upper bound for returned key create revisions; all keys with
greater create revisions will be filtered away.
|
long |
getMaxModRevision()
max_mod_revision is the upper bound for returned key mod revisions; all keys with
greater mod revisions will be filtered away.
|
long |
getMinCreateRevision()
min_create_revision is the lower bound for returned key create revisions; all keys with
lesser create trevisions will be filtered away.
|
long |
getMinModRevision()
min_mod_revision is the lower bound for returned key mod revisions; all keys with
lesser mod revisions will be filtered away.
|
com.google.protobuf.Parser<RangeRequest> |
getParserForType() |
com.google.protobuf.ByteString |
getRangeEnd()
range_end is the upper bound on the requested range [key, range_end).
|
long |
getRevision()
revision is the point-in-time of the key-value store to use for the range.
|
boolean |
getSerializable()
serializable sets the range request to use serializable member-local reads.
|
int |
getSerializedSize() |
RangeRequest.SortOrder |
getSortOrder()
sort_order is the order for returned sorted results.
|
int |
getSortOrderValue()
sort_order is the order for returned sorted results.
|
RangeRequest.SortTarget |
getSortTarget()
sort_target is the key-value field to use for sorting.
|
int |
getSortTargetValue()
sort_target is the key-value field to use for sorting.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static RangeRequest.Builder |
newBuilder() |
static RangeRequest.Builder |
newBuilder(RangeRequest prototype) |
RangeRequest.Builder |
newBuilderForType() |
protected RangeRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static RangeRequest |
parseDelimitedFrom(InputStream input) |
static RangeRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RangeRequest |
parseFrom(byte[] data) |
static RangeRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RangeRequest |
parseFrom(ByteBuffer data) |
static RangeRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RangeRequest |
parseFrom(com.google.protobuf.ByteString data) |
static RangeRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RangeRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RangeRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RangeRequest |
parseFrom(InputStream input) |
static RangeRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RangeRequest> |
parser() |
RangeRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int KEY_FIELD_NUMBER
public static final int RANGE_END_FIELD_NUMBER
public static final int LIMIT_FIELD_NUMBER
public static final int REVISION_FIELD_NUMBER
public static final int SORT_ORDER_FIELD_NUMBER
public static final int SORT_TARGET_FIELD_NUMBER
public static final int SERIALIZABLE_FIELD_NUMBER
public static final int KEYS_ONLY_FIELD_NUMBER
public static final int COUNT_ONLY_FIELD_NUMBER
public static final int MIN_MOD_REVISION_FIELD_NUMBER
public static final int MAX_MOD_REVISION_FIELD_NUMBER
public static final int MIN_CREATE_REVISION_FIELD_NUMBER
public static final int MAX_CREATE_REVISION_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 = 1;getKey in interface RangeRequestOrBuilderpublic 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 = 2;getRangeEnd in interface RangeRequestOrBuilderpublic 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 = 3;getLimit in interface RangeRequestOrBuilderpublic 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 = 4;getRevision in interface RangeRequestOrBuilderpublic int getSortOrderValue()
sort_order is the order for returned sorted results.
.etcdserverpb.RangeRequest.SortOrder sort_order = 5;getSortOrderValue in interface RangeRequestOrBuilderpublic RangeRequest.SortOrder getSortOrder()
sort_order is the order for returned sorted results.
.etcdserverpb.RangeRequest.SortOrder sort_order = 5;getSortOrder in interface RangeRequestOrBuilderpublic int getSortTargetValue()
sort_target is the key-value field to use for sorting.
.etcdserverpb.RangeRequest.SortTarget sort_target = 6;getSortTargetValue in interface RangeRequestOrBuilderpublic RangeRequest.SortTarget getSortTarget()
sort_target is the key-value field to use for sorting.
.etcdserverpb.RangeRequest.SortTarget sort_target = 6;getSortTarget in interface RangeRequestOrBuilderpublic 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;getSerializable in interface RangeRequestOrBuilderpublic boolean getKeysOnly()
keys_only when set returns only the keys and not the values.
bool keys_only = 8;getKeysOnly in interface RangeRequestOrBuilderpublic boolean getCountOnly()
count_only when set returns only the count of the keys in the range.
bool count_only = 9;getCountOnly in interface RangeRequestOrBuilderpublic 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;getMinModRevision in interface RangeRequestOrBuilderpublic 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;getMaxModRevision in interface RangeRequestOrBuilderpublic long getMinCreateRevision()
min_create_revision is the lower bound for returned key create revisions; all keys with lesser create trevisions will be filtered away.
int64 min_create_revision = 12;getMinCreateRevision in interface RangeRequestOrBuilderpublic 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;getMaxCreateRevision in interface RangeRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static RangeRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RangeRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RangeRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RangeRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RangeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RangeRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RangeRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static RangeRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RangeRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RangeRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RangeRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RangeRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RangeRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static RangeRequest.Builder newBuilder()
public static RangeRequest.Builder newBuilder(RangeRequest prototype)
public RangeRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected RangeRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static RangeRequest getDefaultInstance()
public static com.google.protobuf.Parser<RangeRequest> parser()
public com.google.protobuf.Parser<RangeRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public RangeRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2021. All rights reserved.