Enum Settings.SwimUnit
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Settings.SwimUnit>
- Enclosing class:
- Settings
public static enum Settings.SwimUnit
extends Enum<Settings.SwimUnit>
implements com.google.protobuf.ProtocolMessageEnum
The swim unit defined in the user's account settings.Protobuf enum
google.devicesandservices.health.v4.Settings.SwimUnit-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSwim unit is meters.Swim unit is not specified.Swim unit is yards. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intSwim unit is meters.static final intSwim unit is not specified.static final intSwim unit is yards. -
Method Summary
Modifier and TypeMethodDescriptionstatic Settings.SwimUnitforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Settings.SwimUnit>static Settings.SwimUnitvalueOf(int value) Deprecated.static Settings.SwimUnitvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Settings.SwimUnitReturns the enum constant of this type with the specified name.static Settings.SwimUnit[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SWIM_UNIT_UNSPECIFIED
Swim unit is not specified.
SWIM_UNIT_UNSPECIFIED = 0; -
SWIM_UNIT_METERS
Swim unit is meters.
SWIM_UNIT_METERS = 1; -
SWIM_UNIT_YARDS
Swim unit is yards.
SWIM_UNIT_YARDS = 2; -
UNRECOGNIZED
-
-
Field Details
-
SWIM_UNIT_UNSPECIFIED_VALUE
public static final int SWIM_UNIT_UNSPECIFIED_VALUESwim unit is not specified.
SWIM_UNIT_UNSPECIFIED = 0;- See Also:
-
SWIM_UNIT_METERS_VALUE
public static final int SWIM_UNIT_METERS_VALUESwim unit is meters.
SWIM_UNIT_METERS = 1;- See Also:
-
SWIM_UNIT_YARDS_VALUE
public static final int SWIM_UNIT_YARDS_VALUESwim unit is yards.
SWIM_UNIT_YARDS = 2;- 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
-