struct SecurityIncidentFeedbackFeedback payload for security incident detections.
-
Returns the field corresponding to the given field ID.
Declaration
Swift
static func structField(id: UInt32) -> (any Field)? -
The user rating (for example, a thumbs up or thumbs down).
Declaration
Swift
let rating: Google.GeminiFeedbackTrait.Rating? -
Selected reasons for negative ratings.
Declaration
Swift
let negativeCategoriesArray: [Google.GeminiFeedbackTrait.SecurityIncidentNegativeFeedbackCategory] -
Optional user comments.
Declaration
Swift
let userFeedback: String? -
Technical context of the incident evaluated.
Declaration
Swift
let featureContext: Google.GeminiFeedbackTrait.SecurityIncidentContext? -
Incident types asserted by the model that the user disputes.
Declaration
Swift
let disputedIncidentTypesArray: [Google.GeminiFeedbackTrait.SecurityIncidentType] -
Ground-truth incident types asserted by the user as having actually occurred.
Declaration
Swift
let actualIncidentTypesArray: [Google.GeminiFeedbackTrait.SecurityIncidentType] -
Creates a new Struct instance using data read from the given
TraitDecoder.Throws
HomeError.parseErrorwhen parsing fails.Declaration
Swift
init(decoder: TraitDecoder) throwsParameters
decoderThe raw data representing this Struct.
-
Writes this Struct to the given
TraitEncoder. ThrowsHomeError.parseErrorif the data could not be encoded.Declaration
Swift
func encode(with encoder: TraitEncoder) throws