# PushAvStreamTransportCommands

# PushAvStreamTransportCommands


```
@Generated(value = ["GoogleHomePlatformCodegen"])
interface PushAvStreamTransportCommands
```

<br />

Known direct subclasses [PushAvStreamTransport](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransport)

|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransport` | API for the PushAvStreamTransport trait. |

*** ** * ** ***

Commands for the PushAvStreamTransport trait.

> [!WARNING]
> This trait is restricted and not available for general use.

## Summary

| ### Public functions |
|---|---|
| `suspend https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.AllocatePushTransportCommand.Response` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportCommands#allocatePushTransport(com.google.home.matter.standard.PushAvStreamTransportTrait.TransportOptionsStruct)( transportOptions: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TransportOptionsStruct )` Allocate a push transport. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.AllocatePushTransportCommand.Response>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportCommands#allocatePushTransportBatchable(com.google.home.matter.standard.PushAvStreamTransportTrait.TransportOptionsStruct)( transportOptions: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TransportOptionsStruct )` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportCommands#allocatePushTransport(com.google.home.matter.standard.PushAvStreamTransportTrait.TransportOptionsStruct)` command. |
| `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportCommands#deallocatePushTransport(kotlin.UShort)(connectionId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html)` Deallocate a push transport. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportCommands#deallocatePushTransportBatchable(kotlin.UShort)(connectionId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html)` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportCommands#deallocatePushTransport(kotlin.UShort)` command. |
| `suspend https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.FindTransportCommand.Response` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportCommands#findTransport(kotlin.UShort)(connectionId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html?)` Get the transport configuration for the specified push transport or all allocated transports if no `connectionId` is specified. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.FindTransportCommand.Response>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportCommands#findTransportBatchable(kotlin.UShort)(connectionId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html?)` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportCommands#findTransport(kotlin.UShort)` command. |
| `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportCommands#manuallyTriggerTransport(kotlin.UShort,com.google.home.matter.standard.PushAvStreamTransportTrait.TriggerActivationReasonEnum,kotlin.Function1)( connectionId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, activationReason: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TriggerActivationReasonEnum, optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.ManuallyTriggerTransportCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html )` Manually trigger a transport. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportCommands#manuallyTriggerTransportBatchable(kotlin.UShort,com.google.home.matter.standard.PushAvStreamTransportTrait.TriggerActivationReasonEnum,kotlin.Function1)( connectionId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, activationReason: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TriggerActivationReasonEnum, optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.ManuallyTriggerTransportCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html )` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportCommands#manuallyTriggerTransport(kotlin.UShort,com.google.home.matter.standard.PushAvStreamTransportTrait.TriggerActivationReasonEnum,kotlin.Function1)` command. |
| `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportCommands#modifyPushTransport(kotlin.UShort,com.google.home.matter.standard.PushAvStreamTransportTrait.TransportOptionsStruct)( connectionId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, transportOptions: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TransportOptionsStruct )` Modify the transport status. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportCommands#modifyPushTransportBatchable(kotlin.UShort,com.google.home.matter.standard.PushAvStreamTransportTrait.TransportOptionsStruct)( connectionId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, transportOptions: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TransportOptionsStruct )` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportCommands#modifyPushTransport(kotlin.UShort,com.google.home.matter.standard.PushAvStreamTransportTrait.TransportOptionsStruct)` command. |
| `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportCommands#setTransportStatus(kotlin.UShort,com.google.home.matter.standard.PushAvStreamTransportTrait.TransportStatusEnum)( connectionId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html?, transportStatus: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TransportStatusEnum )` Set the transport status. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportCommands#setTransportStatusBatchable(kotlin.UShort,com.google.home.matter.standard.PushAvStreamTransportTrait.TransportStatusEnum)( connectionId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html?, transportStatus: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TransportStatusEnum )` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportCommands#setTransportStatus(kotlin.UShort,com.google.home.matter.standard.PushAvStreamTransportTrait.TransportStatusEnum)` command. |

## Public functions

### allocatePushTransport

```
suspend fun allocatePushTransport(
    transportOptions: PushAvStreamTransportTrait.TransportOptionsStruct
): PushAvStreamTransportTrait.AllocatePushTransportCommand.Response
```

Allocate a push transport.

| Parameters |
|---|---|
| `transportOptions: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TransportOptionsStruct` | The transport options to allocate. |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.AllocatePushTransportCommand.Response` | Contains the allocated transport. |

### allocatePushTransportBatchable

```
fun allocatePushTransportBatchable(
    transportOptions: PushAvStreamTransportTrait.TransportOptionsStruct
): BatchableCommand<PushAvStreamTransportTrait.AllocatePushTransportCommand.Response>
```

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportCommands#allocatePushTransport(com.google.home.matter.standard.PushAvStreamTransportTrait.TransportOptionsStruct)` command.

Allocate a push transport.

