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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Profile.Builder>
    • clear

      public Profile.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Profile.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Profile.Builder>
    • getDefaultInstanceForType

      public Profile getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Profile build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Profile buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Profile.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Profile.Builder>
    • mergeFrom

      public Profile.Builder mergeFrom(Profile other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Profile.Builder>
      Throws:
      IOException
    • getName

      public String 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:
      getName in interface ProfileOrBuilder
      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:
      getNameBytes in interface ProfileOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Profile.Builder setName(String value)
       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

      public Profile.Builder 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

      public Profile.Builder setNameBytes(com.google.protobuf.ByteString value)
       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:
      getAge in interface ProfileOrBuilder
      Returns:
      The age.
    • setAge

      public Profile.Builder setAge(int value)
       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

      public Profile.Builder 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:
      hasMembershipStartDate in interface ProfileOrBuilder
      Returns:
      Whether the membershipStartDate field is set.
    • getMembershipStartDate

      public Date 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:
      getMembershipStartDate in interface ProfileOrBuilder
      Returns:
      The membershipStartDate.
    • setMembershipStartDate

      public Profile.Builder setMembershipStartDate(Date value)
       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

      public Profile.Builder setMembershipStartDate(Date.Builder builderForValue)
       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

      public Profile.Builder mergeMembershipStartDate(Date value)
       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

      public Profile.Builder 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

      public Date.Builder 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

      public DateOrBuilder 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:
      getMembershipStartDateOrBuilder in interface ProfileOrBuilder
    • 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:
      hasUserConfiguredWalkingStrideLengthMm in interface ProfileOrBuilder
      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:
      getUserConfiguredWalkingStrideLengthMm in interface ProfileOrBuilder
      Returns:
      The userConfiguredWalkingStrideLengthMm.
    • setUserConfiguredWalkingStrideLengthMm

      public Profile.Builder setUserConfiguredWalkingStrideLengthMm(int value)
       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

      public Profile.Builder 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:
      hasUserConfiguredRunningStrideLengthMm in interface ProfileOrBuilder
      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:
      getUserConfiguredRunningStrideLengthMm in interface ProfileOrBuilder
      Returns:
      The userConfiguredRunningStrideLengthMm.
    • setUserConfiguredRunningStrideLengthMm

      public Profile.Builder setUserConfiguredRunningStrideLengthMm(int value)
       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

      public Profile.Builder 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:
      hasAutoWalkingStrideLengthMm in interface ProfileOrBuilder
      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:
      getAutoWalkingStrideLengthMm in interface ProfileOrBuilder
      Returns:
      The autoWalkingStrideLengthMm.
    • setAutoWalkingStrideLengthMm

      public Profile.Builder setAutoWalkingStrideLengthMm(int value)
       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

      public Profile.Builder 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:
      hasAutoRunningStrideLengthMm in interface ProfileOrBuilder
      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:
      getAutoRunningStrideLengthMm in interface ProfileOrBuilder
      Returns:
      The autoRunningStrideLengthMm.
    • setAutoRunningStrideLengthMm

      public Profile.Builder setAutoRunningStrideLengthMm(int value)
       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

      public Profile.Builder 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.