# ExerciseGoalType

Artifact: [androidx.health:health-services-client](https://developer.android.com/jetpack/androidx/releases/health) [View Source](https://cs.android.com/search?q=file:androidx/health/services/client/data/ExerciseGoalType.kt+class:androidx.health.services.client.data.ExerciseGoalType) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)

*** ** * ** ***


```
public final class ExerciseGoalType
```

<br />

*** ** * ** ***

Exercise goal types.

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/ExerciseGoalType` | `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseGoalType#MILESTONE()` Goal type indicating this goal is for a repeating event and should remain until the calling app removes it. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/ExerciseGoalType` | `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseGoalType#ONE_TIME_GOAL()` Goal type indicating this goal is for one event and should then be removed. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseGoalType#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `static final https://developer.android.com/reference/androidx/health/services/client/data/ExerciseGoalType` | `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseGoalType#fromId(kotlin.Int)(int id)` |
| `final int` | `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseGoalType#getId()()` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseGoalType#getName()()` |
| `int` | `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseGoalType#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseGoalType#toString()()` |

## Public fields

### MILESTONE

```
public static final @NonNull ExerciseGoalType MILESTONE
```

Goal type indicating this goal is for a repeating event and should remain until the calling app removes it.

### ONE_TIME_GOAL

```
public static final @NonNull ExerciseGoalType ONE_TIME_GOAL
```

Goal type indicating this goal is for one event and should then be removed.

## Public methods

### equals

```
public boolean equals(Object other)
```

### fromId

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)

```
public static final ExerciseGoalType fromId(int id)
```

### getId

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)

```
public final int getId()
```

### getName

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)

```
public final @NonNull String getName()
```

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```