Interface ProfileOrBuilder (0.2.0)

public interface ProfileOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAge()

public abstract 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 abstract 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 abstract 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.

getMembershipStartDate()

public abstract 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 abstract 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 abstract 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 abstract 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.

getUserConfiguredRunningStrideLengthMm()

public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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.