public static final class Exercise.ExerciseEvent.Builder extends GeneratedMessage.Builder<Exercise.ExerciseEvent.Builder> implements Exercise.ExerciseEventOrBuilderRepresents instantaneous events that happen during an exercise, such as start, stop, pause, split.
Protobuf type google.devicesandservices.health.v4.Exercise.ExerciseEvent
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Exercise.ExerciseEvent.BuilderImplements
Exercise.ExerciseEventOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Exercise.ExerciseEvent build()| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseEvent |
|
buildPartial()
public Exercise.ExerciseEvent buildPartial()| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseEvent |
|
clear()
public Exercise.ExerciseEvent.Builder clear()| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseEvent.Builder |
|
clearEventTime()
public Exercise.ExerciseEvent.Builder clearEventTime()Required. Exercise event time
.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseEvent.Builder |
|
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];
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseEvent.Builder |
|
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 | |
|---|---|
| Type | Description |
Exercise.ExerciseEvent.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Exercise.ExerciseEvent getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseEvent |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEventTime()
public Timestamp getEventTime()Required. Exercise event time
.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The eventTime. |
getEventTimeBuilder()
public Timestamp.Builder getEventTimeBuilder()Required. Exercise event time
.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getEventTimeOrBuilder()
public TimestampOrBuilder getEventTimeOrBuilder()Required. Exercise event time
.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getEventUtcOffset()
public Duration getEventUtcOffset()Required. Exercise event time offset from UTC
.google.protobuf.Duration event_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Duration |
The eventUtcOffset. |
getEventUtcOffsetBuilder()
public Duration.Builder getEventUtcOffsetBuilder()Required. Exercise event time offset from UTC
.google.protobuf.Duration event_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getEventUtcOffsetOrBuilder()
public DurationOrBuilder getEventUtcOffsetOrBuilder()Required. Exercise event time offset from UTC
.google.protobuf.Duration event_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
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];
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseEvent.ExerciseEventType |
The exerciseEventType. |
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];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for exerciseEventType. |
hasEventTime()
public boolean hasEventTime()Required. Exercise event time
.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the eventTime field is set. |
hasEventUtcOffset()
public boolean hasEventUtcOffset()Required. Exercise event time offset from UTC
.google.protobuf.Duration event_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the eventUtcOffset field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeEventTime(Timestamp value)
public Exercise.ExerciseEvent.Builder mergeEventTime(Timestamp value)Required. Exercise event time
.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseEvent.Builder |
|
mergeEventUtcOffset(Duration value)
public Exercise.ExerciseEvent.Builder mergeEventUtcOffset(Duration value)Required. Exercise event time offset from UTC
.google.protobuf.Duration event_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseEvent.Builder |
|
mergeFrom(Exercise.ExerciseEvent other)
public Exercise.ExerciseEvent.Builder mergeFrom(Exercise.ExerciseEvent other)| Parameter | |
|---|---|
| Name | Description |
other |
Exercise.ExerciseEvent |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseEvent.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Exercise.ExerciseEvent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseEvent.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Exercise.ExerciseEvent.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseEvent.Builder |
|
setEventTime(Timestamp value)
public Exercise.ExerciseEvent.Builder setEventTime(Timestamp value)Required. Exercise event time
.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseEvent.Builder |
|
setEventTime(Timestamp.Builder builderForValue)
public Exercise.ExerciseEvent.Builder setEventTime(Timestamp.Builder builderForValue)Required. Exercise event time
.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseEvent.Builder |
|
setEventUtcOffset(Duration value)
public Exercise.ExerciseEvent.Builder setEventUtcOffset(Duration value)Required. Exercise event time offset from UTC
.google.protobuf.Duration event_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseEvent.Builder |
|
setEventUtcOffset(Duration.Builder builderForValue)
public Exercise.ExerciseEvent.Builder setEventUtcOffset(Duration.Builder builderForValue)Required. Exercise event time offset from UTC
.google.protobuf.Duration event_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseEvent.Builder |
|
setExerciseEventType(Exercise.ExerciseEvent.ExerciseEventType value)
public Exercise.ExerciseEvent.Builder setExerciseEventType(Exercise.ExerciseEvent.ExerciseEventType 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];
| Parameter | |
|---|---|
| Name | Description |
value |
Exercise.ExerciseEvent.ExerciseEventTypeThe exerciseEventType to set. |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseEvent.Builder |
This builder for chaining. |
setExerciseEventTypeValue(int value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for exerciseEventType to set. |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseEvent.Builder |
This builder for chaining. |