Interface SleepOrBuilder

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

@Generated public interface SleepOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • hasInterval

      boolean hasInterval()
       Required. Observed sleep interval.
       
      .google.devicesandservices.health.v4.SessionTimeInterval interval = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      Whether the interval field is set.
    • getInterval

      SessionTimeInterval getInterval()
       Required. Observed sleep interval.
       
      .google.devicesandservices.health.v4.SessionTimeInterval interval = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The interval.
    • getIntervalOrBuilder

      SessionTimeIntervalOrBuilder getIntervalOrBuilder()
       Required. Observed sleep interval.
       
      .google.devicesandservices.health.v4.SessionTimeInterval interval = 3 [(.google.api.field_behavior) = REQUIRED];
    • getTypeValue

      int getTypeValue()
       Optional. SleepType: classic or stages.
       
      .google.devicesandservices.health.v4.Sleep.SleepType type = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The enum numeric value on the wire for type.
    • getType

      Sleep.SleepType getType()
       Optional. SleepType: classic or stages.
       
      .google.devicesandservices.health.v4.Sleep.SleepType type = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The type.
    • getStagesList

      List<Sleep.SleepStage> getStagesList()
       Optional. List of non-overlapping contiguous sleep stage segments that
       cover the sleep period.
       
      repeated .google.devicesandservices.health.v4.Sleep.SleepStage stages = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getStages

      Sleep.SleepStage getStages(int index)
       Optional. List of non-overlapping contiguous sleep stage segments that
       cover the sleep period.
       
      repeated .google.devicesandservices.health.v4.Sleep.SleepStage stages = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getStagesCount

      int getStagesCount()
       Optional. List of non-overlapping contiguous sleep stage segments that
       cover the sleep period.
       
      repeated .google.devicesandservices.health.v4.Sleep.SleepStage stages = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getStagesOrBuilderList

      List<? extends Sleep.SleepStageOrBuilder> getStagesOrBuilderList()
       Optional. List of non-overlapping contiguous sleep stage segments that
       cover the sleep period.
       
      repeated .google.devicesandservices.health.v4.Sleep.SleepStage stages = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getStagesOrBuilder

      Sleep.SleepStageOrBuilder getStagesOrBuilder(int index)
       Optional. List of non-overlapping contiguous sleep stage segments that
       cover the sleep period.
       
      repeated .google.devicesandservices.health.v4.Sleep.SleepStage stages = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getOutOfBedSegmentsList

      List<Sleep.OutOfBedSegment> getOutOfBedSegmentsList()
       Optional.
       “Out of bed” segments that can overlap with sleep stages.
       
      repeated .google.devicesandservices.health.v4.Sleep.OutOfBedSegment out_of_bed_segments = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getOutOfBedSegments

      Sleep.OutOfBedSegment getOutOfBedSegments(int index)
       Optional.
       “Out of bed” segments that can overlap with sleep stages.
       
      repeated .google.devicesandservices.health.v4.Sleep.OutOfBedSegment out_of_bed_segments = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getOutOfBedSegmentsCount

      int getOutOfBedSegmentsCount()
       Optional.
       “Out of bed” segments that can overlap with sleep stages.
       
      repeated .google.devicesandservices.health.v4.Sleep.OutOfBedSegment out_of_bed_segments = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getOutOfBedSegmentsOrBuilderList

      List<? extends Sleep.OutOfBedSegmentOrBuilder> getOutOfBedSegmentsOrBuilderList()
       Optional.
       “Out of bed” segments that can overlap with sleep stages.
       
      repeated .google.devicesandservices.health.v4.Sleep.OutOfBedSegment out_of_bed_segments = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getOutOfBedSegmentsOrBuilder

      Sleep.OutOfBedSegmentOrBuilder getOutOfBedSegmentsOrBuilder(int index)
       Optional.
       “Out of bed” segments that can overlap with sleep stages.
       
      repeated .google.devicesandservices.health.v4.Sleep.OutOfBedSegment out_of_bed_segments = 6 [(.google.api.field_behavior) = OPTIONAL];
    • hasMetadata

      boolean hasMetadata()
       Optional. Sleep metadata: processing, main, manually edited, stages status.
       
      .google.devicesandservices.health.v4.Sleep.SleepMetadata metadata = 8 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      Whether the metadata field is set.
    • getMetadata

      Sleep.SleepMetadata getMetadata()
       Optional. Sleep metadata: processing, main, manually edited, stages status.
       
      .google.devicesandservices.health.v4.Sleep.SleepMetadata metadata = 8 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The metadata.
    • getMetadataOrBuilder

      Sleep.SleepMetadataOrBuilder getMetadataOrBuilder()
       Optional. Sleep metadata: processing, main, manually edited, stages status.
       
      .google.devicesandservices.health.v4.Sleep.SleepMetadata metadata = 8 [(.google.api.field_behavior) = OPTIONAL];
    • hasSummary

      boolean hasSummary()
       Output only. Sleep summary: metrics and stages summary.
       
      .google.devicesandservices.health.v4.Sleep.SleepSummary summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      Whether the summary field is set.
    • getSummary

      Sleep.SleepSummary getSummary()
       Output only. Sleep summary: metrics and stages summary.
       
      .google.devicesandservices.health.v4.Sleep.SleepSummary summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The summary.
    • getSummaryOrBuilder

      Sleep.SleepSummaryOrBuilder getSummaryOrBuilder()
       Output only. Sleep summary: metrics and stages summary.
       
      .google.devicesandservices.health.v4.Sleep.SleepSummary summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • hasCreateTime

      boolean hasCreateTime()
       Output only. Creation time of this sleep observation.
       
      .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      com.google.protobuf.Timestamp getCreateTime()
       Output only. Creation time of this sleep observation.
       
      .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Creation time of this sleep observation.
       
      .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • hasUpdateTime

      boolean hasUpdateTime()
       Output only. Last update time of this sleep observation.
       
      .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      com.google.protobuf.Timestamp getUpdateTime()
       Output only. Last update time of this sleep observation.
       
      .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Last update time of this sleep observation.
       
      .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];