# AudioOutputTrait.OutputInfoStruct

# AudioOutputTrait.OutputInfoStruct


```
class AudioOutputTrait.OutputInfoStruct : ClusterStruct
```

<br />

*** ** * ** ***

Contains information about an output.

## 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/AudioOutputTrait.OutputInfoStruct.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/AudioOutputTrait.OutputInfoStruct#OutputInfoStruct(kotlin.UByte,com.google.home.matter.standard.AudioOutputTrait.OutputTypeEnum,kotlin.String)( index: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html, outputType: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AudioOutputTrait.OutputTypeEnum, name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html )` Creates the OutputInfoStruct 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/AudioOutputTrait.OutputInfoStruct#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/AudioOutputTrait.OutputInfoStruct#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-byte/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AudioOutputTrait.OutputInfoStruct#index()` The unique index of the output. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AudioOutputTrait.OutputInfoStruct#name()` The name of the output. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AudioOutputTrait.OutputTypeEnum` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AudioOutputTrait.OutputInfoStruct#outputType()` The type of the output. |

## Public constructors

### OutputInfoStruct

```
OutputInfoStruct(
    index: UByte,
    outputType: AudioOutputTrait.OutputTypeEnum = OutputTypeEnum.HDMI,
    name: String = ""
)
```

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

### index

```
val index: UByte
```

The unique index of the output.

### name

```
val name: String
```

The name of the output.

### outputType

```
val outputType: AudioOutputTrait.OutputTypeEnum
```

The type of the output. Valid values are defined in `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AudioOutputTrait.OutputTypeEnum`.