Class RespiratoryRateSleepSummary

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.devicesandservices.health.v4.RespiratoryRateSleepSummary
All Implemented Interfaces:
RespiratoryRateSleepSummaryOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class RespiratoryRateSleepSummary extends com.google.protobuf.GeneratedMessage implements RespiratoryRateSleepSummaryOrBuilder
 Records respiratory rate details during sleep.
 Can have multiple per day if the user sleeps multiple times.
 
Protobuf type google.devicesandservices.health.v4.RespiratoryRateSleepSummary
See Also:
  • Field Details

    • SAMPLE_TIME_FIELD_NUMBER

      public static final int SAMPLE_TIME_FIELD_NUMBER
      See Also:
    • DEEP_SLEEP_STATS_FIELD_NUMBER

      public static final int DEEP_SLEEP_STATS_FIELD_NUMBER
      See Also:
    • LIGHT_SLEEP_STATS_FIELD_NUMBER

      public static final int LIGHT_SLEEP_STATS_FIELD_NUMBER
      See Also:
    • REM_SLEEP_STATS_FIELD_NUMBER

      public static final int REM_SLEEP_STATS_FIELD_NUMBER
      See Also:
    • FULL_SLEEP_STATS_FIELD_NUMBER

      public static final int FULL_SLEEP_STATS_FIELD_NUMBER
      See Also:
  • 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
    • hasSampleTime

      public boolean hasSampleTime()
       Required. The time at which respiratory rate was measured.
       
      .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasSampleTime in interface RespiratoryRateSleepSummaryOrBuilder
      Returns:
      Whether the sampleTime field is set.
    • getSampleTime

      public ObservationSampleTime getSampleTime()
       Required. The time at which respiratory rate was measured.
       
      .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSampleTime in interface RespiratoryRateSleepSummaryOrBuilder
      Returns:
      The sampleTime.
    • getSampleTimeOrBuilder

      public ObservationSampleTimeOrBuilder getSampleTimeOrBuilder()
       Required. The time at which respiratory rate was measured.
       
      .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSampleTimeOrBuilder in interface RespiratoryRateSleepSummaryOrBuilder
    • hasDeepSleepStats

      public boolean hasDeepSleepStats()
       Optional. Respiratory rate statistics for deep sleep.
       
      .google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics deep_sleep_stats = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasDeepSleepStats in interface RespiratoryRateSleepSummaryOrBuilder
      Returns:
      Whether the deepSleepStats field is set.
    • getDeepSleepStats

       Optional. Respiratory rate statistics for deep sleep.
       
      .google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics deep_sleep_stats = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDeepSleepStats in interface RespiratoryRateSleepSummaryOrBuilder
      Returns:
      The deepSleepStats.
    • getDeepSleepStatsOrBuilder

       Optional. Respiratory rate statistics for deep sleep.
       
      .google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics deep_sleep_stats = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDeepSleepStatsOrBuilder in interface RespiratoryRateSleepSummaryOrBuilder
    • hasLightSleepStats

      public boolean hasLightSleepStats()
       Optional. Respiratory rate statistics for light sleep.
       
      .google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics light_sleep_stats = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasLightSleepStats in interface RespiratoryRateSleepSummaryOrBuilder
      Returns:
      Whether the lightSleepStats field is set.
    • getLightSleepStats

       Optional. Respiratory rate statistics for light sleep.
       
      .google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics light_sleep_stats = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLightSleepStats in interface RespiratoryRateSleepSummaryOrBuilder
      Returns:
      The lightSleepStats.
    • getLightSleepStatsOrBuilder

       Optional. Respiratory rate statistics for light sleep.
       
      .google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics light_sleep_stats = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLightSleepStatsOrBuilder in interface RespiratoryRateSleepSummaryOrBuilder
    • hasRemSleepStats

      public boolean hasRemSleepStats()
       Optional. Respiratory rate statistics for REM sleep.
       
      .google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics rem_sleep_stats = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasRemSleepStats in interface RespiratoryRateSleepSummaryOrBuilder
      Returns:
      Whether the remSleepStats field is set.
    • getRemSleepStats

       Optional. Respiratory rate statistics for REM sleep.
       
      .google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics rem_sleep_stats = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRemSleepStats in interface RespiratoryRateSleepSummaryOrBuilder
      Returns:
      The remSleepStats.
    • getRemSleepStatsOrBuilder

       Optional. Respiratory rate statistics for REM sleep.
       
      .google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics rem_sleep_stats = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRemSleepStatsOrBuilder in interface RespiratoryRateSleepSummaryOrBuilder
    • hasFullSleepStats

      public boolean hasFullSleepStats()
       Required. Full respiratory rate statistics.
       
      .google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics full_sleep_stats = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasFullSleepStats in interface RespiratoryRateSleepSummaryOrBuilder
      Returns:
      Whether the fullSleepStats field is set.
    • getFullSleepStats

       Required. Full respiratory rate statistics.
       
      .google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics full_sleep_stats = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFullSleepStats in interface RespiratoryRateSleepSummaryOrBuilder
      Returns:
      The fullSleepStats.
    • getFullSleepStatsOrBuilder

       Required. Full respiratory rate statistics.
       
      .google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics full_sleep_stats = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFullSleepStatsOrBuilder in interface RespiratoryRateSleepSummaryOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static RespiratoryRateSleepSummary parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RespiratoryRateSleepSummary parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RespiratoryRateSleepSummary parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RespiratoryRateSleepSummary parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RespiratoryRateSleepSummary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RespiratoryRateSleepSummary parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RespiratoryRateSleepSummary parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RespiratoryRateSleepSummary parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RespiratoryRateSleepSummary parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RespiratoryRateSleepSummary parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RespiratoryRateSleepSummary parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RespiratoryRateSleepSummary parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public RespiratoryRateSleepSummary.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static RespiratoryRateSleepSummary.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected RespiratoryRateSleepSummary.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static RespiratoryRateSleepSummary getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<RespiratoryRateSleepSummary> parser()
    • getParserForType

      public com.google.protobuf.Parser<RespiratoryRateSleepSummary> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public RespiratoryRateSleepSummary getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder