# PrecipitationType

    enum PrecipitationType

The type of precipitation that has a chance of occurring.
- `


  ### [precipitationTypeUnspecified](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/WeatherTrait/PrecipitationType#/s:15GoogleHomeTypes0A0O12WeatherTraitV17PrecipitationTypeO013precipitationG11UnspecifiedyA2GmF)


  ` Unspecified precipitation type.

  #### Declaration

  Swift

      case precipitationTypeUnspecified

- `


  ### [precipitationTypeNone](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/WeatherTrait/PrecipitationType#/s:15GoogleHomeTypes0A0O12WeatherTraitV17PrecipitationTypeO013precipitationG4NoneyA2GmF)


  ` No precipitation.

  #### Declaration

  Swift

      case precipitationTypeNone

- `


  ### [precipitationTypeRain](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/WeatherTrait/PrecipitationType#/s:15GoogleHomeTypes0A0O12WeatherTraitV17PrecipitationTypeO013precipitationG4RainyA2GmF)


  ` Rain.

  #### Declaration

  Swift

      case precipitationTypeRain

- `


  ### [precipitationTypeSnow](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/WeatherTrait/PrecipitationType#/s:15GoogleHomeTypes0A0O12WeatherTraitV17PrecipitationTypeO013precipitationG4SnowyA2GmF)


  ` Snow.

  #### Declaration

  Swift

      case precipitationTypeSnow

- `


  ### [precipitationTypeRainAndSnow](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/WeatherTrait/PrecipitationType#/s:15GoogleHomeTypes0A0O12WeatherTraitV17PrecipitationTypeO013precipitationG11RainAndSnowyA2GmF)


  ` Rain and snow.

  #### Declaration

  Swift

      case precipitationTypeRainAndSnow

- `


  ### [init(rawValue:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/WeatherTrait/PrecipitationType#/s:15GoogleHomeTypes0A0O12WeatherTraitV17PrecipitationTypeO8rawValueAGSgs6UInt64V_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. |