# Google Cloud Video Live Stream V1 Client - Class InputConfig (1.4.0)

1.4.0 (latest) 1.3.2 1.2.1 1.1.3 1.0.0 0.7.5 0.6.2 0.5.0 0.4.2 0.3.2 0.2.6 Reference documentation and code samples for the Google Cloud Video Live Stream V1 Client class InputConfig.

Configuration for the input sources of a channel.

Generated from protobuf message `google.cloud.video.livestream.v1.InputConfig`

## Namespace

Google \\ Cloud \\ Video \\ LiveStream \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ input_switch_mode` | `int` Input switch mode. Default mode is `FAILOVER_PREFER_PRIMARY`. |

### getInputSwitchMode

Input switch mode. Default mode is `FAILOVER_PREFER_PRIMARY`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [InputSwitchMode](https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.InputConfig.InputSwitchMode). |

### setInputSwitchMode

Input switch mode. Default mode is `FAILOVER_PREFER_PRIMARY`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [InputSwitchMode](https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.InputConfig.InputSwitchMode). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |