# Descriptor

# Descriptor


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

<br />

*** ** * ** ***

API for the Descriptor trait. This trait provides an interface for describing the device's capabilities and configuration.

## Summary

| ### Nested types |
|---|
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/Descriptor.Attribute : 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 trait's attributes. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/Descriptor#supports(com.google.home.matter.standard.Descriptor.Attribute)(attribute: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/Descriptor.Attribute)` |

| ### Public properties |
|---|---|
| `open https://developers.home.google.com/reference/kotlin/com/google/home/TraitFactory<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#factory()` |

| ### Inherited functions |
|---|
| From [com.google.home.matter.standard.DescriptorTrait.Attributes](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DescriptorTrait.Attributes) |---|---| | `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. | |
| From [com.google.home.TraitStateInvalidation](https://developers.home.google.com/reference/kotlin/com/google/home/TraitStateInvalidation) |---|---| | `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/TraitStateInvalidation#forceRead()()` | |

| ### Inherited properties |
|---|
| From [com.google.home.matter.standard.DescriptorTrait.Attributes](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DescriptorTrait.Attributes) |---|---| | `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. | |
| From [com.google.home.Trait](https://developers.home.google.com/reference/kotlin/com/google/home/Trait) |---|---| | `https://developers.home.google.com/reference/kotlin/com/google/home/Trait.TraitMetadata` | `https://developers.home.google.com/reference/kotlin/com/google/home/Trait#metadata()` | |

## Public functions

### supports

```
fun supports(attribute: Descriptor.Attribute): Boolean
```

## Public properties

### factory

```
open val factory: TraitFactory<Descriptor>
```