GoogleApi.ContentWarehouse.V1.Model.FreebaseMeasurement
Table of Contents ▼
Jump to a specific part of the page:
Description
Represents a measurements, which is one of the possible Value types. A measurement value like "5.2 meter^2 / second" would be represented as: magnitude: 5.2 unit { unit_mid: "/m/mid_for_meter" power: 2 } unit { unit_mid: "/m/mid_for_second" power: -1 }
Attributes List
This module has the following attributes (case-insensitive ascending order):
Attributes
-
magnitude
(type:number()
, default:nil
)
- -
unit
(type:list(GoogleApi.ContentWarehouse.V1.Model.FreebaseMeasurementUnit)
, default:nil
)
- Repeated units are interpreted as a product. i.e. (meter ^ 1) * (second ^ -2)
Type
@type t() :: %GoogleApi.ContentWarehouse.V1.Model.FreebaseMeasurement{
magnitude: number() | nil,
unit: [GoogleApi.ContentWarehouse.V1.Model.FreebaseMeasurementUnit.t()] | nil
}
magnitude: number() | nil,
unit: [GoogleApi.ContentWarehouse.V1.Model.FreebaseMeasurementUnit.t()] | nil
}
Function
@spec decode(struct(), keyword()) :: struct()Data sourced from HexDocs : GoogleApi.ContentWarehouse.V1.Model.FreebaseMeasurement