Class AudioStream.Builder

  • All Implemented Interfaces:
    AudioStreamOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    AudioStream

    public static final class AudioStream.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<AudioStream.Builder>
    implements AudioStreamOrBuilder
     Audio stream resource.
     
    Protobuf type google.cloud.video.transcoder.v1.AudioStream
    • Method Detail

      • getDescriptor

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

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

        public AudioStream.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.GeneratedMessageV3.Builder<AudioStream.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.GeneratedMessageV3.Builder<AudioStream.Builder>
      • getDefaultInstanceForType

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

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

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

        public AudioStream.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<AudioStream.Builder>
      • setField

        public AudioStream.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<AudioStream.Builder>
      • clearField

        public AudioStream.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AudioStream.Builder>
      • clearOneof

        public AudioStream.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AudioStream.Builder>
      • setRepeatedField

        public AudioStream.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    int index,
                                                    Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AudioStream.Builder>
      • addRepeatedField

        public AudioStream.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AudioStream.Builder>
      • mergeFrom

        public AudioStream.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<AudioStream.Builder>
      • isInitialized

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

        public AudioStream.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<AudioStream.Builder>
        Throws:
        IOException
      • getCodec

        public String getCodec()
         The codec for this audio stream. The default is `aac`.
        
         Supported audio codecs:
        
         - `aac`
         - `aac-he`
         - `aac-he-v2`
         - `mp3`
         - `ac3`
         - `eac3`
         
        string codec = 1;
        Specified by:
        getCodec in interface AudioStreamOrBuilder
        Returns:
        The codec.
      • getCodecBytes

        public com.google.protobuf.ByteString getCodecBytes()
         The codec for this audio stream. The default is `aac`.
        
         Supported audio codecs:
        
         - `aac`
         - `aac-he`
         - `aac-he-v2`
         - `mp3`
         - `ac3`
         - `eac3`
         
        string codec = 1;
        Specified by:
        getCodecBytes in interface AudioStreamOrBuilder
        Returns:
        The bytes for codec.
      • setCodec

        public AudioStream.Builder setCodec​(String value)
         The codec for this audio stream. The default is `aac`.
        
         Supported audio codecs:
        
         - `aac`
         - `aac-he`
         - `aac-he-v2`
         - `mp3`
         - `ac3`
         - `eac3`
         
        string codec = 1;
        Parameters:
        value - The codec to set.
        Returns:
        This builder for chaining.
      • clearCodec

        public AudioStream.Builder clearCodec()
         The codec for this audio stream. The default is `aac`.
        
         Supported audio codecs:
        
         - `aac`
         - `aac-he`
         - `aac-he-v2`
         - `mp3`
         - `ac3`
         - `eac3`
         
        string codec = 1;
        Returns:
        This builder for chaining.
      • setCodecBytes

        public AudioStream.Builder setCodecBytes​(com.google.protobuf.ByteString value)
         The codec for this audio stream. The default is `aac`.
        
         Supported audio codecs:
        
         - `aac`
         - `aac-he`
         - `aac-he-v2`
         - `mp3`
         - `ac3`
         - `eac3`
         
        string codec = 1;
        Parameters:
        value - The bytes for codec to set.
        Returns:
        This builder for chaining.
      • getBitrateBps

        public int getBitrateBps()
         Required. Audio bitrate in bits per second. Must be between 1 and
         10,000,000.
         
        int32 bitrate_bps = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getBitrateBps in interface AudioStreamOrBuilder
        Returns:
        The bitrateBps.
      • setBitrateBps

        public AudioStream.Builder setBitrateBps​(int value)
         Required. Audio bitrate in bits per second. Must be between 1 and
         10,000,000.
         
        int32 bitrate_bps = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bitrateBps to set.
        Returns:
        This builder for chaining.
      • clearBitrateBps

        public AudioStream.Builder clearBitrateBps()
         Required. Audio bitrate in bits per second. Must be between 1 and
         10,000,000.
         
        int32 bitrate_bps = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • getChannelCount

        public int getChannelCount()
         Number of audio channels. Must be between 1 and 6. The default is 2.
         
        int32 channel_count = 3;
        Specified by:
        getChannelCount in interface AudioStreamOrBuilder
        Returns:
        The channelCount.
      • setChannelCount

        public AudioStream.Builder setChannelCount​(int value)
         Number of audio channels. Must be between 1 and 6. The default is 2.
         
        int32 channel_count = 3;
        Parameters:
        value - The channelCount to set.
        Returns:
        This builder for chaining.
      • clearChannelCount

        public AudioStream.Builder clearChannelCount()
         Number of audio channels. Must be between 1 and 6. The default is 2.
         
        int32 channel_count = 3;
        Returns:
        This builder for chaining.
      • getChannelLayoutList

        public com.google.protobuf.ProtocolStringList getChannelLayoutList()
         A list of channel names specifying layout of the audio channels.
         This only affects the metadata embedded in the container headers, if
         supported by the specified format. The default is `["fl", "fr"]`.
        
         Supported channel names:
        
         - `fl` - Front left channel
         - `fr` - Front right channel
         - `sl` - Side left channel
         - `sr` - Side right channel
         - `fc` - Front center channel
         - `lfe` - Low frequency
         
        repeated string channel_layout = 4;
        Specified by:
        getChannelLayoutList in interface AudioStreamOrBuilder
        Returns:
        A list containing the channelLayout.
      • getChannelLayoutCount

        public int getChannelLayoutCount()
         A list of channel names specifying layout of the audio channels.
         This only affects the metadata embedded in the container headers, if
         supported by the specified format. The default is `["fl", "fr"]`.
        
         Supported channel names:
        
         - `fl` - Front left channel
         - `fr` - Front right channel
         - `sl` - Side left channel
         - `sr` - Side right channel
         - `fc` - Front center channel
         - `lfe` - Low frequency
         
        repeated string channel_layout = 4;
        Specified by:
        getChannelLayoutCount in interface AudioStreamOrBuilder
        Returns:
        The count of channelLayout.
      • getChannelLayout

        public String getChannelLayout​(int index)
         A list of channel names specifying layout of the audio channels.
         This only affects the metadata embedded in the container headers, if
         supported by the specified format. The default is `["fl", "fr"]`.
        
         Supported channel names:
        
         - `fl` - Front left channel
         - `fr` - Front right channel
         - `sl` - Side left channel
         - `sr` - Side right channel
         - `fc` - Front center channel
         - `lfe` - Low frequency
         
        repeated string channel_layout = 4;
        Specified by:
        getChannelLayout in interface AudioStreamOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The channelLayout at the given index.
      • getChannelLayoutBytes

        public com.google.protobuf.ByteString getChannelLayoutBytes​(int index)
         A list of channel names specifying layout of the audio channels.
         This only affects the metadata embedded in the container headers, if
         supported by the specified format. The default is `["fl", "fr"]`.
        
         Supported channel names:
        
         - `fl` - Front left channel
         - `fr` - Front right channel
         - `sl` - Side left channel
         - `sr` - Side right channel
         - `fc` - Front center channel
         - `lfe` - Low frequency
         
        repeated string channel_layout = 4;
        Specified by:
        getChannelLayoutBytes in interface AudioStreamOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the channelLayout at the given index.
      • setChannelLayout

        public AudioStream.Builder setChannelLayout​(int index,
                                                    String value)
         A list of channel names specifying layout of the audio channels.
         This only affects the metadata embedded in the container headers, if
         supported by the specified format. The default is `["fl", "fr"]`.
        
         Supported channel names:
        
         - `fl` - Front left channel
         - `fr` - Front right channel
         - `sl` - Side left channel
         - `sr` - Side right channel
         - `fc` - Front center channel
         - `lfe` - Low frequency
         
        repeated string channel_layout = 4;
        Parameters:
        index - The index to set the value at.
        value - The channelLayout to set.
        Returns:
        This builder for chaining.
      • addChannelLayout

        public AudioStream.Builder addChannelLayout​(String value)
         A list of channel names specifying layout of the audio channels.
         This only affects the metadata embedded in the container headers, if
         supported by the specified format. The default is `["fl", "fr"]`.
        
         Supported channel names:
        
         - `fl` - Front left channel
         - `fr` - Front right channel
         - `sl` - Side left channel
         - `sr` - Side right channel
         - `fc` - Front center channel
         - `lfe` - Low frequency
         
        repeated string channel_layout = 4;
        Parameters:
        value - The channelLayout to add.
        Returns:
        This builder for chaining.
      • addAllChannelLayout

        public AudioStream.Builder addAllChannelLayout​(Iterable<String> values)
         A list of channel names specifying layout of the audio channels.
         This only affects the metadata embedded in the container headers, if
         supported by the specified format. The default is `["fl", "fr"]`.
        
         Supported channel names:
        
         - `fl` - Front left channel
         - `fr` - Front right channel
         - `sl` - Side left channel
         - `sr` - Side right channel
         - `fc` - Front center channel
         - `lfe` - Low frequency
         
        repeated string channel_layout = 4;
        Parameters:
        values - The channelLayout to add.
        Returns:
        This builder for chaining.
      • clearChannelLayout

        public AudioStream.Builder clearChannelLayout()
         A list of channel names specifying layout of the audio channels.
         This only affects the metadata embedded in the container headers, if
         supported by the specified format. The default is `["fl", "fr"]`.
        
         Supported channel names:
        
         - `fl` - Front left channel
         - `fr` - Front right channel
         - `sl` - Side left channel
         - `sr` - Side right channel
         - `fc` - Front center channel
         - `lfe` - Low frequency
         
        repeated string channel_layout = 4;
        Returns:
        This builder for chaining.
      • addChannelLayoutBytes

        public AudioStream.Builder addChannelLayoutBytes​(com.google.protobuf.ByteString value)
         A list of channel names specifying layout of the audio channels.
         This only affects the metadata embedded in the container headers, if
         supported by the specified format. The default is `["fl", "fr"]`.
        
         Supported channel names:
        
         - `fl` - Front left channel
         - `fr` - Front right channel
         - `sl` - Side left channel
         - `sr` - Side right channel
         - `fc` - Front center channel
         - `lfe` - Low frequency
         
        repeated string channel_layout = 4;
        Parameters:
        value - The bytes of the channelLayout to add.
        Returns:
        This builder for chaining.
      • getMappingCount

        public int getMappingCount()
         The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
         
        repeated .google.cloud.video.transcoder.v1.AudioStream.AudioMapping mapping = 5;
        Specified by:
        getMappingCount in interface AudioStreamOrBuilder
      • getMapping

        public AudioStream.AudioMapping getMapping​(int index)
         The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
         
        repeated .google.cloud.video.transcoder.v1.AudioStream.AudioMapping mapping = 5;
        Specified by:
        getMapping in interface AudioStreamOrBuilder
      • setMapping

        public AudioStream.Builder setMapping​(int index,
                                              AudioStream.AudioMapping value)
         The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
         
        repeated .google.cloud.video.transcoder.v1.AudioStream.AudioMapping mapping = 5;
      • setMapping

        public AudioStream.Builder setMapping​(int index,
                                              AudioStream.AudioMapping.Builder builderForValue)
         The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
         
        repeated .google.cloud.video.transcoder.v1.AudioStream.AudioMapping mapping = 5;
      • addMapping

        public AudioStream.Builder addMapping​(AudioStream.AudioMapping value)
         The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
         
        repeated .google.cloud.video.transcoder.v1.AudioStream.AudioMapping mapping = 5;
      • addMapping

        public AudioStream.Builder addMapping​(int index,
                                              AudioStream.AudioMapping value)
         The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
         
        repeated .google.cloud.video.transcoder.v1.AudioStream.AudioMapping mapping = 5;
      • addMapping

        public AudioStream.Builder addMapping​(AudioStream.AudioMapping.Builder builderForValue)
         The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
         
        repeated .google.cloud.video.transcoder.v1.AudioStream.AudioMapping mapping = 5;
      • addMapping

        public AudioStream.Builder addMapping​(int index,
                                              AudioStream.AudioMapping.Builder builderForValue)
         The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
         
        repeated .google.cloud.video.transcoder.v1.AudioStream.AudioMapping mapping = 5;
      • addAllMapping

        public AudioStream.Builder addAllMapping​(Iterable<? extends AudioStream.AudioMapping> values)
         The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
         
        repeated .google.cloud.video.transcoder.v1.AudioStream.AudioMapping mapping = 5;
      • clearMapping

        public AudioStream.Builder clearMapping()
         The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
         
        repeated .google.cloud.video.transcoder.v1.AudioStream.AudioMapping mapping = 5;
      • removeMapping

        public AudioStream.Builder removeMapping​(int index)
         The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
         
        repeated .google.cloud.video.transcoder.v1.AudioStream.AudioMapping mapping = 5;
      • getMappingBuilder

        public AudioStream.AudioMapping.Builder getMappingBuilder​(int index)
         The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
         
        repeated .google.cloud.video.transcoder.v1.AudioStream.AudioMapping mapping = 5;
      • addMappingBuilder

        public AudioStream.AudioMapping.Builder addMappingBuilder()
         The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
         
        repeated .google.cloud.video.transcoder.v1.AudioStream.AudioMapping mapping = 5;
      • addMappingBuilder

        public AudioStream.AudioMapping.Builder addMappingBuilder​(int index)
         The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
         
        repeated .google.cloud.video.transcoder.v1.AudioStream.AudioMapping mapping = 5;
      • getMappingBuilderList

        public List<AudioStream.AudioMapping.Builder> getMappingBuilderList()
         The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
         
        repeated .google.cloud.video.transcoder.v1.AudioStream.AudioMapping mapping = 5;
      • getSampleRateHertz

        public int getSampleRateHertz()
         The audio sample rate in Hertz. The default is 48000 Hertz.
         
        int32 sample_rate_hertz = 6;
        Specified by:
        getSampleRateHertz in interface AudioStreamOrBuilder
        Returns:
        The sampleRateHertz.
      • setSampleRateHertz

        public AudioStream.Builder setSampleRateHertz​(int value)
         The audio sample rate in Hertz. The default is 48000 Hertz.
         
        int32 sample_rate_hertz = 6;
        Parameters:
        value - The sampleRateHertz to set.
        Returns:
        This builder for chaining.
      • clearSampleRateHertz

        public AudioStream.Builder clearSampleRateHertz()
         The audio sample rate in Hertz. The default is 48000 Hertz.
         
        int32 sample_rate_hertz = 6;
        Returns:
        This builder for chaining.
      • getLanguageCode

        public String getLanguageCode()
         The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
         information, see
         https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. Not
         supported in MP4 files.
         
        string language_code = 7;
        Specified by:
        getLanguageCode in interface AudioStreamOrBuilder
        Returns:
        The languageCode.
      • getLanguageCodeBytes

        public com.google.protobuf.ByteString getLanguageCodeBytes()
         The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
         information, see
         https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. Not
         supported in MP4 files.
         
        string language_code = 7;
        Specified by:
        getLanguageCodeBytes in interface AudioStreamOrBuilder
        Returns:
        The bytes for languageCode.
      • setLanguageCode

        public AudioStream.Builder setLanguageCode​(String value)
         The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
         information, see
         https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. Not
         supported in MP4 files.
         
        string language_code = 7;
        Parameters:
        value - The languageCode to set.
        Returns:
        This builder for chaining.
      • clearLanguageCode

        public AudioStream.Builder clearLanguageCode()
         The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
         information, see
         https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. Not
         supported in MP4 files.
         
        string language_code = 7;
        Returns:
        This builder for chaining.
      • setLanguageCodeBytes

        public AudioStream.Builder setLanguageCodeBytes​(com.google.protobuf.ByteString value)
         The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
         information, see
         https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. Not
         supported in MP4 files.
         
        string language_code = 7;
        Parameters:
        value - The bytes for languageCode to set.
        Returns:
        This builder for chaining.
      • getDisplayName

        public String getDisplayName()
         The name for this particular audio stream that
         will be added to the HLS/DASH manifest. Not supported in MP4 files.
         
        string display_name = 8;
        Specified by:
        getDisplayName in interface AudioStreamOrBuilder
        Returns:
        The displayName.
      • getDisplayNameBytes

        public com.google.protobuf.ByteString getDisplayNameBytes()
         The name for this particular audio stream that
         will be added to the HLS/DASH manifest. Not supported in MP4 files.
         
        string display_name = 8;
        Specified by:
        getDisplayNameBytes in interface AudioStreamOrBuilder
        Returns:
        The bytes for displayName.
      • setDisplayName

        public AudioStream.Builder setDisplayName​(String value)
         The name for this particular audio stream that
         will be added to the HLS/DASH manifest. Not supported in MP4 files.
         
        string display_name = 8;
        Parameters:
        value - The displayName to set.
        Returns:
        This builder for chaining.
      • clearDisplayName

        public AudioStream.Builder clearDisplayName()
         The name for this particular audio stream that
         will be added to the HLS/DASH manifest. Not supported in MP4 files.
         
        string display_name = 8;
        Returns:
        This builder for chaining.
      • setDisplayNameBytes

        public AudioStream.Builder setDisplayNameBytes​(com.google.protobuf.ByteString value)
         The name for this particular audio stream that
         will be added to the HLS/DASH manifest. Not supported in MP4 files.
         
        string display_name = 8;
        Parameters:
        value - The bytes for displayName to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final AudioStream.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AudioStream.Builder>
      • mergeUnknownFields

        public final AudioStream.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AudioStream.Builder>