Enum VolumeUnit

java.lang.Object
java.lang.Enum<VolumeUnit>
com.google.devicesandservices.health.v4.VolumeUnit
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<VolumeUnit>

@Generated public enum VolumeUnit extends Enum<VolumeUnit> implements com.google.protobuf.ProtocolMessageEnum
 Enum representing the unit of volume.
 
Protobuf enum google.devicesandservices.health.v4.VolumeUnit
  • Enum Constant Details

    • VOLUME_UNIT_UNSPECIFIED

      public static final VolumeUnit VOLUME_UNIT_UNSPECIFIED
       Unspecified volume unit.
       
      VOLUME_UNIT_UNSPECIFIED = 0;
    • CUP_IMPERIAL

      public static final VolumeUnit CUP_IMPERIAL
       Cup (imperial)
       
      CUP_IMPERIAL = 1;
    • CUP_US

      public static final VolumeUnit CUP_US
       Cup (US)
       
      CUP_US = 2;
    • FLUID_OUNCE_IMPERIAL

      public static final VolumeUnit FLUID_OUNCE_IMPERIAL
       Fluid ounce (imperial)
       
      FLUID_OUNCE_IMPERIAL = 3;
    • FLUID_OUNCE_US

      public static final VolumeUnit FLUID_OUNCE_US
       Fluid ounce (US)
       
      FLUID_OUNCE_US = 4;
    • LITER

      public static final VolumeUnit LITER
       Liter
       
      LITER = 5;
    • MILLILITER

      public static final VolumeUnit MILLILITER
       Milliliter
       
      MILLILITER = 6;
    • PINT_IMPERIAL

      public static final VolumeUnit PINT_IMPERIAL
       Pint (imperial)
       
      PINT_IMPERIAL = 7;
    • PINT_US

      public static final VolumeUnit PINT_US
       Pint (US)
       
      PINT_US = 8;
    • UNRECOGNIZED

      public static final VolumeUnit UNRECOGNIZED
  • Field Details

    • VOLUME_UNIT_UNSPECIFIED_VALUE

      public static final int VOLUME_UNIT_UNSPECIFIED_VALUE
       Unspecified volume unit.
       
      VOLUME_UNIT_UNSPECIFIED = 0;
      See Also:
    • CUP_IMPERIAL_VALUE

      public static final int CUP_IMPERIAL_VALUE
       Cup (imperial)
       
      CUP_IMPERIAL = 1;
      See Also:
    • CUP_US_VALUE

      public static final int CUP_US_VALUE
       Cup (US)
       
      CUP_US = 2;
      See Also:
    • FLUID_OUNCE_IMPERIAL_VALUE

      public static final int FLUID_OUNCE_IMPERIAL_VALUE
       Fluid ounce (imperial)
       
      FLUID_OUNCE_IMPERIAL = 3;
      See Also:
    • FLUID_OUNCE_US_VALUE

      public static final int FLUID_OUNCE_US_VALUE
       Fluid ounce (US)
       
      FLUID_OUNCE_US = 4;
      See Also:
    • LITER_VALUE

      public static final int LITER_VALUE
       Liter
       
      LITER = 5;
      See Also:
    • MILLILITER_VALUE

      public static final int MILLILITER_VALUE
       Milliliter
       
      MILLILITER = 6;
      See Also:
    • PINT_IMPERIAL_VALUE

      public static final int PINT_IMPERIAL_VALUE
       Pint (imperial)
       
      PINT_IMPERIAL = 7;
      See Also:
    • PINT_US_VALUE

      public static final int PINT_US_VALUE
       Pint (US)
       
      PINT_US = 8;
      See Also:
  • Method Details

    • values

      public static VolumeUnit[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static VolumeUnit valueOf(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:
      IllegalArgumentException - if this enum type 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 VolumeUnit 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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static VolumeUnit 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<VolumeUnit> 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static VolumeUnit 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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null