# PushAvStreamTransportTrait.ContainerOptionsStruct

# PushAvStreamTransportTrait.ContainerOptionsStruct


```
class PushAvStreamTransportTrait.ContainerOptionsStruct : ClusterStruct
```

<br />

*** ** * ** ***

Defines the options related to the container format used for an AV stream.

## 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/PushAvStreamTransportTrait.ContainerOptionsStruct.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/PushAvStreamTransportTrait.ContainerOptionsStruct#ContainerOptionsStruct(com.google.home.matter.standard.PushAvStreamTransportTrait.ContainerFormatEnum,com.google.home.matter.serialization.OptionalValue)( containerType: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.ContainerFormatEnum, cmafContainerOptions: 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/PushAvStreamTransportTrait.CmafContainerOptionsStruct> )` Creates the ContainerOptionsStruct 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/PushAvStreamTransportTrait.ContainerOptionsStruct#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/PushAvStreamTransportTrait.ContainerOptionsStruct#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/PushAvStreamTransportTrait.CmafContainerOptionsStruct>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.ContainerOptionsStruct#cmafContainerOptions()` An optional field containing a `CMAFContainerOptionsStruct` when the containerType is CMAF, allowing for detailed configuration of CMAF parameters. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.ContainerFormatEnum` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.ContainerOptionsStruct#containerType()` The container format. |

## Public constructors

### ContainerOptionsStruct

```
ContainerOptionsStruct(
    containerType: PushAvStreamTransportTrait.ContainerFormatEnum = ContainerFormatEnum.CMAF,
    cmafContainerOptions: OptionalValue<PushAvStreamTransportTrait.CmafContainerOptionsStruct> = OptionalValue.absent()
)
```

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

### cmafContainerOptions

```
val cmafContainerOptions: OptionalValue<PushAvStreamTransportTrait.CmafContainerOptionsStruct>
```

An optional field containing a `CMAFContainerOptionsStruct` when the containerType is CMAF, allowing for detailed configuration of CMAF parameters.

### containerType

```
val containerType: PushAvStreamTransportTrait.ContainerFormatEnum
```

The container format.