# Enum WeightUnit (0.2.0)

    public enum WeightUnit extends Enum<WeightUnit> implements ProtocolMessageEnum

Enum representing the unit of weight.

Protobuf enum `google.devicesandservices.health.v4.WeightUnit`

## Implements

[ProtocolMessageEnum](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ProtocolMessageEnum.html)

## Inherited Members

[Enum.\<T\>valueOf(Class\<T\>,String)](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#valueOf-java.lang.Class-java.lang.String-) [Enum.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#clone--) [Enum.compareTo(E)](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#compareTo-E-) [Enum.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#equals-java.lang.Object-) [Enum.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#finalize--) [Enum.getDeclaringClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#getDeclaringClass--) [Enum.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#hashCode--) [Enum.name()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#name--) [Enum.ordinal()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#ordinal--) [Enum.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#toString--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

| ## Static Fields ||
|---|---|
| **Name** | **Description** |
| `GRAM` | Value representing gram. `GRAM = 1;` |
| `GRAM_VALUE` | Value representing gram. `GRAM = 1;` |
| `KILOGRAM` | Value representing kilogram. `KILOGRAM = 2;` |
| `KILOGRAM_VALUE` | Value representing kilogram. `KILOGRAM = 2;` |
| `MICROGRAM` | Value representing microgram. `MICROGRAM = 7;` |
| `MICROGRAM_VALUE` | Value representing microgram. `MICROGRAM = 7;` |
| `MILLIGRAM` | Value representing milligram. `MILLIGRAM = 6;` |
| `MILLIGRAM_VALUE` | Value representing milligram. `MILLIGRAM = 6;` |
| `NANOGRAM` | Value representing nanogram. `NANOGRAM = 8;` |
| `NANOGRAM_VALUE` | Value representing nanogram. `NANOGRAM = 8;` |
| `OUNCE` | Value representing ounce. `OUNCE = 3;` |
| `OUNCE_VALUE` | Value representing ounce. `OUNCE = 3;` |
| `POUND` | Value representing pound. `POUND = 4;` |
| `POUND_VALUE` | Value representing pound. `POUND = 4;` |
| `STONE` | Value representing stone. `STONE = 5;` |
| `STONE_VALUE` | Value representing stone. `STONE = 5;` |
| `UNRECOGNIZED` |   |
| `WEIGHT_UNIT_UNSPECIFIED` | Unspecified weight unit. `WEIGHT_UNIT_UNSPECIFIED = 0;` |
| `WEIGHT_UNIT_UNSPECIFIED_VALUE` | Unspecified weight unit. `WEIGHT_UNIT_UNSPECIFIED = 0;` |

| ## Static Methods ||
|---|---|
| **Name** | **Description** |
| `forNumber(int value)` |   |
| `getDescriptor()` |   |
| `internalGetValueMap()` |   |
| `valueOf(Descriptors.EnumValueDescriptor desc)` |   |
| `valueOf(int value)` | **Deprecated.** *Use [#forNumber(int)](https://docs.cloud.google.com/java/docs/reference/google-cloud-health/latest/com.google.devicesandservices.health.v4.WeightUnit#com_google_devicesandservices_health_v4_WeightUnit_forNumber_int_) instead.* |
| `valueOf(String name)` |   |
| `values()` |   |

| ## Methods ||
|---|---|
| **Name** | **Description** |
| `getDescriptorForType()` |   |
| `getNumber()` |   |
| `getValueDescriptor()` |   |