Class Profile.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Profile.Builder>
com.google.devicesandservices.health.v4.Profile.Builder
- All Implemented Interfaces:
ProfileOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Profile
public static final class Profile.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Profile.Builder>
implements ProfileOrBuilder
Profile details.Protobuf type
google.devicesandservices.health.v4.Profile-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()clearAge()Optional.Output only.Output only.Output only.Identifier.Optional.Optional.intgetAge()Optional.intOutput only.intOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.Output only.Output only.getName()Identifier.com.google.protobuf.ByteStringIdentifier.intOptional.intOptional.booleanOutput only.booleanOutput only.booleanOutput only.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMembershipStartDate(Date value) Output only.setAge(int value) Optional.setAutoRunningStrideLengthMm(int value) Output only.setAutoWalkingStrideLengthMm(int value) Output only.setMembershipStartDate(Date value) Output only.setMembershipStartDate(Date.Builder builderForValue) Output only.Identifier.setNameBytes(com.google.protobuf.ByteString value) Identifier.setUserConfiguredRunningStrideLengthMm(int value) Optional.setUserConfiguredWalkingStrideLengthMm(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<Profile.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<Profile.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<Profile.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<Profile.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Profile.Builder>
-
mergeFrom
public Profile.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<Profile.Builder>- Throws:
IOException
-
getName
Identifier. The resource name of this Profile resource. Format: `users/{user}/profile` Example: `users/1234567890/profile` or `users/me/profile` 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 interfaceProfileOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Identifier. The resource name of this Profile resource. Format: `users/{user}/profile` Example: `users/1234567890/profile` or `users/me/profile` 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 interfaceProfileOrBuilder- Returns:
- The bytes for name.
-
setName
Identifier. The resource name of this Profile resource. Format: `users/{user}/profile` Example: `users/1234567890/profile` or `users/me/profile` 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 Profile resource. Format: `users/{user}/profile` Example: `users/1234567890/profile` or `users/me/profile` 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 Profile resource. Format: `users/{user}/profile` Example: `users/1234567890/profile` or `users/me/profile` 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.
-
getAge
public int getAge()Optional. The age in years based on the user's birth date. Updates to this field are currently not supported.
int32 age = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAgein interfaceProfileOrBuilder- Returns:
- The age.
-
setAge
Optional. The age in years based on the user's birth date. Updates to this field are currently not supported.
int32 age = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The age to set.- Returns:
- This builder for chaining.
-
clearAge
Optional. The age in years based on the user's birth date. Updates to this field are currently not supported.
int32 age = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasMembershipStartDate
public boolean hasMembershipStartDate()Output only. The date the user created their account. Updates to this field are currently not supported.
.google.type.Date membership_start_date = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasMembershipStartDatein interfaceProfileOrBuilder- Returns:
- Whether the membershipStartDate field is set.
-
getMembershipStartDate
Output only. The date the user created their account. Updates to this field are currently not supported.
.google.type.Date membership_start_date = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getMembershipStartDatein interfaceProfileOrBuilder- Returns:
- The membershipStartDate.
-
setMembershipStartDate
Output only. The date the user created their account. Updates to this field are currently not supported.
.google.type.Date membership_start_date = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setMembershipStartDate
Output only. The date the user created their account. Updates to this field are currently not supported.
.google.type.Date membership_start_date = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeMembershipStartDate
Output only. The date the user created their account. Updates to this field are currently not supported.
.google.type.Date membership_start_date = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearMembershipStartDate
Output only. The date the user created their account. Updates to this field are currently not supported.
.google.type.Date membership_start_date = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getMembershipStartDateBuilder
Output only. The date the user created their account. Updates to this field are currently not supported.
.google.type.Date membership_start_date = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getMembershipStartDateOrBuilder
Output only. The date the user created their account. Updates to this field are currently not supported.
.google.type.Date membership_start_date = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getMembershipStartDateOrBuilderin interfaceProfileOrBuilder
-
hasUserConfiguredWalkingStrideLengthMm
public boolean hasUserConfiguredWalkingStrideLengthMm()Optional. The user's user configured walking stride length, in millimeters. The user must consent to one of the following access scopes to access this field: - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly` - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`
optional int32 user_configured_walking_stride_length_mm = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasUserConfiguredWalkingStrideLengthMmin interfaceProfileOrBuilder- Returns:
- Whether the userConfiguredWalkingStrideLengthMm field is set.
-
getUserConfiguredWalkingStrideLengthMm
public int getUserConfiguredWalkingStrideLengthMm()Optional. The user's user configured walking stride length, in millimeters. The user must consent to one of the following access scopes to access this field: - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly` - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`
optional int32 user_configured_walking_stride_length_mm = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getUserConfiguredWalkingStrideLengthMmin interfaceProfileOrBuilder- Returns:
- The userConfiguredWalkingStrideLengthMm.
-
setUserConfiguredWalkingStrideLengthMm
Optional. The user's user configured walking stride length, in millimeters. The user must consent to one of the following access scopes to access this field: - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly` - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`
optional int32 user_configured_walking_stride_length_mm = 13 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The userConfiguredWalkingStrideLengthMm to set.- Returns:
- This builder for chaining.
-
clearUserConfiguredWalkingStrideLengthMm
Optional. The user's user configured walking stride length, in millimeters. The user must consent to one of the following access scopes to access this field: - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly` - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`
optional int32 user_configured_walking_stride_length_mm = 13 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasUserConfiguredRunningStrideLengthMm
public boolean hasUserConfiguredRunningStrideLengthMm()Optional. The user's user configured running stride length, in millimeters. The user must consent to one of the following access scopes to access this field: - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly` - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`
optional int32 user_configured_running_stride_length_mm = 14 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasUserConfiguredRunningStrideLengthMmin interfaceProfileOrBuilder- Returns:
- Whether the userConfiguredRunningStrideLengthMm field is set.
-
getUserConfiguredRunningStrideLengthMm
public int getUserConfiguredRunningStrideLengthMm()Optional. The user's user configured running stride length, in millimeters. The user must consent to one of the following access scopes to access this field: - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly` - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`
optional int32 user_configured_running_stride_length_mm = 14 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getUserConfiguredRunningStrideLengthMmin interfaceProfileOrBuilder- Returns:
- The userConfiguredRunningStrideLengthMm.
-
setUserConfiguredRunningStrideLengthMm
Optional. The user's user configured running stride length, in millimeters. The user must consent to one of the following access scopes to access this field: - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly` - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`
optional int32 user_configured_running_stride_length_mm = 14 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The userConfiguredRunningStrideLengthMm to set.- Returns:
- This builder for chaining.
-
clearUserConfiguredRunningStrideLengthMm
Optional. The user's user configured running stride length, in millimeters. The user must consent to one of the following access scopes to access this field: - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly` - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`
optional int32 user_configured_running_stride_length_mm = 14 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasAutoWalkingStrideLengthMm
public boolean hasAutoWalkingStrideLengthMm()Output only. The automatically calculated walking stride length, in millimeters. The user must consent to one of the following access scopes to access this field: - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly` - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`
optional int32 auto_walking_stride_length_mm = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasAutoWalkingStrideLengthMmin interfaceProfileOrBuilder- Returns:
- Whether the autoWalkingStrideLengthMm field is set.
-
getAutoWalkingStrideLengthMm
public int getAutoWalkingStrideLengthMm()Output only. The automatically calculated walking stride length, in millimeters. The user must consent to one of the following access scopes to access this field: - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly` - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`
optional int32 auto_walking_stride_length_mm = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAutoWalkingStrideLengthMmin interfaceProfileOrBuilder- Returns:
- The autoWalkingStrideLengthMm.
-
setAutoWalkingStrideLengthMm
Output only. The automatically calculated walking stride length, in millimeters. The user must consent to one of the following access scopes to access this field: - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly` - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`
optional int32 auto_walking_stride_length_mm = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The autoWalkingStrideLengthMm to set.- Returns:
- This builder for chaining.
-
clearAutoWalkingStrideLengthMm
Output only. The automatically calculated walking stride length, in millimeters. The user must consent to one of the following access scopes to access this field: - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly` - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`
optional int32 auto_walking_stride_length_mm = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasAutoRunningStrideLengthMm
public boolean hasAutoRunningStrideLengthMm()Output only. The automatically calculated running stride length, in millimeters. The user must consent to one of the following access scopes to access this field: - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly` - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`
optional int32 auto_running_stride_length_mm = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasAutoRunningStrideLengthMmin interfaceProfileOrBuilder- Returns:
- Whether the autoRunningStrideLengthMm field is set.
-
getAutoRunningStrideLengthMm
public int getAutoRunningStrideLengthMm()Output only. The automatically calculated running stride length, in millimeters. The user must consent to one of the following access scopes to access this field: - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly` - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`
optional int32 auto_running_stride_length_mm = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAutoRunningStrideLengthMmin interfaceProfileOrBuilder- Returns:
- The autoRunningStrideLengthMm.
-
setAutoRunningStrideLengthMm
Output only. The automatically calculated running stride length, in millimeters. The user must consent to one of the following access scopes to access this field: - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly` - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`
optional int32 auto_running_stride_length_mm = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The autoRunningStrideLengthMm to set.- Returns:
- This builder for chaining.
-
clearAutoRunningStrideLengthMm
Output only. The automatically calculated running stride length, in millimeters. The user must consent to one of the following access scopes to access this field: - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly` - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`
optional int32 auto_running_stride_length_mm = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-