# MediaPlaybackTrait.TrackStruct


```
class MediaPlaybackTrait.TrackStruct : ClusterStruct
```

<br />

*** ** * ** ***

A track.

## 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/MediaPlaybackTrait.TrackStruct.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/MediaPlaybackTrait.TrackStruct#TrackStruct(kotlin.String,com.google.home.matter.standard.MediaPlaybackTrait.TrackAttributesStruct)( id: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, trackAttributes: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MediaPlaybackTrait.TrackAttributesStruct? )` Creates the TrackStruct 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/MediaPlaybackTrait.TrackStruct#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/MediaPlaybackTrait.TrackStruct#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/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MediaPlaybackTrait.TrackStruct#id()` Track ID. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MediaPlaybackTrait.TrackAttributesStruct?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MediaPlaybackTrait.TrackStruct#trackAttributes()` Track attributes. |

## Public constructors

### TrackStruct

```
TrackStruct(
    id: String = "",
    trackAttributes: MediaPlaybackTrait.TrackAttributesStruct? = null
)
```

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

### id

```
val id: String
```

Track ID.

### trackAttributes

```
val trackAttributes: MediaPlaybackTrait.TrackAttributesStruct?
```

Track attributes.