Enum Exercise.ExerciseType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Exercise.ExerciseType>
- Enclosing class:
- Exercise
public static enum Exercise.ExerciseType
extends Enum<Exercise.ExerciseType>
implements com.google.protobuf.ProtocolMessageEnum
The type of activity performed during an exercise.Protobuf enum
google.devicesandservices.health.v4.Exercise.ExerciseType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBiking type.Exercise type is unspecified.HIIT type.Hiking type.Other type.Pilates type.Running type.Strength training type.Swimming type.Walking type.Weightlifting type.Workout type.Yoga type. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intBiking type.static final intExercise type is unspecified.static final intHIIT type.static final intHiking type.static final intOther type.static final intPilates type.static final intRunning type.static final intStrength training type.static final intSwimming type.static final intWalking type.static final intWeightlifting type.static final intWorkout type.static final intYoga type. -
Method Summary
Modifier and TypeMethodDescriptionstatic Exercise.ExerciseTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Exercise.ExerciseType>static Exercise.ExerciseTypevalueOf(int value) Deprecated.static Exercise.ExerciseTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Exercise.ExerciseTypeReturns the enum constant of this type with the specified name.static Exercise.ExerciseType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
EXERCISE_TYPE_UNSPECIFIED
Exercise type is unspecified.
EXERCISE_TYPE_UNSPECIFIED = 0; -
RUNNING
Running type.
RUNNING = 1; -
WALKING
Walking type.
WALKING = 2; -
BIKING
Biking type.
BIKING = 3; -
SWIMMING
Swimming type.
SWIMMING = 4; -
HIKING
Hiking type.
HIKING = 5; -
YOGA
Yoga type.
YOGA = 6; -
PILATES
Pilates type.
PILATES = 7; -
WORKOUT
Workout type.
WORKOUT = 8; -
HIIT
HIIT type.
HIIT = 9; -
WEIGHTLIFTING
Weightlifting type.
WEIGHTLIFTING = 10; -
STRENGTH_TRAINING
Strength training type.
STRENGTH_TRAINING = 11; -
OTHER
Other type.
OTHER = 12; -
UNRECOGNIZED
-
-
Field Details
-
EXERCISE_TYPE_UNSPECIFIED_VALUE
public static final int EXERCISE_TYPE_UNSPECIFIED_VALUEExercise type is unspecified.
EXERCISE_TYPE_UNSPECIFIED = 0;- See Also:
-
RUNNING_VALUE
public static final int RUNNING_VALUERunning type.
RUNNING = 1;- See Also:
-
WALKING_VALUE
public static final int WALKING_VALUEWalking type.
WALKING = 2;- See Also:
-
BIKING_VALUE
public static final int BIKING_VALUEBiking type.
BIKING = 3;- See Also:
-
SWIMMING_VALUE
public static final int SWIMMING_VALUESwimming type.
SWIMMING = 4;- See Also:
-
HIKING_VALUE
public static final int HIKING_VALUEHiking type.
HIKING = 5;- See Also:
-
YOGA_VALUE
public static final int YOGA_VALUEYoga type.
YOGA = 6;- See Also:
-
PILATES_VALUE
public static final int PILATES_VALUEPilates type.
PILATES = 7;- See Also:
-
WORKOUT_VALUE
public static final int WORKOUT_VALUEWorkout type.
WORKOUT = 8;- See Also:
-
HIIT_VALUE
public static final int HIIT_VALUEHIIT type.
HIIT = 9;- See Also:
-
WEIGHTLIFTING_VALUE
public static final int WEIGHTLIFTING_VALUEWeightlifting type.
WEIGHTLIFTING = 10;- See Also:
-
STRENGTH_TRAINING_VALUE
public static final int STRENGTH_TRAINING_VALUEStrength training type.
STRENGTH_TRAINING = 11;- See Also:
-
OTHER_VALUE
public static final int OTHER_VALUEOther type.
OTHER = 12;- 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
public static Exercise.ExerciseType 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 nameNullPointerException- if the argument is null
-