Class Exercise.ExerciseEvent.Builder

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

public static final class Exercise.ExerciseEvent.Builder extends com.google.protobuf.GeneratedMessage.Builder<Exercise.ExerciseEvent.Builder> implements Exercise.ExerciseEventOrBuilder
 Represents instantaneous events that happen during an exercise,
 such as start, stop, pause, split.
 
Protobuf type google.devicesandservices.health.v4.Exercise.ExerciseEvent
  • 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.ExerciseEvent.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.ExerciseEvent.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.ExerciseEvent.Builder>
    • getDefaultInstanceForType

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

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

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

      public Exercise.ExerciseEvent.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.ExerciseEvent.Builder>
    • mergeFrom

    • isInitialized

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

      public Exercise.ExerciseEvent.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.ExerciseEvent.Builder>
      Throws:
      IOException
    • hasEventTime

      public boolean hasEventTime()
       Required. Exercise event time
       
      .google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasEventTime in interface Exercise.ExerciseEventOrBuilder
      Returns:
      Whether the eventTime field is set.
    • getEventTime

      public com.google.protobuf.Timestamp getEventTime()
       Required. Exercise event time
       
      .google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEventTime in interface Exercise.ExerciseEventOrBuilder
      Returns:
      The eventTime.
    • setEventTime

      public Exercise.ExerciseEvent.Builder setEventTime(com.google.protobuf.Timestamp value)
       Required. Exercise event time
       
      .google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = REQUIRED];
    • setEventTime

      public Exercise.ExerciseEvent.Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Required. Exercise event time
       
      .google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeEventTime

      public Exercise.ExerciseEvent.Builder mergeEventTime(com.google.protobuf.Timestamp value)
       Required. Exercise event time
       
      .google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearEventTime

      public Exercise.ExerciseEvent.Builder clearEventTime()
       Required. Exercise event time
       
      .google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = REQUIRED];
    • getEventTimeBuilder

      public com.google.protobuf.Timestamp.Builder getEventTimeBuilder()
       Required. Exercise event time
       
      .google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = REQUIRED];
    • getEventTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder()
       Required. Exercise event time
       
      .google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEventTimeOrBuilder in interface Exercise.ExerciseEventOrBuilder
    • hasEventUtcOffset

      public boolean hasEventUtcOffset()
       Required. Exercise event time offset from UTC
       
      .google.protobuf.Duration event_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasEventUtcOffset in interface Exercise.ExerciseEventOrBuilder
      Returns:
      Whether the eventUtcOffset field is set.
    • getEventUtcOffset

      public com.google.protobuf.Duration getEventUtcOffset()
       Required. Exercise event time offset from UTC
       
      .google.protobuf.Duration event_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEventUtcOffset in interface Exercise.ExerciseEventOrBuilder
      Returns:
      The eventUtcOffset.
    • setEventUtcOffset

      public Exercise.ExerciseEvent.Builder setEventUtcOffset(com.google.protobuf.Duration value)
       Required. Exercise event time offset from UTC
       
      .google.protobuf.Duration event_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
    • setEventUtcOffset

      public Exercise.ExerciseEvent.Builder setEventUtcOffset(com.google.protobuf.Duration.Builder builderForValue)
       Required. Exercise event time offset from UTC
       
      .google.protobuf.Duration event_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeEventUtcOffset

      public Exercise.ExerciseEvent.Builder mergeEventUtcOffset(com.google.protobuf.Duration value)
       Required. Exercise event time offset from UTC
       
      .google.protobuf.Duration event_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearEventUtcOffset

      public Exercise.ExerciseEvent.Builder clearEventUtcOffset()
       Required. Exercise event time offset from UTC
       
      .google.protobuf.Duration event_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
    • getEventUtcOffsetBuilder

      public com.google.protobuf.Duration.Builder getEventUtcOffsetBuilder()
       Required. Exercise event time offset from UTC
       
      .google.protobuf.Duration event_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
    • getEventUtcOffsetOrBuilder

      public com.google.protobuf.DurationOrBuilder getEventUtcOffsetOrBuilder()
       Required. Exercise event time offset from UTC
       
      .google.protobuf.Duration event_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEventUtcOffsetOrBuilder in interface Exercise.ExerciseEventOrBuilder
    • getExerciseEventTypeValue

      public int getExerciseEventTypeValue()
       Required. The type of the event, such as start, stop, pause, resume.
       
      .google.devicesandservices.health.v4.Exercise.ExerciseEvent.ExerciseEventType exercise_event_type = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getExerciseEventTypeValue in interface Exercise.ExerciseEventOrBuilder
      Returns:
      The enum numeric value on the wire for exerciseEventType.
    • setExerciseEventTypeValue

      public Exercise.ExerciseEvent.Builder setExerciseEventTypeValue(int value)
       Required. The type of the event, such as start, stop, pause, resume.
       
      .google.devicesandservices.health.v4.Exercise.ExerciseEvent.ExerciseEventType exercise_event_type = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for exerciseEventType to set.
      Returns:
      This builder for chaining.
    • getExerciseEventType

      public Exercise.ExerciseEvent.ExerciseEventType getExerciseEventType()
       Required. The type of the event, such as start, stop, pause, resume.
       
      .google.devicesandservices.health.v4.Exercise.ExerciseEvent.ExerciseEventType exercise_event_type = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getExerciseEventType in interface Exercise.ExerciseEventOrBuilder
      Returns:
      The exerciseEventType.
    • setExerciseEventType

       Required. The type of the event, such as start, stop, pause, resume.
       
      .google.devicesandservices.health.v4.Exercise.ExerciseEvent.ExerciseEventType exercise_event_type = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The exerciseEventType to set.
      Returns:
      This builder for chaining.
    • clearExerciseEventType

      public Exercise.ExerciseEvent.Builder clearExerciseEventType()
       Required. The type of the event, such as start, stop, pause, resume.
       
      .google.devicesandservices.health.v4.Exercise.ExerciseEvent.ExerciseEventType exercise_event_type = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.