Class BasalEnergyBurned (0.2.0)

public final class BasalEnergyBurned extends GeneratedMessage implements BasalEnergyBurnedOrBuilder

Number of calories burned due to basal metabolic rate (BMR) over a period of time.

Protobuf type google.devicesandservices.health.v4.BasalEnergyBurned

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 BasalEnergyBurned getDefaultInstance()
Returns
Type Description
BasalEnergyBurned

getDescriptor()

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

newBuilder()

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

newBuilder(BasalEnergyBurned prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public BasalEnergyBurned getDefaultInstanceForType()
Returns
Type Description
BasalEnergyBurned

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. Number of calories burned due to basal metabolic rate in kilocalories over the observed interval.

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

Returns
Type Description
double

The kcal.

getParserForType()

public Parser<BasalEnergyBurned> getParserForType()
Returns
Type Description
Parser<BasalEnergyBurned>
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. Number of calories burned due to basal metabolic rate in kilocalories over the observed interval.

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 BasalEnergyBurned.Builder newBuilderForType()
Returns
Type Description
BasalEnergyBurned.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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