public static final class Settings.Builder extends GeneratedMessage.Builder<Settings.Builder> implements SettingsOrBuilderSettings details.
Protobuf type google.devicesandservices.health.v4.Settings
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Settings.BuilderImplements
SettingsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Settings build()| Returns | |
|---|---|
| Type | Description |
Settings |
|
buildPartial()
public Settings buildPartial()| Returns | |
|---|---|
| Type | Description |
Settings |
|
clear()
public Settings.Builder clear()| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
|
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 | |
|---|---|
| Type | Description |
Settings.Builder |
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 | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |
clearFoodLanguageCode()
public Settings.Builder clearFoodLanguageCode() 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 |
Settings.Builder |
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 | |
|---|---|
| Type | Description |
Settings.Builder |
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 | |
|---|---|
| Type | Description |
Settings.Builder |
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 | |
|---|---|
| Type | Description |
Settings.Builder |
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 | |
|---|---|
| Type | Description |
Settings.Builder |
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 | |
|---|---|
| Type | Description |
Settings.Builder |
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 | |
|---|---|
| Type | Description |
Settings.Builder |
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 | |
|---|---|
| Type | Description |
Settings.Builder |
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 | |
|---|---|
| Type | Description |
Settings.Builder |
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.
Updates to this field are currently not supported.
string time_zone = 17 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |
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];
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
|
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 | |
|---|---|
| Type | Description |
Settings.Builder |
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 | |
|---|---|
| Type | Description |
Settings.Builder |
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];
| Returns | |
|---|---|
| Type | Description |
boolean |
The autoStrideEnabled. |
getDefaultInstanceForType()
public Settings getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Settings |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
getUtcOffsetBuilder()
public 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];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Settings other)
public Settings.Builder mergeFrom(Settings other)| Parameter | |
|---|---|
| Name | Description |
other |
Settings |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Settings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Settings.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
|
mergeUtcOffset(Duration value)
public Settings.Builder mergeUtcOffset(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];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
|
setAutoStrideEnabled(boolean value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe autoStrideEnabled to set. |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |
setDistanceUnit(Settings.DistanceUnit value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
Settings.DistanceUnitThe distanceUnit to set. |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |
setDistanceUnitValue(int value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for distanceUnit to set. |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |
setFoodLanguageCode(String value)
public Settings.Builder setFoodLanguageCode(String value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe foodLanguageCode to set. |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |
setFoodLanguageCodeBytes(ByteString value)
public Settings.Builder setFoodLanguageCodeBytes(ByteString value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for foodLanguageCode to set. |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |
setGlucoseUnit(Settings.GlucoseUnit value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
Settings.GlucoseUnitThe glucoseUnit to set. |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |
setGlucoseUnitValue(int value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for glucoseUnit to set. |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |
setHeightUnit(Settings.HeightUnit value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
Settings.HeightUnitThe heightUnit to set. |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |
setHeightUnitValue(int value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for heightUnit to set. |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |
setLanguageLocale(String value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe languageLocale to set. |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |
setLanguageLocaleBytes(ByteString value)
public Settings.Builder setLanguageLocaleBytes(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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for languageLocale to set. |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |
setName(String value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Settings.Builder setNameBytes(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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |
setStrideLengthRunningType(Settings.StrideLengthType value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
Settings.StrideLengthTypeThe strideLengthRunningType to set. |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |
setStrideLengthRunningTypeValue(int value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for strideLengthRunningType to set. |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |
setStrideLengthWalkingType(Settings.StrideLengthType value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
Settings.StrideLengthTypeThe strideLengthWalkingType to set. |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |
setStrideLengthWalkingTypeValue(int value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for strideLengthWalkingType to set. |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |
setSwimUnit(Settings.SwimUnit value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
Settings.SwimUnitThe swimUnit to set. |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |
setSwimUnitValue(int value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for swimUnit to set. |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |
setTemperatureUnit(Settings.TemperatureUnit value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
Settings.TemperatureUnitThe temperatureUnit to set. |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |
setTemperatureUnitValue(int value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for temperatureUnit to set. |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |
setTimeZone(String value)
public Settings.Builder setTimeZone(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe timeZone to set. |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |
setTimeZoneBytes(ByteString value)
public Settings.Builder setTimeZoneBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for timeZone to set. |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |
setUtcOffset(Duration value)
public Settings.Builder setUtcOffset(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];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
|
setUtcOffset(Duration.Builder builderForValue)
public Settings.Builder setUtcOffset(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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
|
setWaterUnit(Settings.WaterUnit value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
Settings.WaterUnitThe waterUnit to set. |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |
setWaterUnitValue(int value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for waterUnit to set. |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |
setWeightUnit(Settings.WeightUnit value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
Settings.WeightUnitThe weightUnit to set. |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |
setWeightUnitValue(int value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for weightUnit to set. |
| Returns | |
|---|---|
| Type | Description |
Settings.Builder |
This builder for chaining. |