Class TextStream.Builder (1.52.0)

publicstaticfinalclass TextStream.BuilderextendsGeneratedMessageV3.Builder<TextStream.Builder>implementsTextStreamOrBuilder

Encoding of a text stream. For example, closed captions or subtitles.

Protobuf type google.cloud.video.transcoder.v1.TextStream

Implements

TextStreamOrBuilder

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addAllMapping(Iterable<? extends TextStream.TextMapping> values)

publicTextStream.BuilderaddAllMapping(Iterable<?extendsTextStream.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
Type Description
TextStream.Builder

addMapping(TextStream.TextMapping value)

publicTextStream.BuilderaddMapping(TextStream.TextMappingvalue)

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
value TextStream.TextMapping
Returns
Type Description
TextStream.Builder

addMapping(TextStream.TextMapping.Builder builderForValue)

publicTextStream.BuilderaddMapping(TextStream.TextMapping.BuilderbuilderForValue)

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
builderForValue TextStream.TextMapping.Builder
Returns
Type Description
TextStream.Builder

addMapping(int index, TextStream.TextMapping value)

publicTextStream.BuilderaddMapping(intindex,TextStream.TextMappingvalue)

The mapping for the Job.edit_list atoms with text EditAtom.inputs.

repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;

Parameters
Name Description
index int
value TextStream.TextMapping
Returns
Type Description
TextStream.Builder

addMapping(int index, TextStream.TextMapping.Builder builderForValue)

publicTextStream.BuilderaddMapping(intindex,TextStream.TextMapping.BuilderbuilderForValue)

The mapping for the Job.edit_list atoms with text EditAtom.inputs.

repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;

Parameters
Name Description
index int
builderForValue TextStream.TextMapping.Builder
Returns
Type Description
TextStream.Builder

addMappingBuilder()

publicTextStream.TextMapping.BuilderaddMappingBuilder()

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
TextStream.TextMapping.Builder

addMappingBuilder(int index)

publicTextStream.TextMapping.BuilderaddMappingBuilder(intindex)

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
Type Description
TextStream.TextMapping.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicTextStream.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TextStream.Builder
Overrides

build()

publicTextStreambuild()
Returns
Type Description
TextStream

buildPartial()

publicTextStreambuildPartial()
Returns
Type Description
TextStream

clear()

publicTextStream.Builderclear()
Returns
Type Description
TextStream.Builder
Overrides

clearCodec()

publicTextStream.BuilderclearCodec()

The codec for this text stream. The default is webvtt.

Supported text codecs:

  • srt
  • ttml
  • cea608
  • cea708
  • webvtt

string codec = 1;

Returns
Type Description
TextStream.Builder

This builder for chaining.

clearDisplayName()

publicTextStream.BuilderclearDisplayName()

The name for this particular text stream that will be added to the HLS/DASH manifest. Not supported in MP4 files.

string display_name = 4;

Returns
Type Description
TextStream.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicTextStream.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TextStream.Builder
Overrides

clearLanguageCode()

publicTextStream.BuilderclearLanguageCode()

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.

string language_code = 2;

Returns
Type Description
TextStream.Builder

This builder for chaining.

clearMapping()

publicTextStream.BuilderclearMapping()

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
TextStream.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

publicTextStream.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TextStream.Builder
Overrides

clone()

publicTextStream.Builderclone()
Returns
Type Description
TextStream.Builder
Overrides

getCodec()

publicStringgetCodec()

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()

publicByteStringgetCodecBytes()

The codec for this text stream. The default is webvtt.

Supported text codecs:

  • srt
  • ttml
  • cea608
  • cea708
  • webvtt

string codec = 1;

Returns
Type Description
ByteString

The bytes for codec.

getDefaultInstanceForType()

publicTextStreamgetDefaultInstanceForType()
Returns
Type Description
TextStream

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

publicStringgetDisplayName()

The name for this particular text stream that will be added to the HLS/DASH manifest. Not supported in MP4 files.

string display_name = 4;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

publicByteStringgetDisplayNameBytes()

The name for this particular text stream that will be added to the HLS/DASH manifest. Not supported in MP4 files.

string display_name = 4;

Returns
Type Description
ByteString

The bytes for displayName.

getLanguageCode()

publicStringgetLanguageCode()

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.

string language_code = 2;

Returns
Type Description
String

The languageCode.

getLanguageCodeBytes()

publicByteStringgetLanguageCodeBytes()

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.

string language_code = 2;

Returns
Type Description
ByteString

The bytes for languageCode.

getMapping(int index)

publicTextStream.TextMappinggetMapping(intindex)

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
Type Description
TextStream.TextMapping

getMappingBuilder(int index)

publicTextStream.TextMapping.BuildergetMappingBuilder(intindex)

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
Type Description
TextStream.TextMapping.Builder

getMappingBuilderList()

publicList<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
Type Description
List<Builder>

getMappingCount()

publicintgetMappingCount()

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
int

getMappingList()

publicList<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
Type Description
List<TextMapping>

getMappingOrBuilder(int index)

publicTextStream.TextMappingOrBuildergetMappingOrBuilder(intindex)

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
Type Description
TextStream.TextMappingOrBuilder

getMappingOrBuilderList()

publicList<?extendsTextStream.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()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TextStream other)

