Class TextStream.TextMapping.Builder (0.85.0)

public static final class TextStream.TextMapping.Builder extends GeneratedMessage.Builder<TextStream.TextMapping.Builder> implements TextStream.TextMappingOrBuilder

The mapping for the input streams and text tracks.

Protobuf type google.cloud.video.livestream.v1.TextStream.TextMapping

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public TextStream.TextMapping build()
Returns
Type Description
TextStream.TextMapping

buildPartial()

public TextStream.TextMapping buildPartial()
Returns
Type Description
TextStream.TextMapping

clear()

public TextStream.TextMapping.Builder clear()
Returns
Type Description
TextStream.TextMapping.Builder
Overrides

clearFromLanguageCode()

public TextStream.TextMapping.Builder clearFromLanguageCode()

Optional. The BCP-47 source language code, such as en-US or sr-Latn. If differ from the textStream's language code, enable translation. For more information on BCP-47 language codes, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

string from_language_code = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TextStream.TextMapping.Builder

This builder for chaining.

clearInputCeaChannel()

public TextStream.TextMapping.Builder clearInputCeaChannel()

Optional. The channel of the closed caption in the input stream. If this field is set, the output codec must be webvtt. Must be one of CC1, CC2, CC3, and CC4, if the codec of the input closed caption is cea608; Must be one between SERVICE1 and SERVICE64, if the codec of the input closed caption is cea708.

string input_cea_channel = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TextStream.TextMapping.Builder

This builder for chaining.

clearInputKey()

public TextStream.TextMapping.Builder clearInputKey()

Optional. The Channel InputAttachment.key that identifies the input that this text mapping applies to.

string input_key = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TextStream.TextMapping.Builder

This builder for chaining.

clearInputTrack()

public TextStream.TextMapping.Builder clearInputTrack()

Optional. The zero-based index of the track in the input stream.

int32 input_track = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TextStream.TextMapping.Builder

This builder for chaining.

getDefaultInstanceForType()

public TextStream.TextMapping getDefaultInstanceForType()
Returns
Type Description
TextStream.TextMapping

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFromLanguageCode()

public String getFromLanguageCode()

Optional. The BCP-47 source language code, such as en-US or sr-Latn. If differ from the textStream's language code, enable translation. For more information on BCP-47 language codes, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

string from_language_code = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The fromLanguageCode.

getFromLanguageCodeBytes()

public ByteString getFromLanguageCodeBytes()

Optional. The BCP-47 source language code, such as en-US or sr-Latn. If differ from the textStream's language code, enable translation. For more information on BCP-47 language codes, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

string from_language_code = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for fromLanguageCode.

getInputCeaChannel()

public String getInputCeaChannel()

Optional. The channel of the closed caption in the input stream. If this field is set, the output codec must be webvtt. Must be one of CC1, CC2, CC3, and CC4, if the codec of the input closed caption is cea608; Must be one between SERVICE1 and SERVICE64, if the codec of the input closed caption is cea708.

string input_cea_channel = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The inputCeaChannel.

getInputCeaChannelBytes()

public ByteString getInputCeaChannelBytes()

Optional. The channel of the closed caption in the input stream. If this field is set, the output codec must be webvtt. Must be one of CC1, CC2, CC3, and CC4, if the codec of the input closed caption is cea608; Must be one between SERVICE1 and SERVICE64, if the codec of the input closed caption is cea708.

string input_cea_channel = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for inputCeaChannel.

getInputKey()

public String getInputKey()

Optional. The Channel InputAttachment.key that identifies the input that this text mapping applies to.

string input_key = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The inputKey.

getInputKeyBytes()

public ByteString getInputKeyBytes()

Optional. The Channel InputAttachment.key that identifies the input that this text mapping applies to.

string input_key = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for inputKey.

getInputTrack()

public int getInputTrack()

Optional. The zero-based index of the track in the input stream.

int32 input_track = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The inputTrack.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TextStream.TextMapping other)

public TextStream.TextMapping.Builder mergeFrom(TextStream.TextMapping other)
Parameter
Name Description
other TextStream.TextMapping
Returns
Type Description
TextStream.TextMapping.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TextStream.TextMapping.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TextStream.TextMapping.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TextStream.TextMapping.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TextStream.TextMapping.Builder
Overrides

setFromLanguageCode(String value)

public TextStream.TextMapping.Builder setFromLanguageCode(String value)

Optional. The BCP-47 source language code, such as en-US or sr-Latn. If differ from the textStream's language code, enable translation. For more information on BCP-47 language codes, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

string from_language_code = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The fromLanguageCode to set.

Returns
Type Description
TextStream.TextMapping.Builder

This builder for chaining.

setFromLanguageCodeBytes(ByteString value)

public TextStream.TextMapping.Builder setFromLanguageCodeBytes(ByteString value)

Optional. The BCP-47 source language code, such as en-US or sr-Latn. If differ from the textStream's language code, enable translation. For more information on BCP-47 language codes, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

string from_language_code = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for fromLanguageCode to set.

Returns
Type Description
TextStream.TextMapping.Builder

This builder for chaining.

setInputCeaChannel(String value)

public TextStream.TextMapping.Builder setInputCeaChannel(String value)

Optional. The channel of the closed caption in the input stream. If this field is set, the output codec must be webvtt. Must be one of CC1, CC2, CC3, and CC4, if the codec of the input closed caption is cea608; Must be one between SERVICE1 and SERVICE64, if the codec of the input closed caption is cea708.

string input_cea_channel = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The inputCeaChannel to set.

Returns
Type Description
TextStream.TextMapping.Builder

This builder for chaining.

setInputCeaChannelBytes(ByteString value)

public TextStream.TextMapping.Builder setInputCeaChannelBytes(ByteString value)

Optional. The channel of the closed caption in the input stream. If this field is set, the output codec must be webvtt. Must be one of CC1, CC2, CC3, and CC4, if the codec of the input closed caption is cea608; Must be one between SERVICE1 and SERVICE64, if the codec of the input closed caption is cea708.

string input_cea_channel = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for inputCeaChannel to set.

Returns
Type Description
TextStream.TextMapping.Builder

This builder for chaining.

setInputKey(String value)

public TextStream.TextMapping.Builder setInputKey(String value)

Optional. The Channel InputAttachment.key that identifies the input that this text mapping applies to.

string input_key = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The inputKey to set.

Returns
Type Description
TextStream.TextMapping.Builder

This builder for chaining.

setInputKeyBytes(ByteString value)

public TextStream.TextMapping.Builder setInputKeyBytes(ByteString value)

Optional. The Channel InputAttachment.key that identifies the input that this text mapping applies to.

string input_key = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for inputKey to set.

Returns
Type Description
TextStream.TextMapping.Builder

This builder for chaining.

setInputTrack(int value)

public TextStream.TextMapping.Builder setInputTrack(int value)

Optional. The zero-based index of the track in the input stream.

int32 input_track = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The inputTrack to set.

Returns
Type Description
TextStream.TextMapping.Builder

This builder for chaining.