Class WeightRollupValue (0.2.0)

public final class WeightRollupValue extends GeneratedMessage implements WeightRollupValueOrBuilder

Represents the result of the rollup of the weight data type.

Protobuf type google.devicesandservices.health.v4.WeightRollupValue

Static Fields

WEIGHT_GRAMS_AVG_FIELD_NUMBER

public static final int WEIGHT_GRAMS_AVG_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static WeightRollupValue getDefaultInstance()
Returns
Type Description
WeightRollupValue

getDescriptor()

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

newBuilder()

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

newBuilder(WeightRollupValue prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public WeightRollupValue getDefaultInstanceForType()
Returns
Type Description
WeightRollupValue

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getWeightGramsAvg()

public double getWeightGramsAvg()

Average weight in grams.

optional double weight_grams_avg = 1;

Returns
Type Description
double

The weightGramsAvg.

hasWeightGramsAvg()

public boolean hasWeightGramsAvg()

Average weight in grams.

optional double weight_grams_avg = 1;

Returns
Type Description
boolean

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

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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