# Google Cloud Video Live Stream V1 Client - Class InputSwitchTask (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 InputSwitchTask.

Switches to another input stream. Automatic failover is then disabled.

Generated from protobuf message `google.cloud.video.livestream.v1.Event.InputSwitchTask`

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ input_key` | `string` The [InputAttachment.key](https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.InputAttachment#_Google_Cloud_Video_LiveStream_V1_InputAttachment__getKey__) of the input to switch to. |

### getInputKey

The
[InputAttachment.key](https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.InputAttachment#_Google_Cloud_Video_LiveStream_V1_InputAttachment__getKey__)
of the input to switch to.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setInputKey

The
[InputAttachment.key](https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.InputAttachment#_Google_Cloud_Video_LiveStream_V1_InputAttachment__getKey__)
of the input to switch to.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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