Enums | |
---|---|
UNIT_UNSPECIFIED |
Unit unspecified. |
MILLIGRAM |
Milligram. |
GRAM |
Gram. |
KILOGRAM |
Kilogram. |
OUNCE |
Ounce. |
POUND |
Pound. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["This documentation page defines the available units of mass for a certain feature or function."],["The units of mass range from milligrams to pounds, offering flexibility in specifying weight."],["A default value of `UNIT_UNSPECIFIED` is used when no specific unit is provided."]]],["The core content defines a set of units of mass measurement. These units, represented as enums, include `UNIT_UNSPECIFIED` (an undefined unit), `MILLIGRAM`, `GRAM`, `KILOGRAM`, `OUNCE`, and `POUND`. Each enum value corresponds to a specific unit of weight or mass, allowing for the representation and handling of different measurement scales.\n"]]