Class TrackDefinition (1.72.0)

public final class TrackDefinition extends GeneratedMessageV3 implements TrackDefinitionOrBuilder

Track definition for the input asset.

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

Static Fields

DETECTED_LANGUAGES_FIELD_NUMBER

public static final int DETECTED_LANGUAGES_FIELD_NUMBER
Field Value
Type Description
int

DETECT_LANGUAGES_FIELD_NUMBER

public static final int DETECT_LANGUAGES_FIELD_NUMBER
Field Value
Type Description
int

INPUT_TRACK_FIELD_NUMBER

public static final int INPUT_TRACK_FIELD_NUMBER
Field Value
Type Description
int

LANGUAGES_FIELD_NUMBER

public static final int LANGUAGES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TrackDefinition getDefaultInstance()
Returns
Type Description
TrackDefinition

getDescriptor()

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

newBuilder()

public static TrackDefinition.Builder newBuilder()
Returns
Type Description
TrackDefinition.Builder

newBuilder(TrackDefinition prototype)

public static TrackDefinition.Builder newBuilder(TrackDefinition prototype)
Parameter
Name Description
prototype TrackDefinition
Returns
Type Description
TrackDefinition.Builder

parseDelimitedFrom(InputStream input)

public static TrackDefinition parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TrackDefinition
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TrackDefinition parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TrackDefinition
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static TrackDefinition parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
TrackDefinition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TrackDefinition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TrackDefinition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TrackDefinition parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
TrackDefinition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TrackDefinition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TrackDefinition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TrackDefinition parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TrackDefinition
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TrackDefinition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TrackDefinition
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static TrackDefinition parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TrackDefinition
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TrackDefinition parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TrackDefinition
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static TrackDefinition parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TrackDefinition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TrackDefinition parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TrackDefinition
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<TrackDefinition> parser()
Returns
Type Description
Parser<TrackDefinition>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public TrackDefinition getDefaultInstanceForType()
Returns
Type Description
TrackDefinition

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.

getParserForType()

public Parser<TrackDefinition> getParserForType()
Returns
Type Description
Parser<TrackDefinition>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasInputTrack()

public boolean hasInputTrack()

The input track.

optional int32 input_track = 1;

Returns
Type Description
boolean

Whether the inputTrack field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public TrackDefinition.Builder newBuilderForType()
Returns
Type Description
TrackDefinition.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TrackDefinition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TrackDefinition.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public TrackDefinition.Builder toBuilder()
Returns
Type Description
TrackDefinition.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException