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 Details

    • STAGES_STATE_UNSPECIFIED

      public static final Sleep.SleepMetadata.StagesState STAGES_STATE_UNSPECIFIED
       Output only. Sleep stages status is unspecified.
       
      STAGES_STATE_UNSPECIFIED = 0;
    • REJECTED_COVERAGE

      public static final Sleep.SleepMetadata.StagesState REJECTED_COVERAGE
       Output only. Sleep stages cannot be computed due to low RR coverage.
       
      REJECTED_COVERAGE = 1;
    • REJECTED_MAX_GAP

      public static final Sleep.SleepMetadata.StagesState REJECTED_MAX_GAP
       Output only. Sleep stages cannot be computed due to the large middle
       gap (2h).
       
      REJECTED_MAX_GAP = 2;
    • REJECTED_START_GAP

      public static final Sleep.SleepMetadata.StagesState REJECTED_START_GAP
       Output only. Sleep stages cannot be computed due to the large start
       gap (1h).
       
      REJECTED_START_GAP = 3;
    • REJECTED_END_GAP

      public static final Sleep.SleepMetadata.StagesState REJECTED_END_GAP
       Output only. Sleep stages cannot be computed due to the large end gap
       (1h).
       
      REJECTED_END_GAP = 4;
    • REJECTED_NAP

      public static final Sleep.SleepMetadata.StagesState REJECTED_NAP
       Output only. Sleep stages cannot be computed because the sleep log is a
       nap (has < 3h duration).
       
      REJECTED_NAP = 5;
    • REJECTED_SERVER

      public static final Sleep.SleepMetadata.StagesState REJECTED_SERVER
       Output only. Sleep stages cannot be computed because input data is not
       available (PPGV2, wake magnitude, etc).
       
      REJECTED_SERVER = 6;
    • TIMEOUT

      public static final Sleep.SleepMetadata.StagesState TIMEOUT
       Output only. Sleep stages cannot be computed due to server timeout.
       
      TIMEOUT = 7;
    • SUCCEEDED

      public static final Sleep.SleepMetadata.StagesState SUCCEEDED
       Output only. Sleep stages successfully computed.
       
      SUCCEEDED = 8;
    • PROCESSING_INTERNAL_ERROR

      public static final Sleep.SleepMetadata.StagesState PROCESSING_INTERNAL_ERROR
       Output only. Sleep stages cannot be computed due to server internal
       error.
       
      PROCESSING_INTERNAL_ERROR = 9;
    • UNRECOGNIZED

      public static final Sleep.SleepMetadata.StagesState UNRECOGNIZED
  • Field Details

    • STAGES_STATE_UNSPECIFIED_VALUE

      public static final int STAGES_STATE_UNSPECIFIED_VALUE
       Output only. Sleep stages status is unspecified.
       
      STAGES_STATE_UNSPECIFIED = 0;
      See Also:
    • REJECTED_COVERAGE_VALUE

      public static final int REJECTED_COVERAGE_VALUE
       Output 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_VALUE
       Output 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_VALUE
       Output 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_VALUE
       Output 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_VALUE
       Output 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_VALUE
       Output 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_VALUE
       Output only. Sleep stages cannot be computed due to server timeout.
       
      TIMEOUT = 7;
      See Also:
    • SUCCEEDED_VALUE

      public static final int SUCCEEDED_VALUE
       Output only. Sleep stages successfully computed.
       
      SUCCEEDED = 8;
      See Also:
    • PROCESSING_INTERNAL_ERROR_VALUE

      public static final int PROCESSING_INTERNAL_ERROR_VALUE
       Output only. Sleep stages cannot be computed due to server internal
       error.
       
      PROCESSING_INTERNAL_ERROR = 9;
      See Also:
  • Method Details

    • values

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