Class TrackDefinition (1.77.0)

publicfinalclass TrackDefinitionextendsGeneratedMessageV3implementsTrackDefinitionOrBuilder

Track definition for the input asset.

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

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

DETECTED_LANGUAGES_FIELD_NUMBER

publicstaticfinalintDETECTED_LANGUAGES_FIELD_NUMBER
Field Value
Type Description
int

DETECT_LANGUAGES_FIELD_NUMBER

publicstaticfinalintDETECT_LANGUAGES_FIELD_NUMBER
Field Value
Type Description
int

INPUT_TRACK_FIELD_NUMBER

publicstaticfinalintINPUT_TRACK_FIELD_NUMBER
Field Value
Type Description
int

LANGUAGES_FIELD_NUMBER

publicstaticfinalintLANGUAGES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticTrackDefinitiongetDefaultInstance()
Returns
Type Description
TrackDefinition

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticTrackDefinition.BuildernewBuilder()
Returns
Type Description
TrackDefinition.Builder

newBuilder(TrackDefinition prototype)

publicstaticTrackDefinition.BuildernewBuilder(TrackDefinitionprototype)
Parameter
Name Description
prototype TrackDefinition
Returns
Type Description
TrackDefinition.Builder

parseDelimitedFrom(InputStream input)

publicstaticTrackDefinitionparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
TrackDefinition
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

publicstaticTrackDefinitionparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
TrackDefinition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

publicstaticTrackDefinitionparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
TrackDefinition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

publicstaticTrackDefinitionparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TrackDefinition
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

publicstaticTrackDefinitionparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
TrackDefinition
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

publicstaticTrackDefinitionparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TrackDefinition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicTrackDefinitiongetDefaultInstanceForType()
Returns
Type Description
TrackDefinition

getDetectLanguages()

publicbooleangetDetectLanguages()

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)

publicStringgetDetectedLanguages(intindex)

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)

publicByteStringgetDetectedLanguagesBytes(intindex)

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()

publicintgetDetectedLanguagesCount()

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()

publicProtocolStringListgetDetectedLanguagesList()

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()

publicintgetInputTrack()

The input track.

optional int32 input_track = 1;

Returns
Type Description
int

The inputTrack.

getLanguages(int index)

publicStringgetLanguages(intindex)

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)

publicByteStringgetLanguagesBytes(intindex)

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()

publicintgetLanguagesCount()

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()

publicProtocolStringListgetLanguagesList()

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()

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

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hasInputTrack()

publicbooleanhasInputTrack()

The input track.

optional int32 input_track = 1;

Returns
Type Description
boolean

Whether the inputTrack field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicTrackDefinition.BuildernewBuilderForType()
Returns
Type Description
TrackDefinition.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedTrackDefinition.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TrackDefinition.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

publicTrackDefinition.BuildertoBuilder()
Returns
Type Description
TrackDefinition.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.