# Interface InputOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.video.transcoder.v1.InputOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.video.transcoder.v1.InputOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.video.transcoder.v1.InputOrBuilder)

    public interface InputOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getKey()

    public abstract String getKey()

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

`string key = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The key. |

### getKeyBytes()

    public abstract ByteString getKeyBytes()

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

`string key = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for key. |

### getPreprocessingConfig()

    public abstract PreprocessingConfig getPreprocessingConfig()

Preprocessing configurations.

`.google.events.cloud.video.transcoder.v1.PreprocessingConfig preprocessing_config = 3;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.video.transcoder.v1.PreprocessingConfig` | The preprocessingConfig. |

### getPreprocessingConfigOrBuilder()

    public abstract PreprocessingConfigOrBuilder getPreprocessingConfigOrBuilder()

Preprocessing configurations.

`.google.events.cloud.video.transcoder.v1.PreprocessingConfig preprocessing_config = 3;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.video.transcoder.v1.PreprocessingConfigOrBuilder` |   |

### getUri()

    public abstract String 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`. See
[Supported input and output
formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).

`string uri = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The uri. |

### getUriBytes()

    public abstract ByteString getUriBytes()

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`. See
[Supported input and output
formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).

`string uri = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for uri. |

### hasPreprocessingConfig()

    public abstract boolean hasPreprocessingConfig()

Preprocessing configurations.

`.google.events.cloud.video.transcoder.v1.PreprocessingConfig preprocessing_config = 3;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the preprocessingConfig field is set. |