    struct AutomationExecutionTrait

    extension AutomationExecutionTrait : Copyable, CustomStringConvertible, Equatable, Escapable, Hashable, Sendable, SendableMetatype, https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Trait.html, https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/TraitEncodable.html

Platform trait carrying attributes and events related to automation execution status.
- `


  ### [supportedEventTypes](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/AutomationExecutionTrait#/s:13GoogleHomeSDK24AutomationExecutionTraitV19supportedEventTypesSayAA0H0_pXpGvpZ)


  ` List of the events that are supported.

  #### Declaration

  Swift

      static let supportedEventTypes: [any https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Event.html.Type]

- `


  ### [supportedCommandTypes](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/AutomationExecutionTrait#/s:13GoogleHomeSDK24AutomationExecutionTraitV21supportedCommandTypesSayAA0H0_pXpGvpZ)


  ` List of the commands that are supported.

  #### Declaration

  Swift

      static let supportedCommandTypes: [any https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Command.html.Type]

- `


  ### [identifier](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/AutomationExecutionTrait#/s:13GoogleHomeSDK24AutomationExecutionTraitV10identifierSSvpZ)


  ` The trait identifier.

  #### Declaration

  Swift

      static let identifier: String

- `


  ### [metadata](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/AutomationExecutionTrait#/s:13GoogleHomeSDK24AutomationExecutionTraitV8metadataAA0F8MetadataVvp)


  ` Metadata about this `https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Trait.html`.

  #### Declaration

  Swift

      let metadata: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/TraitMetadata.html

- `


  ### [attributes](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/AutomationExecutionTrait#/s:13GoogleHomeSDK24AutomationExecutionTraitV10attributesAC10AttributesVvp)


  ` Undocumented

  #### Declaration

  Swift

      let attributes: AutomationExecutionTrait.https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/AutomationExecutionTrait/Attributes.html

- `


  ### [init(decoder:interactionProxy:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/AutomationExecutionTrait#/s:13GoogleHomeSDK24AutomationExecutionTraitV7decoder16interactionProxyAcA0F7DecoderV_AA011InteractionI0_pSgtKcfc)


  ` Undocumented

  #### Declaration

  Swift

      init(decoder: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/TraitDecoder.html, interactionProxy: (any https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/InteractionProxy.html)? = nil) throws

- `


  ### [init(decoder:interactionProxy:metadata:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/AutomationExecutionTrait#/s:13GoogleHomeSDK24AutomationExecutionTraitV7decoder16interactionProxy8metadataAcA0F7DecoderV_AA011InteractionI0_pSgAA0F8MetadataVtKcfc)


  ` Creates a new Trait instance using data read from the given `https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/TraitDecoder.html`.
  Throws
  `HomeError.parseError` when parsing fails.

  #### Declaration

  Swift

      init(decoder: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/TraitDecoder.html, interactionProxy: (any https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/InteractionProxy.html)? = nil, metadata: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/TraitMetadata.html) throws

  #### Parameters

  |---|---|
  | ` decoder ` | The raw data representing this Trait. |
  | ` interactionProxy ` | Proxy to the Interaction Client. |
  | ` metadata ` | Metadata about this Trait. |

- `


  ### [encode(with:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/AutomationExecutionTrait#/s:13GoogleHomeSDK24AutomationExecutionTraitV6encode4withyAA0F7EncoderC_tKF)


  ` Writes this object to the given `https://developers.home.google.com/reference/swift/GoogleHomeSDK/Classes/TraitEncoder.html`.
  Throws `HomeError.encodingFailed` if the data could not be encoded.

  #### Declaration

  Swift

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

- `


  ### [==(_:_:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/AutomationExecutionTrait#/s:13GoogleHomeSDK24AutomationExecutionTraitV2eeoiySbAC_ACtFZ)


  ` Returns a Boolean value indicating whether two values are equal.

  Equality is the inverse of inequality. For any values `a` and `b`,
  `a == b` implies that `a != b` is `false`.

  #### Declaration

  Swift

      static func == (lhs: AutomationExecutionTrait, rhs: AutomationExecutionTrait) -> Bool

  #### Parameters

  |---|---|
  | ` lhs ` | A value to compare. |
  | ` rhs ` | Another value to compare. |

- `


  ### [hash(into:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/AutomationExecutionTrait#/s:13GoogleHomeSDK24AutomationExecutionTraitV4hash4intoys6HasherVz_tF)


  ` Hashes the essential components of this value by feeding them into the
  given hasher.

  Implement this method to conform to the `Hashable` protocol. The
  components used for hashing must be the same as the components compared
  in your type's `==` operator implementation. Call `hasher.combine(_:)`
  with each of these components.
  Important

  In your implementation of `hash(into:)`,
  don't call `finalize()` on the `hasher` instance provided,
  or replace it with a different instance.
  Doing so may become a compile-time error in the future.

  #### Declaration

  Swift

      func hash(into hasher: inout Hasher)

- `


  ### [Attributes](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/AutomationExecutionTrait/Attributes.html)


  ` Undocumented

  #### Declaration

  Swift

      struct Attributes

      extension https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/AutomationExecutionTrait.html.Attributes : Decodable, Encodable, Equatable, Hashable, Sendable, SendableMetatype

- `


  ### [AutomationExecutionEvent](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/AutomationExecutionTrait/AutomationExecutionEvent.html)


  ` Event emitted when an automation execution occurs, containing details and
  metadata of the executed automation.

  #### Declaration

  Swift

      struct AutomationExecutionEvent

      extension https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/AutomationExecutionTrait.html.AutomationExecutionEvent : CustomDebugStringConvertible, Equatable, https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Event.html, Hashable, Sendable, SendableMetatype

- `


  ### [ExecuteAutomationCommand](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/AutomationExecutionTrait#/)


  `
- `


  ### [StopAutomationCommand](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/AutomationExecutionTrait#/)


  `