    enum Rating

The user-submitted sentiment rating for the generated AI content (for example, a thumbs up or
thumbs down).
- `


  ### [ratingUnspecified](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/GeminiFeedbackTrait/Rating#/s:15GoogleHomeTypes0A0O19GeminiFeedbackTraitV6RatingO17ratingUnspecifiedyA2GmF)


  ` The feedback rating is unspecified or invalid.

  #### Declaration

  Swift

      case ratingUnspecified

- `


  ### [thumbsUp](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/GeminiFeedbackTrait/Rating#/s:15GoogleHomeTypes0A0O19GeminiFeedbackTraitV6RatingO8thumbsUpyA2GmF)


  ` Thumbs up, indicating the user was satisfied with the AI feature output.

  #### Declaration

  Swift

      case thumbsUp

- `


  ### [thumbsDown](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/GeminiFeedbackTrait/Rating#/s:15GoogleHomeTypes0A0O19GeminiFeedbackTraitV6RatingO10thumbsDownyA2GmF)


  ` Thumbs down, indicating the user was dissatisfied with the AI feature output.

  #### Declaration

  Swift

      case thumbsDown

- `


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