Class DailyHeartRateVariability.Builder

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

public static final class DailyHeartRateVariability.Builder extends com.google.protobuf.GeneratedMessage.Builder<DailyHeartRateVariability.Builder> implements DailyHeartRateVariabilityOrBuilder
 Represents the daily heart rate variability data type.

 At least one of the following fields must be set:

 - `average_heart_rate_variability_milliseconds`
 - `non_rem_heart_rate_beats_per_minute`
 - `entropy`
 - `deep_sleep_root_mean_square_of_successive_differences_milliseconds`
 
Protobuf type google.devicesandservices.health.v4.DailyHeartRateVariability
  • 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<DailyHeartRateVariability.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<DailyHeartRateVariability.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<DailyHeartRateVariability.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public boolean hasDate()
       Required. Date (in the user's timezone) of heart rate variability
       measurement.
       
      .google.type.Date date = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasDate in interface DailyHeartRateVariabilityOrBuilder
      Returns:
      Whether the date field is set.
    • getDate

      public Date getDate()
       Required. Date (in the user's timezone) of heart rate variability
       measurement.
       
      .google.type.Date date = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDate in interface DailyHeartRateVariabilityOrBuilder
      Returns:
      The date.
    • setDate

      public DailyHeartRateVariability.Builder setDate(Date value)
       Required. Date (in the user's timezone) of heart rate variability
       measurement.
       
      .google.type.Date date = 2 [(.google.api.field_behavior) = REQUIRED];
    • setDate

      public DailyHeartRateVariability.Builder setDate(Date.Builder builderForValue)
       Required. Date (in the user's timezone) of heart rate variability
       measurement.
       
      .google.type.Date date = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeDate

      public DailyHeartRateVariability.Builder mergeDate(Date value)
       Required. Date (in the user's timezone) of heart rate variability
       measurement.
       
      .google.type.Date date = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearDate

       Required. Date (in the user's timezone) of heart rate variability
       measurement.
       
      .google.type.Date date = 2 [(.google.api.field_behavior) = REQUIRED];
    • getDateBuilder

      public Date.Builder getDateBuilder()
       Required. Date (in the user's timezone) of heart rate variability
       measurement.
       
      .google.type.Date date = 2 [(.google.api.field_behavior) = REQUIRED];
    • getDateOrBuilder

      public DateOrBuilder getDateOrBuilder()
       Required. Date (in the user's timezone) of heart rate variability
       measurement.
       
      .google.type.Date date = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDateOrBuilder in interface DailyHeartRateVariabilityOrBuilder
    • hasAverageHeartRateVariabilityMilliseconds

      public boolean hasAverageHeartRateVariabilityMilliseconds()
       Optional. A user's average heart rate variability calculated using the root
       mean square of successive differences (RMSSD) in times between heartbeats.
       
      optional double average_heart_rate_variability_milliseconds = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasAverageHeartRateVariabilityMilliseconds in interface DailyHeartRateVariabilityOrBuilder
      Returns:
      Whether the averageHeartRateVariabilityMilliseconds field is set.
    • getAverageHeartRateVariabilityMilliseconds

      public double getAverageHeartRateVariabilityMilliseconds()
       Optional. A user's average heart rate variability calculated using the root
       mean square of successive differences (RMSSD) in times between heartbeats.
       
      optional double average_heart_rate_variability_milliseconds = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAverageHeartRateVariabilityMilliseconds in interface DailyHeartRateVariabilityOrBuilder
      Returns:
      The averageHeartRateVariabilityMilliseconds.
    • setAverageHeartRateVariabilityMilliseconds

      public DailyHeartRateVariability.Builder setAverageHeartRateVariabilityMilliseconds(double value)
       Optional. A user's average heart rate variability calculated using the root
       mean square of successive differences (RMSSD) in times between heartbeats.
       
      optional double average_heart_rate_variability_milliseconds = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The averageHeartRateVariabilityMilliseconds to set.
      Returns:
      This builder for chaining.
    • clearAverageHeartRateVariabilityMilliseconds

      public DailyHeartRateVariability.Builder clearAverageHeartRateVariabilityMilliseconds()
       Optional. A user's average heart rate variability calculated using the root
       mean square of successive differences (RMSSD) in times between heartbeats.
       
      optional double average_heart_rate_variability_milliseconds = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasNonRemHeartRateBeatsPerMinute

      public boolean hasNonRemHeartRateBeatsPerMinute()
       Optional. Non-REM heart rate
       
      optional int64 non_rem_heart_rate_beats_per_minute = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasNonRemHeartRateBeatsPerMinute in interface DailyHeartRateVariabilityOrBuilder
      Returns:
      Whether the nonRemHeartRateBeatsPerMinute field is set.
    • getNonRemHeartRateBeatsPerMinute

      public long getNonRemHeartRateBeatsPerMinute()
       Optional. Non-REM heart rate
       
      optional int64 non_rem_heart_rate_beats_per_minute = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNonRemHeartRateBeatsPerMinute in interface DailyHeartRateVariabilityOrBuilder
      Returns:
      The nonRemHeartRateBeatsPerMinute.
    • setNonRemHeartRateBeatsPerMinute

      public DailyHeartRateVariability.Builder setNonRemHeartRateBeatsPerMinute(long value)
       Optional. Non-REM heart rate
       
      optional int64 non_rem_heart_rate_beats_per_minute = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The nonRemHeartRateBeatsPerMinute to set.
      Returns:
      This builder for chaining.
    • clearNonRemHeartRateBeatsPerMinute

      public DailyHeartRateVariability.Builder clearNonRemHeartRateBeatsPerMinute()
       Optional. Non-REM heart rate
       
      optional int64 non_rem_heart_rate_beats_per_minute = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasEntropy

      public boolean hasEntropy()
       Optional. The Shanon entropy of heartbeat intervals.
       Entropy quantifies randomness or disorder in a system. High entropy
       indicates high HRV. Entropy is measured from the histogram of time interval
       between successive heart beats values measured during sleep.
       
      optional double entropy = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasEntropy in interface DailyHeartRateVariabilityOrBuilder
      Returns:
      Whether the entropy field is set.
    • getEntropy

      public double getEntropy()
       Optional. The Shanon entropy of heartbeat intervals.
       Entropy quantifies randomness or disorder in a system. High entropy
       indicates high HRV. Entropy is measured from the histogram of time interval
       between successive heart beats values measured during sleep.
       
      optional double entropy = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEntropy in interface DailyHeartRateVariabilityOrBuilder
      Returns:
      The entropy.
    • setEntropy

      public DailyHeartRateVariability.Builder setEntropy(double value)
       Optional. The Shanon entropy of heartbeat intervals.
       Entropy quantifies randomness or disorder in a system. High entropy
       indicates high HRV. Entropy is measured from the histogram of time interval
       between successive heart beats values measured during sleep.
       
      optional double entropy = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The entropy to set.
      Returns:
      This builder for chaining.
    • clearEntropy

      public DailyHeartRateVariability.Builder clearEntropy()
       Optional. The Shanon entropy of heartbeat intervals.
       Entropy quantifies randomness or disorder in a system. High entropy
       indicates high HRV. Entropy is measured from the histogram of time interval
       between successive heart beats values measured during sleep.
       
      optional double entropy = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasDeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds

      public boolean hasDeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds()
       Optional. The root mean square of successive differences (RMSSD) value
       during deep sleep.
       
      optional double deep_sleep_root_mean_square_of_successive_differences_milliseconds = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasDeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds in interface DailyHeartRateVariabilityOrBuilder
      Returns:
      Whether the deepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds field is set.
    • getDeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds

      public double getDeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds()
       Optional. The root mean square of successive differences (RMSSD) value
       during deep sleep.
       
      optional double deep_sleep_root_mean_square_of_successive_differences_milliseconds = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds in interface DailyHeartRateVariabilityOrBuilder
      Returns:
      The deepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds.
    • setDeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds

      public DailyHeartRateVariability.Builder setDeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds(double value)
       Optional. The root mean square of successive differences (RMSSD) value
       during deep sleep.
       
      optional double deep_sleep_root_mean_square_of_successive_differences_milliseconds = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The deepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds to set.
      Returns:
      This builder for chaining.
    • clearDeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds

      public DailyHeartRateVariability.Builder clearDeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds()
       Optional. The root mean square of successive differences (RMSSD) value
       during deep sleep.
       
      optional double deep_sleep_root_mean_square_of_successive_differences_milliseconds = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.