    protocol Event : CustomDebugStringConvertible, Sendable

    extension Event : SendableMetatype

Basic interface for Trait events.

Events contain a record of past state transitions and other data that cannot easily be modeled
by attributes.
- `


  ### [identifier](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Event#/s:13GoogleHomeSDK5EventP10identifierAA06ScopedD2IDVvpZ)


  ` Identifier for this event.

  The Event ID is appended onto the Trait ID of the trait this event belongs to.

  #### Declaration

  Swift

      static var identifier: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/ScopedEventID.html { get }

- `


  ### [name](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Event#/s:13GoogleHomeSDK5EventP4names12StaticStringVvpZ)


  ` Name of the given event type.

  #### Declaration

  Swift

      static var name: StaticString { get }

- `


  ### [timestamp](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Event#/s:13GoogleHomeSDK5EventP9timestampSdvp)


  ` Timestamp of when the given event occurred on the sender.

  #### Declaration

  Swift

      var timestamp: TimeInterval { get }

- `


  ### [importance](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Event#/s:13GoogleHomeSDK5EventP10importanceAA0D10ImportanceOvp)


  ` Reported importance level of the given event.

  #### Declaration

  Swift

      var importance: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Enums/EventImportance.html { get }

- `


  ### [number](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Event#/s:13GoogleHomeSDK5EventP6numberSuvp)


  ` Optional number of the event in the sequence history of this field.

  #### Declaration

  Swift

      var number: UInt { get }

- `


  ### [partID](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Event#/s:13GoogleHomeSDK5EventP6partIDSSSgvp)


  ` Optional ID of the part that emitted this event.

  #### Declaration

  Swift

      var partID: String? { get }

- `


  ### [init(decoder:timestamp:importance:number:partID:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Event#/s:13GoogleHomeSDK5EventP7decoder9timestamp10importance6number6partIDxAA12TraitDecoderV_SdAA0D10ImportanceOSuSSSgtKcfc)


  ` Initializer to decode the event.

  #### Declaration

  Swift

      init(decoder: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/TraitDecoder.html, timestamp: TimeInterval, importance: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Enums/EventImportance.html, number: UInt, partID: String?) throws

- `


  ### [encode(with:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Event#/s:13GoogleHomeSDK5EventP6encode4withyAA12TraitEncoderC_tKF)


  ` Encodes the given event.

  #### Declaration

  Swift

      func encode(with encoder: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Classes/TraitEncoder.html) throws

- `


  ### [eventField(id:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Event#/s:13GoogleHomeSDK5EventP10eventField2idAA0F0_pSgs6UInt32V_tFZ)


  ` Default implementation Returns the field corresponding to the given field ID.

  #### Default Implementation

  Returns the field corresponding to the given field ID.

  #### Declaration

  Swift

      static func eventField(id: UInt32) -> (any https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Field.html)?

- `


  ### [init(decoder:timestamp:importance:number:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Event#/s:13GoogleHomeSDK5EventPAAE7decoder9timestamp10importance6numberxAA12TraitDecoderV_SdAA0D10ImportanceOSutKcfc)


  ` Extension method Initializer to decode the event.

  #### Declaration

  Swift

      init(decoder: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/TraitDecoder.html, timestamp: TimeInterval, importance: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Enums/EventImportance.html, number: UInt) throws