GeminiFeedbackTrait.Rating

enum GeminiFeedbackTrait.Rating : Enum, PlatformEnum


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

Summary

Enum Values

RatingUnspecified

The feedback rating is unspecified or invalid.

ThumbsDown

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

ThumbsUp

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

UnknownValue

When encountering fields that are out of range (e.g due to newer schema), this value is emitted.

Public functions

GeminiFeedbackTrait.Rating
valueOf(value: String)

Returns the enum constant of this type with the specified name.

Array<GeminiFeedbackTrait.Rating>

Returns an array containing the constants of this enum type, in the order they're declared.

Public properties

EnumEntries<GeminiFeedbackTrait.Rating>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

open ULong
open String
open String
open String

Enum Values

RatingUnspecified

val GeminiFeedbackTrait.Rating.RatingUnspecified: GeminiFeedbackTrait.Rating

The feedback rating is unspecified or invalid.

ThumbsDown

val GeminiFeedbackTrait.Rating.ThumbsDown: GeminiFeedbackTrait.Rating

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

ThumbsUp

val GeminiFeedbackTrait.Rating.ThumbsUp: GeminiFeedbackTrait.Rating

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

UnknownValue

val GeminiFeedbackTrait.Rating.UnknownValue: GeminiFeedbackTrait.Rating

When encountering fields that are out of range (e.g due to newer schema), this value is emitted.

Public companion properties

Public functions

valueOf

fun valueOf(value: String): GeminiFeedbackTrait.Rating

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws
kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

fun values(): Array<GeminiFeedbackTrait.Rating>

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.

Public properties

entries

val entries: EnumEntries<GeminiFeedbackTrait.Rating>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

This method may be used to iterate over the enum entries.

id

open val id: ULong

traitId

open val traitId: String

typeName

open val typeName: String

value

open val value: String