Interface Sleep.SleepSummaryOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Sleep.SleepSummary, Sleep.SleepSummary.Builder
Enclosing class:
Sleep

public static interface Sleep.SleepSummaryOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • hasMinutesInSleepPeriod

      boolean hasMinutesInSleepPeriod()
       Output only. Delta between wake time and bedtime. It is the sum of all
       stages.
       
      optional int64 minutes_in_sleep_period = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      Whether the minutesInSleepPeriod field is set.
    • getMinutesInSleepPeriod

      long getMinutesInSleepPeriod()
       Output only. Delta between wake time and bedtime. It is the sum of all
       stages.
       
      optional int64 minutes_in_sleep_period = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The minutesInSleepPeriod.
    • hasMinutesAfterWakeUp

      boolean hasMinutesAfterWakeUp()
       Output only. Minutes after wake up calculated by restlessness algorithm.
       
      optional int64 minutes_after_wake_up = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      Whether the minutesAfterWakeUp field is set.
    • getMinutesAfterWakeUp

      long getMinutesAfterWakeUp()
       Output only. Minutes after wake up calculated by restlessness algorithm.
       
      optional int64 minutes_after_wake_up = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The minutesAfterWakeUp.
    • hasMinutesToFallAsleep

      boolean hasMinutesToFallAsleep()
       Output only. Minutes to fall asleep calculated by restlessness algorithm.
       
      optional int64 minutes_to_fall_asleep = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      Whether the minutesToFallAsleep field is set.
    • getMinutesToFallAsleep

      long getMinutesToFallAsleep()
       Output only. Minutes to fall asleep calculated by restlessness algorithm.
       
      optional int64 minutes_to_fall_asleep = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The minutesToFallAsleep.
    • hasMinutesAsleep

      boolean hasMinutesAsleep()
       Output only. Total number of minutes asleep.
       For classic sleep it is the sum of ASLEEP stages (excluding AWAKE and
       RESTLESS). For "stages" sleep it is the sum of LIGHT, REM and DEEP stages
       (excluding AWAKE).
       
      optional int64 minutes_asleep = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      Whether the minutesAsleep field is set.
    • getMinutesAsleep

      long getMinutesAsleep()
       Output only. Total number of minutes asleep.
       For classic sleep it is the sum of ASLEEP stages (excluding AWAKE and
       RESTLESS). For "stages" sleep it is the sum of LIGHT, REM and DEEP stages
       (excluding AWAKE).
       
      optional int64 minutes_asleep = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The minutesAsleep.
    • hasMinutesAwake

      boolean hasMinutesAwake()
       Output only. Total number of minutes awake. It is a sum of all AWAKE
       stages.
       
      optional int64 minutes_awake = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      Whether the minutesAwake field is set.
    • getMinutesAwake

      long getMinutesAwake()
       Output only. Total number of minutes awake. It is a sum of all AWAKE
       stages.
       
      optional int64 minutes_awake = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The minutesAwake.
    • getStagesSummaryList

      List<Sleep.SleepSummary.StageSummary> getStagesSummaryList()
       Output only. List of summaries (total duration and segment count) per
       each sleep stage type.
       
      repeated .google.devicesandservices.health.v4.Sleep.SleepSummary.StageSummary stages_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getStagesSummary

      Sleep.SleepSummary.StageSummary getStagesSummary(int index)
       Output only. List of summaries (total duration and segment count) per
       each sleep stage type.
       
      repeated .google.devicesandservices.health.v4.Sleep.SleepSummary.StageSummary stages_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getStagesSummaryCount

      int getStagesSummaryCount()
       Output only. List of summaries (total duration and segment count) per
       each sleep stage type.
       
      repeated .google.devicesandservices.health.v4.Sleep.SleepSummary.StageSummary stages_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getStagesSummaryOrBuilderList

      List<? extends Sleep.SleepSummary.StageSummaryOrBuilder> getStagesSummaryOrBuilderList()
       Output only. List of summaries (total duration and segment count) per
       each sleep stage type.
       
      repeated .google.devicesandservices.health.v4.Sleep.SleepSummary.StageSummary stages_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getStagesSummaryOrBuilder

      Sleep.SleepSummary.StageSummaryOrBuilder getStagesSummaryOrBuilder(int index)
       Output only. List of summaries (total duration and segment count) per
       each sleep stage type.
       
      repeated .google.devicesandservices.health.v4.Sleep.SleepSummary.StageSummary stages_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];