public interface ExerciseOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getActiveDuration()
public abstract Duration getActiveDuration()Optional. Duration excluding pauses.
.google.protobuf.Duration active_duration = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Duration |
The activeDuration. |
getActiveDurationOrBuilder()
public abstract DurationOrBuilder getActiveDurationOrBuilder()Optional. Duration excluding pauses.
.google.protobuf.Duration active_duration = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
getCreateTime()
public abstract 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. |
getCreateTimeOrBuilder()
public abstract 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 |
|
getDisplayName()
public abstract String getDisplayName()Required. Exercise display name.
string display_name = 12 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The displayName. |
getDisplayNameBytes()
public abstract 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 abstract 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 |
|
getExerciseEventsCount()
public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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. |
getExerciseMetadataOrBuilder()
public abstract 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 abstract 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 abstract 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 abstract SessionTimeInterval getInterval()Required. Observed exercise interval
.google.devicesandservices.health.v4.SessionTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SessionTimeInterval |
The interval. |
getIntervalOrBuilder()
public abstract SessionTimeIntervalOrBuilder getIntervalOrBuilder()Required. Observed exercise interval
.google.devicesandservices.health.v4.SessionTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SessionTimeIntervalOrBuilder |
|
getMetricsSummary()
public abstract 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. |
getMetricsSummaryOrBuilder()
public abstract 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 abstract 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 abstract 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 abstract 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 |
|
getSplitSummariesCount()
public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 |
|
getSplitsCount()
public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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. |
getUpdateTimeOrBuilder()
public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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. |