java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.devicesandservices.health.v4.Profile
All Implemented Interfaces:
ProfileOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Profile extends com.google.protobuf.GeneratedMessage implements ProfileOrBuilder
 Profile details.
 
Protobuf type google.devicesandservices.health.v4.Profile
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • AGE_FIELD_NUMBER

      public static final int AGE_FIELD_NUMBER
      See Also:
    • MEMBERSHIP_START_DATE_FIELD_NUMBER

      public static final int MEMBERSHIP_START_DATE_FIELD_NUMBER
      See Also:
    • USER_CONFIGURED_WALKING_STRIDE_LENGTH_MM_FIELD_NUMBER

      public static final int USER_CONFIGURED_WALKING_STRIDE_LENGTH_MM_FIELD_NUMBER
      See Also:
    • USER_CONFIGURED_RUNNING_STRIDE_LENGTH_MM_FIELD_NUMBER

      public static final int USER_CONFIGURED_RUNNING_STRIDE_LENGTH_MM_FIELD_NUMBER
      See Also:
    • AUTO_WALKING_STRIDE_LENGTH_MM_FIELD_NUMBER

      public static final int AUTO_WALKING_STRIDE_LENGTH_MM_FIELD_NUMBER
      See Also:
    • AUTO_RUNNING_STRIDE_LENGTH_MM_FIELD_NUMBER

      public static final int AUTO_RUNNING_STRIDE_LENGTH_MM_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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Profile parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Profile parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Profile parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Profile parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Profile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Profile parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Profile parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Profile parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Profile parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Profile parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Profile parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Profile parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static Profile.Builder newBuilder()
    • newBuilder

      public static Profile.Builder newBuilder(Profile prototype)
    • toBuilder

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

      protected Profile.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Profile getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Profile> parser()
    • getParserForType

      public com.google.protobuf.Parser<Profile> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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