Enum DataSource.RecordingMethod
java.lang.Object
java.lang.Enum<DataSource.RecordingMethod>
com.google.devicesandservices.health.v4.DataSource.RecordingMethod
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<DataSource.RecordingMethod>
- Enclosing class:
- DataSource
public static enum DataSource.RecordingMethod
extends Enum<DataSource.RecordingMethod>
implements com.google.protobuf.ProtocolMessageEnum
The method by which the data was recorded.Protobuf enum
google.devicesandservices.health.v4.DataSource.RecordingMethod-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe data was actively measured by a device.The data was derived from other data, e.g., by an algorithm in the backend.The data was manually entered by the user.The data was passively measured by a device.The recording method is unspecified.The recording method is unknown. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe data was actively measured by a device.static final intThe data was derived from other data, e.g., by an algorithm in the backend.static final intThe data was manually entered by the user.static final intThe data was passively measured by a device.static final intThe recording method is unspecified.static final intThe recording method is unknown. -
Method Summary
Modifier and TypeMethodDescriptionstatic DataSource.RecordingMethodforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<DataSource.RecordingMethod>static DataSource.RecordingMethodvalueOf(int value) Deprecated.static DataSource.RecordingMethodvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static DataSource.RecordingMethodReturns the enum constant of this type with the specified name.static DataSource.RecordingMethod[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
RECORDING_METHOD_UNSPECIFIED
The recording method is unspecified.
RECORDING_METHOD_UNSPECIFIED = 0; -
MANUAL
The data was manually entered by the user.
MANUAL = 1; -
PASSIVELY_MEASURED
The data was passively measured by a device.
PASSIVELY_MEASURED = 2; -
DERIVED
The data was derived from other data, e.g., by an algorithm in the backend.
DERIVED = 3; -
ACTIVELY_MEASURED
The data was actively measured by a device.
ACTIVELY_MEASURED = 4; -
UNKNOWN
The recording method is unknown. This is set when the data is uploaded from a third party app that does not provide this information.
UNKNOWN = 5; -
UNRECOGNIZED
-
-
Field Details
-
RECORDING_METHOD_UNSPECIFIED_VALUE
public static final int RECORDING_METHOD_UNSPECIFIED_VALUEThe recording method is unspecified.
RECORDING_METHOD_UNSPECIFIED = 0;- See Also:
-
MANUAL_VALUE
public static final int MANUAL_VALUEThe data was manually entered by the user.
MANUAL = 1;- See Also:
-
PASSIVELY_MEASURED_VALUE
public static final int PASSIVELY_MEASURED_VALUEThe data was passively measured by a device.
PASSIVELY_MEASURED = 2;- See Also:
-
DERIVED_VALUE
public static final int DERIVED_VALUEThe data was derived from other data, e.g., by an algorithm in the backend.
DERIVED = 3;- See Also:
-
ACTIVELY_MEASURED_VALUE
public static final int ACTIVELY_MEASURED_VALUEThe data was actively measured by a device.
ACTIVELY_MEASURED = 4;- See Also:
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUEThe recording method is unknown. This is set when the data is uploaded from a third party app that does not provide this information.
UNKNOWN = 5;- 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
public static com.google.protobuf.Internal.EnumLiteMap<DataSource.RecordingMethod> 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 DataSource.RecordingMethod 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
-