# DescriptorTrait.Attributes

# DescriptorTrait.Attributes


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

<br />

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

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

*** ** * ** ***

Attributes for the Descriptor 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/DescriptorTrait.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/DescriptorTrait.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/DescriptorTrait.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/DescriptorTrait.Attributes#attributeList()` A list of the attribute IDs of the attributes supported by the cluster 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/DescriptorTrait.Attributes#clientList()` A list of cluster IDs for the client clusters present on the endpoint. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DescriptorTrait.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/DescriptorTrait.DeviceTypeStruct>?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DescriptorTrait.Attributes#deviceTypeList()` A list of device types and revisions to declare endpoint conformance. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DescriptorTrait.Attributes#endpointUniqueId()` |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DescriptorTrait.Feature` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DescriptorTrait.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/DescriptorTrait.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.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html>?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DescriptorTrait.Attributes#partsList()` The composition of the device type instance, including the endpoints in this list. |
| `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/DescriptorTrait.Attributes#serverList()` A list of cluster IDs for the server clusters present on the endpoint. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DescriptorTrait.SemanticTagStruct>?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DescriptorTrait.Attributes#tagList()` A list of tags used for disambiguating and providing information about endpoints. |

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

### clientList

```
val clientList: List<UInt>?
```

A list of cluster IDs for the client clusters present on the endpoint.

**Access type:** Read

### clusterRevision

```
val clusterRevision: UShort
```

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

### deviceTypeList

```
val deviceTypeList: List<DescriptorTrait.DeviceTypeStruct>?
```

A list of device types and revisions to declare endpoint conformance.

**Access type:** Read

### endpointUniqueId

```
val endpointUniqueId: String?
```

### featureMap

```
val featureMap: DescriptorTrait.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.

### partsList

```
val partsList: List<UShort>?
```

The composition of the device type instance, including the endpoints in this list.

**Access type:** Read

### serverList

```
val serverList: List<UInt>?
```

A list of cluster IDs for the server clusters present on the endpoint.

**Access type:** Read

### tagList

```
val tagList: List<DescriptorTrait.SemanticTagStruct>?
```

A list of tags used for disambiguating and providing information about endpoints.

**Access type:** Read