Package io.etcd.jetcd.api
Enum RangeRequest.SortTarget
- java.lang.Object
-
- java.lang.Enum<RangeRequest.SortTarget>
-
- io.etcd.jetcd.api.RangeRequest.SortTarget
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<RangeRequest.SortTarget>
- Enclosing class:
- RangeRequest
public static enum RangeRequest.SortTarget extends java.lang.Enum<RangeRequest.SortTarget> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumetcdserverpb.RangeRequest.SortTarget
-
-
Field Summary
Fields Modifier and Type Field Description static intCREATE_VALUECREATE = 2;static intKEY_VALUEKEY = 0;static intMOD_VALUEMOD = 3;static intVALUE_VALUEVALUE = 4;static intVERSION_VALUEVERSION = 1;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static RangeRequest.SortTargetforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<RangeRequest.SortTarget>internalGetValueMap()static RangeRequest.SortTargetvalueOf(int value)Deprecated.static RangeRequest.SortTargetvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static RangeRequest.SortTargetvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static RangeRequest.SortTarget[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
KEY
public static final RangeRequest.SortTarget KEY
KEY = 0;
-
VERSION
public static final RangeRequest.SortTarget VERSION
VERSION = 1;
-
CREATE
public static final RangeRequest.SortTarget CREATE
CREATE = 2;
-
MOD
public static final RangeRequest.SortTarget MOD
MOD = 3;
-
VALUE
public static final RangeRequest.SortTarget VALUE
VALUE = 4;
-
UNRECOGNIZED
public static final RangeRequest.SortTarget UNRECOGNIZED
-
-
Field Detail
-
KEY_VALUE
public static final int KEY_VALUE
KEY = 0;- See Also:
- Constant Field Values
-
VERSION_VALUE
public static final int VERSION_VALUE
VERSION = 1;- See Also:
- Constant Field Values
-
CREATE_VALUE
public static final int CREATE_VALUE
CREATE = 2;- See Also:
- Constant Field Values
-
MOD_VALUE
public static final int MOD_VALUE
MOD = 3;- See Also:
- Constant Field Values
-
VALUE_VALUE
public static final int VALUE_VALUE
VALUE = 4;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static RangeRequest.SortTarget[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RangeRequest.SortTarget c : RangeRequest.SortTarget.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RangeRequest.SortTarget valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static RangeRequest.SortTarget valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
forNumber
public static RangeRequest.SortTarget forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<RangeRequest.SortTarget> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static RangeRequest.SortTarget valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-