Class TextStream.Builder

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

Implements

TextStreamOrBuilder

Methods

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

public TextStream.Builder addAllMapping(Iterable<? extends TextStream.TextAtom> values)

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

repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.video.transcoder.v1beta1.TextStream.TextAtom>
Returns
TypeDescription
TextStream.Builder

addMapping(TextStream.TextAtom value)

public TextStream.Builder addMapping(TextStream.TextAtom value)

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

repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;

Parameter
NameDescription
valueTextStream.TextAtom
Returns
TypeDescription
TextStream.Builder

addMapping(TextStream.TextAtom.Builder builderForValue)

public TextStream.Builder addMapping(TextStream.TextAtom.Builder builderForValue)

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

repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;

Parameter
NameDescription
builderForValueTextStream.TextAtom.Builder
Returns
TypeDescription
TextStream.Builder

addMapping(int index, TextStream.TextAtom value)

public TextStream.Builder addMapping(int index, TextStream.TextAtom value)

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

repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;

Parameters
NameDescription
indexint
valueTextStream.TextAtom
Returns
TypeDescription
TextStream.Builder

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

public TextStream.Builder addMapping(int index, TextStream.TextAtom.Builder builderForValue)

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

repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;

Parameters
NameDescription
indexint
builderForValueTextStream.TextAtom.Builder
Returns
TypeDescription
TextStream.Builder

addMappingBuilder()

public TextStream.TextAtom.Builder addMappingBuilder()

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

repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;

Returns
TypeDescription
TextStream.TextAtom.Builder

addMappingBuilder(int index)

public TextStream.TextAtom.Builder addMappingBuilder(int index)

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

repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
TextStream.TextAtom.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TextStream.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TextStream.Builder
Overrides

build()

public TextStream build()
Returns
TypeDescription
TextStream

buildPartial()

public TextStream buildPartial()
Returns
TypeDescription
TextStream

clear()

public TextStream.Builder clear()
Returns
TypeDescription
TextStream.Builder
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
TypeDescription
TextStream.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TextStream.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TextStream.Builder
Overrides

clearLanguageCode()

public TextStream.Builder clearLanguageCode()

Required. 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.

string language_code = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
TextStream.Builder

This builder for chaining.

clearMapping()

public TextStream.Builder clearMapping()

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

repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;

Returns
TypeDescription
TextStream.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public TextStream.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TextStream.Builder
Overrides

clone()

public TextStream.Builder clone()
Returns
TypeDescription
TextStream.Builder
Overrides

getCodec()

public String getCodec()

The codec for this text stream. The default is "webvtt". Supported text codecs:

  • 'srt'
  • 'ttml'
  • 'cea608'
  • 'cea708'
  • 'webvtt'

string codec = 1;

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for codec.

getDefaultInstanceForType()

public TextStream getDefaultInstanceForType()
Returns
TypeDescription
TextStream

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLanguageCode()

public String getLanguageCode()

Required. 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.

string language_code = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The languageCode.

getLanguageCodeBytes()

public ByteString getLanguageCodeBytes()

Required. 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.

string language_code = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for languageCode.

getMapping(int index)

public TextStream.TextAtom getMapping(int index)

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

repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
TextStream.TextAtom

getMappingBuilder(int index)

public TextStream.TextAtom.Builder getMappingBuilder(int index)

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

repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
TextStream.TextAtom.Builder

getMappingBuilderList()

public List<TextStream.TextAtom.Builder> getMappingBuilderList()

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

repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;

Returns
TypeDescription
List<Builder>

getMappingCount()

public int getMappingCount()

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

repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;

Returns
TypeDescription
int

getMappingList()

public List<TextStream.TextAtom> getMappingList()

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

repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;

Returns
TypeDescription
List<TextAtom>

getMappingOrBuilder(int index)

public TextStream.TextAtomOrBuilder getMappingOrBuilder(int index)

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

repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
TextStream.TextAtomOrBuilder

getMappingOrBuilderList()

public List<? extends TextStream.TextAtomOrBuilder> getMappingOrBuilderList()

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

repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;

Returns
TypeDescription
List<? extends com.google.cloud.video.transcoder.v1beta1.TextStream.TextAtomOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TextStream other)

public TextStream.Builder mergeFrom(TextStream other)
Parameter
NameDescription
otherTextStream
Returns
TypeDescription
TextStream.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TextStream.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextStream.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TextStream.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TextStream.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TextStream.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TextStream.Builder
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.v1beta1.TextStream.TextAtom mapping = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
TextStream.Builder

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
NameDescription
valueString

The codec to set.

Returns
TypeDescription
TextStream.Builder

This builder for chaining.

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
NameDescription
valueByteString

The bytes for codec to set.

Returns
TypeDescription
TextStream.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public TextStream.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TextStream.Builder
Overrides

setLanguageCode(String value)

public TextStream.Builder setLanguageCode(String value)

Required. 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.

string language_code = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The languageCode to set.

Returns
TypeDescription
TextStream.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

public TextStream.Builder setLanguageCodeBytes(ByteString value)

Required. 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.

string language_code = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for languageCode to set.

Returns
TypeDescription
TextStream.Builder

This builder for chaining.

setMapping(int index, TextStream.TextAtom value)

public TextStream.Builder setMapping(int index, TextStream.TextAtom value)

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

repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;

Parameters
NameDescription
indexint
valueTextStream.TextAtom
Returns
TypeDescription
TextStream.Builder

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

public TextStream.Builder setMapping(int index, TextStream.TextAtom.Builder builderForValue)

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

repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;

Parameters
NameDescription
indexint
builderForValueTextStream.TextAtom.Builder
Returns
TypeDescription
TextStream.Builder

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

public TextStream.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TextStream.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TextStream.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TextStream.Builder
Overrides