# ServiceAreaTrait.LocationDescriptorStruct

# ServiceAreaTrait.LocationDescriptorStruct


```
class ServiceAreaTrait.LocationDescriptorStruct : ClusterStruct
```

<br />

*** ** * ** ***

Data describing the location of an area.

## 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/ServiceAreaTrait.LocationDescriptorStruct.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/ServiceAreaTrait.LocationDescriptorStruct#LocationDescriptorStruct(kotlin.String,kotlin.Short,kotlin.UByte)( locationName: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, floorNumber: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html?, areaType: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html? )` Creates the LocationDescriptorStruct 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/ServiceAreaTrait.LocationDescriptorStruct#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/ServiceAreaTrait.LocationDescriptorStruct#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://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaTrait.LocationDescriptorStruct#areaType()` The type of the area. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaTrait.LocationDescriptorStruct#floorNumber()` The floor number of the area. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaTrait.LocationDescriptorStruct#locationName()` The name of the area. |

## Public constructors

### LocationDescriptorStruct

```
LocationDescriptorStruct(
    locationName: String = "",
    floorNumber: Short? = null,
    areaType: UByte? = null
)
```

Creates the LocationDescriptorStruct 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

### areaType

```
val areaType: UByte?
```

The type of the area. A value of `null` indicates that the area type is not available or known.

### floorNumber

```
val floorNumber: Short?
```

The floor number of the area. A value of `null` indicates that the floor number is not available or known.

### locationName

```
val locationName: String
```

The name of the area. A value of `null` indicates that the area name is unknown.