# Command

    protocol Command : Sendable

Basic interface for Trait commands.
- `


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


  ` Identifier for this command.

  The Command ID is appended onto the Trait ID of the trait this command
  belongs to.

  #### Declaration

  Swift

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

- `


  ### [requestField(id:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Command#/s:13GoogleHomeSDK7CommandP12requestField2idAA0F0_pSgs6UInt32V_tFZ)


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

  #### Default Implementation

  Returns the field corresponding to the given command request field ID.

  #### Declaration

  Swift

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