Class RespiratoryRateSleepSummary (0.2.0)

public final class RespiratoryRateSleepSummary extends 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

Static Fields

DEEP_SLEEP_STATS_FIELD_NUMBER

public static final int DEEP_SLEEP_STATS_FIELD_NUMBER
Field Value
Type Description
int

FULL_SLEEP_STATS_FIELD_NUMBER

public static final int FULL_SLEEP_STATS_FIELD_NUMBER
Field Value
Type Description
int

LIGHT_SLEEP_STATS_FIELD_NUMBER

public static final int LIGHT_SLEEP_STATS_FIELD_NUMBER
Field Value
Type Description
int

REM_SLEEP_STATS_FIELD_NUMBER

public static final int REM_SLEEP_STATS_FIELD_NUMBER
Field Value
Type Description
int

SAMPLE_TIME_FIELD_NUMBER

public static final int SAMPLE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RespiratoryRateSleepSummary getDefaultInstance()
Returns
Type Description
RespiratoryRateSleepSummary

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static RespiratoryRateSleepSummary.Builder newBuilder()
Returns
Type Description
RespiratoryRateSleepSummary.Builder

newBuilder(RespiratoryRateSleepSummary prototype)

public static RespiratoryRateSleepSummary.Builder newBuilder(RespiratoryRateSleepSummary prototype)
Parameter
Name Description
prototype RespiratoryRateSleepSummary
Returns
Type Description
RespiratoryRateSleepSummary.Builder

parseDelimitedFrom(InputStream input)

public static RespiratoryRateSleepSummary parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RespiratoryRateSleepSummary
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RespiratoryRateSleepSummary parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RespiratoryRateSleepSummary
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RespiratoryRateSleepSummary parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RespiratoryRateSleepSummary
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RespiratoryRateSleepSummary parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RespiratoryRateSleepSummary
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RespiratoryRateSleepSummary parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RespiratoryRateSleepSummary
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RespiratoryRateSleepSummary parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RespiratoryRateSleepSummary
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RespiratoryRateSleepSummary parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RespiratoryRateSleepSummary
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RespiratoryRateSleepSummary parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RespiratoryRateSleepSummary
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RespiratoryRateSleepSummary parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RespiratoryRateSleepSummary
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RespiratoryRateSleepSummary parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RespiratoryRateSleepSummary
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RespiratoryRateSleepSummary parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RespiratoryRateSleepSummary
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RespiratoryRateSleepSummary parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RespiratoryRateSleepSummary
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RespiratoryRateSleepSummary> parser()
Returns
Type Description
Parser<RespiratoryRateSleepSummary>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDeepSleepStats()

public RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics getDeepSleepStats()

Optional. Respiratory rate statistics for deep sleep.

.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics deep_sleep_stats = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics

The deepSleepStats.

getDeepSleepStatsOrBuilder()

public RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatisticsOrBuilder getDeepSleepStatsOrBuilder()

Optional. Respiratory rate statistics for deep sleep.

.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics deep_sleep_stats = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatisticsOrBuilder

getDefaultInstanceForType()

public RespiratoryRateSleepSummary getDefaultInstanceForType()
Returns
Type Description
RespiratoryRateSleepSummary

getFullSleepStats()

public RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics getFullSleepStats()

Required. Full respiratory rate statistics.

.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics full_sleep_stats = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics

The fullSleepStats.

getFullSleepStatsOrBuilder()

public RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatisticsOrBuilder getFullSleepStatsOrBuilder()

Required. Full respiratory rate statistics.

.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics full_sleep_stats = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatisticsOrBuilder

getLightSleepStats()

public RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics getLightSleepStats()

Optional. Respiratory rate statistics for light sleep.

.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics light_sleep_stats = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics

The lightSleepStats.

getLightSleepStatsOrBuilder()

public RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatisticsOrBuilder getLightSleepStatsOrBuilder()

Optional. Respiratory rate statistics for light sleep.

.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics light_sleep_stats = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatisticsOrBuilder

getParserForType()

public Parser<RespiratoryRateSleepSummary> getParserForType()
Returns
Type Description
Parser<RespiratoryRateSleepSummary>
Overrides

getRemSleepStats()

public RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics getRemSleepStats()

Optional. Respiratory rate statistics for REM sleep.

.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics rem_sleep_stats = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics

The remSleepStats.

getRemSleepStatsOrBuilder()

public RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatisticsOrBuilder getRemSleepStatsOrBuilder()

Optional. Respiratory rate statistics for REM sleep.

.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics rem_sleep_stats = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatisticsOrBuilder

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];

Returns
Type Description
ObservationSampleTime

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];

Returns
Type Description
ObservationSampleTimeOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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];

Returns
Type Description
boolean

Whether the deepSleepStats field is set.

hasFullSleepStats()

public boolean hasFullSleepStats()

Required. Full respiratory rate statistics.

.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics full_sleep_stats = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the fullSleepStats field is set.

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];

Returns
Type Description
boolean

Whether the lightSleepStats field is set.

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];

Returns
Type Description
boolean

Whether the remSleepStats field is set.

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];

Returns
Type Description
boolean

Whether the sampleTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RespiratoryRateSleepSummary.Builder newBuilderForType()
Returns
Type Description
RespiratoryRateSleepSummary.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected RespiratoryRateSleepSummary.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RespiratoryRateSleepSummary.Builder
Overrides

toBuilder()

public RespiratoryRateSleepSummary.Builder toBuilder()
Returns
Type Description
RespiratoryRateSleepSummary.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException