public final class NutrientQuantity extends GeneratedMessage implements NutrientQuantityOrBuilderRepresents the quantity of a nutrient.
Protobuf type google.devicesandservices.health.v4.NutrientQuantity
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > NutrientQuantityImplements
NutrientQuantityOrBuilderStatic Fields
NUTRIENT_FIELD_NUMBER
public static final int NUTRIENT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
QUANTITY_FIELD_NUMBER
public static final int QUANTITY_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static NutrientQuantity getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
NutrientQuantity |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static NutrientQuantity.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
NutrientQuantity.Builder |
|
newBuilder(NutrientQuantity prototype)
public static NutrientQuantity.Builder newBuilder(NutrientQuantity prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
NutrientQuantity |
| Returns | |
|---|---|
| Type | Description |
NutrientQuantity.Builder |
|
parseDelimitedFrom(InputStream input)
public static NutrientQuantity parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
NutrientQuantity |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static NutrientQuantity parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NutrientQuantity |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static NutrientQuantity parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
NutrientQuantity |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static NutrientQuantity parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NutrientQuantity |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static NutrientQuantity parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
NutrientQuantity |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static NutrientQuantity parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NutrientQuantity |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static NutrientQuantity parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
NutrientQuantity |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static NutrientQuantity parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NutrientQuantity |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static NutrientQuantity parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
NutrientQuantity |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static NutrientQuantity parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NutrientQuantity |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static NutrientQuantity parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
NutrientQuantity |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static NutrientQuantity parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NutrientQuantity |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<NutrientQuantity> parser()| Returns | |
|---|---|
| Type | Description |
Parser<NutrientQuantity> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public NutrientQuantity getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
NutrientQuantity |
|
getNutrient()
public Nutrient getNutrient()Required. Value representing the nutrient.
.google.devicesandservices.health.v4.Nutrient nutrient = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Nutrient |
The nutrient. |
getNutrientValue()
public int getNutrientValue()Required. Value representing the nutrient.
.google.devicesandservices.health.v4.Nutrient nutrient = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for nutrient. |
getParserForType()
public Parser<NutrientQuantity> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<NutrientQuantity> |
|
getQuantity()
public WeightQuantity getQuantity()Required. Value representing the quantity of the nutrient.
.google.devicesandservices.health.v4.WeightQuantity quantity = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
WeightQuantity |
The quantity. |
getQuantityOrBuilder()
public WeightQuantityOrBuilder getQuantityOrBuilder()Required. Value representing the quantity of the nutrient.
.google.devicesandservices.health.v4.WeightQuantity quantity = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
WeightQuantityOrBuilder |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
hasQuantity()
public boolean hasQuantity()Required. Value representing the quantity of the nutrient.
.google.devicesandservices.health.v4.WeightQuantity quantity = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the quantity field is set. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public NutrientQuantity.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
NutrientQuantity.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected NutrientQuantity.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
NutrientQuantity.Builder |
|
toBuilder()
public NutrientQuantity.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
NutrientQuantity.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|