# Google Cloud Video Transcoder V1 Client - Class Input (1.4.0)

1.4.0 (latest) 1.3.2 1.2.0 1.1.0 1.0.3 0.10.5 0.9.1 0.8.2 0.7.1 0.6.0 0.5.3 Reference documentation and code samples for the Google Cloud Video Transcoder V1 Client class Input.

Input asset.

Generated from protobuf message `google.cloud.video.transcoder.v1.Input`

## Namespace

Google \\ Cloud \\ Video \\ Transcoder \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ key` | `string` A unique key for this input. Must be specified when using advanced mapping and edit lists. |
| `↳ uri` | `string` URI of the media. Input files must be at least 5 seconds in duration and stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`). If empty, the value is populated from [Job.input_uri](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.Job#_Google_Cloud_Video_Transcoder_V1_Job__getInputUri__). See [Supported input and output formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats). |
| `↳ preprocessing_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.PreprocessingConfig` Preprocessing configurations. |
| `↳ attributes` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.InputAttributes` Optional. Input Attributes. |

### getKey

A unique key for this input. Must be specified when using advanced
mapping and edit lists.

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

### setKey

A unique key for this input. Must be specified when using advanced
mapping and edit lists.

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

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

### getUri

URI of the media. Input files must be at least 5 seconds in duration and
stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).

If empty, the value is populated from
[Job.input_uri](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.Job#_Google_Cloud_Video_Transcoder_V1_Job__getInputUri__). See
[Supported input and output
formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).

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

### setUri

URI of the media. Input files must be at least 5 seconds in duration and
stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).

If empty, the value is populated from
[Job.input_uri](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.Job#_Google_Cloud_Video_Transcoder_V1_Job__getInputUri__). See
[Supported input and output
formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).

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

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

### getPreprocessingConfig

Preprocessing configurations.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.PreprocessingConfig|null` |   |

### hasPreprocessingConfig

### clearPreprocessingConfig

### setPreprocessingConfig

Preprocessing configurations.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.PreprocessingConfig` |

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

### getAttributes

Optional. Input Attributes.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.InputAttributes|null` |   |

### hasAttributes

### clearAttributes

### setAttributes

Optional. Input Attributes.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.InputAttributes` |

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