    enum BehaviorID

    extension BehaviorID : Equatable, Sendable, SendableMetatype

The ID of a behavior, which can be a command, event or trait.
- `


  ### [command(id:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Enums/BehaviorID#/s:13GoogleHomeSDK10BehaviorIDO7commandyACSS_tcACmF)


  ` The id of a command.

  #### Declaration

  Swift

      case command(id: String)

- `


  ### [event(id:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Enums/BehaviorID#/s:13GoogleHomeSDK10BehaviorIDO5eventyACSS_tcACmF)


  ` The id of an event.

  #### Declaration

  Swift

      case event(id: String)

- `


  ### [trait(id:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Enums/BehaviorID#/s:13GoogleHomeSDK10BehaviorIDO5traityACSS_tcACmF)


  ` The id of a trait.

  #### Declaration

  Swift

      case trait(id: String)

- `


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

  #### Parameters

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