    struct AutomationCommand

    extension AutomationCommand : https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/ActionBehavior.html, Copyable, Copyable, CustomStringConvertible, Equatable, Escapable, Escapable, Sendable, SendableMetatype

A trait command used in an automation action.
- `


  ### [trait](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/AutomationCommand#/s:13GoogleHomeSDK17AutomationCommandV5traitAA5Trait_pXpvp)


  ` The trait associated with the command.

  #### Declaration

  Swift

      let trait: any https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Trait.html.Type

- `


  ### [command](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/AutomationCommand#/s:13GoogleHomeSDK17AutomationCommandV7commandAA0E0_pXpvp)


  ` The unique identifier for the command.

  #### Declaration

  Swift

      let command: any https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Command.html.Type

- `


  ### [commandID](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/AutomationCommand#/s:13GoogleHomeSDK17AutomationCommandV9commandIDSSvp)


  ` The string-based identifier for the command. If command is `https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/UnknownCommand.html`
  it will refer to the original command ID provided.

  #### Declaration

  Swift

      let commandID: String

- `


  ### [parameters](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/AutomationCommand#/s:13GoogleHomeSDK17AutomationCommandV10parametersSayAA9ParameterVGvp)


  ` The parameters for the command.

  #### Declaration

  Swift

      let parameters: [https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/Parameter.html]

- `


  ### [init(trait:command:commandID:parameters:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/AutomationCommand#/s:13GoogleHomeSDK17AutomationCommandV5trait7command0G2ID10parametersAcA5Trait_pXp_AA0E0_pXpSSSayAA9ParameterVGtcfc)


  ` Internal API exposed for codegen. Do NOT use.

  #### Declaration

  Swift

      init(trait: any https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Trait.html.Type, command: any https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Command.html.Type, commandID: String, parameters: [https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/Parameter.html] = [])

- `


  ### [isEqualTo(_:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/AutomationCommand#/s:13GoogleHomeSDK17AutomationCommandV9isEqualToySbAA14ActionBehavior_pF)


  ` Returns true if the action behaviors are equal, false otherwise.

  #### Declaration

  Swift

      func isEqualTo(_ other: any https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/ActionBehavior.html) -> Bool

- `


  ### [==(_:_:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/AutomationCommand#/s:13GoogleHomeSDK17AutomationCommandV2eeoiySbAC_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: AutomationCommand, rhs: AutomationCommand) -> Bool

  #### Parameters

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

- `


  ### [description](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/AutomationCommand#/s:13GoogleHomeSDK17AutomationCommandV11descriptionSSvp)


  ` A textual representation of this instance.

  Calling this property directly is discouraged. Instead, convert an
  instance of any type to a string by using the `String(describing:)`
  initializer. This initializer works with any type, and uses the custom
  `description` property for types that conform to
  `CustomStringConvertible`:

      struct Point: CustomStringConvertible {
          let x: Int, y: Int

          var description: String {
              return "(\(x), \(y))"
          }
      }

      let p = Point(x: 21, y: 30)
      let s = String(describing: p)
      print(s)
      // Prints "(21, 30)"

  The conversion of `p` to a string in the assignment to `s` uses the
  `Point` type's `description` property.

  #### Declaration

  Swift

      var description: String { get }