publicTextStream.BuildermergeFrom(TextStreamother)
Parameter
Name Description
other TextStream
Returns
Type Description
TextStream.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicTextStream.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TextStream.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicTextStream.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
TextStream.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalTextStream.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TextStream.Builder
Overrides

removeMapping(int index)

publicTextStream.BuilderremoveMapping(intindex)

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
Type Description
TextStream.Builder

setCodec(String value)

publicTextStream.BuildersetCodec(Stringvalue)

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
Type Description
TextStream.Builder

This builder for chaining.

setCodecBytes(ByteString value)

publicTextStream.BuildersetCodecBytes(ByteStringvalue)

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
Type Description
TextStream.Builder

This builder for chaining.

setDisplayName(String value)

publicTextStream.BuildersetDisplayName(Stringvalue)

The name for this particular text stream that will be added to the HLS/DASH manifest. Not supported in MP4 files.

string display_name = 4;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
TextStream.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

publicTextStream.BuildersetDisplayNameBytes(ByteStringvalue)

The name for this particular text stream that will be added to the HLS/DASH manifest. Not supported in MP4 files.

string display_name = 4;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
TextStream.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicTextStream.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TextStream.Builder
Overrides

setLanguageCode(String value)

publicTextStream.BuildersetLanguageCode(Stringvalue)

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.

string language_code = 2;

Parameter
Name Description
value String

The languageCode to set.

Returns
Type Description
TextStream.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

publicTextStream.BuildersetLanguageCodeBytes(ByteStringvalue)

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.

string language_code = 2;

Parameter
Name Description
value ByteString

The bytes for languageCode to set.

Returns
Type Description
TextStream.Builder

This builder for chaining.

setMapping(int index, TextStream.TextMapping value)

publicTextStream.BuildersetMapping(intindex,TextStream.TextMappingvalue)

The mapping for the Job.edit_list atoms with text EditAtom.inputs.

repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;

Parameters
Name Description
index int
value TextStream.TextMapping
Returns
Type Description
TextStream.Builder

setMapping(int index, TextStream.TextMapping.Builder builderForValue)

publicTextStream.BuildersetMapping(intindex,TextStream.TextMapping.BuilderbuilderForValue)

The mapping for the Job.edit_list atoms with text EditAtom.inputs.

repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;

Parameters
Name Description
index int
builderForValue TextStream.TextMapping.Builder
Returns
Type Description
TextStream.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicTextStream.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TextStream.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalTextStream.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TextStream.Builder
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 2025年11月19日 UTC.