# MediaInputTrait.InputInfoStruct

# MediaInputTrait.InputInfoStruct


```
class MediaInputTrait.InputInfoStruct : ClusterStruct
```

<br />

*** ** * ** ***

Information about an input.

## 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/MediaInputTrait.InputInfoStruct.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/MediaInputTrait.InputInfoStruct#InputInfoStruct(kotlin.UByte,com.google.home.matter.standard.MediaInputTrait.InputTypeEnum,kotlin.String,kotlin.String)( index: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html, inputType: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MediaInputTrait.InputTypeEnum, name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, description: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html )` Creates the InputInfoStruct 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/MediaInputTrait.InputInfoStruct#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/MediaInputTrait.InputInfoStruct#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/MediaInputTrait.InputInfoStruct#description()` The user-editable description of the input. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MediaInputTrait.InputInfoStruct#index()` The index of the input. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MediaInputTrait.InputTypeEnum` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MediaInputTrait.InputInfoStruct#inputType()` The type of the input. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MediaInputTrait.InputInfoStruct#name()` The name of the input. |

## Public constructors

### InputInfoStruct

```
InputInfoStruct(
    index: UByte,
    inputType: MediaInputTrait.InputTypeEnum = InputTypeEnum.Internal,
    name: String = "",
    description: String = ""
)
```

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

### description

```
val description: String
```

The user-editable description of the input.

### index

```
val index: UByte
```

The index of the input.

### inputType

```
val inputType: MediaInputTrait.InputTypeEnum
```

The type of the input.

### name

```
val name: String
```

The name of the input.