Package io.etcd.jetcd.api
Class RangeRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.etcd.jetcd.api.RangeRequest
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RangeRequestOrBuilder,java.io.Serializable
public final class RangeRequest extends com.google.protobuf.GeneratedMessageV3 implements RangeRequestOrBuilder
Protobuf typeetcdserverpb.RangeRequest- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRangeRequest.BuilderProtobuf typeetcdserverpb.RangeRequeststatic classRangeRequest.SortOrderProtobuf enumetcdserverpb.RangeRequest.SortOrderstatic classRangeRequest.SortTargetProtobuf enumetcdserverpb.RangeRequest.SortTarget-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static intCOUNT_ONLY_FIELD_NUMBERstatic intKEY_FIELD_NUMBERstatic intKEYS_ONLY_FIELD_NUMBERstatic intLIMIT_FIELD_NUMBERstatic intMAX_CREATE_REVISION_FIELD_NUMBERstatic intMAX_MOD_REVISION_FIELD_NUMBERstatic intMIN_CREATE_REVISION_FIELD_NUMBERstatic intMIN_MOD_REVISION_FIELD_NUMBERstatic intRANGE_END_FIELD_NUMBERstatic intREVISION_FIELD_NUMBERstatic intSERIALIZABLE_FIELD_NUMBERstatic intSORT_ORDER_FIELD_NUMBERstatic intSORT_TARGET_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)booleangetCountOnly()count_only when set returns only the count of the keys in the range.static RangeRequestgetDefaultInstance()RangeRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.ByteStringgetKey()key is the first key for the range.booleangetKeysOnly()keys_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.longgetMaxCreateRevision()max_create_revision is the upper bound for returned key create revisions; all keys with greater create revisions will be filtered away.longgetMaxModRevision()max_mod_revision is the upper bound for returned key mod revisions; all keys with greater mod revisions will be filtered away.longgetMinCreateRevision()min_create_revision is the lower bound for returned key create revisions; all keys with lesser create trevisions will be filtered away.longgetMinModRevision()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.ByteStringgetRangeEnd()range_end is the upper bound on the requested range [key, range_end).longgetRevision()revision is the point-in-time of the key-value store to use for the range.booleangetSerializable()serializable sets the range request to use serializable member-local reads.intgetSerializedSize()RangeRequest.SortOrdergetSortOrder()sort_order is the order for returned sorted results.intgetSortOrderValue()sort_order is the order for returned sorted results.RangeRequest.SortTargetgetSortTarget()sort_target is the key-value field to use for sorting.intgetSortTargetValue()sort_target is the key-value field to use for sorting.com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static RangeRequest.BuildernewBuilder()static RangeRequest.BuildernewBuilder(RangeRequest prototype)RangeRequest.BuildernewBuilderForType()protected RangeRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static RangeRequestparseDelimitedFrom(java.io.InputStream input)static RangeRequestparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RangeRequestparseFrom(byte[] data)static RangeRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RangeRequestparseFrom(com.google.protobuf.ByteString data)static RangeRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RangeRequestparseFrom(com.google.protobuf.CodedInputStream input)static RangeRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RangeRequestparseFrom(java.io.InputStream input)static RangeRequestparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RangeRequestparseFrom(java.nio.ByteBuffer data)static RangeRequestparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<RangeRequest>parser()RangeRequest.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
KEY_FIELD_NUMBER
public static final int KEY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RANGE_END_FIELD_NUMBER
public static final int RANGE_END_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LIMIT_FIELD_NUMBER
public static final int LIMIT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REVISION_FIELD_NUMBER
public static final int REVISION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SORT_ORDER_FIELD_NUMBER
public static final int SORT_ORDER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SORT_TARGET_FIELD_NUMBER
public static final int SORT_TARGET_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZABLE_FIELD_NUMBER
public static final int SERIALIZABLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KEYS_ONLY_FIELD_NUMBER
public static final int KEYS_ONLY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COUNT_ONLY_FIELD_NUMBER
public static final int COUNT_ONLY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MIN_MOD_REVISION_FIELD_NUMBER
public static final int MIN_MOD_REVISION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_MOD_REVISION_FIELD_NUMBER
public static final int MAX_MOD_REVISION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MIN_CREATE_REVISION_FIELD_NUMBER
public static final int MIN_CREATE_REVISION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_CREATE_REVISION_FIELD_NUMBER
public static final int MAX_CREATE_REVISION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
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
-
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 = 1;- Specified by:
getKeyin interfaceRangeRequestOrBuilder- Returns:
- The key.
-
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 = 2;- Specified by:
getRangeEndin interfaceRangeRequestOrBuilder- Returns:
- The rangeEnd.
-
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 = 3;- Specified by:
getLimitin interfaceRangeRequestOrBuilder- Returns:
- The limit.
-
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 = 4;- Specified by:
getRevisionin interfaceRangeRequestOrBuilder- Returns:
- The revision.
-
getSortOrderValue
public int getSortOrderValue()
sort_order is the order for returned sorted results.
.etcdserverpb.RangeRequest.SortOrder sort_order = 5;- Specified by:
getSortOrderValuein interfaceRangeRequestOrBuilder- Returns:
- The enum numeric value on the wire for sortOrder.
-
getSortOrder
public RangeRequest.SortOrder getSortOrder()
sort_order is the order for returned sorted results.
.etcdserverpb.RangeRequest.SortOrder sort_order = 5;- Specified by:
getSortOrderin interfaceRangeRequestOrBuilder- Returns:
- The sortOrder.
-
getSortTargetValue
public int getSortTargetValue()
sort_target is the key-value field to use for sorting.
.etcdserverpb.RangeRequest.SortTarget sort_target = 6;- Specified by:
getSortTargetValuein interfaceRangeRequestOrBuilder- Returns:
- The enum numeric value on the wire for sortTarget.
-
getSortTarget
public RangeRequest.SortTarget getSortTarget()
sort_target is the key-value field to use for sorting.
.etcdserverpb.RangeRequest.SortTarget sort_target = 6;- Specified by:
getSortTargetin interfaceRangeRequestOrBuilder- Returns:
- The sortTarget.
-
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 interfaceRangeRequestOrBuilder- Returns:
- The serializable.
-
getKeysOnly
public boolean getKeysOnly()
keys_only when set returns only the keys and not the values.
bool keys_only = 8;- Specified by:
getKeysOnlyin interfaceRangeRequestOrBuilder- Returns:
- The keysOnly.
-
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 interfaceRangeRequestOrBuilder- Returns:
- The countOnly.
-
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 interfaceRangeRequestOrBuilder- Returns:
- The minModRevision.
-
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 interfaceRangeRequestOrBuilder- Returns:
- The maxModRevision.
-
getMinCreateRevision
public 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;- Specified by:
getMinCreateRevisionin interfaceRangeRequestOrBuilder- Returns:
- The minCreateRevision.
-
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 interfaceRangeRequestOrBuilder- Returns:
- The maxCreateRevision.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static RangeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RangeRequest parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RangeRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RangeRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RangeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RangeRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RangeRequest parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static RangeRequest parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static RangeRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static RangeRequest parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static RangeRequest parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static RangeRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public RangeRequest.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static RangeRequest.Builder newBuilder()
-
newBuilder
public static RangeRequest.Builder newBuilder(RangeRequest prototype)
-
toBuilder
public RangeRequest.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RangeRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static RangeRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<RangeRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<RangeRequest> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public RangeRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-