Class ActiveEnergyBurned (0.2.0)

public final class ActiveEnergyBurned extends GeneratedMessage implements ActiveEnergyBurnedOrBuilder

Energy burned as part of an activity, excluding the basal energy burn.

Protobuf type google.devicesandservices.health.v4.ActiveEnergyBurned

Static Fields

INTERVAL_FIELD_NUMBER

public static final int INTERVAL_FIELD_NUMBER
Field Value
Type Description
int

KCAL_FIELD_NUMBER

public static final int KCAL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ActiveEnergyBurned getDefaultInstance()
Returns
Type Description
ActiveEnergyBurned

getDescriptor()

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

newBuilder()

public static ActiveEnergyBurned.Builder newBuilder()
Returns
Type Description
ActiveEnergyBurned.Builder

newBuilder(ActiveEnergyBurned prototype)

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

parseDelimitedFrom(InputStream input)

public static ActiveEnergyBurned parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ActiveEnergyBurned
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static ActiveEnergyBurned parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ActiveEnergyBurned
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static ActiveEnergyBurned parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ActiveEnergyBurned
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static ActiveEnergyBurned parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ActiveEnergyBurned
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static ActiveEnergyBurned parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ActiveEnergyBurned
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<ActiveEnergyBurned> parser()
Returns
Type Description
Parser<ActiveEnergyBurned>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ActiveEnergyBurned getDefaultInstanceForType()
Returns
Type Description
ActiveEnergyBurned

getInterval()

public ObservationTimeInterval getInterval()

Required. Observed interval

.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ObservationTimeInterval

The interval.

getIntervalOrBuilder()

public ObservationTimeIntervalOrBuilder getIntervalOrBuilder()

Required. Observed interval

.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ObservationTimeIntervalOrBuilder

getKcal()

public double getKcal()

Required. Energy burned during an activity, measured in kilocalories.

optional double kcal = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
double

The kcal.

getParserForType()

public Parser<ActiveEnergyBurned> getParserForType()
Returns
Type Description
Parser<ActiveEnergyBurned>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasInterval()

public boolean hasInterval()

Required. Observed interval

.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the interval field is set.

hasKcal()

public boolean hasKcal()

Required. Energy burned during an activity, measured in kilocalories.

optional double kcal = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the kcal 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 ActiveEnergyBurned.Builder newBuilderForType()
Returns
Type Description
ActiveEnergyBurned.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

public ActiveEnergyBurned.Builder toBuilder()
Returns
Type Description
ActiveEnergyBurned.Builder

writeTo(CodedOutputStream output)

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