# Google Cloud Video Transcoder V1 Client - Class TrackDefinition (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 TrackDefinition.

Track definition for the input asset.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ input_track` | `int` The input track. |
| `↳ languages` | `string[]` Optional. A list of languages spoken in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see <https://www.unicode.org/reports/tr35/#Unicode_locale_identifier>. |
| `↳ detect_languages` | `bool` Optional. Whether to automatically detect the languages present in the track. If true, the system will attempt to identify all the languages present in the track and populate the languages field. |
| `↳ detected_languages` | `string[]` Output only. A list of languages detected in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see <https://www.unicode.org/reports/tr35/#Unicode_locale_identifier>. This field is only populated if the detect_languages field is set to true. |

### getInputTrack

The input track.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasInputTrack

### clearInputTrack

### setInputTrack

The input track.

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

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

### getLanguages

Optional. A list of languages spoken in the input asset, represented by a
BCP 47 language code, such as "en-US" or "sr-Latn". For more information,
see <https://www.unicode.org/reports/tr35/#Unicode_locale_identifier>.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setLanguages

Optional. A list of languages spoken in the input asset, represented by a
BCP 47 language code, such as "en-US" or "sr-Latn". For more information,
see <https://www.unicode.org/reports/tr35/#Unicode_locale_identifier>.

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

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

### getDetectLanguages

Optional. Whether to automatically detect the languages present in the
track. If true, the system will attempt to identify all the languages
present in the track and populate the languages field.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setDetectLanguages

Optional. Whether to automatically detect the languages present in the
track. If true, the system will attempt to identify all the languages
present in the track and populate the languages field.

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

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

### getDetectedLanguages

Output only. A list of languages detected in the input asset, represented
by a BCP 47 language code, such as "en-US" or "sr-Latn". For more
information, see
<https://www.unicode.org/reports/tr35/#Unicode_locale_identifier>.

This field is only populated if the detect_languages field is set to true.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setDetectedLanguages

Output only. A list of languages detected in the input asset, represented
by a BCP 47 language code, such as "en-US" or "sr-Latn". For more
information, see
<https://www.unicode.org/reports/tr35/#Unicode_locale_identifier>.

This field is only populated if the detect_languages field is set to true.

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

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