Class Profile (0.2.0)

public final class Profile extends GeneratedMessage implements ProfileOrBuilder

Profile details.

Protobuf type google.devicesandservices.health.v4.Profile

Implements

ProfileOrBuilder

Static Fields

AGE_FIELD_NUMBER

public static final int AGE_FIELD_NUMBER
Field Value
Type Description
int

AUTO_RUNNING_STRIDE_LENGTH_MM_FIELD_NUMBER

public static final int AUTO_RUNNING_STRIDE_LENGTH_MM_FIELD_NUMBER
Field Value
Type Description
int

AUTO_WALKING_STRIDE_LENGTH_MM_FIELD_NUMBER

public static final int AUTO_WALKING_STRIDE_LENGTH_MM_FIELD_NUMBER
Field Value
Type Description
int

MEMBERSHIP_START_DATE_FIELD_NUMBER

public static final int MEMBERSHIP_START_DATE_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

USER_CONFIGURED_RUNNING_STRIDE_LENGTH_MM_FIELD_NUMBER

public static final int USER_CONFIGURED_RUNNING_STRIDE_LENGTH_MM_FIELD_NUMBER
Field Value
Type Description
int

USER_CONFIGURED_WALKING_STRIDE_LENGTH_MM_FIELD_NUMBER

public static final int USER_CONFIGURED_WALKING_STRIDE_LENGTH_MM_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Profile getDefaultInstance()
Returns
Type Description
Profile

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Profile.Builder newBuilder()
Returns
Type Description
Profile.Builder

newBuilder(Profile prototype)

public static Profile.Builder newBuilder(Profile prototype)
Parameter
Name Description
prototype Profile
Returns
Type Description
Profile.Builder

parseDelimitedFrom(InputStream input)

public static Profile parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Profile
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Profile parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Profile
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Profile parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Profile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Profile parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Profile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Profile parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Profile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Profile parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Profile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Profile parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Profile
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Profile parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Profile
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Profile parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Profile
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Profile parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Profile
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Profile parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Profile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Profile parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Profile
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Profile> parser()
Returns
Type Description
Parser<Profile>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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];

Returns
Type Description
int

The age.

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

optional int32 auto_running_stride_length_mm = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The autoRunningStrideLengthMm.

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

optional int32 auto_walking_stride_length_mm = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The autoWalkingStrideLengthMm.

getDefaultInstanceForType()

public Profile getDefaultInstanceForType()
Returns
Type Description
Profile

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];

Returns
Type Description
com.google.type.Date

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];

Returns
Type Description
com.google.type.DateOrBuilder

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];

Returns
Type Description
String

The name.

getNameBytes()

public 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];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<Profile> getParserForType()
Returns
Type Description
Parser<Profile>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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

optional int32 user_configured_running_stride_length_mm = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The userConfiguredRunningStrideLengthMm.

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

optional int32 user_configured_walking_stride_length_mm = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The userConfiguredWalkingStrideLengthMm.

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

optional int32 auto_running_stride_length_mm = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the autoRunningStrideLengthMm field is set.

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

optional int32 auto_walking_stride_length_mm = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the autoWalkingStrideLengthMm field is set.

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];

Returns
Type Description
boolean

Whether the membershipStartDate field is set.

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

optional int32 user_configured_running_stride_length_mm = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the userConfiguredRunningStrideLengthMm field is set.

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

optional int32 user_configured_walking_stride_length_mm = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the userConfiguredWalkingStrideLengthMm field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Profile.Builder newBuilderForType()
Returns
Type Description
Profile.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Profile.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Profile.Builder
Overrides

toBuilder()

public Profile.Builder toBuilder()
Returns
Type Description
Profile.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException