Enum Exercise.ExerciseType

java.lang.Object
java.lang.Enum<Exercise.ExerciseType>
com.google.devicesandservices.health.v4.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 Details

  • Field Details

    • EXERCISE_TYPE_UNSPECIFIED_VALUE

      public static final int EXERCISE_TYPE_UNSPECIFIED_VALUE
       Exercise type is unspecified.
       
      EXERCISE_TYPE_UNSPECIFIED = 0;
      See Also:
    • RUNNING_VALUE

      public static final int RUNNING_VALUE
       Running type.
       
      RUNNING = 1;
      See Also:
    • WALKING_VALUE

      public static final int WALKING_VALUE
       Walking type.
       
      WALKING = 2;
      See Also:
    • BIKING_VALUE

      public static final int BIKING_VALUE
       Biking type.
       
      BIKING = 3;
      See Also:
    • SWIMMING_VALUE

      public static final int SWIMMING_VALUE
       Swimming type.
       
      SWIMMING = 4;
      See Also:
    • HIKING_VALUE

      public static final int HIKING_VALUE
       Hiking type.
       
      HIKING = 5;
      See Also:
    • YOGA_VALUE

      public static final int YOGA_VALUE
       Yoga type.
       
      YOGA = 6;
      See Also:
    • PILATES_VALUE

      public static final int PILATES_VALUE
       Pilates type.
       
      PILATES = 7;
      See Also:
    • WORKOUT_VALUE

      public static final int WORKOUT_VALUE
       Workout type.
       
      WORKOUT = 8;
      See Also:
    • HIIT_VALUE

      public static final int HIIT_VALUE
       HIIT type.
       
      HIIT = 9;
      See Also:
    • WEIGHTLIFTING_VALUE

      public static final int WEIGHTLIFTING_VALUE
       Weightlifting type.
       
      WEIGHTLIFTING = 10;
      See Also:
    • STRENGTH_TRAINING_VALUE

      public static final int STRENGTH_TRAINING_VALUE
       Strength training type.
       
      STRENGTH_TRAINING = 11;
      See Also:
    • OTHER_VALUE

      public static final int OTHER_VALUE
       Other type.
       
      OTHER = 12;
      See Also:
  • Method Details

    • values

      public static Exercise.ExerciseType[] 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 Exercise.ExerciseType 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 Exercise.ExerciseType 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 Exercise.ExerciseType 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<Exercise.ExerciseType> 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 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 name
      NullPointerException - if the argument is null