Class DailySleepTemperatureDerivations.Builder

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

public static final class DailySleepTemperatureDerivations.Builder extends com.google.protobuf.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
  • 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<DailySleepTemperatureDerivations.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<DailySleepTemperatureDerivations.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<DailySleepTemperatureDerivations.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public DailySleepTemperatureDerivations.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<DailySleepTemperatureDerivations.Builder>
    • mergeFrom

    • isInitialized

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

      public DailySleepTemperatureDerivations.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<DailySleepTemperatureDerivations.Builder>
      Throws:
      IOException
    • hasDate

      public boolean hasDate()
       Required. Date for which the sleep temperature derivations are calculated.
       
      .google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasDate in interface DailySleepTemperatureDerivationsOrBuilder
      Returns:
      Whether the date field is set.
    • getDate

      public Date getDate()
       Required. Date for which the sleep temperature derivations are calculated.
       
      .google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDate in interface DailySleepTemperatureDerivationsOrBuilder
      Returns:
      The date.
    • setDate

       Required. Date for which the sleep temperature derivations are calculated.
       
      .google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
    • setDate

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

       Required. Date for which the sleep temperature derivations are calculated.
       
      .google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearDate

       Required. Date for which the sleep temperature derivations are calculated.
       
      .google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
    • 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];
    • getDateOrBuilder

      public DateOrBuilder getDateOrBuilder()
       Required. Date for which the sleep temperature derivations are calculated.
       
      .google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDateOrBuilder in interface DailySleepTemperatureDerivationsOrBuilder
    • 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.
       
      double nightly_temperature_celsius = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNightlyTemperatureCelsius in interface DailySleepTemperatureDerivationsOrBuilder
      Returns:
      The nightlyTemperatureCelsius.
    • setNightlyTemperatureCelsius

      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.
       
      double nightly_temperature_celsius = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The nightlyTemperatureCelsius to set.
      Returns:
      This builder for chaining.
    • 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.
       
      double nightly_temperature_celsius = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      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.
       
      double baseline_temperature_celsius = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBaselineTemperatureCelsius in interface DailySleepTemperatureDerivationsOrBuilder
      Returns:
      The baselineTemperatureCelsius.
    • setBaselineTemperatureCelsius

      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.
       
      double baseline_temperature_celsius = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The baselineTemperatureCelsius to set.
      Returns:
      This builder for chaining.
    • 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.
       
      double baseline_temperature_celsius = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getRelativeNightlyStddev30DCelsius

      public double getRelativeNightlyStddev30DCelsius()
       Optional. The standard deviation of the user’s relative nightly skin
       temperature (temperature - baseline) over the past 30 days.
       
      double relative_nightly_stddev_30d_celsius = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRelativeNightlyStddev30DCelsius in interface DailySleepTemperatureDerivationsOrBuilder
      Returns:
      The relativeNightlyStddev30dCelsius.
    • setRelativeNightlyStddev30DCelsius

      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.
       
      double relative_nightly_stddev_30d_celsius = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The relativeNightlyStddev30dCelsius to set.
      Returns:
      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.
       
      double relative_nightly_stddev_30d_celsius = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.