    struct ZoneManagementTrait

This trait provides an interface to manage regions of interest, known as zones, which can be
defined by either the manufacturer or the end user. This is a minimalistic custom version of the
ZoneManagement standard Matter cluster, and provides functionality for some of the zone
settings.
- `


  ### [supportedEventTypes](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait#/s:15GoogleHomeTypes0A0O19ZoneManagementTraitV014supportedEventC0Say0aB3SDK0H0_pXpGvpZ)


  ` No supported events for `ZoneManagementTrait`.

  #### Declaration

  Swift

      static let supportedEventTypes: [any Event.Type]

- `


  ### [supportedCommandTypes](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait#/s:15GoogleHomeTypes0A0O19ZoneManagementTraitV016supportedCommandC0Say0aB3SDK0H0_pXpGvpZ)


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

  #### Declaration

  Swift

      static let supportedCommandTypes: [any Command.Type]

- `


  ### [identifier](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait#/s:15GoogleHomeTypes0A0O19ZoneManagementTraitV10identifierSSvpZ)


  ` The trait identifier.

  #### Declaration

  Swift

      static let identifier: String

- `


  ### [metadata](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait#/s:15GoogleHomeTypes0A0O19ZoneManagementTraitV8metadata0aB3SDK0F8MetadataVvp)


  ` Metadata about this `Trait`.

  #### Declaration

  Swift

      let metadata: TraitMetadata

- `


  ### [attributes](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait#/s:15GoogleHomeTypes0A0O19ZoneManagementTraitV10attributesAE10AttributesVvp)


  ` List of attributes for the `ZoneManagementTrait`.

  #### Declaration

  Swift

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

- `


  ### [init(decoder:interactionProxy:metadata:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait#/s:15GoogleHomeTypes0A0O19ZoneManagementTraitV7decoder16interactionProxy8metadataAE0aB3SDK0F7DecoderV_AI011InteractionI0_pSgAI0F8MetadataVtKcfc)


  ` 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/Google/ZoneManagementTrait#/s:15GoogleHomeTypes0A0O19ZoneManagementTraitV6encode4withy0aB3SDK0F7EncoderC_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/Google/ZoneManagementTrait#/s:15GoogleHomeTypes0A0O19ZoneManagementTraitV9forceReadyyYaKF)


  ` 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/Google/ZoneManagementTrait/Attributes.html)


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

  #### Declaration

  Swift

      struct Attributes

- `


  ### [==(_:_:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait#/s:15GoogleHomeTypes0A0O19ZoneManagementTraitV2eeoiySbAE_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/Google.html.ZoneManagementTrait, rhs: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.ZoneManagementTrait) -> Bool

  #### Parameters

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

- `


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

- `


  ### [TwoDCartesianVertexStruct](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait/TwoDCartesianVertexStruct.html)


  ` Encodes a point on the two-dimensional Cartesian plane for the `TwoDCartesianZone` feature.

  #### Declaration

  Swift

      struct TwoDCartesianVertexStruct

- `


  ### [TwoDCartesianZoneStruct](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait/TwoDCartesianZoneStruct.html)


  ` Encodes all information needed to define a `TwoDCartesianZone`.

  #### Declaration

  Swift

      struct TwoDCartesianZoneStruct

- `


  ### [ZoneInformationStruct](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait/ZoneInformationStruct.html)


  ` Encodes basic information about a zone without containing the specifics of how the zone is
  defined.

  #### Declaration

  Swift

      struct ZoneInformationStruct

- `


  ### [supportsCreateTwoDCartesianZoneCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait#/s:15GoogleHomeTypes0A0O19ZoneManagementTraitV027supportsCreateTwoDCartesianD7CommandSbvp)


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

  #### Declaration

  Swift

      var supportsCreateTwoDCartesianZoneCommand: Bool { get }

- `


  ### [createTwoDCartesianZone(zone:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait#/s:15GoogleHomeTypes0A0O19ZoneManagementTraitV019createTwoDCartesianD04zoneAE06CreatehiD7CommandV8ResponseVAE0hiD6StructV_tYaKF)


  ` Creates and stores a two-dimensional Cartesian zone.

  #### Declaration

  Swift

      func createTwoDCartesianZone(zone: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.ZoneManagementTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait/TwoDCartesianZoneStruct.html) async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.ZoneManagementTrait.CreateTwoDCartesianZoneCommandResponse

  #### Parameters

  |---|---|
  | ` zone ` | A `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait/TwoDCartesianZoneStruct.html` value representing all information required to define the two-dimensional Cartesian zone. |

  #### Return Value

  The result of the `CreateTwoDCartesianZone` command.
- `


  ### [createTwoDCartesianZoneBatchable(zone:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait#/s:15GoogleHomeTypes0A0O19ZoneManagementTraitV019createTwoDCartesianD9Batchable4zone0aB3SDK0J7CommandVyAE06CreatehidM0V8ResponseVGAE0hiD6StructV_tKF)


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

  #### Declaration

  Swift

      func createTwoDCartesianZoneBatchable(zone: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.ZoneManagementTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait/TwoDCartesianZoneStruct.html) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.ZoneManagementTrait.CreateTwoDCartesianZoneCommandResponse>

