
target.apidocs.com.google.api.services.transcoder.v1.model.TextStream.html Maven / Gradle / Ivy
TextStream (Transcoder API v1-rev20240124-2.0.0)
com.google.api.services.transcoder.v1.model
Class TextStream
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.transcoder.v1.model.TextStream
-
public final class TextStream
extends com.google.api.client.json.GenericJson
Encoding of a text stream. For example, closed captions or subtitles.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Transcoder API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
TextStream()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
TextStream
clone()
String
getCodec()
The codec for this text stream.
String
getDisplayName()
The name for this particular text stream that will be added to the HLS/DASH manifest.
String
getLanguageCode()
The BCP-47 language code, such as `en-US` or `sr-Latn`.
List<TextMapping>
getMapping()
The mapping for the JobConfig.edit_list atoms with text EditAtom.inputs.
TextStream
set(String fieldName,
Object value)
TextStream
setCodec(String codec)
The codec for this text stream.
TextStream
setDisplayName(String displayName)
The name for this particular text stream that will be added to the HLS/DASH manifest.
TextStream
setLanguageCode(String languageCode)
The BCP-47 language code, such as `en-US` or `sr-Latn`.
TextStream
setMapping(List<TextMapping> mapping)
The mapping for the JobConfig.edit_list atoms with text EditAtom.inputs.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getCodec
public String getCodec()
The codec for this text stream. The default is `webvtt`. Supported text codecs: - `srt` -
`ttml` - `cea608` - `cea708` - `webvtt`
- Returns:
- value or
null
for none
-
setCodec
public TextStream setCodec(String codec)
The codec for this text stream. The default is `webvtt`. Supported text codecs: - `srt` -
`ttml` - `cea608` - `cea708` - `webvtt`
- Parameters:
codec
- codec or null
for none
-
getDisplayName
public String getDisplayName()
The name for this particular text stream that will be added to the HLS/DASH manifest. Not
supported in MP4 files.
- Returns:
- value or
null
for none
-
setDisplayName
public TextStream setDisplayName(String displayName)
The name for this particular text stream that will be added to the HLS/DASH manifest. Not
supported in MP4 files.
- Parameters:
displayName
- displayName or null
for none
-
getLanguageCode
public String getLanguageCode()
The BCP-47 language code, such as `en-US` or `sr-Latn`. For more information, see
https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. Not supported in MP4 files.
- Returns:
- value or
null
for none
-
setLanguageCode
public TextStream setLanguageCode(String languageCode)
The BCP-47 language code, such as `en-US` or `sr-Latn`. For more information, see
https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. Not supported in MP4 files.
- Parameters:
languageCode
- languageCode or null
for none
-
getMapping
public List<TextMapping> getMapping()
The mapping for the JobConfig.edit_list atoms with text EditAtom.inputs.
- Returns:
- value or
null
for none
-
setMapping
public TextStream setMapping(List<TextMapping> mapping)
The mapping for the JobConfig.edit_list atoms with text EditAtom.inputs.
- Parameters:
mapping
- mapping or null
for none
-
set
public TextStream set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public TextStream clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy