Class Exercise

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.devicesandservices.health.v4.Exercise
All Implemented Interfaces:
ExerciseOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Exercise extends com.google.protobuf.GeneratedMessage implements ExerciseOrBuilder
 An exercise that stores information about a physical activity.
 
Protobuf type google.devicesandservices.health.v4.Exercise
See Also:
  • Field Details

    • INTERVAL_FIELD_NUMBER

      public static final int INTERVAL_FIELD_NUMBER
      See Also:
    • EXERCISE_TYPE_FIELD_NUMBER

      public static final int EXERCISE_TYPE_FIELD_NUMBER
      See Also:
    • SPLITS_FIELD_NUMBER

      public static final int SPLITS_FIELD_NUMBER
      See Also:
    • EXERCISE_EVENTS_FIELD_NUMBER

      public static final int EXERCISE_EVENTS_FIELD_NUMBER
      See Also:
    • SPLIT_SUMMARIES_FIELD_NUMBER

      public static final int SPLIT_SUMMARIES_FIELD_NUMBER
      See Also:
    • METRICS_SUMMARY_FIELD_NUMBER

      public static final int METRICS_SUMMARY_FIELD_NUMBER
      See Also:
    • EXERCISE_METADATA_FIELD_NUMBER

      public static final int EXERCISE_METADATA_FIELD_NUMBER
      See Also:
    • DISPLAY_NAME_FIELD_NUMBER

      public static final int DISPLAY_NAME_FIELD_NUMBER
      See Also:
    • ACTIVE_DURATION_FIELD_NUMBER

      public static final int ACTIVE_DURATION_FIELD_NUMBER
      See Also:
    • NOTES_FIELD_NUMBER

      public static final int NOTES_FIELD_NUMBER
      See Also:
    • UPDATE_TIME_FIELD_NUMBER

      public static final int UPDATE_TIME_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • hasInterval

      public boolean hasInterval()
       Required. Observed exercise interval
       
      .google.devicesandservices.health.v4.SessionTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasInterval in interface ExerciseOrBuilder
      Returns:
      Whether the interval field is set.
    • getInterval

      public SessionTimeInterval getInterval()
       Required. Observed exercise interval
       
      .google.devicesandservices.health.v4.SessionTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInterval in interface ExerciseOrBuilder
      Returns:
      The interval.
    • getIntervalOrBuilder

      public SessionTimeIntervalOrBuilder getIntervalOrBuilder()
       Required. Observed exercise interval
       
      .google.devicesandservices.health.v4.SessionTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIntervalOrBuilder in interface ExerciseOrBuilder
    • 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];
      Specified by:
      getExerciseTypeValue in interface ExerciseOrBuilder
      Returns:
      The enum numeric value on the wire for exerciseType.
    • 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];
      Specified by:
      getExerciseType in interface ExerciseOrBuilder
      Returns:
      The exerciseType.
    • 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];
      Specified by:
      getSplitsList in interface ExerciseOrBuilder
    • 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];
      Specified by:
      getSplitsOrBuilderList in interface ExerciseOrBuilder
    • 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];
      Specified by:
      getSplitsCount in interface ExerciseOrBuilder
    • getSplits

      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];
      Specified by:
      getSplits in interface ExerciseOrBuilder
    • getSplitsOrBuilder

      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];
      Specified by:
      getSplitsOrBuilder in interface ExerciseOrBuilder
    • 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];
      Specified by:
      getExerciseEventsList in interface ExerciseOrBuilder
    • 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];
      Specified by:
      getExerciseEventsOrBuilderList in interface ExerciseOrBuilder
    • 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];
      Specified by:
      getExerciseEventsCount in interface ExerciseOrBuilder
    • getExerciseEvents

      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];
      Specified by:
      getExerciseEvents in interface ExerciseOrBuilder
    • getExerciseEventsOrBuilder

      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];
      Specified by:
      getExerciseEventsOrBuilder in interface ExerciseOrBuilder
    • 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];
      Specified by:
      getSplitSummariesList in interface ExerciseOrBuilder
    • 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];
      Specified by:
      getSplitSummariesOrBuilderList in interface ExerciseOrBuilder
    • 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];
      Specified by:
      getSplitSummariesCount in interface ExerciseOrBuilder
    • getSplitSummaries

      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];
      Specified by:
      getSplitSummaries in interface ExerciseOrBuilder
    • getSplitSummariesOrBuilder

      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];
      Specified by:
      getSplitSummariesOrBuilder in interface ExerciseOrBuilder
    • hasMetricsSummary

      public boolean hasMetricsSummary()
       Required. Summary metrics for this exercise
       ( )
       
      .google.devicesandservices.health.v4.MetricsSummary metrics_summary = 10 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasMetricsSummary in interface ExerciseOrBuilder
      Returns:
      Whether the metricsSummary field is set.
    • getMetricsSummary

      public MetricsSummary getMetricsSummary()
       Required. Summary metrics for this exercise
       ( )
       
      .google.devicesandservices.health.v4.MetricsSummary metrics_summary = 10 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMetricsSummary in interface ExerciseOrBuilder
      Returns:
      The metricsSummary.
    • getMetricsSummaryOrBuilder

      public MetricsSummaryOrBuilder getMetricsSummaryOrBuilder()
       Required. Summary metrics for this exercise
       ( )
       
      .google.devicesandservices.health.v4.MetricsSummary metrics_summary = 10 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMetricsSummaryOrBuilder in interface ExerciseOrBuilder
    • hasExerciseMetadata

      public boolean hasExerciseMetadata()
       Optional. Additional exercise metadata.
       
      .google.devicesandservices.health.v4.Exercise.ExerciseMetadata exercise_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasExerciseMetadata in interface ExerciseOrBuilder
      Returns:
      Whether the exerciseMetadata field is set.
    • getExerciseMetadata

      public Exercise.ExerciseMetadata getExerciseMetadata()
       Optional. Additional exercise metadata.
       
      .google.devicesandservices.health.v4.Exercise.ExerciseMetadata exercise_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExerciseMetadata in interface ExerciseOrBuilder
      Returns:
      The exerciseMetadata.
    • getExerciseMetadataOrBuilder

      public Exercise.ExerciseMetadataOrBuilder getExerciseMetadataOrBuilder()
       Optional. Additional exercise metadata.
       
      .google.devicesandservices.health.v4.Exercise.ExerciseMetadata exercise_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExerciseMetadataOrBuilder in interface ExerciseOrBuilder
    • getDisplayName

      public String getDisplayName()
       Required. Exercise display name.
       
      string display_name = 12 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayName in interface ExerciseOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Required. Exercise display name.
       
      string display_name = 12 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayNameBytes in interface ExerciseOrBuilder
      Returns:
      The bytes for displayName.
    • hasActiveDuration

      public boolean hasActiveDuration()
       Optional. Duration excluding pauses.
       
      .google.protobuf.Duration active_duration = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasActiveDuration in interface ExerciseOrBuilder
      Returns:
      Whether the activeDuration field is set.
    • getActiveDuration

      public com.google.protobuf.Duration getActiveDuration()
       Optional. Duration excluding pauses.
       
      .google.protobuf.Duration active_duration = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getActiveDuration in interface ExerciseOrBuilder
      Returns:
      The activeDuration.
    • getActiveDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getActiveDurationOrBuilder()
       Optional. Duration excluding pauses.
       
      .google.protobuf.Duration active_duration = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getActiveDurationOrBuilder in interface ExerciseOrBuilder
    • getNotes

      public String getNotes()
       Optional. Standard free-form notes captured at manual logging.
       
      string notes = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNotes in interface ExerciseOrBuilder
      Returns:
      The notes.
    • getNotesBytes

      public com.google.protobuf.ByteString getNotesBytes()
       Optional. Standard free-form notes captured at manual logging.
       
      string notes = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNotesBytes in interface ExerciseOrBuilder
      Returns:
      The bytes for notes.
    • 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];
      Specified by:
      hasUpdateTime in interface ExerciseOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public 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];
      Specified by:
      getUpdateTime in interface ExerciseOrBuilder
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      public 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];
      Specified by:
      getUpdateTimeOrBuilder in interface ExerciseOrBuilder
    • 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];
      Specified by:
      hasCreateTime in interface ExerciseOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public 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];
      Specified by:
      getCreateTime in interface ExerciseOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public 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];
      Specified by:
      getCreateTimeOrBuilder in interface ExerciseOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Exercise parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Exercise parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Exercise parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Exercise parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Exercise parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Exercise parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Exercise parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Exercise parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Exercise parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Exercise parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Exercise parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Exercise parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Exercise.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Exercise.Builder newBuilder()
    • newBuilder

      public static Exercise.Builder newBuilder(Exercise prototype)
    • toBuilder

      public Exercise.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Exercise.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Exercise getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Exercise> parser()
    • getParserForType

      public com.google.protobuf.Parser<Exercise> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Exercise getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder