Class Settings

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.devicesandservices.health.v4.Settings
All Implemented Interfaces:
SettingsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Settings extends com.google.protobuf.GeneratedMessage implements SettingsOrBuilder
 Settings details.
 
Protobuf type google.devicesandservices.health.v4.Settings
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • AUTO_STRIDE_ENABLED_FIELD_NUMBER

      public static final int AUTO_STRIDE_ENABLED_FIELD_NUMBER
      See Also:
    • DISTANCE_UNIT_FIELD_NUMBER

      public static final int DISTANCE_UNIT_FIELD_NUMBER
      See Also:
    • GLUCOSE_UNIT_FIELD_NUMBER

      public static final int GLUCOSE_UNIT_FIELD_NUMBER
      See Also:
    • HEIGHT_UNIT_FIELD_NUMBER

      public static final int HEIGHT_UNIT_FIELD_NUMBER
      See Also:
    • LANGUAGE_LOCALE_FIELD_NUMBER

      public static final int LANGUAGE_LOCALE_FIELD_NUMBER
      See Also:
    • UTC_OFFSET_FIELD_NUMBER

      public static final int UTC_OFFSET_FIELD_NUMBER
      See Also:
    • STRIDE_LENGTH_WALKING_TYPE_FIELD_NUMBER

      public static final int STRIDE_LENGTH_WALKING_TYPE_FIELD_NUMBER
      See Also:
    • STRIDE_LENGTH_RUNNING_TYPE_FIELD_NUMBER

      public static final int STRIDE_LENGTH_RUNNING_TYPE_FIELD_NUMBER
      See Also:
    • SWIM_UNIT_FIELD_NUMBER

      public static final int SWIM_UNIT_FIELD_NUMBER
      See Also:
    • TEMPERATURE_UNIT_FIELD_NUMBER

      public static final int TEMPERATURE_UNIT_FIELD_NUMBER
      See Also:
    • TIME_ZONE_FIELD_NUMBER

      public static final int TIME_ZONE_FIELD_NUMBER
      See Also:
    • WEIGHT_UNIT_FIELD_NUMBER

      public static final int WEIGHT_UNIT_FIELD_NUMBER
      See Also:
    • WATER_UNIT_FIELD_NUMBER

      public static final int WATER_UNIT_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Settings parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Settings parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Settings parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Settings parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Settings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Settings parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Settings parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Settings parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Settings parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Settings parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Settings parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Settings parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static Settings.Builder newBuilder()
    • newBuilder

      public static Settings.Builder newBuilder(Settings prototype)
    • toBuilder

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

      protected Settings.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Settings getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Settings> parser()
    • getParserForType

      public com.google.protobuf.Parser<Settings> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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