Class DailySleepTemperatureDerivations (0.2.0)

public final class DailySleepTemperatureDerivations extends GeneratedMessage implements DailySleepTemperatureDerivationsOrBuilder

Provides derived sleep temperature values, calculated from skin or internal device temperature readings during sleep.

Protobuf type google.devicesandservices.health.v4.DailySleepTemperatureDerivations

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > DailySleepTemperatureDerivations

Static Fields

BASELINE_TEMPERATURE_CELSIUS_FIELD_NUMBER

public static final int BASELINE_TEMPERATURE_CELSIUS_FIELD_NUMBER
Field Value
Type Description
int

DATE_FIELD_NUMBER

public static final int DATE_FIELD_NUMBER
Field Value
Type Description
int

NIGHTLY_TEMPERATURE_CELSIUS_FIELD_NUMBER

public static final int NIGHTLY_TEMPERATURE_CELSIUS_FIELD_NUMBER
Field Value
Type Description
int

RELATIVE_NIGHTLY_STDDEV_30D_CELSIUS_FIELD_NUMBER

public static final int RELATIVE_NIGHTLY_STDDEV_30D_CELSIUS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DailySleepTemperatureDerivations getDefaultInstance()
Returns
Type Description
DailySleepTemperatureDerivations

getDescriptor()

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

newBuilder()

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

newBuilder(DailySleepTemperatureDerivations prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getBaselineTemperatureCelsius()

public double getBaselineTemperatureCelsius()

Optional. The user's baseline skin temperature. It is the median of the user's nightly skin temperature over the past 30 days.

optional double baseline_temperature_celsius = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
double

The baselineTemperatureCelsius.

getDate()

public Date getDate()

Required. Date for which the sleep temperature derivations are calculated.

.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.Date

The date.

getDateOrBuilder()

public DateOrBuilder getDateOrBuilder()

Required. Date for which the sleep temperature derivations are calculated.

.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.DateOrBuilder

getDefaultInstanceForType()

public DailySleepTemperatureDerivations getDefaultInstanceForType()
Returns
Type Description
DailySleepTemperatureDerivations

getNightlyTemperatureCelsius()

public double getNightlyTemperatureCelsius()

Required. The user's nightly skin temperature. It is the mean of skin temperature samples taken from the user’s sleep.

optional double nightly_temperature_celsius = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
double

The nightlyTemperatureCelsius.

getParserForType()

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

getRelativeNightlyStddev30DCelsius()

public double getRelativeNightlyStddev30DCelsius()

Optional. The standard deviation of the user’s relative nightly skin temperature (temperature - baseline) over the past 30 days.

optional double relative_nightly_stddev_30d_celsius = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
double

The relativeNightlyStddev30dCelsius.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasBaselineTemperatureCelsius()

public boolean hasBaselineTemperatureCelsius()

Optional. The user's baseline skin temperature. It is the median of the user's nightly skin temperature over the past 30 days.

optional double baseline_temperature_celsius = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the baselineTemperatureCelsius field is set.

hasDate()

public boolean hasDate()

Required. Date for which the sleep temperature derivations are calculated.

.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the date field is set.

hasNightlyTemperatureCelsius()

public boolean hasNightlyTemperatureCelsius()

Required. The user's nightly skin temperature. It is the mean of skin temperature samples taken from the user’s sleep.

optional double nightly_temperature_celsius = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the nightlyTemperatureCelsius field is set.

hasRelativeNightlyStddev30DCelsius()

public boolean hasRelativeNightlyStddev30DCelsius()

Optional. The standard deviation of the user’s relative nightly skin temperature (temperature - baseline) over the past 30 days.

optional double relative_nightly_stddev_30d_celsius = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the relativeNightlyStddev30dCelsius 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 DailySleepTemperatureDerivations.Builder newBuilderForType()
Returns
Type Description
DailySleepTemperatureDerivations.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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