# ZoneManagementTrait.ZoneInformationStruct

# ZoneManagementTrait.ZoneInformationStruct


```
class ZoneManagementTrait.ZoneInformationStruct : ClusterStruct
```

<br />

*** ** * ** ***

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

## Summary

| ### Nested types |
|---|
| `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.ZoneInformationStruct.StructFields : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html, https://developers.home.google.com/reference/kotlin/com/google/home/Field` Descriptor enum for this struct's fields. |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.ZoneInformationStruct#ZoneInformationStruct(kotlin.UShort,com.google.home.matter.standard.ZoneManagementTrait.ZoneTypeEnum,com.google.home.matter.standard.ZoneManagementTrait.ZoneSourceEnum,com.google.home.matter.serialization.OptionalValue)( zoneId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, zoneType: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.ZoneTypeEnum, zoneSource: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.ZoneSourceEnum, twoDCartesianZone: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.TwoDCartesianZoneStruct> )` Creates the ZoneInformationStruct class. |

| ### Public functions |
|---|---|
| `open https://developers.home.google.com/reference/kotlin/com/google/home/StructDescriptor` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.ZoneInformationStruct#getDescriptor()()` Returns the descriptor for the struct. |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.ZoneInformationStruct#getFieldValueById(kotlin.UInt)(tagId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html)` Returns the value of the field for the given tag ID. |

| ### Public properties |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.TwoDCartesianZoneStruct>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.ZoneInformationStruct#twoDCartesianZone()` Detailed information for the `TwoDCartesianZone`. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.ZoneInformationStruct#zoneId()` Unique ZoneID of the zone. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.ZoneSourceEnum` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.ZoneInformationStruct#zoneSource()` The `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.ZoneSourceEnum` value representing the source of the zone. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.ZoneTypeEnum` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.ZoneInformationStruct#zoneType()` A `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.ZoneTypeEnum` value representing the type of the zone. |

## Public constructors

### ZoneInformationStruct

```
ZoneInformationStruct(
    zoneId: UShort,
    zoneType: ZoneManagementTrait.ZoneTypeEnum = ZoneTypeEnum.TwoDCARTZone,
    zoneSource: ZoneManagementTrait.ZoneSourceEnum = ZoneSourceEnum.Mfg,
    twoDCartesianZone: OptionalValue<ZoneManagementTrait.TwoDCartesianZoneStruct> = OptionalValue.absent()
)
```

Creates the ZoneInformationStruct class.

## Public functions

### getDescriptor

```
@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor
```

Returns the descriptor for the struct.

### getFieldValueById

```
@HomeExperimentalGenericApi
open fun getFieldValueById(tagId: UInt): Any?
```

Returns the value of the field for the given tag ID.

## Public properties

### twoDCartesianZone

```
val twoDCartesianZone: OptionalValue<ZoneManagementTrait.TwoDCartesianZoneStruct>
```

Detailed information for the `TwoDCartesianZone`.

### zoneId

```
val zoneId: UShort
```

Unique ZoneID of the zone.

### zoneSource

```
val zoneSource: ZoneManagementTrait.ZoneSourceEnum
```

The `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.ZoneSourceEnum` value representing the source of the zone.

### zoneType

```
val zoneType: ZoneManagementTrait.ZoneTypeEnum
```

A `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.ZoneTypeEnum` value representing the type of the zone.