Enum DailyRestingHeartRate.DailyRestingHeartRateMetadata.CalculationMethod
java.lang.Object
java.lang.Enum<DailyRestingHeartRate.DailyRestingHeartRateMetadata.CalculationMethod>
com.google.devicesandservices.health.v4.DailyRestingHeartRate.DailyRestingHeartRateMetadata.CalculationMethod
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<DailyRestingHeartRate.DailyRestingHeartRateMetadata.CalculationMethod>
- Enclosing class:
- DailyRestingHeartRate.DailyRestingHeartRateMetadata
public static enum DailyRestingHeartRate.DailyRestingHeartRateMetadata.CalculationMethod
extends Enum<DailyRestingHeartRate.DailyRestingHeartRateMetadata.CalculationMethod>
implements com.google.protobuf.ProtocolMessageEnum
The method used to calculate the resting heart rate.Protobuf enum
google.devicesandservices.health.v4.DailyRestingHeartRate.DailyRestingHeartRateMetadata.CalculationMethod-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe calculation method is unspecified.The resting heart rate is calculated using only awake data.The resting heart rate is calculated using the sleep data. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe calculation method is unspecified.static final intThe resting heart rate is calculated using only awake data.static final intThe resting heart rate is calculated using the sleep data. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<DailyRestingHeartRate.DailyRestingHeartRateMetadata.CalculationMethod>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CALCULATION_METHOD_UNSPECIFIED
public static final DailyRestingHeartRate.DailyRestingHeartRateMetadata.CalculationMethod CALCULATION_METHOD_UNSPECIFIEDThe calculation method is unspecified.
CALCULATION_METHOD_UNSPECIFIED = 0; -
WITH_SLEEP
public static final DailyRestingHeartRate.DailyRestingHeartRateMetadata.CalculationMethod WITH_SLEEPThe resting heart rate is calculated using the sleep data.
WITH_SLEEP = 1; -
ONLY_WITH_AWAKE_DATA
public static final DailyRestingHeartRate.DailyRestingHeartRateMetadata.CalculationMethod ONLY_WITH_AWAKE_DATAThe resting heart rate is calculated using only awake data.
ONLY_WITH_AWAKE_DATA = 2; -
UNRECOGNIZED
public static final DailyRestingHeartRate.DailyRestingHeartRateMetadata.CalculationMethod UNRECOGNIZED
-
-
Field Details
-
CALCULATION_METHOD_UNSPECIFIED_VALUE
public static final int CALCULATION_METHOD_UNSPECIFIED_VALUEThe calculation method is unspecified.
CALCULATION_METHOD_UNSPECIFIED = 0;- See Also:
-
WITH_SLEEP_VALUE
public static final int WITH_SLEEP_VALUEThe resting heart rate is calculated using the sleep data.
WITH_SLEEP = 1;- See Also:
-
ONLY_WITH_AWAKE_DATA_VALUE
public static final int ONLY_WITH_AWAKE_DATA_VALUEThe resting heart rate is calculated using only awake data.
ONLY_WITH_AWAKE_DATA = 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
public static DailyRestingHeartRate.DailyRestingHeartRateMetadata.CalculationMethod 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 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 public static DailyRestingHeartRate.DailyRestingHeartRateMetadata.CalculationMethod 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 nameNullPointerException- if the argument is null
-
forNumber
public static DailyRestingHeartRate.DailyRestingHeartRateMetadata.CalculationMethod 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<DailyRestingHeartRate.DailyRestingHeartRateMetadata.CalculationMethod> 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 DailyRestingHeartRate.DailyRestingHeartRateMetadata.CalculationMethod 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
-