Class Settings (0.2.0)

public final class Settings extends GeneratedMessage implements SettingsOrBuilder

Settings details.

Protobuf type google.devicesandservices.health.v4.Settings

Implements

SettingsOrBuilder

Static Fields

AUTO_STRIDE_ENABLED_FIELD_NUMBER

public static final int AUTO_STRIDE_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

DISTANCE_UNIT_FIELD_NUMBER

public static final int DISTANCE_UNIT_FIELD_NUMBER
Field Value
Type Description
int

FOOD_LANGUAGE_CODE_FIELD_NUMBER

public static final int FOOD_LANGUAGE_CODE_FIELD_NUMBER
Field Value
Type Description
int

GLUCOSE_UNIT_FIELD_NUMBER

public static final int GLUCOSE_UNIT_FIELD_NUMBER
Field Value
Type Description
int

HEIGHT_UNIT_FIELD_NUMBER

public static final int HEIGHT_UNIT_FIELD_NUMBER
Field Value
Type Description
int

LANGUAGE_LOCALE_FIELD_NUMBER

public static final int LANGUAGE_LOCALE_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

STRIDE_LENGTH_RUNNING_TYPE_FIELD_NUMBER

public static final int STRIDE_LENGTH_RUNNING_TYPE_FIELD_NUMBER
Field Value
Type Description
int

STRIDE_LENGTH_WALKING_TYPE_FIELD_NUMBER

public static final int STRIDE_LENGTH_WALKING_TYPE_FIELD_NUMBER
Field Value
Type Description
int

SWIM_UNIT_FIELD_NUMBER

public static final int SWIM_UNIT_FIELD_NUMBER
Field Value
Type Description
int

TEMPERATURE_UNIT_FIELD_NUMBER

public static final int TEMPERATURE_UNIT_FIELD_NUMBER
Field Value
Type Description
int

TIME_ZONE_FIELD_NUMBER

public static final int TIME_ZONE_FIELD_NUMBER
Field Value
Type Description
int

UTC_OFFSET_FIELD_NUMBER

public static final int UTC_OFFSET_FIELD_NUMBER
Field Value
Type Description
int

WATER_UNIT_FIELD_NUMBER

public static final int WATER_UNIT_FIELD_NUMBER
Field Value
Type Description
int

WEIGHT_UNIT_FIELD_NUMBER

public static final int WEIGHT_UNIT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Settings getDefaultInstance()
Returns
Type Description
Settings

getDescriptor()

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

newBuilder()

public static Settings.Builder newBuilder()
Returns
Type Description
Settings.Builder

newBuilder(Settings prototype)

public static Settings.Builder newBuilder(Settings prototype)
Parameter
Name Description
prototype Settings
Returns
Type Description
Settings.Builder

parseDelimitedFrom(InputStream input)

public static Settings parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Settings
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Settings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Settings
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Settings parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Settings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Settings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Settings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Settings parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Settings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Settings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Settings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Settings parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Settings
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Settings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Settings
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Settings parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Settings
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Settings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Settings
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Settings parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Settings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Settings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Settings
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Settings> parser()
Returns
Type Description
Parser<Settings>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

Returns
Type Description
boolean

The autoStrideEnabled.

getDefaultInstanceForType()

public Settings getDefaultInstanceForType()
Returns
Type Description
Settings

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

Returns
Type Description
Settings.DistanceUnit

The distanceUnit.

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

Returns
Type Description
int

The enum numeric value on the wire for distanceUnit.

getFoodLanguageCode()

public String getFoodLanguageCode()

Output only. The food language code derived from the user's food database. Possible values: 'en-US', 'en-GB', 'de-DE', 'es-ES', 'fr-FR', 'zh-CN', 'zh-TW', 'ja-JP', 'en-AU', 'en-CA', 'it-IT', 'ko-KR', 'es-MX', 'en-IN', 'en-SG', 'en-PH', 'en-IE', 'fr-CA'.

Updates to this field are currently not supported.

string food_language_code = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The foodLanguageCode.

getFoodLanguageCodeBytes()

public ByteString getFoodLanguageCodeBytes()

Output only. The food language code derived from the user's food database. Possible values: 'en-US', 'en-GB', 'de-DE', 'es-ES', 'fr-FR', 'zh-CN', 'zh-TW', 'ja-JP', 'en-AU', 'en-CA', 'it-IT', 'ko-KR', 'es-MX', 'en-IN', 'en-SG', 'en-PH', 'en-IE', 'fr-CA'.

Updates to this field are currently not supported.

string food_language_code = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for foodLanguageCode.

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

Returns
Type Description
Settings.GlucoseUnit

The glucoseUnit.

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

Returns
Type Description
int

The enum numeric value on the wire for glucoseUnit.

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

Returns
Type Description
Settings.HeightUnit

The heightUnit.

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

Returns
Type Description
int

The enum numeric value on the wire for 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];

Returns
Type Description
String

The languageLocale.

getLanguageLocaleBytes()

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

Returns
Type Description
ByteString

The bytes for languageLocale.

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

Returns
Type Description
String

The name.

getNameBytes()

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

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<Settings> getParserForType()
Returns
Type Description
Parser<Settings>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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

Returns
Type Description
Settings.StrideLengthType

The strideLengthRunningType.

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

Returns
Type Description
int

The enum numeric value on the wire for strideLengthRunningType.

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

Returns
Type Description
Settings.StrideLengthType

The strideLengthWalkingType.

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

Returns
Type Description
int

The enum numeric value on the wire for strideLengthWalkingType.

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

Returns
Type Description
Settings.SwimUnit

The swimUnit.

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

Returns
Type Description
int

The enum numeric value on the wire for swimUnit.

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

Returns
Type Description
Settings.TemperatureUnit

The temperatureUnit.

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

Returns
Type Description
int

The enum numeric value on the wire for temperatureUnit.

getTimeZone()

public String getTimeZone()

Optional. The timezone defined in the user's account settings. This follows the IANA Time Zone Database.

Updates to this field are currently not supported.

string time_zone = 17 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The timeZone.

getTimeZoneBytes()

public ByteString getTimeZoneBytes()

Optional. The timezone defined in the user's account settings. This follows the IANA Time Zone Database.

Updates to this field are currently not supported.

string time_zone = 17 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for timeZone.

getUtcOffset()

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

Returns
Type Description
Duration

The utcOffset.

getUtcOffsetOrBuilder()

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

Returns
Type Description
DurationOrBuilder

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

Returns
Type Description
Settings.WaterUnit

The waterUnit.

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

Returns
Type Description
int

The enum numeric value on the wire for waterUnit.

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

Returns
Type Description
Settings.WeightUnit

The weightUnit.

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

Returns
Type Description
int

The enum numeric value on the wire for weightUnit.

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

Returns
Type Description
boolean

Whether the utcOffset field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Settings.Builder newBuilderForType()
Returns
Type Description
Settings.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Settings.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Settings.Builder
Overrides

toBuilder()

public Settings.Builder toBuilder()
Returns
Type Description
Settings.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException