Class Exercise.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Exercise.Builder>
com.google.devicesandservices.health.v4.Exercise.Builder
All Implemented Interfaces:
ExerciseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Exercise

public static final class Exercise.Builder extends com.google.protobuf.GeneratedMessage.Builder<Exercise.Builder> implements ExerciseOrBuilder
 An exercise that stores information about a physical activity.
 
Protobuf type google.devicesandservices.health.v4.Exercise
  • 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.Builder<Exercise.Builder>
    • clear

      public Exercise.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Exercise.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Exercise.Builder>
    • getDefaultInstanceForType

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

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

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

      public Exercise.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Exercise.Builder>
    • mergeFrom

      public Exercise.Builder mergeFrom(Exercise other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Exercise.Builder>
    • mergeFrom

      public Exercise.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Exercise.Builder>
      Throws:
      IOException
    • 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.
    • setInterval

      public Exercise.Builder setInterval(SessionTimeInterval value)
       Required. Observed exercise interval
       
      .google.devicesandservices.health.v4.SessionTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED];
    • setInterval

      public Exercise.Builder setInterval(SessionTimeInterval.Builder builderForValue)
       Required. Observed exercise interval
       
      .google.devicesandservices.health.v4.SessionTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeInterval

      public Exercise.Builder mergeInterval(SessionTimeInterval value)
       Required. Observed exercise interval
       
      .google.devicesandservices.health.v4.SessionTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearInterval

      public Exercise.Builder clearInterval()
       Required. Observed exercise interval
       
      .google.devicesandservices.health.v4.SessionTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED];
    • getIntervalBuilder

      public SessionTimeInterval.Builder getIntervalBuilder()
       Required. Observed exercise interval
       
      .google.devicesandservices.health.v4.SessionTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED];
    • 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.
    • setExerciseTypeValue

      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];
      Parameters:
      value - The enum numeric value on the wire for exerciseType to set.
      Returns:
      This builder for chaining.
    • 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.
    • setExerciseType

      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];
      Parameters:
      value - The exerciseType to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • 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
    • 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
    • setSplits

      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];
    • setSplits

      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];
    • addSplits

      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];
    • addSplits

      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];
    • addSplits

      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];
    • addSplits

      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];
    • addAllSplits

      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];
    • 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];
    • removeSplits

      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];
    • getSplitsBuilder

      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];
    • 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
    • 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
    • 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];
    • addSplitsBuilder

      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];
    • 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];
    • 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
    • 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
    • setExerciseEvents

      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];
    • setExerciseEvents

      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];
    • addExerciseEvents

      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];
    • addExerciseEvents

      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];
    • addExerciseEvents

      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];
    • addExerciseEvents

      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];
    • addAllExerciseEvents

      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];
    • 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];
    • removeExerciseEvents

      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];
    • getExerciseEventsBuilder

      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];
    • 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
    • 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
    • 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];
    • addExerciseEventsBuilder

      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];
    • 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];
    • 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
    • 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
    • setSplitSummaries

      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];
    • setSplitSummaries

      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];
    • addSplitSummaries

      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];
    • addSplitSummaries

      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];
    • addSplitSummaries

      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];
    • addSplitSummaries

      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];
    • addAllSplitSummaries

      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];
    • 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];
    • removeSplitSummaries

      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];
    • getSplitSummariesBuilder

      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];
    • 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
    • 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
    • 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];
    • addSplitSummariesBuilder

      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];
    • 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];
    • 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.
    • setMetricsSummary

      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];
    • setMetricsSummary

      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];
    • mergeMetricsSummary

      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];
    • clearMetricsSummary

      public Exercise.Builder clearMetricsSummary()
       Required. Summary metrics for this exercise
       ( )
       
      .google.devicesandservices.health.v4.MetricsSummary metrics_summary = 10 [(.google.api.field_behavior) = REQUIRED];
    • getMetricsSummaryBuilder

      public MetricsSummary.Builder getMetricsSummaryBuilder()
       Required. Summary metrics for this exercise
       ( )
       
      .google.devicesandservices.health.v4.MetricsSummary metrics_summary = 10 [(.google.api.field_behavior) = REQUIRED];
    • 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.
    • setExerciseMetadata

      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];
    • setExerciseMetadata

      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];
    • mergeExerciseMetadata

      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];
    • clearExerciseMetadata

      public Exercise.Builder clearExerciseMetadata()
       Optional. Additional exercise metadata.
       
      .google.devicesandservices.health.v4.Exercise.ExerciseMetadata exercise_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
    • getExerciseMetadataBuilder

      public Exercise.ExerciseMetadata.Builder getExerciseMetadataBuilder()
       Optional. Additional exercise metadata.
       
      .google.devicesandservices.health.v4.Exercise.ExerciseMetadata exercise_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
    • 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.
    • setDisplayName

      public Exercise.Builder setDisplayName(String value)
       Required. Exercise display name.
       
      string display_name = 12 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Exercise.Builder clearDisplayName()
       Required. Exercise display name.
       
      string display_name = 12 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Exercise.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Required. Exercise display name.
       
      string display_name = 12 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • 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.
    • setActiveDuration

      public Exercise.Builder setActiveDuration(com.google.protobuf.Duration value)
       Optional. Duration excluding pauses.
       
      .google.protobuf.Duration active_duration = 13 [(.google.api.field_behavior) = OPTIONAL];
    • setActiveDuration

      public Exercise.Builder setActiveDuration(com.google.protobuf.Duration.Builder builderForValue)
       Optional. Duration excluding pauses.
       
      .google.protobuf.Duration active_duration = 13 [(.google.api.field_behavior) = OPTIONAL];
    • mergeActiveDuration

      public Exercise.Builder mergeActiveDuration(com.google.protobuf.Duration value)
       Optional. Duration excluding pauses.
       
      .google.protobuf.Duration active_duration = 13 [(.google.api.field_behavior) = OPTIONAL];
    • clearActiveDuration

      public Exercise.Builder clearActiveDuration()
       Optional. Duration excluding pauses.
       
      .google.protobuf.Duration active_duration = 13 [(.google.api.field_behavior) = OPTIONAL];
    • getActiveDurationBuilder

      public com.google.protobuf.Duration.Builder getActiveDurationBuilder()
       Optional. Duration excluding pauses.
       
      .google.protobuf.Duration active_duration = 13 [(.google.api.field_behavior) = OPTIONAL];
    • 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.
    • setNotes

      public Exercise.Builder setNotes(String value)
       Optional. Standard free-form notes captured at manual logging.
       
      string notes = 14 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The notes to set.
      Returns:
      This builder for chaining.
    • clearNotes

      public Exercise.Builder clearNotes()
       Optional. Standard free-form notes captured at manual logging.
       
      string notes = 14 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setNotesBytes

      public Exercise.Builder setNotesBytes(com.google.protobuf.ByteString value)
       Optional. Standard free-form notes captured at manual logging.
       
      string notes = 14 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for notes to set.
      Returns:
      This builder for chaining.
    • 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.
    • setUpdateTime

      public Exercise.Builder setUpdateTime(com.google.protobuf.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];
    • setUpdateTime

      public Exercise.Builder setUpdateTime(com.google.protobuf.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];
    • mergeUpdateTime

      public Exercise.Builder mergeUpdateTime(com.google.protobuf.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];
    • 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];
    • getUpdateTimeBuilder

      public com.google.protobuf.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];
    • 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.
    • setCreateTime

      public Exercise.Builder setCreateTime(com.google.protobuf.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];
    • setCreateTime

      public Exercise.Builder setCreateTime(com.google.protobuf.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];
    • mergeCreateTime

      public Exercise.Builder mergeCreateTime(com.google.protobuf.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];
    • 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];
    • getCreateTimeBuilder

      public com.google.protobuf.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];
    • 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