# Interface ProfileOrBuilder (0.2.0)

    public interface ProfileOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | 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`

- `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | 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`

- `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | 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`

- `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | 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`

- `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | 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`

- `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | 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`

- `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | 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`

- `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | 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`

- `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the userConfiguredWalkingStrideLengthMm field is set. |