Class TextStream.Builder (1.0.4)
1.86.0 (latest)
1.84.0
1.82.0
1.81.0
1.79.0
1.77.0
1.75.0
1.74.0
1.73.0
1.72.0
1.71.0
1.69.0
1.67.0
1.66.0
1.63.0
1.62.0
1.61.0
1.59.0
1.58.0
1.57.0
1.56.0
1.55.0
1.54.0
1.53.0
1.52.0
1.51.0
1.50.0
1.48.0
1.47.0
1.46.0
1.45.0
1.44.0
1.43.0
1.42.0
1.41.0
1.40.0
1.39.0
1.38.0
1.36.0
1.35.0
1.34.0
1.33.0
1.32.0
1.31.0
1.30.0
1.29.0
1.28.0
1.27.0
1.26.0
1.23.0
1.22.0
1.21.0
1.20.0
1.19.0
1.18.0
1.17.0
1.16.0
1.15.0
1.14.0
1.13.0
1.12.0
1.11.0
1.10.0
1.8.0
1.7.0
1.6.0
1.5.0
1.4.0
1.3.0
1.2.5
1.0.4
0.4.3
public static final class TextStream . Builder extends GeneratedMessageV3 . Builder<TextStream . Builder > implements TextStreamOrBuilder
Encoding of a text stream. For example, closed captions or subtitles.
Protobuf type google.cloud.video.transcoder.v1.TextStream
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addAllMapping(Iterable<? extends TextStream.TextMapping> values)
public TextStream . Builder addAllMapping ( Iterable <? extends TextStream . TextMapping > values )
The mapping for the Job.edit_list atoms with text EditAtom.inputs.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
Parameter
Name
Description
values
Iterable <? extends com.google.cloud.video.transcoder.v1.TextStream.TextMapping >
Returns
addMapping(TextStream.TextMapping value)
public TextStream . Builder addMapping ( TextStream . TextMapping value )
The mapping for the Job.edit_list atoms with text EditAtom.inputs.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
Parameter
Returns
addMapping(TextStream.TextMapping.Builder builderForValue)
public TextStream . Builder addMapping ( TextStream . TextMapping . Builder builderForValue )
The mapping for the Job.edit_list atoms with text EditAtom.inputs.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
Parameter
Returns
addMapping(int index, TextStream.TextMapping value)
public TextStream . Builder addMapping ( int index , TextStream . TextMapping value )
The mapping for the Job.edit_list atoms with text EditAtom.inputs.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
Parameters
Returns
addMapping(int index, TextStream.TextMapping.Builder builderForValue)
public TextStream . Builder addMapping ( int index , TextStream . TextMapping . Builder builderForValue )
The mapping for the Job.edit_list atoms with text EditAtom.inputs.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
Parameters
Returns
addMappingBuilder()
public TextStream . TextMapping . Builder addMappingBuilder ()
The mapping for the Job.edit_list atoms with text EditAtom.inputs.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
Returns
addMappingBuilder(int index)
public TextStream . TextMapping . Builder addMappingBuilder ( int index )
The mapping for the Job.edit_list atoms with text EditAtom.inputs.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
Parameter
Name
Description
index
int
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TextStream . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public TextStream build ()
Returns
buildPartial()
public TextStream buildPartial ()
Returns
clear()
public TextStream . Builder clear ()
Returns
Overrides
clearCodec()
public TextStream . Builder clearCodec ()
The codec for this text stream. The default is webvtt.
Supported text codecs:
srt
ttml
cea608
cea708
webvtt
string codec = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public TextStream . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearMapping()
public TextStream . Builder clearMapping ()
The mapping for the Job.edit_list atoms with text EditAtom.inputs.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public TextStream . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clone()
public TextStream . Builder clone ()
Returns
Overrides
getCodec()
The codec for this text stream. The default is webvtt.
Supported text codecs:
srt
ttml
cea608
cea708
webvtt
string codec = 1;
Returns
Type
Description
String
The codec.
getCodecBytes()
public ByteString getCodecBytes ()
The codec for this text stream. The default is webvtt.
Supported text codecs:
srt
ttml
cea608
cea708
webvtt
string codec = 1;
Returns
getDefaultInstanceForType()
public TextStream getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getMapping(int index)
public TextStream . TextMapping getMapping ( int index )
The mapping for the Job.edit_list atoms with text EditAtom.inputs.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
Parameter
Name
Description
index
int
Returns
getMappingBuilder(int index)
public TextStream . TextMapping . Builder getMappingBuilder ( int index )
The mapping for the Job.edit_list atoms with text EditAtom.inputs.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
Parameter
Name
Description
index
int
Returns
getMappingBuilderList()
public List<TextStream . TextMapping . Builder > getMappingBuilderList ()
The mapping for the Job.edit_list atoms with text EditAtom.inputs.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
Returns
getMappingCount()
public int getMappingCount ()
The mapping for the Job.edit_list atoms with text EditAtom.inputs.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
Returns
getMappingList()
public List<TextStream . TextMapping > getMappingList ()
The mapping for the Job.edit_list atoms with text EditAtom.inputs.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
Returns
getMappingOrBuilder(int index)
public TextStream . TextMappingOrBuilder getMappingOrBuilder ( int index )
The mapping for the Job.edit_list atoms with text EditAtom.inputs.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
Parameter
Name
Description
index
int
Returns
getMappingOrBuilderList()
public List <? extends TextStream . TextMappingOrBuilder > getMappingOrBuilderList ()
The mapping for the Job.edit_list atoms with text EditAtom.inputs.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
Returns
Type
Description
List <? extends com.google.cloud.video.transcoder.v1.TextStream.TextMappingOrBuilder >
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(TextStream other)
public TextStream . Builder mergeFrom ( TextStream other )
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TextStream . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public TextStream . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TextStream . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
removeMapping(int index)
public TextStream . Builder removeMapping ( int index )
The mapping for the Job.edit_list atoms with text EditAtom.inputs.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
Parameter
Name
Description
index
int
Returns
setCodec(String value)
public TextStream . Builder setCodec ( String value )
The codec for this text stream. The default is webvtt.
Supported text codecs:
srt
ttml
cea608
cea708
webvtt
string codec = 1;
Parameter
Name
Description
value
String The codec to set.
Returns
setCodecBytes(ByteString value)
public TextStream . Builder setCodecBytes ( ByteString value )
The codec for this text stream. The default is webvtt.
Supported text codecs:
srt
ttml
cea608
cea708
webvtt
string codec = 1;
Parameter
Name
Description
value
ByteString The bytes for codec to set.
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public TextStream . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setMapping(int index, TextStream.TextMapping value)
public TextStream . Builder setMapping ( int index , TextStream . TextMapping value )
The mapping for the Job.edit_list atoms with text EditAtom.inputs.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
Parameters
Returns
setMapping(int index, TextStream.TextMapping.Builder builderForValue)
public TextStream . Builder setMapping ( int index , TextStream . TextMapping . Builder builderForValue )
The mapping for the Job.edit_list atoms with text EditAtom.inputs.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TextStream . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final TextStream . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-03-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-14 UTC."],[],[]]