枚举 | |
---|---|
UNIT_UNSPECIFIED |
未指定单位。 |
MILLIGRAM |
毫克。 |
GRAM |
语法。 |
KILOGRAM |
公斤。 |
OUNCE |
盎司。 |
POUND |
磅。 |
Unit
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThis documentation page defines the available units of mass for a certain feature or function.\u003c/p\u003e\n"],["\u003cp\u003eThe units of mass range from milligrams to pounds, offering flexibility in specifying weight.\u003c/p\u003e\n"],["\u003cp\u003eA default value of \u003ccode\u003eUNIT_UNSPECIFIED\u003c/code\u003e is used when no specific unit is provided.\u003c/p\u003e\n"]]],["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"],null,["# Unit\n\n| Enums ||\n|--------------------|-------------------|\n| `UNIT_UNSPECIFIED` | Unit unspecified. |\n| `MILLIGRAM` | Milligram. |\n| `GRAM` | Gram. |\n| `KILOGRAM` | Kilogram. |\n| `OUNCE` | Ounce. |\n| `POUND` | Pound. |"]]