Class TrackDefinition.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TrackDefinition.Builder>
com.google.cloud.video.transcoder.v1.TrackDefinition.Builder
All Implemented Interfaces:
TrackDefinitionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TrackDefinition

public static final class TrackDefinition.Builder extends com.google.protobuf.GeneratedMessage.Builder<TrackDefinition.Builder> implements TrackDefinitionOrBuilder
 Track definition for the input asset.
 
Protobuf type google.cloud.video.transcoder.v1.TrackDefinition
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TrackDefinition.Builder>
    • clear

      public TrackDefinition.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<TrackDefinition.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TrackDefinition.Builder>
    • getDefaultInstanceForType

      public TrackDefinition getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TrackDefinition build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TrackDefinition buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public TrackDefinition.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TrackDefinition.Builder>
    • mergeFrom

      public TrackDefinition.Builder mergeFrom(TrackDefinition other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<TrackDefinition.Builder>
    • mergeFrom

      public TrackDefinition.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TrackDefinition.Builder>
      Throws:
      IOException
    • hasInputTrack

      public boolean hasInputTrack()
       The input track.
       
      optional int32 input_track = 1;
      Specified by:
      hasInputTrack in interface TrackDefinitionOrBuilder
      Returns:
      Whether the inputTrack field is set.
    • getInputTrack

      public int getInputTrack()
       The input track.
       
      optional int32 input_track = 1;
      Specified by:
      getInputTrack in interface TrackDefinitionOrBuilder
      Returns:
      The inputTrack.
    • setInputTrack

      public TrackDefinition.Builder setInputTrack(int value)
       The input track.
       
      optional int32 input_track = 1;
      Parameters:
      value - The inputTrack to set.
      Returns:
      This builder for chaining.
    • clearInputTrack

      public TrackDefinition.Builder clearInputTrack()
       The input track.
       
      optional int32 input_track = 1;
      Returns:
      This builder for chaining.
    • getLanguagesList

      public com.google.protobuf.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];
      Specified by:
      getLanguagesList in interface TrackDefinitionOrBuilder
      Returns:
      A list containing the languages.
    • 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];
      Specified by:
      getLanguagesCount in interface TrackDefinitionOrBuilder
      Returns:
      The count of languages.
    • getLanguages

      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];
      Specified by:
      getLanguages in interface TrackDefinitionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The languages at the given index.
    • getLanguagesBytes

      public com.google.protobuf.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];
      Specified by:
      getLanguagesBytes in interface TrackDefinitionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the languages at the given index.
    • setLanguages

      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:
      index - The index to set the value at.
      value - The languages to set.
      Returns:
      This builder for chaining.
    • addLanguages

      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];
      Parameters:
      value - The languages to add.
      Returns:
      This builder for chaining.
    • addAllLanguages

      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];
      Parameters:
      values - The languages to add.
      Returns:
      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:
      This builder for chaining.
    • addLanguagesBytes

      public TrackDefinition.Builder addLanguagesBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes of the languages to add.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getDetectLanguages in interface TrackDefinitionOrBuilder
      Returns:
      The detectLanguages.
    • setDetectLanguages

      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];
      Parameters:
      value - The detectLanguages to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • getDetectedLanguagesList

      public com.google.protobuf.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];
      Specified by:
      getDetectedLanguagesList in interface TrackDefinitionOrBuilder
      Returns:
      A list containing the detectedLanguages.
    • 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];
      Specified by:
      getDetectedLanguagesCount in interface TrackDefinitionOrBuilder
      Returns:
      The count of detectedLanguages.
    • getDetectedLanguages

      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];
      Specified by:
      getDetectedLanguages in interface TrackDefinitionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The detectedLanguages at the given index.
    • getDetectedLanguagesBytes

      public com.google.protobuf.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];
      Specified by:
      getDetectedLanguagesBytes in interface TrackDefinitionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the detectedLanguages at the given index.
    • setDetectedLanguages

      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:
      index - The index to set the value at.
      value - The detectedLanguages to set.
      Returns:
      This builder for chaining.
    • addDetectedLanguages

      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];
      Parameters:
      value - The detectedLanguages to add.
      Returns:
      This builder for chaining.
    • addAllDetectedLanguages

      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];
      Parameters:
      values - The detectedLanguages to add.
      Returns:
      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:
      This builder for chaining.
    • addDetectedLanguagesBytes

      public TrackDefinition.Builder addDetectedLanguagesBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes of the detectedLanguages to add.
      Returns:
      This builder for chaining.