struct SecurityIncidentContextContext information for security incident feedback.
-
Returns the field corresponding to the given field ID.
Declaration
Swift
static func structField(id: UInt32) -> (any Field)? -
Unique video session identifier.
Declaration
Swift
let sessionId: String? -
The camera entity object ID that recorded the event.
Declaration
Swift
let objectId: String? -
Optional producer event key, UUID, or HistoryItem.id of the specific SecurityIncidentDetectedEvent. If omitted, session_id is used.
Declaration
Swift
let eventId: String? -
List of security incidents emitted by the perception model for this event.
Declaration
Swift
let detectedIncidentTypesArray: [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