Enum Sleep.SleepMetadata.StagesState
java.lang.Object
java.lang.Enum<Sleep.SleepMetadata.StagesState>
com.google.devicesandservices.health.v4.Sleep.SleepMetadata.StagesState
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Sleep.SleepMetadata.StagesState>
- Enclosing class:
- Sleep.SleepMetadata
public static enum Sleep.SleepMetadata.StagesState
extends Enum<Sleep.SleepMetadata.StagesState>
implements com.google.protobuf.ProtocolMessageEnum
Sleep stages algorithm processing status.Protobuf enum
google.devicesandservices.health.v4.Sleep.SleepMetadata.StagesState-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOutput only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intOutput only.static final intOutput only.static final intOutput only.static final intOutput only.static final intOutput only.static final intOutput only.static final intOutput only.static final intOutput only.static final intOutput only.static final intOutput only. -
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<Sleep.SleepMetadata.StagesState>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.static Sleep.SleepMetadata.StagesState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STAGES_STATE_UNSPECIFIED
Output only. Sleep stages status is unspecified.
STAGES_STATE_UNSPECIFIED = 0; -
REJECTED_COVERAGE
Output only. Sleep stages cannot be computed due to low RR coverage.
REJECTED_COVERAGE = 1; -
REJECTED_MAX_GAP
Output only. Sleep stages cannot be computed due to the large middle gap (2h).
REJECTED_MAX_GAP = 2; -
REJECTED_START_GAP
Output only. Sleep stages cannot be computed due to the large start gap (1h).
REJECTED_START_GAP = 3; -
REJECTED_END_GAP
Output only. Sleep stages cannot be computed due to the large end gap (1h).
REJECTED_END_GAP = 4; -
REJECTED_NAP
Output only. Sleep stages cannot be computed because the sleep log is a nap (has < 3h duration).
REJECTED_NAP = 5; -
REJECTED_SERVER
Output only. Sleep stages cannot be computed because input data is not available (PPGV2, wake magnitude, etc).
REJECTED_SERVER = 6; -
TIMEOUT
Output only. Sleep stages cannot be computed due to server timeout.
TIMEOUT = 7; -
SUCCEEDED
Output only. Sleep stages successfully computed.
SUCCEEDED = 8; -
PROCESSING_INTERNAL_ERROR
Output only. Sleep stages cannot be computed due to server internal error.
PROCESSING_INTERNAL_ERROR = 9; -
UNRECOGNIZED
-
-
Field Details
-
STAGES_STATE_UNSPECIFIED_VALUE
public static final int STAGES_STATE_UNSPECIFIED_VALUEOutput only. Sleep stages status is unspecified.
STAGES_STATE_UNSPECIFIED = 0;- See Also:
-
REJECTED_COVERAGE_VALUE
public static final int REJECTED_COVERAGE_VALUEOutput only. Sleep stages cannot be computed due to low RR coverage.
REJECTED_COVERAGE = 1;- See Also:
-
REJECTED_MAX_GAP_VALUE
public static final int REJECTED_MAX_GAP_VALUEOutput only. Sleep stages cannot be computed due to the large middle gap (2h).
REJECTED_MAX_GAP = 2;- See Also:
-
REJECTED_START_GAP_VALUE
public static final int REJECTED_START_GAP_VALUEOutput only. Sleep stages cannot be computed due to the large start gap (1h).
REJECTED_START_GAP = 3;- See Also:
-
REJECTED_END_GAP_VALUE
public static final int REJECTED_END_GAP_VALUEOutput only. Sleep stages cannot be computed due to the large end gap (1h).
REJECTED_END_GAP = 4;- See Also:
-
REJECTED_NAP_VALUE
public static final int REJECTED_NAP_VALUEOutput only. Sleep stages cannot be computed because the sleep log is a nap (has < 3h duration).
REJECTED_NAP = 5;- See Also:
-
REJECTED_SERVER_VALUE
public static final int REJECTED_SERVER_VALUEOutput only. Sleep stages cannot be computed because input data is not available (PPGV2, wake magnitude, etc).
REJECTED_SERVER = 6;- See Also:
-
TIMEOUT_VALUE
public static final int TIMEOUT_VALUEOutput only. Sleep stages cannot be computed due to server timeout.
TIMEOUT = 7;- See Also:
-
SUCCEEDED_VALUE
public static final int SUCCEEDED_VALUEOutput only. Sleep stages successfully computed.
SUCCEEDED = 8;- See Also:
-
PROCESSING_INTERNAL_ERROR_VALUE
public static final int PROCESSING_INTERNAL_ERROR_VALUEOutput only. Sleep stages cannot be computed due to server internal error.
PROCESSING_INTERNAL_ERROR = 9;- 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<Sleep.SleepMetadata.StagesState> 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 Sleep.SleepMetadata.StagesState 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
-