- `


  ### [supportsUpdateTwoDCartesianZoneCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait#/s:15GoogleHomeTypes0A0O19ZoneManagementTraitV027supportsUpdateTwoDCartesianD7CommandSbvp)


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

  #### Declaration

  Swift

      var supportsUpdateTwoDCartesianZoneCommand: Bool { get }

- `


  ### [updateTwoDCartesianZone(zoneID:zone:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait#/s:15GoogleHomeTypes0A0O19ZoneManagementTraitV019updateTwoDCartesianD06zoneID0J0ys6UInt16V_AE0hiD6StructVtYaKF)


  ` Updates a stored two-dimensional Cartesian zone. When updating the default zone (`zoneID =
  0`), only the `use` field within the provided `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait/TwoDCartesianZoneStruct.html` can be modified.

  #### Declaration

  Swift

      func updateTwoDCartesianZone(zoneID: UInt16, zone: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.ZoneManagementTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait/TwoDCartesianZoneStruct.html) async throws

  #### Parameters

  |---|---|
  | ` zone ` | A `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait/TwoDCartesianZoneStruct.html` value representing updated zone information. |

- `


  ### [updateTwoDCartesianZoneBatchable(zoneID:zone:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait#/s:15GoogleHomeTypes0A0O19ZoneManagementTraitV019updateTwoDCartesianD9Batchable6zoneID0K00aB3SDK0J7CommandVyytGs6UInt16V_AE0hiD6StructVtKF)


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

  #### Declaration

  Swift

      func updateTwoDCartesianZoneBatchable(zoneID: UInt16, zone: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.ZoneManagementTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait/TwoDCartesianZoneStruct.html) throws -> BatchableCommand<Void>

- `


  ### [supportsRemoveZoneCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait#/s:15GoogleHomeTypes0A0O19ZoneManagementTraitV014supportsRemoveD7CommandSbvp)


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

  #### Declaration

  Swift

      var supportsRemoveZoneCommand: Bool { get }

- `


  ### [removeZone(zoneID:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait#/s:15GoogleHomeTypes0A0O19ZoneManagementTraitV06removeD06zoneIDys6UInt16V_tYaKF)


  ` Removes the user-defined zone indicated by the `ZoneID`. The default zone with `zoneID = 0`
  cannot be removed.

  #### Declaration

  Swift

      func removeZone(zoneID: UInt16) async throws

- `


  ### [removeZoneBatchable(zoneID:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait#/s:15GoogleHomeTypes0A0O19ZoneManagementTraitV06removeD9Batchable6zoneID0aB3SDK0H7CommandVyytGs6UInt16V_tKF)


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

  #### Declaration

  Swift

      func removeZoneBatchable(zoneID: UInt16) throws -> BatchableCommand<Void>

- `


  ### [ZoneSourceEnum](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait/ZoneSourceEnum.html)


  ` The source of the zone.

  #### Declaration

  Swift

      enum ZoneSourceEnum

- `


  ### [ZoneTypeEnum](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait/ZoneTypeEnum.html)


  ` The type of the zone.

  #### Declaration

  Swift

      enum ZoneTypeEnum

- `


  ### [ZoneUseEnum](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait/ZoneUseEnum.html)


  ` The intended use of the zone.

  #### Declaration

  Swift

      enum ZoneUseEnum

- `


  ### [Feature](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ZoneManagementTrait/Feature.html)


  ` ZoneManagement cluster FeatureMap.

  #### Declaration

  Swift

      struct Feature