Class Settings.Builder

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

public static final class Settings.Builder extends com.google.protobuf.GeneratedMessage.Builder<Settings.Builder> implements SettingsOrBuilder
 Settings details.
 
Protobuf type google.devicesandservices.health.v4.Settings
  • 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<Settings.Builder>
    • clear

      public Settings.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<Settings.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<Settings.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Settings.Builder mergeFrom(Settings other)
    • isInitialized

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

      public Settings.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<Settings.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. The resource name of this Settings resource.
      
       Format: `users/{user}/settings`
       Example: `users/1234567890/settings` or `users/me/settings`
       The {user} ID is a system-generated Google Health API user ID, a string of
       1-63 characters consisting of lowercase and uppercase letters, numbers, and
       hyphens. The literal `me` can also be used to refer to the authenticated
       user.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface SettingsOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The resource name of this Settings resource.
      
       Format: `users/{user}/settings`
       Example: `users/1234567890/settings` or `users/me/settings`
       The {user} ID is a system-generated Google Health API user ID, a string of
       1-63 characters consisting of lowercase and uppercase letters, numbers, and
       hyphens. The literal `me` can also be used to refer to the authenticated
       user.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface SettingsOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Settings.Builder setName(String value)
       Identifier. The resource name of this Settings resource.
      
       Format: `users/{user}/settings`
       Example: `users/1234567890/settings` or `users/me/settings`
       The {user} ID is a system-generated Google Health API user ID, a string of
       1-63 characters consisting of lowercase and uppercase letters, numbers, and
       hyphens. The literal `me` can also be used to refer to the authenticated
       user.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Settings.Builder clearName()
       Identifier. The resource name of this Settings resource.
      
       Format: `users/{user}/settings`
       Example: `users/1234567890/settings` or `users/me/settings`
       The {user} ID is a system-generated Google Health API user ID, a string of
       1-63 characters consisting of lowercase and uppercase letters, numbers, and
       hyphens. The literal `me` can also be used to refer to the authenticated
       user.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Settings.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The resource name of this Settings resource.
      
       Format: `users/{user}/settings`
       Example: `users/1234567890/settings` or `users/me/settings`
       The {user} ID is a system-generated Google Health API user ID, a string of
       1-63 characters consisting of lowercase and uppercase letters, numbers, and
       hyphens. The literal `me` can also be used to refer to the authenticated
       user.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getAutoStrideEnabled

      public boolean getAutoStrideEnabled()
       Optional. True if the user's stride length is determined automatically.
      
       Updates to this field are currently not supported.
       
      bool auto_stride_enabled = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAutoStrideEnabled in interface SettingsOrBuilder
      Returns:
      The autoStrideEnabled.
    • setAutoStrideEnabled

      public Settings.Builder setAutoStrideEnabled(boolean value)
       Optional. True if the user's stride length is determined automatically.
      
       Updates to this field are currently not supported.
       
      bool auto_stride_enabled = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The autoStrideEnabled to set.
      Returns:
      This builder for chaining.
    • clearAutoStrideEnabled

      public Settings.Builder clearAutoStrideEnabled()
       Optional. True if the user's stride length is determined automatically.
      
       Updates to this field are currently not supported.
       
      bool auto_stride_enabled = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getDistanceUnitValue

      public int getDistanceUnitValue()
       Optional. The measurement unit defined in the user's account settings.
      
       Updates to this field are currently not supported.
       
      .google.devicesandservices.health.v4.Settings.DistanceUnit distance_unit = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDistanceUnitValue in interface SettingsOrBuilder
      Returns:
      The enum numeric value on the wire for distanceUnit.
    • setDistanceUnitValue

      public Settings.Builder setDistanceUnitValue(int value)
       Optional. The measurement unit defined in the user's account settings.
      
       Updates to this field are currently not supported.
       
      .google.devicesandservices.health.v4.Settings.DistanceUnit distance_unit = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for distanceUnit to set.
      Returns:
      This builder for chaining.
    • getDistanceUnit

      public Settings.DistanceUnit getDistanceUnit()
       Optional. The measurement unit defined in the user's account settings.
      
       Updates to this field are currently not supported.
       
      .google.devicesandservices.health.v4.Settings.DistanceUnit distance_unit = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDistanceUnit in interface SettingsOrBuilder
      Returns:
      The distanceUnit.
    • setDistanceUnit

      public Settings.Builder setDistanceUnit(Settings.DistanceUnit value)
       Optional. The measurement unit defined in the user's account settings.
      
       Updates to this field are currently not supported.
       
      .google.devicesandservices.health.v4.Settings.DistanceUnit distance_unit = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The distanceUnit to set.
      Returns:
      This builder for chaining.
    • clearDistanceUnit

      public Settings.Builder clearDistanceUnit()
       Optional. The measurement unit defined in the user's account settings.
      
       Updates to this field are currently not supported.
       
      .google.devicesandservices.health.v4.Settings.DistanceUnit distance_unit = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getGlucoseUnitValue

      public int getGlucoseUnitValue()
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.GlucoseUnit glucose_unit = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGlucoseUnitValue in interface SettingsOrBuilder
      Returns:
      The enum numeric value on the wire for glucoseUnit.
    • setGlucoseUnitValue

      public Settings.Builder setGlucoseUnitValue(int value)
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.GlucoseUnit glucose_unit = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for glucoseUnit to set.
      Returns:
      This builder for chaining.
    • getGlucoseUnit

      public Settings.GlucoseUnit getGlucoseUnit()
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.GlucoseUnit glucose_unit = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGlucoseUnit in interface SettingsOrBuilder
      Returns:
      The glucoseUnit.
    • setGlucoseUnit

      public Settings.Builder setGlucoseUnit(Settings.GlucoseUnit value)
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.GlucoseUnit glucose_unit = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The glucoseUnit to set.
      Returns:
      This builder for chaining.
    • clearGlucoseUnit

      public Settings.Builder clearGlucoseUnit()
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.GlucoseUnit glucose_unit = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getHeightUnitValue

      public int getHeightUnitValue()
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.HeightUnit height_unit = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHeightUnitValue in interface SettingsOrBuilder
      Returns:
      The enum numeric value on the wire for heightUnit.
    • setHeightUnitValue

      public Settings.Builder setHeightUnitValue(int value)
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.HeightUnit height_unit = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for heightUnit to set.
      Returns:
      This builder for chaining.
    • getHeightUnit

      public Settings.HeightUnit getHeightUnit()
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.HeightUnit height_unit = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHeightUnit in interface SettingsOrBuilder
      Returns:
      The heightUnit.
    • setHeightUnit

      public Settings.Builder setHeightUnit(Settings.HeightUnit value)
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.HeightUnit height_unit = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The heightUnit to set.
      Returns:
      This builder for chaining.
    • clearHeightUnit

      public Settings.Builder clearHeightUnit()
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.HeightUnit height_unit = 8 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getLanguageLocale

      public String getLanguageLocale()
       Optional. The locale defined in the user's account settings.
      
       Updates to this field are currently not supported.
       
      string language_locale = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageLocale in interface SettingsOrBuilder
      Returns:
      The languageLocale.
    • getLanguageLocaleBytes

      public com.google.protobuf.ByteString getLanguageLocaleBytes()
       Optional. The locale defined in the user's account settings.
      
       Updates to this field are currently not supported.
       
      string language_locale = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageLocaleBytes in interface SettingsOrBuilder
      Returns:
      The bytes for languageLocale.
    • setLanguageLocale

      public Settings.Builder setLanguageLocale(String value)
       Optional. The locale defined in the user's account settings.
      
       Updates to this field are currently not supported.
       
      string language_locale = 9 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The languageLocale to set.
      Returns:
      This builder for chaining.
    • clearLanguageLocale

      public Settings.Builder clearLanguageLocale()
       Optional. The locale defined in the user's account settings.
      
       Updates to this field are currently not supported.
       
      string language_locale = 9 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setLanguageLocaleBytes

      public Settings.Builder setLanguageLocaleBytes(com.google.protobuf.ByteString value)
       Optional. The locale defined in the user's account settings.
      
       Updates to this field are currently not supported.
       
      string language_locale = 9 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for languageLocale to set.
      Returns:
      This builder for chaining.
    • hasUtcOffset

      public boolean hasUtcOffset()
       Optional. The user's timezone offset relative to UTC.
      
       Updates to this field are currently not supported.
       
      .google.protobuf.Duration utc_offset = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasUtcOffset in interface SettingsOrBuilder
      Returns:
      Whether the utcOffset field is set.
    • getUtcOffset

      public com.google.protobuf.Duration getUtcOffset()
       Optional. The user's timezone offset relative to UTC.
      
       Updates to this field are currently not supported.
       
      .google.protobuf.Duration utc_offset = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUtcOffset in interface SettingsOrBuilder
      Returns:
      The utcOffset.
    • setUtcOffset

      public Settings.Builder setUtcOffset(com.google.protobuf.Duration value)
       Optional. The user's timezone offset relative to UTC.
      
       Updates to this field are currently not supported.
       
      .google.protobuf.Duration utc_offset = 10 [(.google.api.field_behavior) = OPTIONAL];
    • setUtcOffset

      public Settings.Builder setUtcOffset(com.google.protobuf.Duration.Builder builderForValue)
       Optional. The user's timezone offset relative to UTC.
      
       Updates to this field are currently not supported.
       
      .google.protobuf.Duration utc_offset = 10 [(.google.api.field_behavior) = OPTIONAL];
    • mergeUtcOffset

      public Settings.Builder mergeUtcOffset(com.google.protobuf.Duration value)
       Optional. The user's timezone offset relative to UTC.
      
       Updates to this field are currently not supported.
       
      .google.protobuf.Duration utc_offset = 10 [(.google.api.field_behavior) = OPTIONAL];
    • clearUtcOffset

      public Settings.Builder clearUtcOffset()
       Optional. The user's timezone offset relative to UTC.
      
       Updates to this field are currently not supported.
       
      .google.protobuf.Duration utc_offset = 10 [(.google.api.field_behavior) = OPTIONAL];
    • getUtcOffsetBuilder

      public com.google.protobuf.Duration.Builder getUtcOffsetBuilder()
       Optional. The user's timezone offset relative to UTC.
      
       Updates to this field are currently not supported.
       
      .google.protobuf.Duration utc_offset = 10 [(.google.api.field_behavior) = OPTIONAL];
    • getUtcOffsetOrBuilder

      public com.google.protobuf.DurationOrBuilder getUtcOffsetOrBuilder()
       Optional. The user's timezone offset relative to UTC.
      
       Updates to this field are currently not supported.
       
      .google.protobuf.Duration utc_offset = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUtcOffsetOrBuilder in interface SettingsOrBuilder
    • getStrideLengthWalkingTypeValue

      public int getStrideLengthWalkingTypeValue()
       Optional. The stride length type defined in the user's account settings for
       walking.
      
       Updates to this field are currently not supported.
       
      .google.devicesandservices.health.v4.Settings.StrideLengthType stride_length_walking_type = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStrideLengthWalkingTypeValue in interface SettingsOrBuilder
      Returns:
      The enum numeric value on the wire for strideLengthWalkingType.
    • setStrideLengthWalkingTypeValue

      public Settings.Builder setStrideLengthWalkingTypeValue(int value)
       Optional. The stride length type defined in the user's account settings for
       walking.
      
       Updates to this field are currently not supported.
       
      .google.devicesandservices.health.v4.Settings.StrideLengthType stride_length_walking_type = 13 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for strideLengthWalkingType to set.
      Returns:
      This builder for chaining.
    • getStrideLengthWalkingType

      public Settings.StrideLengthType getStrideLengthWalkingType()
       Optional. The stride length type defined in the user's account settings for
       walking.
      
       Updates to this field are currently not supported.
       
      .google.devicesandservices.health.v4.Settings.StrideLengthType stride_length_walking_type = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStrideLengthWalkingType in interface SettingsOrBuilder
      Returns:
      The strideLengthWalkingType.
    • setStrideLengthWalkingType

      public Settings.Builder setStrideLengthWalkingType(Settings.StrideLengthType value)
       Optional. The stride length type defined in the user's account settings for
       walking.
      
       Updates to this field are currently not supported.
       
      .google.devicesandservices.health.v4.Settings.StrideLengthType stride_length_walking_type = 13 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The strideLengthWalkingType to set.
      Returns:
      This builder for chaining.
    • clearStrideLengthWalkingType

      public Settings.Builder clearStrideLengthWalkingType()
       Optional. The stride length type defined in the user's account settings for
       walking.
      
       Updates to this field are currently not supported.
       
      .google.devicesandservices.health.v4.Settings.StrideLengthType stride_length_walking_type = 13 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getStrideLengthRunningTypeValue

      public int getStrideLengthRunningTypeValue()
       Optional. The stride length type defined in the user's account settings for
       running.
      
       Updates to this field are currently not supported.
       
      .google.devicesandservices.health.v4.Settings.StrideLengthType stride_length_running_type = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStrideLengthRunningTypeValue in interface SettingsOrBuilder
      Returns:
      The enum numeric value on the wire for strideLengthRunningType.
    • setStrideLengthRunningTypeValue

      public Settings.Builder setStrideLengthRunningTypeValue(int value)
       Optional. The stride length type defined in the user's account settings for
       running.
      
       Updates to this field are currently not supported.
       
      .google.devicesandservices.health.v4.Settings.StrideLengthType stride_length_running_type = 14 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for strideLengthRunningType to set.
      Returns:
      This builder for chaining.
    • getStrideLengthRunningType

      public Settings.StrideLengthType getStrideLengthRunningType()
       Optional. The stride length type defined in the user's account settings for
       running.
      
       Updates to this field are currently not supported.
       
      .google.devicesandservices.health.v4.Settings.StrideLengthType stride_length_running_type = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStrideLengthRunningType in interface SettingsOrBuilder
      Returns:
      The strideLengthRunningType.
    • setStrideLengthRunningType

      public Settings.Builder setStrideLengthRunningType(Settings.StrideLengthType value)
       Optional. The stride length type defined in the user's account settings for
       running.
      
       Updates to this field are currently not supported.
       
      .google.devicesandservices.health.v4.Settings.StrideLengthType stride_length_running_type = 14 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The strideLengthRunningType to set.
      Returns:
      This builder for chaining.
    • clearStrideLengthRunningType

      public Settings.Builder clearStrideLengthRunningType()
       Optional. The stride length type defined in the user's account settings for
       running.
      
       Updates to this field are currently not supported.
       
      .google.devicesandservices.health.v4.Settings.StrideLengthType stride_length_running_type = 14 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getSwimUnitValue

      public int getSwimUnitValue()
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.SwimUnit swim_unit = 15 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSwimUnitValue in interface SettingsOrBuilder
      Returns:
      The enum numeric value on the wire for swimUnit.
    • setSwimUnitValue

      public Settings.Builder setSwimUnitValue(int value)
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.SwimUnit swim_unit = 15 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for swimUnit to set.
      Returns:
      This builder for chaining.
    • getSwimUnit

      public Settings.SwimUnit getSwimUnit()
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.SwimUnit swim_unit = 15 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSwimUnit in interface SettingsOrBuilder
      Returns:
      The swimUnit.
    • setSwimUnit

      public Settings.Builder setSwimUnit(Settings.SwimUnit value)
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.SwimUnit swim_unit = 15 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The swimUnit to set.
      Returns:
      This builder for chaining.
    • clearSwimUnit

      public Settings.Builder clearSwimUnit()
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.SwimUnit swim_unit = 15 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getTemperatureUnitValue

      public int getTemperatureUnitValue()
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.TemperatureUnit temperature_unit = 16 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTemperatureUnitValue in interface SettingsOrBuilder
      Returns:
      The enum numeric value on the wire for temperatureUnit.
    • setTemperatureUnitValue

      public Settings.Builder setTemperatureUnitValue(int value)
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.TemperatureUnit temperature_unit = 16 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for temperatureUnit to set.
      Returns:
      This builder for chaining.
    • getTemperatureUnit

      public Settings.TemperatureUnit getTemperatureUnit()
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.TemperatureUnit temperature_unit = 16 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTemperatureUnit in interface SettingsOrBuilder
      Returns:
      The temperatureUnit.
    • setTemperatureUnit

      public Settings.Builder setTemperatureUnit(Settings.TemperatureUnit value)
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.TemperatureUnit temperature_unit = 16 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The temperatureUnit to set.
      Returns:
      This builder for chaining.
    • clearTemperatureUnit

      public Settings.Builder clearTemperatureUnit()
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.TemperatureUnit temperature_unit = 16 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getTimeZone

      public String getTimeZone()
       Optional. The timezone defined in the user's account settings. This follows
       the IANA [Time Zone Database](https://www.iana.org/time-zones).
      
       Updates to this field are currently not supported.
       
      string time_zone = 17 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTimeZone in interface SettingsOrBuilder
      Returns:
      The timeZone.
    • getTimeZoneBytes

      public com.google.protobuf.ByteString getTimeZoneBytes()
       Optional. The timezone defined in the user's account settings. This follows
       the IANA [Time Zone Database](https://www.iana.org/time-zones).
      
       Updates to this field are currently not supported.
       
      string time_zone = 17 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTimeZoneBytes in interface SettingsOrBuilder
      Returns:
      The bytes for timeZone.
    • setTimeZone

      public Settings.Builder setTimeZone(String value)
       Optional. The timezone defined in the user's account settings. This follows
       the IANA [Time Zone Database](https://www.iana.org/time-zones).
      
       Updates to this field are currently not supported.
       
      string time_zone = 17 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The timeZone to set.
      Returns:
      This builder for chaining.
    • clearTimeZone

      public Settings.Builder clearTimeZone()
       Optional. The timezone defined in the user's account settings. This follows
       the IANA [Time Zone Database](https://www.iana.org/time-zones).
      
       Updates to this field are currently not supported.
       
      string time_zone = 17 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setTimeZoneBytes

      public Settings.Builder setTimeZoneBytes(com.google.protobuf.ByteString value)
       Optional. The timezone defined in the user's account settings. This follows
       the IANA [Time Zone Database](https://www.iana.org/time-zones).
      
       Updates to this field are currently not supported.
       
      string time_zone = 17 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for timeZone to set.
      Returns:
      This builder for chaining.
    • getWeightUnitValue

      public int getWeightUnitValue()
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.WeightUnit weight_unit = 18 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWeightUnitValue in interface SettingsOrBuilder
      Returns:
      The enum numeric value on the wire for weightUnit.
    • setWeightUnitValue

      public Settings.Builder setWeightUnitValue(int value)
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.WeightUnit weight_unit = 18 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for weightUnit to set.
      Returns:
      This builder for chaining.
    • getWeightUnit

      public Settings.WeightUnit getWeightUnit()
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.WeightUnit weight_unit = 18 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWeightUnit in interface SettingsOrBuilder
      Returns:
      The weightUnit.
    • setWeightUnit

      public Settings.Builder setWeightUnit(Settings.WeightUnit value)
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.WeightUnit weight_unit = 18 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The weightUnit to set.
      Returns:
      This builder for chaining.
    • clearWeightUnit

      public Settings.Builder clearWeightUnit()
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.WeightUnit weight_unit = 18 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getWaterUnitValue

      public int getWaterUnitValue()
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.WaterUnit water_unit = 19 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWaterUnitValue in interface SettingsOrBuilder
      Returns:
      The enum numeric value on the wire for waterUnit.
    • setWaterUnitValue

      public Settings.Builder setWaterUnitValue(int value)
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.WaterUnit water_unit = 19 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for waterUnit to set.
      Returns:
      This builder for chaining.
    • getWaterUnit

      public Settings.WaterUnit getWaterUnit()
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.WaterUnit water_unit = 19 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWaterUnit in interface SettingsOrBuilder
      Returns:
      The waterUnit.
    • setWaterUnit

      public Settings.Builder setWaterUnit(Settings.WaterUnit value)
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.WaterUnit water_unit = 19 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The waterUnit to set.
      Returns:
      This builder for chaining.
    • clearWaterUnit

      public Settings.Builder clearWaterUnit()
       Optional. The measurement unit defined in the user's account settings.
       
      .google.devicesandservices.health.v4.Settings.WaterUnit water_unit = 19 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.