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 \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description | 
| data | arrayOptional. Data for populating the Message object. | 
| ↳ input_track | intThe input track. | 
| ↳ languages | arrayOptional. 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 | boolOptional. 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 | arrayOutput 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 | 
| Google\Protobuf\Internal\RepeatedField | |
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 | 
| Google\Protobuf\Internal\RepeatedField | |
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 | |