    enum Unit

The available Units.
- `


  ### [unknownUnits](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/CookTrait/Unit#/s:15GoogleHomeTypes0A0O9CookTraitV4UnitO12unknownUnitsyA2GmF)


  ` Unknown units.

  #### Declaration

  Swift

      case unknownUnits

- `


  ### [noUnits](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/CookTrait/Unit#/s:15GoogleHomeTypes0A0O9CookTraitV4UnitO7noUnitsyA2GmF)


  ` No units.

  #### Declaration

  Swift

      case noUnits

- `


  ### [centimeters](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/CookTrait/Unit#/s:15GoogleHomeTypes0A0O9CookTraitV4UnitO11centimetersyA2GmF)


  ` Centimeters.

  #### Declaration

  Swift

      case centimeters

- `


  ### [cups](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/CookTrait/Unit#/s:15GoogleHomeTypes0A0O9CookTraitV4UnitO4cupsyA2GmF)


  ` Cups.

  #### Declaration

  Swift

      case cups

- `


  ### [deciliters](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/CookTrait/Unit#/s:15GoogleHomeTypes0A0O9CookTraitV4UnitO10decilitersyA2GmF)


  ` Deciliters.

  #### Declaration

  Swift

      case deciliters

- `


  ### [feet](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/CookTrait/Unit#/s:15GoogleHomeTypes0A0O9CookTraitV4UnitO4feetyA2GmF)


  ` Feet.

  #### Declaration

  Swift

      case feet

- `


  ### [fluidOunces](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/CookTrait/Unit#/s:15GoogleHomeTypes0A0O9CookTraitV4UnitO11fluidOuncesyA2GmF)


  ` Fluid ounces.

  #### Declaration

  Swift

      case fluidOunces

- `


  ### [gallons](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/CookTrait/Unit#/s:15GoogleHomeTypes0A0O9CookTraitV4UnitO7gallonsyA2GmF)


  ` Gallons.

  #### Declaration

  Swift

      case gallons

- `


  ### [grams](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/CookTrait/Unit#/s:15GoogleHomeTypes0A0O9CookTraitV4UnitO5gramsyA2GmF)


  ` Grams.

  #### Declaration

  Swift

      case grams

- `


  ### [inches](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/CookTrait/Unit#/s:15GoogleHomeTypes0A0O9CookTraitV4UnitO6inchesyA2GmF)


  ` Inches.

  #### Declaration

  Swift

      case inches

- `


  ### [kilograms](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/CookTrait/Unit#/s:15GoogleHomeTypes0A0O9CookTraitV4UnitO9kilogramsyA2GmF)


  ` Kilograms.

  #### Declaration

  Swift

      case kilograms

- `


  ### [liters](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/CookTrait/Unit#/s:15GoogleHomeTypes0A0O9CookTraitV4UnitO6litersyA2GmF)


  ` Liters.

  #### Declaration

  Swift

      case liters

- `


  ### [meters](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/CookTrait/Unit#/s:15GoogleHomeTypes0A0O9CookTraitV4UnitO6metersyA2GmF)


  ` Meters.

  #### Declaration

  Swift

      case meters

- `


  ### [milligrams](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/CookTrait/Unit#/s:15GoogleHomeTypes0A0O9CookTraitV4UnitO10milligramsyA2GmF)


  ` Milligrams.

  #### Declaration

  Swift

      case milligrams

- `


  ### [milliliters](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/CookTrait/Unit#/s:15GoogleHomeTypes0A0O9CookTraitV4UnitO11millilitersyA2GmF)


  ` Milliliters.

  #### Declaration

  Swift

      case milliliters

- `


  ### [millimeters](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/CookTrait/Unit#/s:15GoogleHomeTypes0A0O9CookTraitV4UnitO11millimetersyA2GmF)


  ` Millimeters.

  #### Declaration

  Swift

      case millimeters

- `


  ### [ounces](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/CookTrait/Unit#/s:15GoogleHomeTypes0A0O9CookTraitV4UnitO6ouncesyA2GmF)


  ` Ounces.

  #### Declaration

  Swift

      case ounces

- `


  ### [pinch](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/CookTrait/Unit#/s:15GoogleHomeTypes0A0O9CookTraitV4UnitO5pinchyA2GmF)


  ` Pinch.

  #### Declaration

  Swift

      case pinch

- `


  ### [pints](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/CookTrait/Unit#/s:15GoogleHomeTypes0A0O9CookTraitV4UnitO5pintsyA2GmF)


  ` Pints.

  #### Declaration

  Swift

      case pints

- `


  ### [portion](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/CookTrait/Unit#/s:15GoogleHomeTypes0A0O9CookTraitV4UnitO7portionyA2GmF)


  ` Portion.

  #### Declaration

  Swift

      case portion

- `


  ### [pounds](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/CookTrait/Unit#/s:15GoogleHomeTypes0A0O9CookTraitV4UnitO6poundsyA2GmF)


  ` Pounds.

  #### Declaration

  Swift

      case pounds

- `


  ### [quarts](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/CookTrait/Unit#/s:15GoogleHomeTypes0A0O9CookTraitV4UnitO6quartsyA2GmF)


  ` Quarts.

  #### Declaration

  Swift

      case quarts

- `


  ### [tablespoons](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/CookTrait/Unit#/s:15GoogleHomeTypes0A0O9CookTraitV4UnitO11tablespoonsyA2GmF)


  ` Tablespoons.

  #### Declaration

  Swift

      case tablespoons

- `


  ### [teaspoons](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/CookTrait/Unit#/s:15GoogleHomeTypes0A0O9CookTraitV4UnitO9teaspoonsyA2GmF)


  ` Teaspoons.

  #### Declaration

  Swift

      case teaspoons

- `


  ### [init(rawValue:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/CookTrait/Unit#/s:15GoogleHomeTypes0A0O9CookTraitV4UnitO8rawValueAGSgs6UInt64V_tcfc)


  ` Creates a new instance with the specified raw value.

  If there is no value of the type that corresponds with the specified raw
  value, this initializer returns `nil`. For example:

      enum PaperSize: String {
          case A4, A5, Letter, Legal
      }

      print(PaperSize(rawValue: "Legal"))
      // Prints "Optional(PaperSize.Legal)"

      print(PaperSize(rawValue: "Tabloid"))
      // Prints "nil"

  #### Declaration

  Swift

      init?(rawValue: UInt64)

  #### Parameters

  |---|---|
  | ` rawValue ` | The raw value to use for the new instance. |