Dimension
Una grandezza in un'unica direzione nelle unità specificate.
Rappresentazione JSON |
{
"magnitude": number,
"unit": enum (Unit )
} |
Campi |
magnitude |
number
La grandezza.
|
unit |
enum (Unit )
Le unità di grandezza.
|
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-09-03 UTC.
[null,null,["Ultimo aggiornamento 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"]]