Class DailySleepTemperatureDerivations.Builder (0.2.0)

public static final class DailySleepTemperatureDerivations.Builder extends GeneratedMessage.Builder<DailySleepTemperatureDerivations.Builder> implements DailySleepTemperatureDerivationsOrBuilder

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

Protobuf type google.devicesandservices.health.v4.DailySleepTemperatureDerivations

Static Methods

getDescriptor()

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

Methods

build()

public DailySleepTemperatureDerivations build()
Returns
Type Description
DailySleepTemperatureDerivations

buildPartial()

public DailySleepTemperatureDerivations buildPartial()
Returns
Type Description
DailySleepTemperatureDerivations

clear()

public DailySleepTemperatureDerivations.Builder clear()
Returns
Type Description
DailySleepTemperatureDerivations.Builder
Overrides

clearBaselineTemperatureCelsius()

public DailySleepTemperatureDerivations.Builder clearBaselineTemperatureCelsius()

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
DailySleepTemperatureDerivations.Builder

This builder for chaining.

clearDate()

public DailySleepTemperatureDerivations.Builder clearDate()

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

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

Returns
Type Description
DailySleepTemperatureDerivations.Builder

clearNightlyTemperatureCelsius()

public DailySleepTemperatureDerivations.Builder clearNightlyTemperatureCelsius()

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
DailySleepTemperatureDerivations.Builder

This builder for chaining.

clearRelativeNightlyStddev30DCelsius()

public DailySleepTemperatureDerivations.Builder clearRelativeNightlyStddev30DCelsius()

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
DailySleepTemperatureDerivations.Builder

This builder for chaining.

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.

getDateBuilder()

public Date.Builder getDateBuilder()

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.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDate(Date value)

public DailySleepTemperatureDerivations.Builder mergeDate(Date value)

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

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

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
DailySleepTemperatureDerivations.Builder

mergeFrom(DailySleepTemperatureDerivations other)

public DailySleepTemperatureDerivations.Builder mergeFrom(DailySleepTemperatureDerivations other)
Parameter
Name Description
other DailySleepTemperatureDerivations
Returns
Type Description
DailySleepTemperatureDerivations.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DailySleepTemperatureDerivations.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DailySleepTemperatureDerivations.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DailySleepTemperatureDerivations.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DailySleepTemperatureDerivations.Builder
Overrides

setBaselineTemperatureCelsius(double value)

public DailySleepTemperatureDerivations.Builder setBaselineTemperatureCelsius(double value)

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

Parameter
Name Description
value double

The baselineTemperatureCelsius to set.

Returns
Type Description
DailySleepTemperatureDerivations.Builder

This builder for chaining.

setDate(Date value)

public DailySleepTemperatureDerivations.Builder setDate(Date value)

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

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

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
DailySleepTemperatureDerivations.Builder

setDate(Date.Builder builderForValue)

public DailySleepTemperatureDerivations.Builder setDate(Date.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue com.google.type.Date.Builder
Returns
Type Description
DailySleepTemperatureDerivations.Builder

setNightlyTemperatureCelsius(double value)

public DailySleepTemperatureDerivations.Builder setNightlyTemperatureCelsius(double value)

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

Parameter
Name Description
value double

The nightlyTemperatureCelsius to set.

Returns
Type Description
DailySleepTemperatureDerivations.Builder

This builder for chaining.

setRelativeNightlyStddev30DCelsius(double value)

public DailySleepTemperatureDerivations.Builder setRelativeNightlyStddev30DCelsius(double value)

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

Parameter
Name Description
value double

The relativeNightlyStddev30dCelsius to set.

Returns
Type Description
DailySleepTemperatureDerivations.Builder

This builder for chaining.