# CameraAvStreamManagementTrait.SnapshotStreamAllocateCommand.Request

# CameraAvStreamManagementTrait.SnapshotStreamAllocateCommand.Request


```
class CameraAvStreamManagementTrait.SnapshotStreamAllocateCommand.Request : ClusterStruct
```

<br />

*** ** * ** ***

## 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/CameraAvStreamManagementTrait.SnapshotStreamAllocateCommand.Request.CommandFields : 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 command's request fields. |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.SnapshotStreamAllocateCommand.Request#Request(com.google.home.matter.standard.CameraAvStreamManagementTrait.ImageCodecEnum,kotlin.UShort,com.google.home.matter.standard.CameraAvStreamManagementTrait.VideoResolutionStruct,com.google.home.matter.standard.CameraAvStreamManagementTrait.VideoResolutionStruct,kotlin.UByte,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue)( imageCodec: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.ImageCodecEnum, maxFrameRate: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, minResolution: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.VideoResolutionStruct, maxResolution: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.VideoResolutionStruct, quality: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html, watermarkEnabled: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html>, osdEnabled: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html> )` |

| ### 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/CameraAvStreamManagementTrait.SnapshotStreamAllocateCommand.Request#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/CameraAvStreamManagementTrait.SnapshotStreamAllocateCommand.Request#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/standard/CameraAvStreamManagementTrait.ImageCodecEnum` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.SnapshotStreamAllocateCommand.Request#imageCodec()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.SnapshotStreamAllocateCommand.Request#maxFrameRate()` |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.VideoResolutionStruct` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.SnapshotStreamAllocateCommand.Request#maxResolution()` |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.VideoResolutionStruct` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.SnapshotStreamAllocateCommand.Request#minResolution()` |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.SnapshotStreamAllocateCommand.Request#osdEnabled()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.SnapshotStreamAllocateCommand.Request#quality()` |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.SnapshotStreamAllocateCommand.Request#watermarkEnabled()` |

## Public constructors

### Request

```
Request(
    imageCodec: CameraAvStreamManagementTrait.ImageCodecEnum = ImageCodecEnum.JPEG,
    maxFrameRate: UShort,
    minResolution: CameraAvStreamManagementTrait.VideoResolutionStruct = VideoResolutionStruct(),
    maxResolution: CameraAvStreamManagementTrait.VideoResolutionStruct = VideoResolutionStruct(),
    quality: UByte,
    watermarkEnabled: OptionalValue<Boolean> = OptionalValue.absent(),
    osdEnabled: OptionalValue<Boolean> = OptionalValue.absent()
)
```

## 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

### imageCodec

```
val imageCodec: CameraAvStreamManagementTrait.ImageCodecEnum
```

### maxFrameRate

```
val maxFrameRate: UShort
```

### maxResolution

```
val maxResolution: CameraAvStreamManagementTrait.VideoResolutionStruct
```

### minResolution

```
val minResolution: CameraAvStreamManagementTrait.VideoResolutionStruct
```

### osdEnabled

```
val osdEnabled: OptionalValue<Boolean>
```

### quality

```
val quality: UByte
```

### watermarkEnabled

```
val watermarkEnabled: OptionalValue<Boolean>
```