Class Exercise.ExerciseEvent (0.2.0)

public static final class Exercise.ExerciseEvent extends GeneratedMessage 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

Static Fields

EVENT_TIME_FIELD_NUMBER

public static final int EVENT_TIME_FIELD_NUMBER
Field Value
Type Description
int

EVENT_UTC_OFFSET_FIELD_NUMBER

public static final int EVENT_UTC_OFFSET_FIELD_NUMBER
Field Value
Type Description
int

EXERCISE_EVENT_TYPE_FIELD_NUMBER

public static final int EXERCISE_EVENT_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Exercise.ExerciseEvent getDefaultInstance()
Returns
Type Description
Exercise.ExerciseEvent

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Exercise.ExerciseEvent.Builder newBuilder()
Returns
Type Description
Exercise.ExerciseEvent.Builder

newBuilder(Exercise.ExerciseEvent prototype)

public static Exercise.ExerciseEvent.Builder newBuilder(Exercise.ExerciseEvent prototype)
Parameter
Name Description
prototype Exercise.ExerciseEvent
Returns
Type Description
Exercise.ExerciseEvent.Builder

parseDelimitedFrom(InputStream input)

public static Exercise.ExerciseEvent parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Exercise.ExerciseEvent
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Exercise.ExerciseEvent parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exercise.ExerciseEvent
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Exercise.ExerciseEvent parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Exercise.ExerciseEvent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Exercise.ExerciseEvent parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exercise.ExerciseEvent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Exercise.ExerciseEvent parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Exercise.ExerciseEvent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Exercise.ExerciseEvent parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exercise.ExerciseEvent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Exercise.ExerciseEvent parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Exercise.ExerciseEvent
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Exercise.ExerciseEvent parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exercise.ExerciseEvent
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Exercise.ExerciseEvent parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Exercise.ExerciseEvent
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Exercise.ExerciseEvent parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exercise.ExerciseEvent
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Exercise.ExerciseEvent parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Exercise.ExerciseEvent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Exercise.ExerciseEvent parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exercise.ExerciseEvent
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Exercise.ExerciseEvent> parser()
Returns
Type Description
Parser<ExerciseEvent>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Exercise.ExerciseEvent getDefaultInstanceForType()
Returns
Type Description
Exercise.ExerciseEvent

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.

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.

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.

getParserForType()

public Parser<Exercise.ExerciseEvent> getParserForType()
Returns
Type Description
Parser<ExerciseEvent>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Exercise.ExerciseEvent.Builder newBuilderForType()
Returns
Type Description
Exercise.ExerciseEvent.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Exercise.ExerciseEvent.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Exercise.ExerciseEvent.Builder
Overrides

toBuilder()

public Exercise.ExerciseEvent.Builder toBuilder()
Returns
Type Description
Exercise.ExerciseEvent.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException