    struct UnitTestingTrait

A cluster used for testing purposes.
- `


  ### [supportedEventTypes](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV014supportedEventC0Say0aB3SDK0I0_pXpGvpZ)


  ` List of the event types that are supported by `UnitTestingTrait`.

  #### Declaration

  Swift

      static let supportedEventTypes: [any Event.Type]

- `


  ### [supportedCommandTypes](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV016supportedCommandC0Say0aB3SDK0I0_pXpGvpZ)


  ` List of the commands that are supported by `UnitTestingTrait`.

  #### Declaration

  Swift

      static let supportedCommandTypes: [any Command.Type]

- `


  ### [identifier](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV10identifierSSvpZ)


  ` The trait identifier.

  #### Declaration

  Swift

      static let identifier: String

- `


  ### [metadata](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV8metadata0aB3SDK0G8MetadataVvp)


  ` Metadata about this `Trait`.

  #### Declaration

  Swift

      let metadata: TraitMetadata

- `


  ### [attributes](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV10attributesAE10AttributesVvp)


  ` List of attributes for the `UnitTestingTrait`.

  #### Declaration

  Swift

      let attributes: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/Attributes.html

- `


  ### [init(decoder:interactionProxy:metadata:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV7decoder16interactionProxy8metadataAE0aB3SDK0G7DecoderV_AI011InteractionJ0_pSgAI0G8MetadataVtKcfc)


  ` Creates a new Trait instance using data read from the given `TraitDecoder`.
  Throws
  `HomeError.parseError` when parsing fails.

  #### Declaration

  Swift

      init(decoder: TraitDecoder, interactionProxy: (any InteractionProxy)?, metadata: TraitMetadata) 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/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV6encode4withy0aB3SDK0G7EncoderC_tKF)


  ` Writes this object to the given `TraitEncoder`.
  Throws `HomeError.encodingFailed` if the data could not be encoded.

  #### Declaration

  Swift

      func encode(with encoder: TraitEncoder) throws

- `


  ### [forceRead()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV9forceReadyyYaKF)


  ` This API provides the ability to invalidate state retrieved through subscriptions to the
  target device in the cases where state is not being reported correctly, either intentionally
  (e.g attributes in Matter traits with the "C" quality) or unintentionally due to poor
  implementations.

  When successful, this API will result in a forced read of the convening scope as specified by
  the sub-class and return the result through existing Trait subscriptions if present and
  active.

  This API is to be used sparingly as it can impact the performance and battery life of the
  target device. As such, this API may be throttled by the platform.
  Callers SHALL be prepared to deal with `HomeError`s thrown by this call.

  #### Declaration

  Swift

      func forceRead() async throws

- `


  ### [Attributes](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/Attributes.html)


  ` Attributes for the `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait.html`.

  #### Declaration

  Swift

      struct Attributes

- `


  ### [==(_:_:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV2eeoiySbAE_AEtFZ)


  ` 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: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait, rhs: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait) -> Bool

  #### Parameters

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

- `


  ### [hash(into:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV4hash4intoys6HasherVz_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)

- `


  ### [DoubleNestedStructList](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/DoubleNestedStructList.html)


  ` DoubleNestedStructList

  #### Declaration

  Swift

      struct DoubleNestedStructList

- `


  ### [NestedStruct](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/NestedStruct.html)


  ` NestedStruct

  #### Declaration

  Swift

      struct NestedStruct

- `


  ### [NestedStructList](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/NestedStructList.html)


  ` NestedStructList

  #### Declaration

  Swift

      struct NestedStructList

- `


  ### [NullablesAndOptionalsStruct](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/NullablesAndOptionalsStruct.html)


  ` NullablesAndOptionalsStruct\`.

  #### Declaration

  Swift

      struct NullablesAndOptionalsStruct

- `


  ### [SimpleStruct](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleStruct.html)


  ` SimpleStruct

  #### Declaration

  Swift

      struct SimpleStruct

- `


  ### [TestListStructOctet](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/TestListStructOctet.html)


  ` TestListStructOctet

  #### Declaration

  Swift

      struct TestListStructOctet

- `


  ### [TestFabricScoped](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/TestFabricScoped.html)


  ` TestFabricScoped

  #### Declaration

  Swift

      struct TestFabricScoped

- `


  ### [supportsTestCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV19supportsTestCommandSbvp)


  ` Whether the device supports the `test` command for this trait.

  #### Declaration

  Swift

      var supportsTestCommand: Bool { get }

- `


  ### [test()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV4testyyYaKF)


  ` Simple command without any parameters and without a specific response.

  #### Declaration

  Swift

      func test() async throws

- `


  ### [testBatchable()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV13testBatchable0aB3SDK0I7CommandVyytGyKF)


  ` The batchable version of test command above.
  See also
  test

  #### Declaration

  Swift

      func testBatchable() throws -> BatchableCommand<Void>

- `


  ### [supportsTestNotHandledCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV29supportsTestNotHandledCommandSbvp)


  ` Whether the device supports the `testNotHandled` command for this trait.

  #### Declaration

  Swift

      var supportsTestNotHandledCommand: Bool { get }

- `


  ### [testNotHandled()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV14testNotHandledyyYaKF)


  ` Simple command without any parameters and without a specific response not handled by the
  server.

  #### Declaration

  Swift

      func testNotHandled() async throws

- `


  ### [testNotHandledBatchable()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV23testNotHandledBatchable0aB3SDK0K7CommandVyytGyKF)


  ` The batchable version of testNotHandled command above.
  See also
  testNotHandled

  #### Declaration

  Swift

      func testNotHandledBatchable() throws -> BatchableCommand<Void>

- `


  ### [supportsTestSpecificCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV27supportsTestSpecificCommandSbvp)


  ` Whether the device supports the `testSpecific` command for this trait.

  #### Declaration

  Swift

      var supportsTestSpecificCommand: Bool { get }

- `


  ### [testSpecific()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV12testSpecificAE04TestI7CommandV8ResponseVyYaKF)


  ` Simple command without any parameters and with a specific response.

  #### Declaration

  Swift

      func testSpecific() async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestSpecificCommandResponse

- `


  ### [testSpecificBatchable()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV21testSpecificBatchable0aB3SDK0J7CommandVyAE04TestiL0V8ResponseVGyKF)


  ` The batchable version of testSpecific command above.
  See also
  testSpecific

  #### Declaration

  Swift

      func testSpecificBatchable() throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestSpecificCommandResponse>

- `


  ### [supportsTestUnknownCommandCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV026supportsTestUnknownCommandK0Sbvp)


  ` Whether the device supports the `testUnknownCommand` command for this trait.

  #### Declaration

  Swift

      var supportsTestUnknownCommandCommand: Bool { get }

- `


  ### [testUnknownCommand()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV18testUnknownCommandyyYaKF)


  ` Simple command that should not be added to the server.

  #### Declaration

  Swift

      func testUnknownCommand() async throws

- `


  ### [testUnknownCommandBatchable()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV27testUnknownCommandBatchable0aB3SDK0kJ0VyytGyKF)


  ` The batchable version of testUnknownCommand command above.
  See also
  testUnknownCommand

  #### Declaration

  Swift

      func testUnknownCommandBatchable() throws -> BatchableCommand<Void>

- `


  ### [supportsTestAddArgumentsCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV31supportsTestAddArgumentsCommandSbvp)


  ` Whether the device supports the `testAddArguments` command for this trait.

  #### Declaration

  Swift

      var supportsTestAddArgumentsCommand: Bool { get }

- `


  ### [testAddArguments(arg1:arg2:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV16testAddArguments4arg14arg2AE04TestiJ7CommandV8ResponseVs5UInt8V_ANtYaKF)


  ` Simple command that adds the two arguments passed to it.

  #### Declaration

  Swift

      func testAddArguments(arg1: UInt8, arg2: UInt8) async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestAddArgumentsCommandResponse

  #### Parameters

  |---|---|
  | ` arg1 ` | Unsigned 8-bit integer argument. The \[int8u\]\[UnitTestingTrait.Attributes.int8u\] attribute could be used for this. |
  | ` arg2 ` | Unsigned 8-bit integer argument. |

- `


  ### [testAddArgumentsBatchable(arg1:arg2:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV25testAddArgumentsBatchable4arg14arg20aB3SDK0K7CommandVyAE04TestijO0V8ResponseVGs5UInt8V_ARtKF)


  ` The batchable version of testAddArguments command above.
  See also
  testAddArguments

  #### Declaration

  Swift

      func testAddArgumentsBatchable(arg1: UInt8, arg2: UInt8) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestAddArgumentsCommandResponse>

- `


  ### [supportsTestSimpleArgumentRequestCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV40supportsTestSimpleArgumentRequestCommandSbvp)


  ` Whether the device supports the `testSimpleArgumentRequest` command for this trait.

  #### Declaration

  Swift

      var supportsTestSimpleArgumentRequestCommand: Bool { get }

- `


  ### [testSimpleArgumentRequest(arg1:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV25testSimpleArgumentRequest4arg1AE04TestijK7CommandV8ResponseVSb_tYaKF)


  ` Command that takes a boolean argument.

  #### Declaration

  Swift

      func testSimpleArgumentRequest(arg1: Bool) async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestSimpleArgumentRequestCommandResponse

  #### Parameters

  |---|---|
  | ` arg1 ` | Boolean argument. |

- `


  ### [testSimpleArgumentRequestBatchable(arg1:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV34testSimpleArgumentRequestBatchable4arg10aB3SDK0L7CommandVyAE04TestijkO0V8ResponseVGSb_tKF)


  ` The batchable version of testSimpleArgumentRequest command above.
  See also
  testSimpleArgumentRequest

  #### Declaration

  Swift

      func testSimpleArgumentRequestBatchable(arg1: Bool) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestSimpleArgumentRequestCommandResponse>

- `


  ### [supportsTestStructArrayArgumentRequestCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV45supportsTestStructArrayArgumentRequestCommandSbvp)


  ` Whether the device supports the `testStructArrayArgumentRequest` command for this trait.

  #### Declaration

  Swift

      var supportsTestStructArrayArgumentRequestCommand: Bool { get }

- `


  ### [testStructArrayArgumentRequest(arg1:arg2:arg3:arg4:arg5:arg6:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV30testStructArrayArgumentRequest4arg14arg24arg34arg44arg54arg6AE04TestijkL7CommandV8ResponseVSayAE06NestedI4ListVG_SayAE06SimpleI0VGSayAE0X4EnumOGSaySbGAXSbtYaKF)


  ` Command that takes various arguments that are arrays, including an array of structs which have
  a list member.

  #### Declaration

  Swift

      func testStructArrayArgumentRequest(arg1: [https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/NestedStructList.html], arg2: [https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleStruct.html], arg3: [https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleEnum.html], arg4: [Bool], arg5: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleEnum.html, arg6: Bool) async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestStructArrayArgumentRequestCommandResponse

  #### Parameters

  |---|---|
  | ` arg1 ` | `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/NestedStructList.html` list argument. |
  | ` arg2 ` | `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleStruct.html` list argument. |
  | ` arg3 ` | `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleEnum.html` list argument. |
  | ` arg4 ` | boolean list argument. |
  | ` arg5 ` | `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleEnum.html` argument. |
  | ` arg6 ` | Boolean argument. |

- `


  ### [testStructArrayArgumentRequestBatchable(arg1:arg2:arg3:arg4:arg5:arg6:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV39testStructArrayArgumentRequestBatchable4arg14arg24arg34arg44arg54arg60aB3SDK0M7CommandVyAE04TestijklU0V8ResponseVGSayAE06NestedI4ListVG_SayAE06SimpleI0VGSayAE0Z4EnumOGSaySbGA0_SbtKF)


  ` The batchable version of testStructArrayArgumentRequest command above.
  See also
  testStructArrayArgumentRequest

  #### Declaration

  Swift

      func testStructArrayArgumentRequestBatchable(arg1: [https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/NestedStructList.html], arg2: [https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleStruct.html], arg3: [https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleEnum.html], arg4: [Bool], arg5: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleEnum.html, arg6: Bool) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestStructArrayArgumentRequestCommandResponse>

- `


  ### [supportsTestStructArgumentRequestCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV40supportsTestStructArgumentRequestCommandSbvp)


  ` Whether the device supports the `testStructArgumentRequest` command for this trait.

  #### Declaration

  Swift

      var supportsTestStructArgumentRequestCommand: Bool { get }

- `


  ### [testStructArgumentRequest(arg1:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV25testStructArgumentRequest4arg1AE04TestijK7CommandV8ResponseVAE06SimpleI0V_tYaKF)


  ` Unit test command.

  #### Declaration

  Swift

      func testStructArgumentRequest(arg1: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleStruct.html) async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestStructArgumentRequestCommandResponse

  #### Parameters

  |---|---|
  | ` arg1 ` | `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleStruct.html` argument. |

- `


  ### [testStructArgumentRequestBatchable(arg1:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV34testStructArgumentRequestBatchable4arg10aB3SDK0L7CommandVyAE04TestijkO0V8ResponseVGAE06SimpleI0V_tKF)


  ` The batchable version of testStructArgumentRequest command above.
  See also
  testStructArgumentRequest

  #### Declaration

  Swift

      func testStructArgumentRequestBatchable(arg1: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleStruct.html) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestStructArgumentRequestCommandResponse>

- `


  ### [supportsTestNestedStructArgumentRequestCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV46supportsTestNestedStructArgumentRequestCommandSbvp)


  ` Whether the device supports the `testNestedStructArgumentRequest` command for this trait.

  #### Declaration

  Swift

      var supportsTestNestedStructArgumentRequestCommand: Bool { get }

- `


  ### [testNestedStructArgumentRequest(arg1:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV31testNestedStructArgumentRequest4arg1AE04TestijkL7CommandV8ResponseVAE0iJ0V_tYaKF)


  ` Unit test command.

  #### Declaration

  Swift

      func testNestedStructArgumentRequest(arg1: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/NestedStruct.html) async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestNestedStructArgumentRequestCommandResponse

  #### Parameters

  |---|---|
  | ` arg1 ` | `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/NestedStruct.html` argument. |

- `


  ### [testNestedStructArgumentRequestBatchable(arg1:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV40testNestedStructArgumentRequestBatchable4arg10aB3SDK0M7CommandVyAE04TestijklP0V8ResponseVGAE0iJ0V_tKF)


  ` The batchable version of testNestedStructArgumentRequest command above.
  See also
  testNestedStructArgumentRequest

  #### Declaration

  Swift

      func testNestedStructArgumentRequestBatchable(arg1: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/NestedStruct.html) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestNestedStructArgumentRequestCommandResponse>

- `


  ### [supportsTestListStructArgumentRequestCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV44supportsTestListStructArgumentRequestCommandSbvp)


  ` Whether the device supports the `testListStructArgumentRequest` command for this trait.

  #### Declaration

  Swift

      var supportsTestListStructArgumentRequestCommand: Bool { get }

- `


  ### [testListStructArgumentRequest(arg1:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV29testListStructArgumentRequest4arg1AE04TestijkL7CommandV8ResponseVSayAE06SimpleJ0VG_tYaKF)


  ` Unit test command.

  #### Declaration

  Swift

      func testListStructArgumentRequest(arg1: [https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleStruct.html]) async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestListStructArgumentRequestCommandResponse

  #### Parameters

  |---|---|
  | ` arg1 ` | `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleStruct.html` list argument. |

- `


  ### [testListStructArgumentRequestBatchable(arg1:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV38testListStructArgumentRequestBatchable4arg10aB3SDK0M7CommandVyAE04TestijklP0V8ResponseVGSayAE06SimpleJ0VG_tKF)


  ` The batchable version of testListStructArgumentRequest command above.
  See also
  testListStructArgumentRequest

  #### Declaration

  Swift

      func testListStructArgumentRequestBatchable(arg1: [https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleStruct.html]) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestListStructArgumentRequestCommandResponse>

- `


  ### [supportsTestListInt8UArgumentRequestCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV43supportsTestListInt8UArgumentRequestCommandSbvp)


  ` Whether the device supports the `testListInt8UArgumentRequest` command for this trait.

  #### Declaration

  Swift

      var supportsTestListInt8UArgumentRequestCommand: Bool { get }

- `


  ### [testListInt8UArgumentRequest(arg1:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV28testListInt8UArgumentRequest4arg1AE04TestijkL7CommandV8ResponseVSays5UInt8VG_tYaKF)


  ` Unit test command.

  #### Declaration

  Swift

      func testListInt8UArgumentRequest(arg1: [UInt8]) async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestListInt8UArgumentRequestCommandResponse

  #### Parameters

  |---|---|
  | ` arg1 ` | Unsigned 8-bit integer list argument. |

- `


  ### [testListInt8UArgumentRequestBatchable(arg1:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV37testListInt8UArgumentRequestBatchable4arg10aB3SDK0M7CommandVyAE04TestijklP0V8ResponseVGSays5UInt8VG_tKF)


  ` The batchable version of testListInt8UArgumentRequest command above.
  See also
  testListInt8UArgumentRequest

  #### Declaration

  Swift

      func testListInt8UArgumentRequestBatchable(arg1: [UInt8]) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestListInt8UArgumentRequestCommandResponse>

- `


  ### [supportsTestNestedStructListArgumentRequestCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV50supportsTestNestedStructListArgumentRequestCommandSbvp)


  ` Whether the device supports the `testNestedStructListArgumentRequest` command for this trait.

  #### Declaration

  Swift

      var supportsTestNestedStructListArgumentRequestCommand: Bool { get }

- `


  ### [testNestedStructListArgumentRequest(arg1:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV35testNestedStructListArgumentRequest4arg1AE04TestijklM7CommandV8ResponseVAE0ijK0V_tYaKF)


  ` Unit test command.

  #### Declaration

  Swift

      func testNestedStructListArgumentRequest(arg1: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/NestedStructList.html) async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestNestedStructListArgumentRequestCommandResponse

  #### Parameters

  |---|---|
  | ` arg1 ` | `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/NestedStructList.html` argument. |

- `


  ### [testNestedStructListArgumentRequestBatchable(arg1:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV44testNestedStructListArgumentRequestBatchable4arg10aB3SDK0N7CommandVyAE04TestijklmQ0V8ResponseVGAE0ijK0V_tKF)


  ` The batchable version of testNestedStructListArgumentRequest command above.
  See also
  testNestedStructListArgumentRequest

  #### Declaration

  Swift

      func testNestedStructListArgumentRequestBatchable(arg1: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/NestedStructList.html) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestNestedStructListArgumentRequestCommandResponse>

- `


  ### [supportsTestListNestedStructListArgumentRequestCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV028supportsTestListNestedStructJ22ArgumentRequestCommandSbvp)


  ` Whether the device supports the `testListNestedStructListArgumentRequest` command for this trait.

  #### Declaration

  Swift

      var supportsTestListNestedStructListArgumentRequestCommand: Bool { get }

- `


  ### [testListNestedStructListArgumentRequest(arg1:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV020testListNestedStructI15ArgumentRequest4arg1AE04TestijkilM7CommandV8ResponseVSayAE0jkI0VG_tYaKF)


  ` Unit test command.

  #### Declaration

  Swift

      func testListNestedStructListArgumentRequest(arg1: [https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/NestedStructList.html]) async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestListNestedStructListArgumentRequestCommandResponse

  #### Parameters

  |---|---|
  | ` arg1 ` | `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/NestedStructList.html` argument. |

- `


  ### [testListNestedStructListArgumentRequestBatchable(arg1:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV020testListNestedStructI24ArgumentRequestBatchable4arg10aB3SDK0N7CommandVyAE04TestijkilmQ0V8ResponseVGSayAE0jkI0VG_tKF)


  ` The batchable version of testListNestedStructListArgumentRequest command above.
  See also
  testListNestedStructListArgumentRequest

  #### Declaration

  Swift

      func testListNestedStructListArgumentRequestBatchable(arg1: [https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/NestedStructList.html]) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestListNestedStructListArgumentRequestCommandResponse>

- `


  ### [supportsTestListInt8UReverseRequestCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV42supportsTestListInt8UReverseRequestCommandSbvp)


  ` Whether the device supports the `testListInt8UReverseRequest` command for this trait.

  #### Declaration

  Swift

      var supportsTestListInt8UReverseRequestCommand: Bool { get }

- `


  ### [testListInt8UReverseRequest(arg1:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV27testListInt8UReverseRequest4arg1AE04TestijkL7CommandV8ResponseVSays5UInt8VG_tYaKF)


  ` Unit test command.

  #### Declaration

  Swift

      func testListInt8UReverseRequest(arg1: [UInt8]) async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestListInt8UReverseRequestCommandResponse

  #### Parameters

  |---|---|
  | ` arg1 ` | Unsigned 8-bit integer list argument. |

- `


  ### [testListInt8UReverseRequestBatchable(arg1:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV36testListInt8UReverseRequestBatchable4arg10aB3SDK0M7CommandVyAE04TestijklP0V8ResponseVGSays5UInt8VG_tKF)


  ` The batchable version of testListInt8UReverseRequest command above.
  See also
  testListInt8UReverseRequest

  #### Declaration

  Swift

      func testListInt8UReverseRequestBatchable(arg1: [UInt8]) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestListInt8UReverseRequestCommandResponse>

- `


  ### [supportsTestEnumsRequestCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV31supportsTestEnumsRequestCommandSbvp)


  ` Whether the device supports the `testEnumsRequest` command for this trait.

  #### Declaration

  Swift

      var supportsTestEnumsRequestCommand: Bool { get }

- `


  ### [testEnumsRequest(arg1:arg2:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV16testEnumsRequest4arg14arg2AE04TestiJ7CommandV8ResponseVs6UInt16V_AE10SimpleEnumOtYaKF)


  ` Unit test command.

  #### Declaration

  Swift

      func testEnumsRequest(arg1: UInt16, arg2: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleEnum.html) async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestEnumsRequestCommandResponse

  #### Parameters

  |---|---|
  | ` arg1 ` | Unsigned 16-bit integer argument. |
  | ` arg2 ` | `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleEnum.html` argument. |

- `


  ### [testEnumsRequestBatchable(arg1:arg2:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV25testEnumsRequestBatchable4arg14arg20aB3SDK0K7CommandVyAE04TestijO0V8ResponseVGs6UInt16V_AE10SimpleEnumOtKF)


  ` The batchable version of testEnumsRequest command above.
  See also
  testEnumsRequest

  #### Declaration

  Swift

      func testEnumsRequestBatchable(arg1: UInt16, arg2: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleEnum.html) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestEnumsRequestCommandResponse>

- `


  ### [supportsTestNullableOptionalRequestCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV42supportsTestNullableOptionalRequestCommandSbvp)


  ` Whether the device supports the `testNullableOptionalRequest` command for this trait.

  #### Declaration

  Swift

      var supportsTestNullableOptionalRequestCommand: Bool { get }

- `


  ### [testNullableOptionalRequest(optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV27testNullableOptionalRequest20optionalArgsProviderAE04TestijK7CommandV8ResponseVyAI0jM0CYbcSg_tYaKF)


  ` Unit test command.

  #### Declaration

  Swift

      func testNullableOptionalRequest(optionalArgsProvider: (@Sendable (https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestNullableOptionalRequestCommand.OptionalArgs) -> Void)? = nil) async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestNullableOptionalRequestCommandResponse

- `


  ### [testNullableOptionalRequestBatchable(optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV36testNullableOptionalRequestBatchable20optionalArgsProvider0aB3SDK0L7CommandVyAE04TestijkQ0V8ResponseVGyAL0jN0CcSg_tKF)


  ` The batchable version of testNullableOptionalRequest command above.
  See also
  testNullableOptionalRequest

  #### Declaration

  Swift

      func testNullableOptionalRequestBatchable(optionalArgsProvider: ((https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestNullableOptionalRequestCommand.OptionalArgs) -> Void)? = nil) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestNullableOptionalRequestCommandResponse>

- `


  ### [supportsTestComplexNullableOptionalRequestCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV49supportsTestComplexNullableOptionalRequestCommandSbvp)


  ` Whether the device supports the `testComplexNullableOptionalRequest` command for this trait.

  #### Declaration

  Swift

      var supportsTestComplexNullableOptionalRequestCommand: Bool { get }

- `


  ### [testComplexNullableOptionalRequest(nullableInt:nullableString:nullableStruct:nullableList:optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV34testComplexNullableOptionalRequest11nullableInt0M6String0M6Struct0M4List20optionalArgsProviderAE04TestijkL7CommandV8ResponseVs6UInt16VSg_SSSgAE06SimpleP0VSgSayAE0Y4EnumOGSgyAM0kS0CYbcSgtYaKF)


  ` Unit test command.

  #### Declaration

  Swift

      func testComplexNullableOptionalRequest(nullableInt: UInt16?, nullableString: String?, nullableStruct: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleStruct.html?, nullableList: [https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleEnum.html]?, optionalArgsProvider: (@Sendable (https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestComplexNullableOptionalRequestCommand.OptionalArgs) -> Void)? = nil) async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestComplexNullableOptionalRequestCommandResponse

  #### Parameters

  |---|---|
  | ` nullableInt ` | Unsigned 16-bit integer argument. |
  | ` nullableString ` | String argument. |
  | ` nullableStruct ` | `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleStruct.html` argument. |
  | ` nullableList ` | `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleEnum.html` list argument. |

- `


  ### [testComplexNullableOptionalRequestBatchable(nullableInt:nullableString:nullableStruct:nullableList:optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV43testComplexNullableOptionalRequestBatchable11nullableInt0N6String0N6Struct0N4List20optionalArgsProvider0aB3SDK0M7CommandVyAE04TestijklW0V8ResponseVGs6UInt16VSg_SSSgAE06SimpleQ0VSgSayAE10SimpleEnumOGSgyAP0kT0CcSgtKF)


  ` The batchable version of testComplexNullableOptionalRequest command above.
  See also
  testComplexNullableOptionalRequest

  #### Declaration

  Swift

      func testComplexNullableOptionalRequestBatchable(nullableInt: UInt16?, nullableString: String?, nullableStruct: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleStruct.html?, nullableList: [https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleEnum.html]?, optionalArgsProvider: ((https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestComplexNullableOptionalRequestCommand.OptionalArgs) -> Void)? = nil) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestComplexNullableOptionalRequestCommandResponse>

- `


  ### [supportsSimpleStructEchoRequestCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV38supportsSimpleStructEchoRequestCommandSbvp)


  ` Whether the device supports the `simpleStructEchoRequest` command for this trait.

  #### Declaration

  Swift

      var supportsSimpleStructEchoRequestCommand: Bool { get }

- `


  ### [simpleStructEchoRequest(arg1:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV23simpleStructEchoRequest4arg1AE06SimpleijK7CommandV8ResponseVAE0mI0V_tYaKF)


  ` Unit test command.

  #### Declaration

  Swift

      func simpleStructEchoRequest(arg1: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleStruct.html) async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.SimpleStructEchoRequestCommandResponse

  #### Parameters

  |---|---|
  | ` arg1 ` | `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleStruct.html` argument. |

- `


  ### [simpleStructEchoRequestBatchable(arg1:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV32simpleStructEchoRequestBatchable4arg10aB3SDK0L7CommandVyAE06SimpleijkO0V8ResponseVGAE0pI0V_tKF)


  ` The batchable version of simpleStructEchoRequest command above.
  See also
  simpleStructEchoRequest

  #### Declaration

  Swift

      func simpleStructEchoRequestBatchable(arg1: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleStruct.html) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.SimpleStructEchoRequestCommandResponse>

- `


  ### [supportsTimedInvokeRequestCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV33supportsTimedInvokeRequestCommandSbvp)


  ` Whether the device supports the `timedInvokeRequest` command for this trait.

  #### Declaration

  Swift

      var supportsTimedInvokeRequestCommand: Bool { get }

- `


  ### [timedInvokeRequest()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV18timedInvokeRequestyyYaKF)


  ` TimedInvokeRequest command

  #### Declaration

  Swift

      func timedInvokeRequest() async throws

- `


  ### [timedInvokeRequestBatchable()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV27timedInvokeRequestBatchable0aB3SDK0K7CommandVyytGyKF)


  ` The batchable version of timedInvokeRequest command above.
  See also
  timedInvokeRequest

  #### Declaration

  Swift

      func timedInvokeRequestBatchable() throws -> BatchableCommand<Void>

- `


  ### [supportsTestSimpleOptionalArgumentRequestCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV48supportsTestSimpleOptionalArgumentRequestCommandSbvp)


  ` Whether the device supports the `testSimpleOptionalArgumentRequest` command for this trait.

  #### Declaration

  Swift

      var supportsTestSimpleOptionalArgumentRequestCommand: Bool { get }

- `


  ### [testSimpleOptionalArgumentRequest(optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV33testSimpleOptionalArgumentRequest20optionalArgsProvideryyAE04TestijkL7CommandV0jN0CYbcSg_tYaKF)


  ` Unit test command.

  #### Declaration

  Swift

      func testSimpleOptionalArgumentRequest(optionalArgsProvider: (@Sendable (https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestSimpleOptionalArgumentRequestCommand.OptionalArgs) -> Void)? = nil) async throws

- `


  ### [testSimpleOptionalArgumentRequestBatchable(optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV42testSimpleOptionalArgumentRequestBatchable20optionalArgsProvider0aB3SDK0M7CommandVyytGyAE04TestijklR0V0jO0CcSg_tKF)


  ` The batchable version of testSimpleOptionalArgumentRequest command above.
  See also
  testSimpleOptionalArgumentRequest

  #### Declaration

  Swift

      func testSimpleOptionalArgumentRequestBatchable(optionalArgsProvider: ((https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestSimpleOptionalArgumentRequestCommand.OptionalArgs) -> Void)? = nil) throws -> BatchableCommand<Void>

- `


  ### [supportsTestEmitTestEventRequestCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV016supportsTestEmitI19EventRequestCommandSbvp)


  ` Whether the device supports the `testEmitTestEventRequest` command for this trait.

  #### Declaration

  Swift

      var supportsTestEmitTestEventRequestCommand: Bool { get }

- `


  ### [testEmitTestEventRequest(arg1:arg2:arg3:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV24testEmitTestEventRequest4arg14arg24arg3AE0jijkL7CommandV8ResponseVs5UInt8V_AE10SimpleEnumOSbtYaKF)


  ` Unit test command.

  #### Declaration

  Swift

      func testEmitTestEventRequest(arg1: UInt8, arg2: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleEnum.html, arg3: Bool) async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestEmitTestEventRequestCommandResponse

  #### Parameters

  |---|---|
  | ` arg1 ` | Unsigned 8-bit integer argument. |
  | ` arg2 ` | `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleEnum.html` argument. |
  | ` arg3 ` | Boolean argument. |

- `


  ### [testEmitTestEventRequestBatchable(arg1:arg2:arg3:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV33testEmitTestEventRequestBatchable4arg14arg24arg30aB3SDK0M7CommandVyAE0jijklR0V8ResponseVGs5UInt8V_AE10SimpleEnumOSbtKF)


  ` The batchable version of testEmitTestEventRequest command above.
  See also
  testEmitTestEventRequest

  #### Declaration

  Swift

      func testEmitTestEventRequestBatchable(arg1: UInt8, arg2: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleEnum.html, arg3: Bool) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestEmitTestEventRequestCommandResponse>

- `


  ### [supportsTestEmitTestFabricScopedEventRequestCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV016supportsTestEmitI31FabricScopedEventRequestCommandSbvp)


  ` Whether the device supports the `testEmitTestFabricScopedEventRequest` command for this trait.

  #### Declaration

  Swift

      var supportsTestEmitTestFabricScopedEventRequestCommand: Bool { get }

- `


  ### [testEmitTestFabricScopedEventRequest(arg1:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV36testEmitTestFabricScopedEventRequest4arg1AE0jijklmN7CommandV8ResponseVs5UInt8V_tYaKF)


  ` Unit test command.

  #### Declaration

  Swift

      func testEmitTestFabricScopedEventRequest(arg1: UInt8) async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestEmitTestFabricScopedEventRequestCommandResponse

  #### Parameters

  |---|---|
  | ` arg1 ` | Unsigned 8-bit integer argument. |

- `


  ### [testEmitTestFabricScopedEventRequestBatchable(arg1:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV45testEmitTestFabricScopedEventRequestBatchable4arg10aB3SDK0O7CommandVyAE0jijklmnR0V8ResponseVGs5UInt8V_tKF)


  ` The batchable version of testEmitTestFabricScopedEventRequest command above.
  See also
  testEmitTestFabricScopedEventRequest

  #### Declaration

  Swift

      func testEmitTestFabricScopedEventRequestBatchable(arg1: UInt8) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestEmitTestFabricScopedEventRequestCommandResponse>

- `


  ### [supportsTestBatchHelperRequestCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV37supportsTestBatchHelperRequestCommandSbvp)


  ` Whether the device supports the `testBatchHelperRequest` command for this trait.

  #### Declaration

  Swift

      var supportsTestBatchHelperRequestCommand: Bool { get }

- `


  ### [testBatchHelperRequestBatchable(sleepBeforeResponseTimeMs:sizeOfResponseBuffer:fillCharacter:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV31testBatchHelperRequestBatchable25sleepBeforeResponseTimeMs06sizeOfO6Buffer13fillCharacter0aB3SDK0L7CommandVyAE04TestijkX0V0O0VGs6UInt16V_ASs5UInt8VtKF)


  ` The batchable version of testBatchHelperRequest command above.
  See also
  testBatchHelperRequest

  #### Declaration

  Swift

      func testBatchHelperRequestBatchable(sleepBeforeResponseTimeMs: UInt16, sizeOfResponseBuffer: UInt16, fillCharacter: UInt8) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestBatchHelperRequestCommandResponse>

- `


  ### [supportsTestSecondBatchHelperRequestCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV43supportsTestSecondBatchHelperRequestCommandSbvp)


  ` Whether the device supports the `testSecondBatchHelperRequest` command for this trait.

  #### Declaration

  Swift

      var supportsTestSecondBatchHelperRequestCommand: Bool { get }

- `


  ### [testSecondBatchHelperRequestBatchable(sleepBeforeResponseTimeMs:sizeOfResponseBuffer:fillCharacter:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV37testSecondBatchHelperRequestBatchable25sleepBeforeResponseTimeMs06sizeOfP6Buffer13fillCharacter0aB3SDK0M7CommandVyAE04TestijklY0V0P0VGs6UInt16V_ASs5UInt8VtKF)


  ` The batchable version of testSecondBatchHelperRequest command above.
  See also
  testSecondBatchHelperRequest

  #### Declaration

  Swift

      func testSecondBatchHelperRequestBatchable(sleepBeforeResponseTimeMs: UInt16, sizeOfResponseBuffer: UInt16, fillCharacter: UInt8) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestSecondBatchHelperRequestCommandResponse>

- `


  ### [supportsStringEchoRequestCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV32supportsStringEchoRequestCommandSbvp)


  ` Whether the device supports the `stringEchoRequest` command for this trait.

  #### Declaration

  Swift

      var supportsStringEchoRequestCommand: Bool { get }

- `


  ### [stringEchoRequestBatchable(payload:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV26stringEchoRequestBatchable7payload0aB3SDK0K7CommandVyAE06StringijN0V8ResponseVG10Foundation4DataV_tKF)


  ` The batchable version of stringEchoRequest command above.
  See also
  stringEchoRequest

  #### Declaration

  Swift

      func stringEchoRequestBatchable(payload: Data) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.StringEchoRequestCommandResponse>

- `


  ### [supportsGlobalEchoRequestCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV32supportsGlobalEchoRequestCommandSbvp)


  ` Whether the device supports the `globalEchoRequest` command for this trait.

  #### Declaration

  Swift

      var supportsGlobalEchoRequestCommand: Bool { get }

- `


  ### [globalEchoRequestBatchable(field1:field2:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV26globalEchoRequestBatchable6field16field20aB3SDK0K7CommandVyAE06GlobalijO0V8ResponseVGAE04TestP6StructV_AE0rP4EnumOtKF)


  ` The batchable version of globalEchoRequest command above.
  See also
  globalEchoRequest

  #### Declaration

  Swift

      func globalEchoRequestBatchable(field1: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestGlobalStruct, field2: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestGlobalEnum) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.GlobalEchoRequestCommandResponse>

- `


  ### [supportsTestCheckCommandFlagsCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV029supportsTestCheckCommandFlagsK0Sbvp)


  ` Whether the device supports the `testCheckCommandFlags` command for this trait.

  #### Declaration

  Swift

      var supportsTestCheckCommandFlagsCommand: Bool { get }

- `


  ### [testCheckCommandFlagsBatchable()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV30testCheckCommandFlagsBatchable0aB3SDK0lJ0VyytGyKF)


  ` The batchable version of testCheckCommandFlags command above.
  See also
  testCheckCommandFlags

  #### Declaration

  Swift

      func testCheckCommandFlagsBatchable() throws -> BatchableCommand<Void>

- `


  ### [supportsTestDifferentVendorMeiRequestCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV44supportsTestDifferentVendorMeiRequestCommandSbvp)


  ` Whether the device supports the `testDifferentVendorMeiRequest` command for this trait.

  #### Declaration

  Swift

      var supportsTestDifferentVendorMeiRequestCommand: Bool { get }

- `


  ### [testDifferentVendorMeiRequestBatchable(arg1:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV38testDifferentVendorMeiRequestBatchable4arg10aB3SDK0M7CommandVyAE04TestijklP0V8ResponseVGs5UInt8V_tKF)


  ` The batchable version of testDifferentVendorMeiRequest command above.
  See also
  testDifferentVendorMeiRequest

  #### Declaration

  Swift

      func testDifferentVendorMeiRequestBatchable(arg1: UInt8) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.UnitTestingTrait.TestDifferentVendorMeiRequestCommandResponse>

- `


  ### [SimpleEnum](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleEnum.html)


  ` A simple enum, as used by commands such as `TestEmitTestEventRequestCommand` and
  `TestComplexNullableOptionalRequestCommand`.

  #### Declaration

  Swift

      enum SimpleEnum

- `


  ### [Bitmap16MaskMap](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/Bitmap16MaskMap.html)


  ` Bitmap16MaskMap

  #### Declaration

  Swift

      struct Bitmap16MaskMap

- `


  ### [Bitmap32MaskMap](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/Bitmap32MaskMap.html)


  ` Bitmap32MaskMap. Could be used with
  \[nullableBitmap32\]\[UnitTestingTrait.Attributes.nullableBitmap64\].

  #### Declaration

  Swift

      struct Bitmap32MaskMap

- `


  ### [Bitmap64MaskMap](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/Bitmap64MaskMap.html)


  ` Bitmap64MaskMap. Could be used with \[nullableBitmap64\].

  #### Declaration

  Swift

      struct Bitmap64MaskMap

- `


  ### [Bitmap8MaskMap](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/Bitmap8MaskMap.html)


  ` Bitmap8MaskMap

  #### Declaration

  Swift

      struct Bitmap8MaskMap

- `


  ### [SimpleBitmap](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleBitmap.html)


  ` SimpleBitmap

  #### Declaration

  Swift

      struct SimpleBitmap