# MediaPlaybackTrait.TrackAttributesStruct


```
class MediaPlaybackTrait.TrackAttributesStruct : ClusterStruct
```

<br />

*** ** * ** ***

Attributes of 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.TrackAttributesStruct.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.TrackAttributesStruct#TrackAttributesStruct(kotlin.String,com.google.home.matter.serialization.OptionalValue)( languageCode: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, displayName: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?> )` Creates the TrackAttributesStruct 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.TrackAttributesStruct#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.TrackAttributesStruct#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://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MediaPlaybackTrait.TrackAttributesStruct#displayName()` Display name. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MediaPlaybackTrait.TrackAttributesStruct#languageCode()` Language code. |

## Public constructors

### TrackAttributesStruct

```
TrackAttributesStruct(
    languageCode: String = "",
    displayName: OptionalValue<String?> = OptionalValue.absent()
)
```

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

### displayName

```
val displayName: OptionalValue<String?>
```

Display name.

### languageCode

```
val languageCode: String
```

Language code.