Class TextStream (1.62.0)

publicfinalclass TextStreamextendsGeneratedMessageV3implementsTextStreamOrBuilder

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.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

CODEC_FIELD_NUMBER

publicstaticfinalintCODEC_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

publicstaticfinalintDISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

LANGUAGE_CODE_FIELD_NUMBER

publicstaticfinalintLANGUAGE_CODE_FIELD_NUMBER
Field Value
Type Description
int

MAPPING_FIELD_NUMBER

publicstaticfinalintMAPPING_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticTextStreamgetDefaultInstance()
Returns
Type Description
TextStream

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticTextStream.BuildernewBuilder()
Returns
Type Description
TextStream.Builder

newBuilder(TextStream prototype)

publicstaticTextStream.BuildernewBuilder(TextStreamprototype)
Parameter
Name Description
prototype TextStream
Returns
Type Description
TextStream.Builder

parseDelimitedFrom(InputStream input)

publicstaticTextStreamparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
TextStream
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticTextStreamparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TextStream
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticTextStreamparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
TextStream
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticTextStreamparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TextStream
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticTextStreamparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
TextStream
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticTextStreamparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TextStream
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticTextStreamparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TextStream
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticTextStreamparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TextStream
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticTextStreamparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
TextStream
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticTextStreamparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TextStream
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticTextStreamparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TextStream
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticTextStreamparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TextStream
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<TextStream>parser()
Returns
Type Description
Parser<TextStream>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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

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>

getParserForType()

publicParser<TextStream>getParserForType()
Returns
Type Description
Parser<TextStream>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicTextStream.BuildernewBuilderForType()
Returns
Type Description
TextStream.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedTextStream.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TextStream.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicTextStream.BuildertoBuilder()
Returns
Type Description
TextStream.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

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.