public static final class Exercise.Builder extends GeneratedMessage.Builder<Exercise.Builder> implements ExerciseOrBuilderAn exercise that stores information about a physical activity.
Protobuf type google.devicesandservices.health.v4.Exercise
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Exercise.BuilderImplements
ExerciseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllExerciseEvents(Iterable<? extends Exercise.ExerciseEvent> values)
public Exercise.Builder addAllExerciseEvents(Iterable<? extends Exercise.ExerciseEvent> values)Optional. Exercise events that happen during an exercise, such as pause & restarts.
repeated .google.devicesandservices.health.v4.Exercise.ExerciseEvent exercise_events = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.devicesandservices.health.v4.Exercise.ExerciseEvent> |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
addAllSplitSummaries(Iterable<? extends Exercise.SplitSummary> values)
public Exercise.Builder addAllSplitSummaries(Iterable<? extends Exercise.SplitSummary> values)Optional. Laps or splits recorded within an exercise. Laps could be split based on distance or other criteria (duration, etc.) Laps should not be overlapping with each other.
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary split_summaries = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.devicesandservices.health.v4.Exercise.SplitSummary> |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
addAllSplits(Iterable<? extends Exercise.SplitSummary> values)
public Exercise.Builder addAllSplits(Iterable<? extends Exercise.SplitSummary> values)Optional. The default split is 1 km or 1 mile.
- if the movement distance is less than the default, then there are no splits
- if the movement distance is greater than or equal to the default, then we have splits
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary splits = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.devicesandservices.health.v4.Exercise.SplitSummary> |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
addExerciseEvents(Exercise.ExerciseEvent value)
public Exercise.Builder addExerciseEvents(Exercise.ExerciseEvent value)Optional. Exercise events that happen during an exercise, such as pause & restarts.
repeated .google.devicesandservices.health.v4.Exercise.ExerciseEvent exercise_events = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Exercise.ExerciseEvent |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
addExerciseEvents(Exercise.ExerciseEvent.Builder builderForValue)
public Exercise.Builder addExerciseEvents(Exercise.ExerciseEvent.Builder builderForValue)Optional. Exercise events that happen during an exercise, such as pause & restarts.
repeated .google.devicesandservices.health.v4.Exercise.ExerciseEvent exercise_events = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Exercise.ExerciseEvent.Builder |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
addExerciseEvents(int index, Exercise.ExerciseEvent value)
public Exercise.Builder addExerciseEvents(int index, Exercise.ExerciseEvent value)Optional. Exercise events that happen during an exercise, such as pause & restarts.
repeated .google.devicesandservices.health.v4.Exercise.ExerciseEvent exercise_events = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Exercise.ExerciseEvent |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
addExerciseEvents(int index, Exercise.ExerciseEvent.Builder builderForValue)
public Exercise.Builder addExerciseEvents(int index, Exercise.ExerciseEvent.Builder builderForValue)Optional. Exercise events that happen during an exercise, such as pause & restarts.
repeated .google.devicesandservices.health.v4.Exercise.ExerciseEvent exercise_events = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Exercise.ExerciseEvent.Builder |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
addExerciseEventsBuilder()
public Exercise.ExerciseEvent.Builder addExerciseEventsBuilder()Optional. Exercise events that happen during an exercise, such as pause & restarts.
repeated .google.devicesandservices.health.v4.Exercise.ExerciseEvent exercise_events = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseEvent.Builder |
|
addExerciseEventsBuilder(int index)
public Exercise.ExerciseEvent.Builder addExerciseEventsBuilder(int index)Optional. Exercise events that happen during an exercise, such as pause & restarts.
repeated .google.devicesandservices.health.v4.Exercise.ExerciseEvent exercise_events = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseEvent.Builder |
|
addSplitSummaries(Exercise.SplitSummary value)
public Exercise.Builder addSplitSummaries(Exercise.SplitSummary value)Optional. Laps or splits recorded within an exercise. Laps could be split based on distance or other criteria (duration, etc.) Laps should not be overlapping with each other.
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary split_summaries = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Exercise.SplitSummary |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
addSplitSummaries(Exercise.SplitSummary.Builder builderForValue)
public Exercise.Builder addSplitSummaries(Exercise.SplitSummary.Builder builderForValue)Optional. Laps or splits recorded within an exercise. Laps could be split based on distance or other criteria (duration, etc.) Laps should not be overlapping with each other.
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary split_summaries = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Exercise.SplitSummary.Builder |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
addSplitSummaries(int index, Exercise.SplitSummary value)
public Exercise.Builder addSplitSummaries(int index, Exercise.SplitSummary value)Optional. Laps or splits recorded within an exercise. Laps could be split based on distance or other criteria (duration, etc.) Laps should not be overlapping with each other.
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary split_summaries = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Exercise.SplitSummary |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
addSplitSummaries(int index, Exercise.SplitSummary.Builder builderForValue)
public Exercise.Builder addSplitSummaries(int index, Exercise.SplitSummary.Builder builderForValue)Optional. Laps or splits recorded within an exercise. Laps could be split based on distance or other criteria (duration, etc.) Laps should not be overlapping with each other.
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary split_summaries = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Exercise.SplitSummary.Builder |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
addSplitSummariesBuilder()
public Exercise.SplitSummary.Builder addSplitSummariesBuilder()Optional. Laps or splits recorded within an exercise. Laps could be split based on distance or other criteria (duration, etc.) Laps should not be overlapping with each other.
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary split_summaries = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Exercise.SplitSummary.Builder |
|
addSplitSummariesBuilder(int index)
public Exercise.SplitSummary.Builder addSplitSummariesBuilder(int index)Optional. Laps or splits recorded within an exercise. Laps could be split based on distance or other criteria (duration, etc.) Laps should not be overlapping with each other.
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary split_summaries = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Exercise.SplitSummary.Builder |
|
addSplits(Exercise.SplitSummary value)
public Exercise.Builder addSplits(Exercise.SplitSummary value)Optional. The default split is 1 km or 1 mile.
- if the movement distance is less than the default, then there are no splits
- if the movement distance is greater than or equal to the default, then we have splits
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary splits = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Exercise.SplitSummary |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
addSplits(Exercise.SplitSummary.Builder builderForValue)
public Exercise.Builder addSplits(Exercise.SplitSummary.Builder builderForValue)Optional. The default split is 1 km or 1 mile.
- if the movement distance is less than the default, then there are no splits
- if the movement distance is greater than or equal to the default, then we have splits
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary splits = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Exercise.SplitSummary.Builder |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
addSplits(int index, Exercise.SplitSummary value)
public Exercise.Builder addSplits(int index, Exercise.SplitSummary value)Optional. The default split is 1 km or 1 mile.
- if the movement distance is less than the default, then there are no splits
- if the movement distance is greater than or equal to the default, then we have splits
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary splits = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Exercise.SplitSummary |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
addSplits(int index, Exercise.SplitSummary.Builder builderForValue)
public Exercise.Builder addSplits(int index, Exercise.SplitSummary.Builder builderForValue)Optional. The default split is 1 km or 1 mile.
- if the movement distance is less than the default, then there are no splits
- if the movement distance is greater than or equal to the default, then we have splits
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary splits = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Exercise.SplitSummary.Builder |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
addSplitsBuilder()
public Exercise.SplitSummary.Builder addSplitsBuilder()Optional. The default split is 1 km or 1 mile.
- if the movement distance is less than the default, then there are no splits
- if the movement distance is greater than or equal to the default, then we have splits
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary splits = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Exercise.SplitSummary.Builder |
|
addSplitsBuilder(int index)
public Exercise.SplitSummary.Builder addSplitsBuilder(int index)Optional. The default split is 1 km or 1 mile.
- if the movement distance is less than the default, then there are no splits
- if the movement distance is greater than or equal to the default, then we have splits
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary splits = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Exercise.SplitSummary.Builder |
|
build()
public Exercise build()| Returns | |
|---|---|
| Type | Description |
Exercise |
|
buildPartial()
public Exercise buildPartial()| Returns | |
|---|---|
| Type | Description |
Exercise |
|
clear()
public Exercise.Builder clear()| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
clearActiveDuration()
public Exercise.Builder clearActiveDuration()Optional. Duration excluding pauses.
.google.protobuf.Duration active_duration = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
clearCreateTime()
public Exercise.Builder clearCreateTime()Output only. Represents the timestamp of the creation of the exercise.
.google.protobuf.Timestamp create_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
clearDisplayName()
public Exercise.Builder clearDisplayName()Required. Exercise display name.
string display_name = 12 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
This builder for chaining. |
clearExerciseEvents()
public Exercise.Builder clearExerciseEvents()Optional. Exercise events that happen during an exercise, such as pause & restarts.
repeated .google.devicesandservices.health.v4.Exercise.ExerciseEvent exercise_events = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
clearExerciseMetadata()
public Exercise.Builder clearExerciseMetadata()Optional. Additional exercise metadata.
.google.devicesandservices.health.v4.Exercise.ExerciseMetadata exercise_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
clearExerciseType()
public Exercise.Builder clearExerciseType()Required. The type of activity performed during an exercise.
.google.devicesandservices.health.v4.Exercise.ExerciseType exercise_type = 6 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
This builder for chaining. |
clearInterval()
public Exercise.Builder clearInterval()Required. Observed exercise interval
.google.devicesandservices.health.v4.SessionTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
clearMetricsSummary()
public Exercise.Builder clearMetricsSummary()Required. Summary metrics for this exercise ( )
.google.devicesandservices.health.v4.MetricsSummary metrics_summary = 10 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
clearNotes()
public Exercise.Builder clearNotes()Optional. Standard free-form notes captured at manual logging.
string notes = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
This builder for chaining. |
clearSplitSummaries()
public Exercise.Builder clearSplitSummaries()Optional. Laps or splits recorded within an exercise. Laps could be split based on distance or other criteria (duration, etc.) Laps should not be overlapping with each other.
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary split_summaries = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
clearSplits()
public Exercise.Builder clearSplits()Optional. The default split is 1 km or 1 mile.
- if the movement distance is less than the default, then there are no splits
- if the movement distance is greater than or equal to the default, then we have splits
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary splits = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
clearUpdateTime()
public Exercise.Builder clearUpdateTime()Output only. This is the timestamp of the last update to the exercise.
.google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
getActiveDuration()
public Duration getActiveDuration()Optional. Duration excluding pauses.
.google.protobuf.Duration active_duration = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Duration |
The activeDuration. |
getActiveDurationBuilder()
public Duration.Builder getActiveDurationBuilder()Optional. Duration excluding pauses.
.google.protobuf.Duration active_duration = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getActiveDurationOrBuilder()
public DurationOrBuilder getActiveDurationOrBuilder()Optional. Duration excluding pauses.
.google.protobuf.Duration active_duration = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
getCreateTime()
public Timestamp getCreateTime()Output only. Represents the timestamp of the creation of the exercise.
.google.protobuf.Timestamp create_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()Output only. Represents the timestamp of the creation of the exercise.
.google.protobuf.Timestamp create_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()Output only. Represents the timestamp of the creation of the exercise.
.google.protobuf.Timestamp create_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getDefaultInstanceForType()
public Exercise getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Exercise |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDisplayName()
public String getDisplayName()Required. Exercise display name.
string display_name = 12 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()Required. Exercise display name.
string display_name = 12 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for displayName. |
getExerciseEvents(int index)
public Exercise.ExerciseEvent getExerciseEvents(int index)Optional. Exercise events that happen during an exercise, such as pause & restarts.
repeated .google.devicesandservices.health.v4.Exercise.ExerciseEvent exercise_events = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseEvent |
|
getExerciseEventsBuilder(int index)
public Exercise.ExerciseEvent.Builder getExerciseEventsBuilder(int index)Optional. Exercise events that happen during an exercise, such as pause & restarts.
repeated .google.devicesandservices.health.v4.Exercise.ExerciseEvent exercise_events = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseEvent.Builder |
|
getExerciseEventsBuilderList()
public List<Exercise.ExerciseEvent.Builder> getExerciseEventsBuilderList()Optional. Exercise events that happen during an exercise, such as pause & restarts.
repeated .google.devicesandservices.health.v4.Exercise.ExerciseEvent exercise_events = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getExerciseEventsCount()
public int getExerciseEventsCount()Optional. Exercise events that happen during an exercise, such as pause & restarts.
repeated .google.devicesandservices.health.v4.Exercise.ExerciseEvent exercise_events = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getExerciseEventsList()
public List<Exercise.ExerciseEvent> getExerciseEventsList()Optional. Exercise events that happen during an exercise, such as pause & restarts.
repeated .google.devicesandservices.health.v4.Exercise.ExerciseEvent exercise_events = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<ExerciseEvent> |
|
getExerciseEventsOrBuilder(int index)
public Exercise.ExerciseEventOrBuilder getExerciseEventsOrBuilder(int index)Optional. Exercise events that happen during an exercise, such as pause & restarts.
repeated .google.devicesandservices.health.v4.Exercise.ExerciseEvent exercise_events = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseEventOrBuilder |
|
getExerciseEventsOrBuilderList()
public List<? extends Exercise.ExerciseEventOrBuilder> getExerciseEventsOrBuilderList()Optional. Exercise events that happen during an exercise, such as pause & restarts.
repeated .google.devicesandservices.health.v4.Exercise.ExerciseEvent exercise_events = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.devicesandservices.health.v4.Exercise.ExerciseEventOrBuilder> |
|
getExerciseMetadata()
public Exercise.ExerciseMetadata getExerciseMetadata()Optional. Additional exercise metadata.
.google.devicesandservices.health.v4.Exercise.ExerciseMetadata exercise_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseMetadata |
The exerciseMetadata. |
getExerciseMetadataBuilder()
public Exercise.ExerciseMetadata.Builder getExerciseMetadataBuilder()Optional. Additional exercise metadata.
.google.devicesandservices.health.v4.Exercise.ExerciseMetadata exercise_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseMetadata.Builder |
|
getExerciseMetadataOrBuilder()
public Exercise.ExerciseMetadataOrBuilder getExerciseMetadataOrBuilder()Optional. Additional exercise metadata.
.google.devicesandservices.health.v4.Exercise.ExerciseMetadata exercise_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseMetadataOrBuilder |
|
getExerciseType()
public Exercise.ExerciseType getExerciseType()Required. The type of activity performed during an exercise.
.google.devicesandservices.health.v4.Exercise.ExerciseType exercise_type = 6 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseType |
The exerciseType. |
getExerciseTypeValue()
public int getExerciseTypeValue()Required. The type of activity performed during an exercise.
.google.devicesandservices.health.v4.Exercise.ExerciseType exercise_type = 6 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for exerciseType. |
getInterval()
public SessionTimeInterval getInterval()Required. Observed exercise interval
.google.devicesandservices.health.v4.SessionTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SessionTimeInterval |
The interval. |
getIntervalBuilder()
public SessionTimeInterval.Builder getIntervalBuilder()Required. Observed exercise interval
.google.devicesandservices.health.v4.SessionTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SessionTimeInterval.Builder |
|
getIntervalOrBuilder()
public SessionTimeIntervalOrBuilder getIntervalOrBuilder()Required. Observed exercise interval
.google.devicesandservices.health.v4.SessionTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SessionTimeIntervalOrBuilder |
|
getMetricsSummary()
public MetricsSummary getMetricsSummary()Required. Summary metrics for this exercise ( )
.google.devicesandservices.health.v4.MetricsSummary metrics_summary = 10 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
MetricsSummary |
The metricsSummary. |
getMetricsSummaryBuilder()
public MetricsSummary.Builder getMetricsSummaryBuilder()Required. Summary metrics for this exercise ( )
.google.devicesandservices.health.v4.MetricsSummary metrics_summary = 10 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
MetricsSummary.Builder |
|
getMetricsSummaryOrBuilder()
public MetricsSummaryOrBuilder getMetricsSummaryOrBuilder()Required. Summary metrics for this exercise ( )
.google.devicesandservices.health.v4.MetricsSummary metrics_summary = 10 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
MetricsSummaryOrBuilder |
|
getNotes()
public String getNotes()Optional. Standard free-form notes captured at manual logging.
string notes = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The notes. |
getNotesBytes()
public ByteString getNotesBytes()Optional. Standard free-form notes captured at manual logging.
string notes = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for notes. |
getSplitSummaries(int index)
public Exercise.SplitSummary getSplitSummaries(int index)Optional. Laps or splits recorded within an exercise. Laps could be split based on distance or other criteria (duration, etc.) Laps should not be overlapping with each other.
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary split_summaries = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Exercise.SplitSummary |
|
getSplitSummariesBuilder(int index)
public Exercise.SplitSummary.Builder getSplitSummariesBuilder(int index)Optional. Laps or splits recorded within an exercise. Laps could be split based on distance or other criteria (duration, etc.) Laps should not be overlapping with each other.
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary split_summaries = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Exercise.SplitSummary.Builder |
|
getSplitSummariesBuilderList()
public List<Exercise.SplitSummary.Builder> getSplitSummariesBuilderList()Optional. Laps or splits recorded within an exercise. Laps could be split based on distance or other criteria (duration, etc.) Laps should not be overlapping with each other.
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary split_summaries = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getSplitSummariesCount()
public int getSplitSummariesCount()Optional. Laps or splits recorded within an exercise. Laps could be split based on distance or other criteria (duration, etc.) Laps should not be overlapping with each other.
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary split_summaries = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getSplitSummariesList()
public List<Exercise.SplitSummary> getSplitSummariesList()Optional. Laps or splits recorded within an exercise. Laps could be split based on distance or other criteria (duration, etc.) Laps should not be overlapping with each other.
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary split_summaries = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<SplitSummary> |
|
getSplitSummariesOrBuilder(int index)
public Exercise.SplitSummaryOrBuilder getSplitSummariesOrBuilder(int index)Optional. Laps or splits recorded within an exercise. Laps could be split based on distance or other criteria (duration, etc.) Laps should not be overlapping with each other.
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary split_summaries = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Exercise.SplitSummaryOrBuilder |
|
getSplitSummariesOrBuilderList()
public List<? extends Exercise.SplitSummaryOrBuilder> getSplitSummariesOrBuilderList()Optional. Laps or splits recorded within an exercise. Laps could be split based on distance or other criteria (duration, etc.) Laps should not be overlapping with each other.
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary split_summaries = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.devicesandservices.health.v4.Exercise.SplitSummaryOrBuilder> |
|
getSplits(int index)
public Exercise.SplitSummary getSplits(int index)Optional. The default split is 1 km or 1 mile.
- if the movement distance is less than the default, then there are no splits
- if the movement distance is greater than or equal to the default, then we have splits
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary splits = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Exercise.SplitSummary |
|
getSplitsBuilder(int index)
public Exercise.SplitSummary.Builder getSplitsBuilder(int index)Optional. The default split is 1 km or 1 mile.
- if the movement distance is less than the default, then there are no splits
- if the movement distance is greater than or equal to the default, then we have splits
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary splits = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Exercise.SplitSummary.Builder |
|
getSplitsBuilderList()
public List<Exercise.SplitSummary.Builder> getSplitsBuilderList()Optional. The default split is 1 km or 1 mile.
- if the movement distance is less than the default, then there are no splits
- if the movement distance is greater than or equal to the default, then we have splits
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary splits = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getSplitsCount()
public int getSplitsCount()Optional. The default split is 1 km or 1 mile.
- if the movement distance is less than the default, then there are no splits
- if the movement distance is greater than or equal to the default, then we have splits
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary splits = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getSplitsList()
public List<Exercise.SplitSummary> getSplitsList()Optional. The default split is 1 km or 1 mile.
- if the movement distance is less than the default, then there are no splits
- if the movement distance is greater than or equal to the default, then we have splits
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary splits = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<SplitSummary> |
|
getSplitsOrBuilder(int index)
public Exercise.SplitSummaryOrBuilder getSplitsOrBuilder(int index)Optional. The default split is 1 km or 1 mile.
- if the movement distance is less than the default, then there are no splits
- if the movement distance is greater than or equal to the default, then we have splits
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary splits = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Exercise.SplitSummaryOrBuilder |
|
getSplitsOrBuilderList()
public List<? extends Exercise.SplitSummaryOrBuilder> getSplitsOrBuilderList()Optional. The default split is 1 km or 1 mile.
- if the movement distance is less than the default, then there are no splits
- if the movement distance is greater than or equal to the default, then we have splits
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary splits = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.devicesandservices.health.v4.Exercise.SplitSummaryOrBuilder> |
|
getUpdateTime()
public Timestamp getUpdateTime()Output only. This is the timestamp of the last update to the exercise.
.google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()Output only. This is the timestamp of the last update to the exercise.
.google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()Output only. This is the timestamp of the last update to the exercise.
.google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
hasActiveDuration()
public boolean hasActiveDuration()Optional. Duration excluding pauses.
.google.protobuf.Duration active_duration = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the activeDuration field is set. |
hasCreateTime()
public boolean hasCreateTime()Output only. Represents the timestamp of the creation of the exercise.
.google.protobuf.Timestamp create_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the createTime field is set. |
hasExerciseMetadata()
public boolean hasExerciseMetadata()Optional. Additional exercise metadata.
.google.devicesandservices.health.v4.Exercise.ExerciseMetadata exercise_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the exerciseMetadata field is set. |
hasInterval()
public boolean hasInterval()Required. Observed exercise interval
.google.devicesandservices.health.v4.SessionTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the interval field is set. |
hasMetricsSummary()
public boolean hasMetricsSummary()Required. Summary metrics for this exercise ( )
.google.devicesandservices.health.v4.MetricsSummary metrics_summary = 10 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the metricsSummary field is set. |
hasUpdateTime()
public boolean hasUpdateTime()Output only. This is the timestamp of the last update to the exercise.
.google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeActiveDuration(Duration value)
public Exercise.Builder mergeActiveDuration(Duration value)Optional. Duration excluding pauses.
.google.protobuf.Duration active_duration = 13 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
mergeCreateTime(Timestamp value)
public Exercise.Builder mergeCreateTime(Timestamp value)Output only. Represents the timestamp of the creation of the exercise.
.google.protobuf.Timestamp create_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
mergeExerciseMetadata(Exercise.ExerciseMetadata value)
public Exercise.Builder mergeExerciseMetadata(Exercise.ExerciseMetadata value)Optional. Additional exercise metadata.
.google.devicesandservices.health.v4.Exercise.ExerciseMetadata exercise_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Exercise.ExerciseMetadata |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
mergeFrom(Exercise other)
public Exercise.Builder mergeFrom(Exercise other)| Parameter | |
|---|---|
| Name | Description |
other |
Exercise |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Exercise.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Exercise.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
mergeInterval(SessionTimeInterval value)
public Exercise.Builder mergeInterval(SessionTimeInterval value)Required. Observed exercise interval
.google.devicesandservices.health.v4.SessionTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
SessionTimeInterval |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
mergeMetricsSummary(MetricsSummary value)
public Exercise.Builder mergeMetricsSummary(MetricsSummary value)Required. Summary metrics for this exercise ( )
.google.devicesandservices.health.v4.MetricsSummary metrics_summary = 10 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
MetricsSummary |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
mergeUpdateTime(Timestamp value)
public Exercise.Builder mergeUpdateTime(Timestamp value)Output only. This is the timestamp of the last update to the exercise.
.google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
removeExerciseEvents(int index)
public Exercise.Builder removeExerciseEvents(int index)Optional. Exercise events that happen during an exercise, such as pause & restarts.
repeated .google.devicesandservices.health.v4.Exercise.ExerciseEvent exercise_events = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
removeSplitSummaries(int index)
public Exercise.Builder removeSplitSummaries(int index)Optional. Laps or splits recorded within an exercise. Laps could be split based on distance or other criteria (duration, etc.) Laps should not be overlapping with each other.
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary split_summaries = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
removeSplits(int index)
public Exercise.Builder removeSplits(int index)Optional. The default split is 1 km or 1 mile.
- if the movement distance is less than the default, then there are no splits
- if the movement distance is greater than or equal to the default, then we have splits
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary splits = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
setActiveDuration(Duration value)
public Exercise.Builder setActiveDuration(Duration value)Optional. Duration excluding pauses.
.google.protobuf.Duration active_duration = 13 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
setActiveDuration(Duration.Builder builderForValue)
public Exercise.Builder setActiveDuration(Duration.Builder builderForValue)Optional. Duration excluding pauses.
.google.protobuf.Duration active_duration = 13 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
setCreateTime(Timestamp value)
public Exercise.Builder setCreateTime(Timestamp value)Output only. Represents the timestamp of the creation of the exercise.
.google.protobuf.Timestamp create_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
setCreateTime(Timestamp.Builder builderForValue)
public Exercise.Builder setCreateTime(Timestamp.Builder builderForValue)Output only. Represents the timestamp of the creation of the exercise.
.google.protobuf.Timestamp create_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
setDisplayName(String value)
public Exercise.Builder setDisplayName(String value)Required. Exercise display name.
string display_name = 12 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe displayName to set. |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
This builder for chaining. |
setDisplayNameBytes(ByteString value)
public Exercise.Builder setDisplayNameBytes(ByteString value)Required. Exercise display name.
string display_name = 12 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for displayName to set. |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
This builder for chaining. |
setExerciseEvents(int index, Exercise.ExerciseEvent value)
public Exercise.Builder setExerciseEvents(int index, Exercise.ExerciseEvent value)Optional. Exercise events that happen during an exercise, such as pause & restarts.
repeated .google.devicesandservices.health.v4.Exercise.ExerciseEvent exercise_events = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Exercise.ExerciseEvent |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
setExerciseEvents(int index, Exercise.ExerciseEvent.Builder builderForValue)
public Exercise.Builder setExerciseEvents(int index, Exercise.ExerciseEvent.Builder builderForValue)Optional. Exercise events that happen during an exercise, such as pause & restarts.
repeated .google.devicesandservices.health.v4.Exercise.ExerciseEvent exercise_events = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Exercise.ExerciseEvent.Builder |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
setExerciseMetadata(Exercise.ExerciseMetadata value)
public Exercise.Builder setExerciseMetadata(Exercise.ExerciseMetadata value)Optional. Additional exercise metadata.
.google.devicesandservices.health.v4.Exercise.ExerciseMetadata exercise_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Exercise.ExerciseMetadata |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
setExerciseMetadata(Exercise.ExerciseMetadata.Builder builderForValue)
public Exercise.Builder setExerciseMetadata(Exercise.ExerciseMetadata.Builder builderForValue)Optional. Additional exercise metadata.
.google.devicesandservices.health.v4.Exercise.ExerciseMetadata exercise_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Exercise.ExerciseMetadata.Builder |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
setExerciseType(Exercise.ExerciseType value)
public Exercise.Builder setExerciseType(Exercise.ExerciseType value)Required. The type of activity performed during an exercise.
.google.devicesandservices.health.v4.Exercise.ExerciseType exercise_type = 6 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Exercise.ExerciseTypeThe exerciseType to set. |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
This builder for chaining. |
setExerciseTypeValue(int value)
public Exercise.Builder setExerciseTypeValue(int value)Required. The type of activity performed during an exercise.
.google.devicesandservices.health.v4.Exercise.ExerciseType exercise_type = 6 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for exerciseType to set. |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
This builder for chaining. |
setInterval(SessionTimeInterval value)
public Exercise.Builder setInterval(SessionTimeInterval value)Required. Observed exercise interval
.google.devicesandservices.health.v4.SessionTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
SessionTimeInterval |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
setInterval(SessionTimeInterval.Builder builderForValue)
public Exercise.Builder setInterval(SessionTimeInterval.Builder builderForValue)Required. Observed exercise interval
.google.devicesandservices.health.v4.SessionTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
SessionTimeInterval.Builder |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
setMetricsSummary(MetricsSummary value)
public Exercise.Builder setMetricsSummary(MetricsSummary value)Required. Summary metrics for this exercise ( )
.google.devicesandservices.health.v4.MetricsSummary metrics_summary = 10 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
MetricsSummary |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
setMetricsSummary(MetricsSummary.Builder builderForValue)
public Exercise.Builder setMetricsSummary(MetricsSummary.Builder builderForValue)Required. Summary metrics for this exercise ( )
.google.devicesandservices.health.v4.MetricsSummary metrics_summary = 10 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
MetricsSummary.Builder |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
setNotes(String value)
public Exercise.Builder setNotes(String value)Optional. Standard free-form notes captured at manual logging.
string notes = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe notes to set. |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
This builder for chaining. |
setNotesBytes(ByteString value)
public Exercise.Builder setNotesBytes(ByteString value)Optional. Standard free-form notes captured at manual logging.
string notes = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for notes to set. |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
This builder for chaining. |
setSplitSummaries(int index, Exercise.SplitSummary value)
public Exercise.Builder setSplitSummaries(int index, Exercise.SplitSummary value)Optional. Laps or splits recorded within an exercise. Laps could be split based on distance or other criteria (duration, etc.) Laps should not be overlapping with each other.
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary split_summaries = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Exercise.SplitSummary |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
setSplitSummaries(int index, Exercise.SplitSummary.Builder builderForValue)
public Exercise.Builder setSplitSummaries(int index, Exercise.SplitSummary.Builder builderForValue)Optional. Laps or splits recorded within an exercise. Laps could be split based on distance or other criteria (duration, etc.) Laps should not be overlapping with each other.
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary split_summaries = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Exercise.SplitSummary.Builder |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
setSplits(int index, Exercise.SplitSummary value)
public Exercise.Builder setSplits(int index, Exercise.SplitSummary value)Optional. The default split is 1 km or 1 mile.
- if the movement distance is less than the default, then there are no splits
- if the movement distance is greater than or equal to the default, then we have splits
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary splits = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Exercise.SplitSummary |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
setSplits(int index, Exercise.SplitSummary.Builder builderForValue)
public Exercise.Builder setSplits(int index, Exercise.SplitSummary.Builder builderForValue)Optional. The default split is 1 km or 1 mile.
- if the movement distance is less than the default, then there are no splits
- if the movement distance is greater than or equal to the default, then we have splits
repeated .google.devicesandservices.health.v4.Exercise.SplitSummary splits = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Exercise.SplitSummary.Builder |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
setUpdateTime(Timestamp value)
public Exercise.Builder setUpdateTime(Timestamp value)Output only. This is the timestamp of the last update to the exercise.
.google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|
setUpdateTime(Timestamp.Builder builderForValue)
public Exercise.Builder setUpdateTime(Timestamp.Builder builderForValue)Output only. This is the timestamp of the last update to the exercise.
.google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Exercise.Builder |
|