Class TrackDefinition.Builder (1.72.0)

public static final class TrackDefinition.Builder extends GeneratedMessageV3.Builder<TrackDefinition.Builder> implements TrackDefinitionOrBuilder

Track definition for the input asset.

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

Static Methods

getDescriptor()

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

Methods

addAllDetectedLanguages(Iterable<String> values)

public TrackDefinition.Builder addAllDetectedLanguages(Iterable<String> values)

Output only. A list of languages detected in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. This field is only populated if the detect_languages field is set to true.

repeated string detected_languages = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<String>

The detectedLanguages to add.

Returns
Type Description
TrackDefinition.Builder

This builder for chaining.

addAllLanguages(Iterable<String> values)

public TrackDefinition.Builder addAllLanguages(Iterable<String> values)

Optional. A list of languages spoken in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

repeated string languages = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The languages to add.

Returns
Type Description
TrackDefinition.Builder

This builder for chaining.

addDetectedLanguages(String value)

public TrackDefinition.Builder addDetectedLanguages(String value)

Output only. A list of languages detected in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. This field is only populated if the detect_languages field is set to true.

repeated string detected_languages = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The detectedLanguages to add.

Returns
Type Description
TrackDefinition.Builder

This builder for chaining.

addDetectedLanguagesBytes(ByteString value)

public TrackDefinition.Builder addDetectedLanguagesBytes(ByteString value)

Output only. A list of languages detected in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. This field is only populated if the detect_languages field is set to true.

repeated string detected_languages = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes of the detectedLanguages to add.

Returns
Type Description
TrackDefinition.Builder

This builder for chaining.

addLanguages(String value)

public TrackDefinition.Builder addLanguages(String value)

Optional. A list of languages spoken in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

repeated string languages = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The languages to add.

Returns
Type Description
TrackDefinition.Builder

This builder for chaining.

addLanguagesBytes(ByteString value)

public TrackDefinition.Builder addLanguagesBytes(ByteString value)

Optional. A list of languages spoken in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

repeated string languages = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the languages to add.

Returns
Type Description
TrackDefinition.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TrackDefinition.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TrackDefinition.Builder
Overrides

build()

public TrackDefinition build()
Returns
Type Description
TrackDefinition

buildPartial()

public TrackDefinition buildPartial()
Returns
Type Description
TrackDefinition

clear()

public TrackDefinition.Builder clear()
Returns
Type Description
TrackDefinition.Builder
Overrides

clearDetectLanguages()

public TrackDefinition.Builder clearDetectLanguages()

Optional. Whether to automatically detect the languages present in the track. If true, the system will attempt to identify all the languages present in the track and populate the languages field.

bool detect_languages = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TrackDefinition.Builder

This builder for chaining.

clearDetectedLanguages()

public TrackDefinition.Builder clearDetectedLanguages()

Output only. A list of languages detected in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. This field is only populated if the detect_languages field is set to true.

repeated string detected_languages = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TrackDefinition.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TrackDefinition.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TrackDefinition.Builder
Overrides

clearInputTrack()

public TrackDefinition.Builder clearInputTrack()

The input track.

optional int32 input_track = 1;

Returns
Type Description
TrackDefinition.Builder

This builder for chaining.

clearLanguages()

public TrackDefinition.Builder clearLanguages()

Optional. A list of languages spoken in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

repeated string languages = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TrackDefinition.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TrackDefinition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TrackDefinition.Builder
Overrides

clone()

public TrackDefinition.Builder clone()
Returns
Type Description
TrackDefinition.Builder
Overrides

getDefaultInstanceForType()

public TrackDefinition getDefaultInstanceForType()
Returns
Type Description
TrackDefinition

getDescriptorForType()

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

getDetectLanguages()

public boolean getDetectLanguages()

Optional. Whether to automatically detect the languages present in the track. If true, the system will attempt to identify all the languages present in the track and populate the languages field.

bool detect_languages = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The detectLanguages.

getDetectedLanguages(int index)

public String getDetectedLanguages(int index)

Output only. A list of languages detected in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. This field is only populated if the detect_languages field is set to true.

repeated string detected_languages = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The detectedLanguages at the given index.

getDetectedLanguagesBytes(int index)

public ByteString getDetectedLanguagesBytes(int index)

Output only. A list of languages detected in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. This field is only populated if the detect_languages field is set to true.

repeated string detected_languages = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the detectedLanguages at the given index.

getDetectedLanguagesCount()

public int getDetectedLanguagesCount()

Output only. A list of languages detected in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. This field is only populated if the detect_languages field is set to true.

repeated string detected_languages = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of detectedLanguages.

getDetectedLanguagesList()

public ProtocolStringList getDetectedLanguagesList()

Output only. A list of languages detected in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. This field is only populated if the detect_languages field is set to true.

repeated string detected_languages = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the detectedLanguages.

getInputTrack()

public int getInputTrack()

The input track.

optional int32 input_track = 1;

Returns
Type Description
int

The inputTrack.

getLanguages(int index)

public String getLanguages(int index)

Optional. A list of languages spoken in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

repeated string languages = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The languages at the given index.

getLanguagesBytes(int index)

public ByteString getLanguagesBytes(int index)

Optional. A list of languages spoken in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

repeated string languages = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the languages at the given index.

getLanguagesCount()

public int getLanguagesCount()

Optional. A list of languages spoken in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

repeated string languages = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of languages.

getLanguagesList()

public ProtocolStringList getLanguagesList()

Optional. A list of languages spoken in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

repeated string languages = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the languages.

hasInputTrack()

public boolean hasInputTrack()

The input track.

optional int32 input_track = 1;

Returns
Type Description
boolean

Whether the inputTrack field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TrackDefinition other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TrackDefinition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TrackDefinition.Builder
Overrides

setDetectLanguages(boolean value)

public TrackDefinition.Builder setDetectLanguages(boolean value)

Optional. Whether to automatically detect the languages present in the track. If true, the system will attempt to identify all the languages present in the track and populate the languages field.

bool detect_languages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The detectLanguages to set.

Returns
Type Description
TrackDefinition.Builder

This builder for chaining.

setDetectedLanguages(int index, String value)

public TrackDefinition.Builder setDetectedLanguages(int index, String value)

Output only. A list of languages detected in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. This field is only populated if the detect_languages field is set to true.

repeated string detected_languages = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value String

The detectedLanguages to set.

Returns
Type Description
TrackDefinition.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public TrackDefinition.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TrackDefinition.Builder
Overrides

setInputTrack(int value)

public TrackDefinition.Builder setInputTrack(int value)

The input track.

optional int32 input_track = 1;

Parameter
Name Description
value int

The inputTrack to set.

Returns
Type Description
TrackDefinition.Builder

This builder for chaining.

setLanguages(int index, String value)

public TrackDefinition.Builder setLanguages(int index, String value)

Optional. A list of languages spoken in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

repeated string languages = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The languages to set.

Returns
Type Description
TrackDefinition.Builder

This builder for chaining.

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

public TrackDefinition.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TrackDefinition.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TrackDefinition.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TrackDefinition.Builder
Overrides