# ActionsTrait.EndpointListStruct

# ActionsTrait.EndpointListStruct


```
class ActionsTrait.EndpointListStruct : ClusterStruct
```

<br />

*** ** * ** ***

The details of a single endpoint list, a set of endpoints that have some logical relation.

## 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/ActionsTrait.EndpointListStruct.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/ActionsTrait.EndpointListStruct#EndpointListStruct(kotlin.UShort,kotlin.String,com.google.home.matter.standard.ActionsTrait.EndpointListTypeEnum,kotlin.collections.List)( endpointListId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, type: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ActionsTrait.EndpointListTypeEnum, endpoints: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html> )` Creates the EndpointListStruct 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/ActionsTrait.EndpointListStruct#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/ActionsTrait.EndpointListStruct#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-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ActionsTrait.EndpointListStruct#endpointListId()` |
| `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/ActionsTrait.EndpointListStruct#endpoints()` A list of endpoint numbers. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ActionsTrait.EndpointListStruct#name()` The name, as assigned by the user or automatically by the server, associated with the set of endpoints in this list. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ActionsTrait.EndpointListTypeEnum` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ActionsTrait.EndpointListStruct#type()` The type of endpoint list. |

## Public constructors

### EndpointListStruct

```
EndpointListStruct(
    endpointListId: UShort,
    name: String = "",
    type: ActionsTrait.EndpointListTypeEnum = EndpointListTypeEnum.Other,
    endpoints: List<UShort> = emptyList()
)
```

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

### endpointListId

```
val endpointListId: UShort
```

### endpoints

```
val endpoints: List<UShort>
```

A list of endpoint numbers.

### name

```
val name: String
```

The name, as assigned by the user or automatically by the server, associated with the set of endpoints in this list. This can be used for identifying the action to the user by the client. For example, "living room".

### type

```
val type: ActionsTrait.EndpointListTypeEnum
```

The type of endpoint list.