Package org.opensearch.protobufs
Enum Class DistanceUnit
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<DistanceUnit>,Constable
public enum DistanceUnit
extends Enum<DistanceUnit>
implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
org.opensearch.protobufs.DistanceUnit-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDISTANCE_UNIT_CM = 1;DISTANCE_UNIT_FT = 2;DISTANCE_UNIT_IN = 3;DISTANCE_UNIT_KM = 4;DISTANCE_UNIT_M = 5;DISTANCE_UNIT_MI = 6;DISTANCE_UNIT_MM = 7;DISTANCE_UNIT_NMI = 8;DISTANCE_UNIT_UNSPECIFIED = 0;DISTANCE_UNIT_YD = 9; -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDISTANCE_UNIT_CM = 1;static final intDISTANCE_UNIT_FT = 2;static final intDISTANCE_UNIT_IN = 3;static final intDISTANCE_UNIT_KM = 4;static final intDISTANCE_UNIT_M = 5;static final intDISTANCE_UNIT_MI = 6;static final intDISTANCE_UNIT_MM = 7;static final intDISTANCE_UNIT_NMI = 8;static final intDISTANCE_UNIT_UNSPECIFIED = 0;static final intDISTANCE_UNIT_YD = 9; -
Method Summary
Modifier and TypeMethodDescriptionstatic DistanceUnitforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<DistanceUnit> static DistanceUnitvalueOf(int value) Deprecated.static DistanceUnitvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static DistanceUnitReturns the enum constant of this class with the specified name.static DistanceUnit[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DISTANCE_UNIT_UNSPECIFIED
DISTANCE_UNIT_UNSPECIFIED = 0; -
DISTANCE_UNIT_CM
DISTANCE_UNIT_CM = 1; -
DISTANCE_UNIT_FT
DISTANCE_UNIT_FT = 2; -
DISTANCE_UNIT_IN
DISTANCE_UNIT_IN = 3; -
DISTANCE_UNIT_KM
DISTANCE_UNIT_KM = 4; -
DISTANCE_UNIT_M
DISTANCE_UNIT_M = 5; -
DISTANCE_UNIT_MI
DISTANCE_UNIT_MI = 6; -
DISTANCE_UNIT_MM
DISTANCE_UNIT_MM = 7; -
DISTANCE_UNIT_NMI
DISTANCE_UNIT_NMI = 8; -
DISTANCE_UNIT_YD
DISTANCE_UNIT_YD = 9; -
UNRECOGNIZED
-
-
Field Details
-
DISTANCE_UNIT_UNSPECIFIED_VALUE
public static final int DISTANCE_UNIT_UNSPECIFIED_VALUEDISTANCE_UNIT_UNSPECIFIED = 0;- See Also:
-
DISTANCE_UNIT_CM_VALUE
public static final int DISTANCE_UNIT_CM_VALUEDISTANCE_UNIT_CM = 1;- See Also:
-
DISTANCE_UNIT_FT_VALUE
public static final int DISTANCE_UNIT_FT_VALUEDISTANCE_UNIT_FT = 2;- See Also:
-
DISTANCE_UNIT_IN_VALUE
public static final int DISTANCE_UNIT_IN_VALUEDISTANCE_UNIT_IN = 3;- See Also:
-
DISTANCE_UNIT_KM_VALUE
public static final int DISTANCE_UNIT_KM_VALUEDISTANCE_UNIT_KM = 4;- See Also:
-
DISTANCE_UNIT_M_VALUE
public static final int DISTANCE_UNIT_M_VALUEDISTANCE_UNIT_M = 5;- See Also:
-
DISTANCE_UNIT_MI_VALUE
public static final int DISTANCE_UNIT_MI_VALUEDISTANCE_UNIT_MI = 6;- See Also:
-
DISTANCE_UNIT_MM_VALUE
public static final int DISTANCE_UNIT_MM_VALUEDISTANCE_UNIT_MM = 7;- See Also:
-
DISTANCE_UNIT_NMI_VALUE
public static final int DISTANCE_UNIT_NMI_VALUEDISTANCE_UNIT_NMI = 8;- See Also:
-
DISTANCE_UNIT_YD_VALUE
public static final int DISTANCE_UNIT_YD_VALUEDISTANCE_UNIT_YD = 9;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- 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.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
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
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-