Enum Class DistanceUnit

java.lang.Object
java.lang.Enum<DistanceUnit>
org.opensearch.protobufs.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
  • Enum Constant Details

    • DISTANCE_UNIT_UNSPECIFIED

      public static final DistanceUnit DISTANCE_UNIT_UNSPECIFIED
      DISTANCE_UNIT_UNSPECIFIED = 0;
    • DISTANCE_UNIT_CM

      public static final DistanceUnit DISTANCE_UNIT_CM
      DISTANCE_UNIT_CM = 1;
    • DISTANCE_UNIT_FT

      public static final DistanceUnit DISTANCE_UNIT_FT
      DISTANCE_UNIT_FT = 2;
    • DISTANCE_UNIT_IN

      public static final DistanceUnit DISTANCE_UNIT_IN
      DISTANCE_UNIT_IN = 3;
    • DISTANCE_UNIT_KM

      public static final DistanceUnit DISTANCE_UNIT_KM
      DISTANCE_UNIT_KM = 4;
    • DISTANCE_UNIT_M

      public static final DistanceUnit DISTANCE_UNIT_M
      DISTANCE_UNIT_M = 5;
    • DISTANCE_UNIT_MI

      public static final DistanceUnit DISTANCE_UNIT_MI
      DISTANCE_UNIT_MI = 6;
    • DISTANCE_UNIT_MM

      public static final DistanceUnit DISTANCE_UNIT_MM
      DISTANCE_UNIT_MM = 7;
    • DISTANCE_UNIT_NMI

      public static final DistanceUnit DISTANCE_UNIT_NMI
      DISTANCE_UNIT_NMI = 8;
    • DISTANCE_UNIT_YD

      public static final DistanceUnit DISTANCE_UNIT_YD
      DISTANCE_UNIT_YD = 9;
    • UNRECOGNIZED

      public static final DistanceUnit UNRECOGNIZED
  • Field Details

    • DISTANCE_UNIT_UNSPECIFIED_VALUE

      public static final int DISTANCE_UNIT_UNSPECIFIED_VALUE
      DISTANCE_UNIT_UNSPECIFIED = 0;
      See Also:
    • DISTANCE_UNIT_CM_VALUE

      public static final int DISTANCE_UNIT_CM_VALUE
      DISTANCE_UNIT_CM = 1;
      See Also:
    • DISTANCE_UNIT_FT_VALUE

      public static final int DISTANCE_UNIT_FT_VALUE
      DISTANCE_UNIT_FT = 2;
      See Also:
    • DISTANCE_UNIT_IN_VALUE

      public static final int DISTANCE_UNIT_IN_VALUE
      DISTANCE_UNIT_IN = 3;
      See Also:
    • DISTANCE_UNIT_KM_VALUE

      public static final int DISTANCE_UNIT_KM_VALUE
      DISTANCE_UNIT_KM = 4;
      See Also:
    • DISTANCE_UNIT_M_VALUE

      public static final int DISTANCE_UNIT_M_VALUE
      DISTANCE_UNIT_M = 5;
      See Also:
    • DISTANCE_UNIT_MI_VALUE

      public static final int DISTANCE_UNIT_MI_VALUE
      DISTANCE_UNIT_MI = 6;
      See Also:
    • DISTANCE_UNIT_MM_VALUE

      public static final int DISTANCE_UNIT_MM_VALUE
      DISTANCE_UNIT_MM = 7;
      See Also:
    • DISTANCE_UNIT_NMI_VALUE

      public static final int DISTANCE_UNIT_NMI_VALUE
      DISTANCE_UNIT_NMI = 8;
      See Also:
    • DISTANCE_UNIT_YD_VALUE

      public static final int DISTANCE_UNIT_YD_VALUE
      DISTANCE_UNIT_YD = 9;
      See Also:
  • Method Details

    • values

      public static DistanceUnit[] 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

      public static DistanceUnit valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static DistanceUnit valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static DistanceUnit 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<DistanceUnit> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static DistanceUnit valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      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 name
      NullPointerException - if the argument is null