    struct UnknownTrait

    extension UnknownTrait : CustomStringConvertible, Equatable, 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

Represents an unknown `https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Trait.html`.
- `


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


  ` The trait identifier.

  #### Declaration

  Swift

      static let identifier: String

- `


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


  ` List of all event types on the given Trait.

  Currently, only `https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/MatterTrait.html` traits support any events, but this will likely expand to other
  traits in the future.

  #### 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/UnknownTrait#/s:13GoogleHomeSDK12UnknownTraitV21supportedCommandTypesSayAA0G0_pXpGvpZ)


  ` List of all commands supported by the Trait's definition. The commands supported by a specific
  Trait instance may vary.

  #### Declaration

  Swift

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

- `


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


  ` 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

- `


  ### [encode(with:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/UnknownTrait#/s:13GoogleHomeSDK12UnknownTraitV6encode4withyAA0E7EncoderC_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

- `


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


  ` 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)?, 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. |