Class Sleep.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Sleep.Builder>
com.google.devicesandservices.health.v4.Sleep.Builder
All Implemented Interfaces:
SleepOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Sleep

public static final class Sleep.Builder extends com.google.protobuf.GeneratedMessage.Builder<Sleep.Builder> implements SleepOrBuilder
 A sleep session possibly including stages.
 
Protobuf type google.devicesandservices.health.v4.Sleep
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Sleep.Builder>
    • clear

      public Sleep.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Sleep.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Sleep.Builder>
    • getDefaultInstanceForType

      public Sleep getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Sleep build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Sleep buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Sleep.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Sleep.Builder>
    • mergeFrom

      public Sleep.Builder mergeFrom(Sleep other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Sleep.Builder>
    • mergeFrom

      public Sleep.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Sleep.Builder>
      Throws:
      IOException
    • hasInterval

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

      public SessionTimeInterval getInterval()
       Required. Observed sleep interval.
       
      .google.devicesandservices.health.v4.SessionTimeInterval interval = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInterval in interface SleepOrBuilder
      Returns:
      The interval.
    • setInterval

      public Sleep.Builder setInterval(SessionTimeInterval value)
       Required. Observed sleep interval.
       
      .google.devicesandservices.health.v4.SessionTimeInterval interval = 3 [(.google.api.field_behavior) = REQUIRED];
    • setInterval

      public Sleep.Builder setInterval(SessionTimeInterval.Builder builderForValue)
       Required. Observed sleep interval.
       
      .google.devicesandservices.health.v4.SessionTimeInterval interval = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeInterval

      public Sleep.Builder mergeInterval(SessionTimeInterval value)
       Required. Observed sleep interval.
       
      .google.devicesandservices.health.v4.SessionTimeInterval interval = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearInterval

      public Sleep.Builder clearInterval()
       Required. Observed sleep interval.
       
      .google.devicesandservices.health.v4.SessionTimeInterval interval = 3 [(.google.api.field_behavior) = REQUIRED];
    • getIntervalBuilder

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

      public SessionTimeIntervalOrBuilder getIntervalOrBuilder()
       Required. Observed sleep interval.
       
      .google.devicesandservices.health.v4.SessionTimeInterval interval = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIntervalOrBuilder in interface SleepOrBuilder
    • getTypeValue

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

      public Sleep.Builder setTypeValue(int value)
       Optional. SleepType: classic or stages.
       
      .google.devicesandservices.health.v4.Sleep.SleepType type = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public Sleep.SleepType getType()
       Optional. SleepType: classic or stages.
       
      .google.devicesandservices.health.v4.Sleep.SleepType type = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getType in interface SleepOrBuilder
      Returns:
      The type.
    • setType

      public Sleep.Builder setType(Sleep.SleepType value)
       Optional. SleepType: classic or stages.
       
      .google.devicesandservices.health.v4.Sleep.SleepType type = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public Sleep.Builder clearType()
       Optional. SleepType: classic or stages.
       
      .google.devicesandservices.health.v4.Sleep.SleepType type = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getStagesList

      public 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];
      Specified by:
      getStagesList in interface SleepOrBuilder
    • getStagesCount

      public 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];
      Specified by:
      getStagesCount in interface SleepOrBuilder
    • getStages

      public 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];
      Specified by:
      getStages in interface SleepOrBuilder
    • setStages

      public Sleep.Builder setStages(int index, Sleep.SleepStage value)
       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];
    • setStages

      public Sleep.Builder setStages(int index, Sleep.SleepStage.Builder builderForValue)
       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];
    • addStages

      public Sleep.Builder addStages(Sleep.SleepStage value)
       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];
    • addStages

      public Sleep.Builder addStages(int index, Sleep.SleepStage value)
       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];
    • addStages

      public Sleep.Builder addStages(Sleep.SleepStage.Builder builderForValue)
       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];
    • addStages

      public Sleep.Builder addStages(int index, Sleep.SleepStage.Builder builderForValue)
       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];
    • addAllStages

      public Sleep.Builder addAllStages(Iterable<? extends Sleep.SleepStage> values)
       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];
    • clearStages

      public Sleep.Builder clearStages()
       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];
    • removeStages

      public Sleep.Builder removeStages(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];
    • getStagesBuilder

      public Sleep.SleepStage.Builder getStagesBuilder(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];
    • getStagesOrBuilder

      public 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];
      Specified by:
      getStagesOrBuilder in interface SleepOrBuilder
    • getStagesOrBuilderList

      public 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];
      Specified by:
      getStagesOrBuilderList in interface SleepOrBuilder
    • addStagesBuilder

      public Sleep.SleepStage.Builder addStagesBuilder()
       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];
    • addStagesBuilder

      public Sleep.SleepStage.Builder addStagesBuilder(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];
    • getStagesBuilderList

      public List<Sleep.SleepStage.Builder> getStagesBuilderList()
       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

      public 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];
      Specified by:
      getOutOfBedSegmentsList in interface SleepOrBuilder
    • getOutOfBedSegmentsCount

      public 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];
      Specified by:
      getOutOfBedSegmentsCount in interface SleepOrBuilder
    • getOutOfBedSegments

      public 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];
      Specified by:
      getOutOfBedSegments in interface SleepOrBuilder
    • setOutOfBedSegments

      public Sleep.Builder setOutOfBedSegments(int index, Sleep.OutOfBedSegment value)
       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];
    • setOutOfBedSegments

      public Sleep.Builder setOutOfBedSegments(int index, Sleep.OutOfBedSegment.Builder builderForValue)
       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];
    • addOutOfBedSegments

      public Sleep.Builder addOutOfBedSegments(Sleep.OutOfBedSegment value)
       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];
    • addOutOfBedSegments

      public Sleep.Builder addOutOfBedSegments(int index, Sleep.OutOfBedSegment value)
       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];
    • addOutOfBedSegments

      public Sleep.Builder addOutOfBedSegments(Sleep.OutOfBedSegment.Builder builderForValue)
       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];
    • addOutOfBedSegments

      public Sleep.Builder addOutOfBedSegments(int index, Sleep.OutOfBedSegment.Builder builderForValue)
       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];
    • addAllOutOfBedSegments

      public Sleep.Builder addAllOutOfBedSegments(Iterable<? extends Sleep.OutOfBedSegment> values)
       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];
    • clearOutOfBedSegments

      public Sleep.Builder clearOutOfBedSegments()
       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];
    • removeOutOfBedSegments

      public Sleep.Builder removeOutOfBedSegments(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];
    • getOutOfBedSegmentsBuilder

      public Sleep.OutOfBedSegment.Builder getOutOfBedSegmentsBuilder(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];
    • getOutOfBedSegmentsOrBuilder

      public 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];
      Specified by:
      getOutOfBedSegmentsOrBuilder in interface SleepOrBuilder
    • getOutOfBedSegmentsOrBuilderList

      public 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];
      Specified by:
      getOutOfBedSegmentsOrBuilderList in interface SleepOrBuilder
    • addOutOfBedSegmentsBuilder

      public Sleep.OutOfBedSegment.Builder addOutOfBedSegmentsBuilder()
       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];
    • addOutOfBedSegmentsBuilder

      public Sleep.OutOfBedSegment.Builder addOutOfBedSegmentsBuilder(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];
    • getOutOfBedSegmentsBuilderList

      public List<Sleep.OutOfBedSegment.Builder> getOutOfBedSegmentsBuilderList()
       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

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

      public 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];
      Specified by:
      getMetadata in interface SleepOrBuilder
      Returns:
      The metadata.
    • setMetadata

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

      public Sleep.Builder setMetadata(Sleep.SleepMetadata.Builder builderForValue)
       Optional. Sleep metadata: processing, main, manually edited, stages status.
       
      .google.devicesandservices.health.v4.Sleep.SleepMetadata metadata = 8 [(.google.api.field_behavior) = OPTIONAL];
    • mergeMetadata

      public Sleep.Builder mergeMetadata(Sleep.SleepMetadata value)
       Optional. Sleep metadata: processing, main, manually edited, stages status.
       
      .google.devicesandservices.health.v4.Sleep.SleepMetadata metadata = 8 [(.google.api.field_behavior) = OPTIONAL];
    • clearMetadata

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

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

      public 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];
      Specified by:
      getMetadataOrBuilder in interface SleepOrBuilder
    • hasSummary

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

      public 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];
      Specified by:
      getSummary in interface SleepOrBuilder
      Returns:
      The summary.
    • setSummary

      public Sleep.Builder setSummary(Sleep.SleepSummary value)
       Output only. Sleep summary: metrics and stages summary.
       
      .google.devicesandservices.health.v4.Sleep.SleepSummary summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setSummary

      public Sleep.Builder setSummary(Sleep.SleepSummary.Builder builderForValue)
       Output only. Sleep summary: metrics and stages summary.
       
      .google.devicesandservices.health.v4.Sleep.SleepSummary summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeSummary

      public Sleep.Builder mergeSummary(Sleep.SleepSummary value)
       Output only. Sleep summary: metrics and stages summary.
       
      .google.devicesandservices.health.v4.Sleep.SleepSummary summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearSummary

      public Sleep.Builder clearSummary()
       Output only. Sleep summary: metrics and stages summary.
       
      .google.devicesandservices.health.v4.Sleep.SleepSummary summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getSummaryBuilder

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

      public 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];
      Specified by:
      getSummaryOrBuilder in interface SleepOrBuilder
    • hasCreateTime

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

      public 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];
      Specified by:
      getCreateTime in interface SleepOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Sleep.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Creation time of this sleep observation.
       
      .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Sleep.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Creation time of this sleep observation.
       
      .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Sleep.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Creation time of this sleep observation.
       
      .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Sleep.Builder clearCreateTime()
       Output only. Creation time of this sleep observation.
       
      .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

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

      public 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];
      Specified by:
      getCreateTimeOrBuilder in interface SleepOrBuilder
    • hasUpdateTime

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

      public 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];
      Specified by:
      getUpdateTime in interface SleepOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Sleep.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Last update time of this sleep observation.
       
      .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Sleep.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Last update time of this sleep observation.
       
      .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Sleep.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Last update time of this sleep observation.
       
      .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Sleep.Builder clearUpdateTime()
       Output only. Last update time of this sleep observation.
       
      .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

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

      public 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];
      Specified by:
      getUpdateTimeOrBuilder in interface SleepOrBuilder