# ChannelTrait.ChannelPagingStruct


```
class ChannelTrait.ChannelPagingStruct : ClusterStruct
```

<br />

*** ** * ** ***

The paging structure that includes the previous and next pagination tokens.

## 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/ChannelTrait.ChannelPagingStruct.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/ChannelTrait.ChannelPagingStruct#ChannelPagingStruct(com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue)( previousToken: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.PageTokenStruct?>, nextToken: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.PageTokenStruct?> )` Creates the ChannelPagingStruct 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/ChannelTrait.ChannelPagingStruct#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/ChannelTrait.ChannelPagingStruct#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://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.PageTokenStruct?>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.ChannelPagingStruct#nextToken()` The token to retrieve the next page. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.PageTokenStruct?>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.ChannelPagingStruct#previousToken()` The token to retrieve the preceding page. |

## Public constructors

### ChannelPagingStruct

```
ChannelPagingStruct(
    previousToken: OptionalValue<ChannelTrait.PageTokenStruct?> = OptionalValue.absent(),
    nextToken: OptionalValue<ChannelTrait.PageTokenStruct?> = OptionalValue.absent()
)
```

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

### nextToken

```
val nextToken: OptionalValue<ChannelTrait.PageTokenStruct?>
```

The token to retrieve the next page.

### previousToken

```
val previousToken: OptionalValue<ChannelTrait.PageTokenStruct?>
```

The token to retrieve the preceding page.