# OtaSoftwareUpdateRequestorTrait.Attributes


```
@Generated(value = ["GoogleHomePlatformCodegen"])
interface OtaSoftwareUpdateRequestorTrait.Attributes : ClusterStruct
```

<br />

Known direct subclasses [OtaSoftwareUpdateRequestor](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestor)

|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestor` | API for the OtaSoftwareUpdateRequestor trait. |

*** ** * ** ***

Attributes for the OtaSoftwareUpdateRequestor cluster.

## Summary

| ### 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/OtaSoftwareUpdateRequestorTrait.Attributes#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/OtaSoftwareUpdateRequestorTrait.Attributes#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.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.Attributes#acceptedCommandList()` A list of client-generated commands which are supported by this cluster server instance. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.Attributes#attributeList()` A list of the attribute IDs of the attributes supported by the cluster instance. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.Attributes#clusterRevision()` The revision of the server cluster specification supported by the cluster instance. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.ProviderLocation>?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.Attributes#defaultOtaProviders()` A list of available OTA providers. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.Feature` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.Attributes#featureMap()` Whether the server supports zero or more optional cluster features. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.Attributes#generatedCommandList()` A list of server-generated commands (server to client) which are supported by this cluster server instance. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.Attributes#updatePossible()` `true` indicates that the OTA requestor can be updated. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.UpdateStateEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.Attributes#updateState()` The current state of the OTA requestor with regard to obtaining software updates. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.Attributes#updateStateProgress()` The progress of the update as a percentage. |

## 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

### acceptedCommandList

```
val acceptedCommandList: List<UInt>
```

A list of client-generated commands which are supported by this cluster server instance.

### attributeList

```
val attributeList: List<UInt>
```

A list of the attribute IDs of the attributes supported by the cluster instance.

### clusterRevision

```
val clusterRevision: UShort
```

The revision of the server cluster specification supported by the cluster instance.

### defaultOtaProviders

```
val defaultOtaProviders: List<OtaSoftwareUpdateRequestorTrait.ProviderLocation>?
```

A list of available OTA providers.

**Access type:** Write

### featureMap

```
val featureMap: OtaSoftwareUpdateRequestorTrait.Feature
```

Whether the server supports zero or more optional cluster features. A cluster feature is a set of cluster elements that are mandatory or optional for a defined feature of the cluster. If a cluster feature is supported by the cluster instance, then the corresponding bit is set to 1, otherwise the bit is set to 0 (zero).

### generatedCommandList

```
val generatedCommandList: List<UInt>
```

A list of server-generated commands (server to client) which are supported by this cluster server instance.

### updatePossible

```
val updatePossible: Boolean?
```

`true` indicates that the OTA requestor can be updated.

**Access type:** Read

### updateState

```
val updateState: OtaSoftwareUpdateRequestorTrait.UpdateStateEnum?
```

The current state of the OTA requestor with regard to obtaining software updates.

**Access type:** Read

### updateStateProgress

```
val updateStateProgress: UByte?
```

The progress of the update as a percentage.

**Access type:** Read