| Parameters |
|---|---|
| `transportOptions: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TransportOptionsStruct` | The transport options to allocate. |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.AllocatePushTransportCommand.Response>` | BatchableCommand |

### deallocatePushTransport

```
suspend fun deallocatePushTransport(connectionId: UShort): Unit
```

Deallocate a push transport.

### deallocatePushTransportBatchable

```
fun deallocatePushTransportBatchable(connectionId: UShort): BatchableCommand<Unit>
```

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportCommands#deallocatePushTransport(kotlin.UShort)` command.

Deallocate a push transport.

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | BatchableCommand |

### findTransport

```
suspend fun findTransport(connectionId: UShort?): PushAvStreamTransportTrait.FindTransportCommand.Response
```

Get the transport configuration for the specified push transport or all allocated transports if no `connectionId` is specified.

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.FindTransportCommand.Response` | Contains the transport configuration. |

### findTransportBatchable

```
fun findTransportBatchable(connectionId: UShort?): BatchableCommand<PushAvStreamTransportTrait.FindTransportCommand.Response>
```

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportCommands#findTransport(kotlin.UShort)` command.

Get the transport configuration for the specified push transport or all allocated transports if no `connectionId` is specified.

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.FindTransportCommand.Response>` | BatchableCommand |

### manuallyTriggerTransport

```
suspend fun manuallyTriggerTransport(
    connectionId: UShort,
    activationReason: PushAvStreamTransportTrait.TriggerActivationReasonEnum,
    optionalArgs: PushAvStreamTransportTrait.ManuallyTriggerTransportCommand.OptionalArgs.() -> Unit = {}
): Unit
```

Manually trigger a transport.

| Parameters |
|---|---|
| `activationReason: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TriggerActivationReasonEnum` | The reason for transport trigger activation. Valid values are defined in `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TriggerActivationReasonEnum`. |
| `optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.ManuallyTriggerTransportCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html = {}` | Receiver for the optional arguments of this command |

| Returns |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | Contains the transport configuration. |

### manuallyTriggerTransportBatchable

```
fun manuallyTriggerTransportBatchable(
    connectionId: UShort,
    activationReason: PushAvStreamTransportTrait.TriggerActivationReasonEnum,
    optionalArgs: PushAvStreamTransportTrait.ManuallyTriggerTransportCommand.OptionalArgs.() -> Unit = {}
): BatchableCommand<Unit>
```

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportCommands#manuallyTriggerTransport(kotlin.UShort,com.google.home.matter.standard.PushAvStreamTransportTrait.TriggerActivationReasonEnum,kotlin.Function1)` command.

Manually trigger a transport.

| Parameters |
|---|---|
| `activationReason: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TriggerActivationReasonEnum` | The reason for transport trigger activation. Valid values are defined in `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TriggerActivationReasonEnum`. |
| `optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.ManuallyTriggerTransportCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html = {}` | Receiver for the optional arguments of this command |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | BatchableCommand |

### modifyPushTransport

```
suspend fun modifyPushTransport(
    connectionId: UShort,
    transportOptions: PushAvStreamTransportTrait.TransportOptionsStruct
): Unit
```

Modify the transport status.

| Parameters |
|---|---|
| `transportOptions: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TransportOptionsStruct` | The transport option to set for a connection. Valid values are defined in `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TransportOptionsStruct`. |

### modifyPushTransportBatchable

```
fun modifyPushTransportBatchable(
    connectionId: UShort,
    transportOptions: PushAvStreamTransportTrait.TransportOptionsStruct
): BatchableCommand<Unit>
```

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportCommands#modifyPushTransport(kotlin.UShort,com.google.home.matter.standard.PushAvStreamTransportTrait.TransportOptionsStruct)` command.

Modify the transport status.

| Parameters |
|---|---|
| `transportOptions: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TransportOptionsStruct` | The transport option to set for a connection. Valid values are defined in `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TransportOptionsStruct`. |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | BatchableCommand |

### setTransportStatus

```
suspend fun setTransportStatus(
    connectionId: UShort?,
    transportStatus: PushAvStreamTransportTrait.TransportStatusEnum
): Unit
```

Set the transport status.

| Parameters |
|---|---|
| `transportStatus: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TransportStatusEnum` | The transport status to set. Valid values are defined in `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TransportStatusEnum`. |

### setTransportStatusBatchable

```
fun setTransportStatusBatchable(
    connectionId: UShort?,
    transportStatus: PushAvStreamTransportTrait.TransportStatusEnum
): BatchableCommand<Unit>
```

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportCommands#setTransportStatus(kotlin.UShort,com.google.home.matter.standard.PushAvStreamTransportTrait.TransportStatusEnum)` command.

Set the transport status.

| Parameters |
|---|---|
| `transportStatus: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TransportStatusEnum` | The transport status to set. Valid values are defined in `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TransportStatusEnum`. |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | BatchableCommand |