Dimension
A magnitude in a single direction in the specified units.
JSON representation |
{
"magnitude": number,
"unit": enum (Unit )
} |
Fields |
magnitude |
number
The magnitude.
|
unit |
enum (Unit )
The units for magnitude.
|
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-03 UTC.
[null,null,["Last updated 2024-09-03 UTC."],[[["Represents a magnitude value with its corresponding unit."],["Uses a JSON object with `magnitude` for the numerical value and `unit` specifying the unit of measurement."],["`unit` field accepts values from the `Unit` enum, providing standardized options for units."]]],["The content defines a data structure representing a magnitude in a specific unit. It's represented in JSON with two fields: `magnitude`, a number indicating the size, and `unit`, an enumerated value specifying the measurement unit. The unit options are found in a separate resource. This structure captures the quantity and its corresponding unit of measure.\n"]]