Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [U Extensions 13](https://developer.android.com/sdkExtensions) Summary: [Ctors](https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep.Builder#pubctors) \| [Methods](https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep.Builder#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep.Builder#inhmethods)

# PlannedExerciseStep.Builder

*** ** * ** ***


`
public
static
final

class
PlannedExerciseStep.Builder
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.health.connect.datatypes.PlannedExerciseStep.Builder |

<br />

*** ** * ** ***

Builder of `https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep`.

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep.Builder#Builder(int,%20int,%20android.health.connect.datatypes.ExerciseCompletionGoal)(int exerciseType, int exerciseCategory, https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal completionGoal) ` |

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep.Builder` | ` https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep.Builder#addPerformanceGoal(android.health.connect.datatypes.ExercisePerformanceGoal)(https://developer.android.com/reference/android/health/connect/datatypes/ExercisePerformanceGoal performanceGoal) ` Adds a `https://developer.android.com/reference/android/health/connect/datatypes/ExercisePerformanceGoal`. |
| ` https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep` | ` https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep.Builder#build()() ` Returns `https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep` instance. |
| ` https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep.Builder` | ` https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep.Builder#clearPerformanceGoals()() ` Clears `https://developer.android.com/reference/android/health/connect/datatypes/ExercisePerformanceGoal` entries. |
| ` https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep.Builder` | ` https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep.Builder#setCompletionGoal(android.health.connect.datatypes.ExerciseCompletionGoal)(https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal completionGoal) ` Sets the `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal`. |
| ` https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep.Builder` | ` https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep.Builder#setDescription(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence description) ` Sets the description. |
| ` https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep.Builder` | ` https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep.Builder#setExerciseCategory(int)(int category) ` Sets the exercise category. |
| ` https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep.Builder` | ` https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep.Builder#setExerciseType(int)(int exerciseType) ` Sets the exercise type. |
| ` https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep.Builder` | ` https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep.Builder#setPerformanceGoals(java.util.List<android.health.connect.datatypes.ExercisePerformanceGoal>)(https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/health/connect/datatypes/ExercisePerformanceGoal> performanceGoals) ` Sets `https://developer.android.com/reference/android/health/connect/datatypes/ExercisePerformanceGoal` entries. |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` https://developer.android.com/reference/java/lang/Object#finalize()() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait()() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||

## Public constructors

### Builder

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [U Extensions 13](https://developer.android.com/sdkExtensions)

```
public Builder (int exerciseType, 
                int exerciseCategory, 
                ExerciseCompletionGoal completionGoal)
```

<br />

<br />

| Parameters ||
|---|---|
| `exerciseType` | `int`: The type of exercise to be carried out in this step, e.g. running. Value is one of the following: - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_UNKNOWN` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_BARBELL_SHOULDER_PRESS` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_BENCH_SIT_UP` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_BIKING` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_BIKING_STATIONARY` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_DUMBBELL_CURL_LEFT_ARM` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_DUMBBELL_CURL_RIGHT_ARM` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_DUMBBELL_FRONT_RAISE` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_DUMBBELL_LATERAL_RAISE` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_DUMBBELL_TRICEPS_EXTENSION_LEFT_ARM` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_DUMBBELL_TRICEPS_EXTENSION_RIGHT_ARM` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_DUMBBELL_TRICEPS_EXTENSION_TWO_ARM` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_FORWARD_TWIST` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_ELLIPTICAL` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_HIGH_INTENSITY_INTERVAL_TRAINING` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_PILATES` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_ROWING_MACHINE` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_RUNNING` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_RUNNING_TREADMILL` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_STAIR_CLIMBING` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_STAIR_CLIMBING_MACHINE` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_STRETCHING` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_SWIMMING_OPEN_WATER` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_SWIMMING_POOL` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_UPPER_TWIST` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_WALKING` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_WEIGHTLIFTING` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_WHEELCHAIR` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_OTHER_WORKOUT` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_YOGA` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_ARM_CURL` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_BACK_EXTENSION` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_BALL_SLAM` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_BENCH_PRESS` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_BURPEE` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_CRUNCH` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_DEADLIFT` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_DOUBLE_ARM_TRICEPS_EXTENSION` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_DUMBBELL_ROW` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_FRONT_RAISE` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_HIP_THRUST` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_HULA_HOOP` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_JUMPING_JACK` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_JUMP_ROPE` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_KETTLEBELL_SWING` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_LATERAL_RAISE` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_LAT_PULL_DOWN` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_LEG_CURL` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_LEG_EXTENSION` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_LEG_PRESS` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_LEG_RAISE` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_LUNGE` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_MOUNTAIN_CLIMBER` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_PLANK` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_PULL_UP` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_PUNCH` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_SHOULDER_PRESS` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_SINGLE_ARM_TRICEPS_EXTENSION` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_SIT_UP` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_SQUAT` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_SWIMMING_FREESTYLE` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_SWIMMING_BACKSTROKE` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_SWIMMING_BREASTSTROKE` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_SWIMMING_BUTTERFLY` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_SWIMMING_MIXED` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_SWIMMING_OTHER` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_REST` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_PAUSE` |
| `exerciseCategory` | `int`: The category of exercise to be carried out in this step, e.g. warmup. Value is one of the following: - `https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep#EXERCISE_CATEGORY_UNKNOWN` - `https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep#EXERCISE_CATEGORY_WARMUP` - `https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep#EXERCISE_CATEGORY_REST` - `https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep#EXERCISE_CATEGORY_ACTIVE` - `https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep#EXERCISE_CATEGORY_COOLDOWN` - `https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep#EXERCISE_CATEGORY_RECOVERY` |
| `completionGoal` | `ExerciseCompletionGoal`: The goal to be met to complete this step. This value cannot be `null`. <br /> |

## Public methods

### addPerformanceGoal

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [U Extensions 13](https://developer.android.com/sdkExtensions)

```
public PlannedExerciseStep.Builder addPerformanceGoal (ExercisePerformanceGoal performanceGoal)
```

Adds a `https://developer.android.com/reference/android/health/connect/datatypes/ExercisePerformanceGoal`.

<br />

| Parameters ||
|---|---|
| `performanceGoal` | `ExercisePerformanceGoal`: This value cannot be `null`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep.Builder` | This value cannot be `null`. <br /> |

### build

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [U Extensions 13](https://developer.android.com/sdkExtensions)

```
public PlannedExerciseStep build ()
```

Returns `https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep` instance.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep` | This value cannot be `null`. <br /> |

### clearPerformanceGoals

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [U Extensions 13](https://developer.android.com/sdkExtensions)

```
public PlannedExerciseStep.Builder clearPerformanceGoals ()
```

Clears `https://developer.android.com/reference/android/health/connect/datatypes/ExercisePerformanceGoal` entries.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep.Builder` | This value cannot be `null`. <br /> |

### setCompletionGoal

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [U Extensions 13](https://developer.android.com/sdkExtensions)

```
public PlannedExerciseStep.Builder setCompletionGoal (ExerciseCompletionGoal completionGoal)
```

Sets the `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal`.

<br />

| Parameters ||
|---|---|
| `completionGoal` | `ExerciseCompletionGoal`: This value cannot be `null`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep.Builder` | This value cannot be `null`. <br /> |

### setDescription

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [U Extensions 13](https://developer.android.com/sdkExtensions)

```
public PlannedExerciseStep.Builder setDescription (CharSequence description)
```

Sets the description.

<br />

| Parameters ||
|---|---|
| `description` | `CharSequence`: This value may be `null`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep.Builder` | This value cannot be `null`. <br /> |

### setExerciseCategory

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [U Extensions 13](https://developer.android.com/sdkExtensions)

```
public PlannedExerciseStep.Builder setExerciseCategory (int category)
```

Sets the exercise category.

<br />

| Parameters ||
|---|---|
| `category` | `int`: Value is one of the following: - `https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep#EXERCISE_CATEGORY_UNKNOWN` - `https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep#EXERCISE_CATEGORY_WARMUP` - `https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep#EXERCISE_CATEGORY_REST` - `https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep#EXERCISE_CATEGORY_ACTIVE` - `https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep#EXERCISE_CATEGORY_COOLDOWN` - `https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep#EXERCISE_CATEGORY_RECOVERY` |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep.Builder` | This value cannot be `null`. <br /> |

### setExerciseType

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [U Extensions 13](https://developer.android.com/sdkExtensions)

```
public PlannedExerciseStep.Builder setExerciseType (int exerciseType)
```

Sets the exercise type.

<br />

| Parameters ||
|---|---|
| `exerciseType` | `int`: Value is one of the following: - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_UNKNOWN` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_BARBELL_SHOULDER_PRESS` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_BENCH_SIT_UP` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_BIKING` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_BIKING_STATIONARY` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_DUMBBELL_CURL_LEFT_ARM` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_DUMBBELL_CURL_RIGHT_ARM` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_DUMBBELL_FRONT_RAISE` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_DUMBBELL_LATERAL_RAISE` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_DUMBBELL_TRICEPS_EXTENSION_LEFT_ARM` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_DUMBBELL_TRICEPS_EXTENSION_RIGHT_ARM` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_DUMBBELL_TRICEPS_EXTENSION_TWO_ARM` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_FORWARD_TWIST` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_ELLIPTICAL` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_HIGH_INTENSITY_INTERVAL_TRAINING` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_PILATES` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_ROWING_MACHINE` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_RUNNING` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_RUNNING_TREADMILL` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_STAIR_CLIMBING` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_STAIR_CLIMBING_MACHINE` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_STRETCHING` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_SWIMMING_OPEN_WATER` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_SWIMMING_POOL` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_UPPER_TWIST` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_WALKING` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_WEIGHTLIFTING` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_WHEELCHAIR` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_OTHER_WORKOUT` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_YOGA` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_ARM_CURL` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_BACK_EXTENSION` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_BALL_SLAM` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_BENCH_PRESS` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_BURPEE` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_CRUNCH` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_DEADLIFT` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_DOUBLE_ARM_TRICEPS_EXTENSION` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_DUMBBELL_ROW` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_FRONT_RAISE` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_HIP_THRUST` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_HULA_HOOP` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_JUMPING_JACK` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_JUMP_ROPE` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_KETTLEBELL_SWING` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_LATERAL_RAISE` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_LAT_PULL_DOWN` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_LEG_CURL` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_LEG_EXTENSION` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_LEG_PRESS` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_LEG_RAISE` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_LUNGE` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_MOUNTAIN_CLIMBER` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_PLANK` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_PULL_UP` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_PUNCH` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_SHOULDER_PRESS` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_SINGLE_ARM_TRICEPS_EXTENSION` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_SIT_UP` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_SQUAT` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_SWIMMING_FREESTYLE` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_SWIMMING_BACKSTROKE` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_SWIMMING_BREASTSTROKE` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_SWIMMING_BUTTERFLY` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_SWIMMING_MIXED` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_SWIMMING_OTHER` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_REST` - `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseSegmentType#EXERCISE_SEGMENT_TYPE_PAUSE` |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep.Builder` | This value cannot be `null`. <br /> |

### setPerformanceGoals

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [U Extensions 13](https://developer.android.com/sdkExtensions)

```
public PlannedExerciseStep.Builder setPerformanceGoals (List<ExercisePerformanceGoal> performanceGoals)
```

Sets `https://developer.android.com/reference/android/health/connect/datatypes/ExercisePerformanceGoal` entries.

<br />

| Parameters ||
|---|---|
| `performanceGoals` | `List`: This value cannot be `null`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep.Builder` | This value cannot be `null`. <br /> |