# ServiceAreaTrait.ProgressStruct

# ServiceAreaTrait.ProgressStruct


```
class ServiceAreaTrait.ProgressStruct : ClusterStruct
```

<br />

*** ** * ** ***

Data about the operating status 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.ProgressStruct.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.ProgressStruct#ProgressStruct(kotlin.UInt,com.google.home.matter.standard.ServiceAreaTrait.OperationalStatusEnum,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue)( areaId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html, status: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaTrait.OperationalStatusEnum, totalOperationalTime: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html?>, estimatedTime: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html?> )` Creates the ProgressStruct 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.ProgressStruct#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.ProgressStruct#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-int/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaTrait.ProgressStruct#areaId()` The identifier of the area, where the identifier is an entry in the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaTrait.Attributes#supportedAreas()` attribute's list. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html?>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaTrait.ProgressStruct#estimatedTime()` The estimated time for the operation, in seconds, from when the device starts operating at the area indicated by the `areaID` field until the operation completes, excluding any time spent while not operating in the area. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaTrait.OperationalStatusEnum` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaTrait.ProgressStruct#status()` The operational status of the device for the area, indicated by the `areaID` field. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html?>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaTrait.ProgressStruct#totalOperationalTime()` The total operational time, in seconds, from when the device started to operate at the area indicated by the `areaID` field until the operation finished. |

## Public constructors

### ProgressStruct

```
ProgressStruct(
    areaId: UInt,
    status: ServiceAreaTrait.OperationalStatusEnum = OperationalStatusEnum.Pending,
    totalOperationalTime: OptionalValue<UInt?> = OptionalValue.absent(),
    estimatedTime: OptionalValue<UInt?> = OptionalValue.absent()
)
```

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

### areaId

```
val areaId: UInt
```

The identifier of the area, where the identifier is an entry in the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaTrait.Attributes#supportedAreas()` attribute's list.

### estimatedTime

```
val estimatedTime: OptionalValue<UInt?>
```

The estimated time for the operation, in seconds, from when the device starts operating at the area indicated by the `areaID` field until the operation completes, excluding any time spent while not operating in the area.

### status

```
val status: ServiceAreaTrait.OperationalStatusEnum
```

The operational status of the device for the area, indicated by the `areaID` field.

### totalOperationalTime

```
val totalOperationalTime: OptionalValue<UInt?>
```

The total operational time, in seconds, from when the device started to operate at the area indicated by the `areaID` field until the operation finished.