Send feedback
  
   
 
  
    
      Class TrackDefinition (1.75.0)
    
    
      
      
      Stay organized with collections
     
    
      
      Save and categorize content based on your preferences.
     
    
  
  
   
  
    
  
  
    
    
    
    
  Version 1.75.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  TrackDefinition   extends   GeneratedMessageV3   implements   TrackDefinitionOrBuilder  
   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 
  
    
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  
     
  
  
  
    
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 ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   TrackDefinition . Builder   newBuilder ()  
  
  newBuilder(TrackDefinition prototype) 
  
    
public   static   TrackDefinition . Builder   newBuilder ( TrackDefinition   prototype )  
  
  
  
    
public   static   TrackDefinition   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   TrackDefinition   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   TrackDefinition   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   TrackDefinition   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   TrackDefinition   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   TrackDefinition   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   TrackDefinition   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   TrackDefinition   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   TrackDefinition   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   TrackDefinition   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   TrackDefinition   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   TrackDefinition   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<TrackDefinition>   parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   TrackDefinition   getDefaultInstanceForType ()  
  
  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  
      
        indexint 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  
      
        indexint 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];
 
    
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 )  
  
  
    
      
        Parameter  
      
        Name Description  
      
        indexint 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 )  
  
  
    
      
        Parameter  
      
        Name Description  
      
        indexint The index of the value to return.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes of the languages at the given index.
 
     
  
  getLanguagesCount() 
  
    
public   int   getLanguagesCount ()  
  
  
    
      
        Returns  
      
        Type Description  
      
        int The count of languages.
 
     
  
  getLanguagesList() 
  
    
public   ProtocolStringList   getLanguagesList ()  
  
  
  getParserForType() 
  
    
public   Parser<TrackDefinition>   getParserForType ()  
  
  Overrides 
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  
    
public   boolean   hasInputTrack ()  
   The input track.
 optional int32 input_track = 1;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the inputTrack field is set.
 
     
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   TrackDefinition . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   TrackDefinition . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   TrackDefinition . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
    
     
  
       
         
  
  
    
    Send feedback
  
   
 
       
    
    
  
  
 
  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-10-29 UTC.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]