Enum 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 Summary
Enum ConstantsEnum ConstantDescriptionCup (imperial)Cup (US)Fluid ounce (imperial)Fluid ounce (US)LiterMilliliterPint (imperial)Pint (US)Unspecified volume unit. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCup (imperial)static final intCup (US)static final intFluid ounce (imperial)static final intFluid ounce (US)static final intLiterstatic final intMilliliterstatic final intPint (imperial)static final intPint (US)static final intUnspecified volume unit. -
Method Summary
Modifier and TypeMethodDescriptionstatic VolumeUnitforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<VolumeUnit>static VolumeUnitvalueOf(int value) Deprecated.static VolumeUnitvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static VolumeUnitReturns the enum constant of this type with the specified name.static VolumeUnit[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
VOLUME_UNIT_UNSPECIFIED
Unspecified volume unit.
VOLUME_UNIT_UNSPECIFIED = 0; -
CUP_IMPERIAL
Cup (imperial)
CUP_IMPERIAL = 1; -
CUP_US
Cup (US)
CUP_US = 2; -
FLUID_OUNCE_IMPERIAL
Fluid ounce (imperial)
FLUID_OUNCE_IMPERIAL = 3; -
FLUID_OUNCE_US
Fluid ounce (US)
FLUID_OUNCE_US = 4; -
LITER
Liter
LITER = 5; -
MILLILITER
Milliliter
MILLILITER = 6; -
PINT_IMPERIAL
Pint (imperial)
PINT_IMPERIAL = 7; -
PINT_US
Pint (US)
PINT_US = 8; -
UNRECOGNIZED
-
-
Field Details
-
VOLUME_UNIT_UNSPECIFIED_VALUE
public static final int VOLUME_UNIT_UNSPECIFIED_VALUEUnspecified volume unit.
VOLUME_UNIT_UNSPECIFIED = 0;- See Also:
-
CUP_IMPERIAL_VALUE
public static final int CUP_IMPERIAL_VALUECup (imperial)
CUP_IMPERIAL = 1;- See Also:
-
CUP_US_VALUE
public static final int CUP_US_VALUECup (US)
CUP_US = 2;- See Also:
-
FLUID_OUNCE_IMPERIAL_VALUE
public static final int FLUID_OUNCE_IMPERIAL_VALUEFluid ounce (imperial)
FLUID_OUNCE_IMPERIAL = 3;- See Also:
-
FLUID_OUNCE_US_VALUE
public static final int FLUID_OUNCE_US_VALUEFluid ounce (US)
FLUID_OUNCE_US = 4;- See Also:
-
LITER_VALUE
public static final int LITER_VALUELiter
LITER = 5;- See Also:
-
MILLILITER_VALUE
public static final int MILLILITER_VALUEMilliliter
MILLILITER = 6;- See Also:
-
PINT_IMPERIAL_VALUE
public static final int PINT_IMPERIAL_VALUEPint (imperial)
PINT_IMPERIAL = 7;- See Also:
-
PINT_US_VALUE
public static final int PINT_US_VALUEPint (US)
PINT_US = 8;- See Also:
-
-
Method Details
-
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
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 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 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 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
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 nameNullPointerException- if the argument is null
-