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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Optional.Optional.Identifier.Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.booleanOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.intOptional.Optional.intOptional.Optional.intOptional.Optional.com.google.protobuf.ByteStringOptional.getName()Identifier.com.google.protobuf.ByteStringIdentifier.Optional.intOptional.Optional.intOptional.Optional.intOptional.Optional.intOptional.Optional.com.google.protobuf.ByteStringOptional.com.google.protobuf.DurationOptional.com.google.protobuf.Duration.BuilderOptional.com.google.protobuf.DurationOrBuilderOptional.Optional.intOptional.Optional.intOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUtcOffset(com.google.protobuf.Duration value) Optional.setAutoStrideEnabled(boolean value) Optional.Optional.setDistanceUnitValue(int value) Optional.Optional.setGlucoseUnitValue(int value) Optional.setHeightUnit(Settings.HeightUnit value) Optional.setHeightUnitValue(int value) Optional.setLanguageLocale(String value) Optional.setLanguageLocaleBytes(com.google.protobuf.ByteString value) Optional.Identifier.setNameBytes(com.google.protobuf.ByteString value) Identifier.Optional.setStrideLengthRunningTypeValue(int value) Optional.Optional.setStrideLengthWalkingTypeValue(int value) Optional.setSwimUnit(Settings.SwimUnit value) Optional.setSwimUnitValue(int value) Optional.Optional.setTemperatureUnitValue(int value) Optional.setTimeZone(String value) Optional.setTimeZoneBytes(com.google.protobuf.ByteString value) Optional.setUtcOffset(com.google.protobuf.Duration value) Optional.setUtcOffset(com.google.protobuf.Duration.Builder builderForValue) Optional.setWaterUnit(Settings.WaterUnit value) Optional.setWaterUnitValue(int value) Optional.setWeightUnit(Settings.WeightUnit value) Optional.setWeightUnitValue(int value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Settings.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Settings.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Settings.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Settings.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Settings.Builder>- Throws:
IOException
-
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:
getNamein interfaceSettingsOrBuilder- 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:
getNameBytesin interfaceSettingsOrBuilder- Returns:
- The bytes for name.
-
setName
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
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
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:
getAutoStrideEnabledin interfaceSettingsOrBuilder- Returns:
- The autoStrideEnabled.
-
setAutoStrideEnabled
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
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:
getDistanceUnitValuein interfaceSettingsOrBuilder- Returns:
- The enum numeric value on the wire for distanceUnit.
-
setDistanceUnitValue
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
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:
getDistanceUnitin interfaceSettingsOrBuilder- Returns:
- The distanceUnit.
-
setDistanceUnit
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
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:
getGlucoseUnitValuein interfaceSettingsOrBuilder- Returns:
- The enum numeric value on the wire for glucoseUnit.
-
setGlucoseUnitValue
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
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:
getGlucoseUnitin interfaceSettingsOrBuilder- Returns:
- The glucoseUnit.
-
setGlucoseUnit
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
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:
getHeightUnitValuein interfaceSettingsOrBuilder- Returns:
- The enum numeric value on the wire for heightUnit.
-
setHeightUnitValue
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
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:
getHeightUnitin interfaceSettingsOrBuilder- Returns:
- The heightUnit.
-
setHeightUnit
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
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
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:
getLanguageLocalein interfaceSettingsOrBuilder- 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:
getLanguageLocaleBytesin interfaceSettingsOrBuilder- Returns:
- The bytes for languageLocale.
-
setLanguageLocale
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
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
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:
hasUtcOffsetin interfaceSettingsOrBuilder- 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:
getUtcOffsetin interfaceSettingsOrBuilder- Returns:
- The utcOffset.
-
setUtcOffset
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
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
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
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:
getUtcOffsetOrBuilderin interfaceSettingsOrBuilder
-
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:
getStrideLengthWalkingTypeValuein interfaceSettingsOrBuilder- Returns:
- The enum numeric value on the wire for strideLengthWalkingType.
-
setStrideLengthWalkingTypeValue
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
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:
getStrideLengthWalkingTypein interfaceSettingsOrBuilder- Returns:
- The strideLengthWalkingType.
-
setStrideLengthWalkingType
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
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:
getStrideLengthRunningTypeValuein interfaceSettingsOrBuilder- Returns:
- The enum numeric value on the wire for strideLengthRunningType.
-
setStrideLengthRunningTypeValue
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
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:
getStrideLengthRunningTypein interfaceSettingsOrBuilder- Returns:
- The strideLengthRunningType.
-
setStrideLengthRunningType
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
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:
getSwimUnitValuein interfaceSettingsOrBuilder- Returns:
- The enum numeric value on the wire for swimUnit.
-
setSwimUnitValue
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
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:
getSwimUnitin interfaceSettingsOrBuilder- Returns:
- The swimUnit.
-
setSwimUnit
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
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:
getTemperatureUnitValuein interfaceSettingsOrBuilder- Returns:
- The enum numeric value on the wire for temperatureUnit.
-
setTemperatureUnitValue
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
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:
getTemperatureUnitin interfaceSettingsOrBuilder- Returns:
- The temperatureUnit.
-
setTemperatureUnit
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
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
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:
getTimeZonein interfaceSettingsOrBuilder- 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:
getTimeZoneBytesin interfaceSettingsOrBuilder- Returns:
- The bytes for timeZone.
-
setTimeZone
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
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
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:
getWeightUnitValuein interfaceSettingsOrBuilder- Returns:
- The enum numeric value on the wire for weightUnit.
-
setWeightUnitValue
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
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:
getWeightUnitin interfaceSettingsOrBuilder- Returns:
- The weightUnit.
-
setWeightUnit
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
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:
getWaterUnitValuein interfaceSettingsOrBuilder- Returns:
- The enum numeric value on the wire for waterUnit.
-
setWaterUnitValue
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
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:
getWaterUnitin interfaceSettingsOrBuilder- Returns:
- The waterUnit.
-
setWaterUnit
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
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.
-