Interface ExerciseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Exercise,Exercise.Builder
@Generated
public interface ExerciseOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.DurationOptional.com.google.protobuf.DurationOrBuilderOptional.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Required.com.google.protobuf.ByteStringRequired.getExerciseEvents(int index) Optional.intOptional.Optional.getExerciseEventsOrBuilder(int index) Optional.List<? extends Exercise.ExerciseEventOrBuilder>Optional.Optional.Optional.Required.intRequired.Required.Required.Required.Required.getNotes()Optional.com.google.protobuf.ByteStringOptional.getSplits(int index) Optional.intOptional.Optional.getSplitsOrBuilder(int index) Optional.List<? extends Exercise.SplitSummaryOrBuilder>Optional.getSplitSummaries(int index) Optional.intOptional.Optional.getSplitSummariesOrBuilder(int index) Optional.List<? extends Exercise.SplitSummaryOrBuilder>Optional.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOptional.booleanOutput only.booleanOptional.booleanRequired.booleanRequired.booleanOutput only.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasInterval
boolean hasInterval()Required. Observed exercise interval
.google.devicesandservices.health.v4.SessionTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- Whether the interval field is set.
-
getInterval
SessionTimeInterval getInterval()Required. Observed exercise interval
.google.devicesandservices.health.v4.SessionTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The interval.
-
getIntervalOrBuilder
SessionTimeIntervalOrBuilder getIntervalOrBuilder()Required. Observed exercise interval
.google.devicesandservices.health.v4.SessionTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED]; -
getExerciseTypeValue
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:
- The enum numeric value on the wire for exerciseType.
-
getExerciseType
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:
- The exerciseType.
-
getSplitsList
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]; -
getSplits
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]; -
getSplitsCount
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]; -
getSplitsOrBuilderList
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]; -
getSplitsOrBuilder
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]; -
getExerciseEventsList
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]; -
getExerciseEvents
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]; -
getExerciseEventsCount
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]; -
getExerciseEventsOrBuilderList
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]; -
getExerciseEventsOrBuilder
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]; -
getSplitSummariesList
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]; -
getSplitSummaries
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]; -
getSplitSummariesCount
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]; -
getSplitSummariesOrBuilderList
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]; -
getSplitSummariesOrBuilder
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]; -
hasMetricsSummary
boolean hasMetricsSummary()Required. Summary metrics for this exercise ( )
.google.devicesandservices.health.v4.MetricsSummary metrics_summary = 10 [(.google.api.field_behavior) = REQUIRED];- Returns:
- Whether the metricsSummary field is set.
-
getMetricsSummary
MetricsSummary getMetricsSummary()Required. Summary metrics for this exercise ( )
.google.devicesandservices.health.v4.MetricsSummary metrics_summary = 10 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The metricsSummary.
-
getMetricsSummaryOrBuilder
MetricsSummaryOrBuilder getMetricsSummaryOrBuilder()Required. Summary metrics for this exercise ( )
.google.devicesandservices.health.v4.MetricsSummary metrics_summary = 10 [(.google.api.field_behavior) = REQUIRED]; -
hasExerciseMetadata
boolean hasExerciseMetadata()Optional. Additional exercise metadata.
.google.devicesandservices.health.v4.Exercise.ExerciseMetadata exercise_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the exerciseMetadata field is set.
-
getExerciseMetadata
Exercise.ExerciseMetadata getExerciseMetadata()Optional. Additional exercise metadata.
.google.devicesandservices.health.v4.Exercise.ExerciseMetadata exercise_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The exerciseMetadata.
-
getExerciseMetadataOrBuilder
Exercise.ExerciseMetadataOrBuilder getExerciseMetadataOrBuilder()Optional. Additional exercise metadata.
.google.devicesandservices.health.v4.Exercise.ExerciseMetadata exercise_metadata = 11 [(.google.api.field_behavior) = OPTIONAL]; -
getDisplayName
String getDisplayName()Required. Exercise display name.
string display_name = 12 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The displayName.
-
getDisplayNameBytes
com.google.protobuf.ByteString getDisplayNameBytes()Required. Exercise display name.
string display_name = 12 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The bytes for displayName.
-
hasActiveDuration
boolean hasActiveDuration()Optional. Duration excluding pauses.
.google.protobuf.Duration active_duration = 13 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the activeDuration field is set.
-
getActiveDuration
com.google.protobuf.Duration getActiveDuration()Optional. Duration excluding pauses.
.google.protobuf.Duration active_duration = 13 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The activeDuration.
-
getActiveDurationOrBuilder
com.google.protobuf.DurationOrBuilder getActiveDurationOrBuilder()Optional. Duration excluding pauses.
.google.protobuf.Duration active_duration = 13 [(.google.api.field_behavior) = OPTIONAL]; -
getNotes
String getNotes()Optional. Standard free-form notes captured at manual logging.
string notes = 14 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The notes.
-
getNotesBytes
com.google.protobuf.ByteString getNotesBytes()Optional. Standard free-form notes captured at manual logging.
string notes = 14 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for notes.
-
hasUpdateTime
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:
- Whether the updateTime field is set.
-
getUpdateTime
com.google.protobuf.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:
- The updateTime.
-
getUpdateTimeOrBuilder
com.google.protobuf.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]; -
hasCreateTime
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:
- Whether the createTime field is set.
-
getCreateTime
com.google.protobuf.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:
- The createTime.
-
getCreateTimeOrBuilder
com.google.protobuf.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];
-