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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSettings details.static enumThe measurement unit defined in the user's account settings.static enumThe measurement unit defined in the user's account settings.static enumThe measurement unit defined in the user's account settings.static enumThe stride length type defined in the user's account settings.static enumThe swim unit defined in the user's account settings.static enumThe measurement unit defined in the user's account settings.static enumThe water measurement unit defined in the user's account settings.static enumThe measurement unit defined in the user's account settings.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanOptional.static Settingsstatic final com.google.protobuf.Descriptors.DescriptorOptional.intOptional.Optional.intOptional.Optional.intOptional.Optional.com.google.protobuf.ByteStringOptional.getName()Identifier.com.google.protobuf.ByteStringIdentifier.com.google.protobuf.Parser<Settings>intOptional.intOptional.Optional.intOptional.Optional.intOptional.Optional.intOptional.Optional.com.google.protobuf.ByteStringOptional.com.google.protobuf.DurationOptional.com.google.protobuf.DurationOrBuilderOptional.Optional.intOptional.Optional.intOptional.inthashCode()booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Settings.Builderstatic Settings.BuildernewBuilder(Settings prototype) protected Settings.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static SettingsparseDelimitedFrom(InputStream input) static SettingsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SettingsparseFrom(byte[] data) static SettingsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SettingsparseFrom(com.google.protobuf.ByteString data) static SettingsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SettingsparseFrom(com.google.protobuf.CodedInputStream input) static SettingsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SettingsparseFrom(InputStream input) static SettingsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SettingsparseFrom(ByteBuffer data) static SettingsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Settings>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static Settings parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Settings parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Settings parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Settings.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-