Class AudioStream.Builder (1.39.0)

public static final class AudioStream.Builder extends GeneratedMessageV3.Builder<AudioStream.Builder> implements AudioStreamOrBuilder

Audio stream resource.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllChannelLayout(Iterable<String> values)

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;

Parameter
NameDescription
valuesIterable<String>

The channelLayout to add.

Returns
TypeDescription
AudioStream.Builder

This builder for chaining.

addAllMapping(Iterable<? extends AudioStream.AudioMapping> values)

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;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.video.transcoder.v1.AudioStream.AudioMapping>
Returns
TypeDescription
AudioStream.Builder

addChannelLayout(String value)

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;

Parameter
NameDescription
valueString

The channelLayout to add.

Returns
TypeDescription
AudioStream.Builder

This builder for chaining.

addChannelLayoutBytes(ByteString value)

public AudioStream.Builder addChannelLayoutBytes(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;

Parameter
NameDescription
valueByteString

The bytes of the channelLayout to add.

Returns
TypeDescription
AudioStream.Builder

This builder for chaining.

addMapping(AudioStream.AudioMapping value)

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;

Parameter
NameDescription
valueAudioStream.AudioMapping
Returns
TypeDescription
AudioStream.Builder

addMapping(AudioStream.AudioMapping.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueAudioStream.AudioMapping.Builder
Returns
TypeDescription
AudioStream.Builder

addMapping(int index, AudioStream.AudioMapping value)

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;

Parameters
NameDescription
indexint
valueAudioStream.AudioMapping
Returns
TypeDescription
AudioStream.Builder

addMapping(int index, AudioStream.AudioMapping.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueAudioStream.AudioMapping.Builder
Returns
TypeDescription
AudioStream.Builder

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;

Returns
TypeDescription
AudioStream.AudioMapping.Builder

addMappingBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
AudioStream.AudioMapping.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AudioStream.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AudioStream.Builder
Overrides

build()

public AudioStream build()
Returns
TypeDescription
AudioStream

buildPartial()

public AudioStream buildPartial()
Returns
TypeDescription
AudioStream

clear()

public AudioStream.Builder clear()
Returns
TypeDescription
AudioStream.Builder
Overrides

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
TypeDescription
AudioStream.Builder

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
TypeDescription
AudioStream.Builder

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
TypeDescription
AudioStream.Builder

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
TypeDescription
AudioStream.Builder

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
TypeDescription
AudioStream.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AudioStream.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AudioStream.Builder
Overrides

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
TypeDescription
AudioStream.Builder

This builder for chaining.

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;

Returns
TypeDescription
AudioStream.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AudioStream.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AudioStream.Builder
Overrides

clearSampleRateHertz()

public AudioStream.Builder clearSampleRateHertz()

The audio sample rate in Hertz. The default is 48000 Hertz.

int32 sample_rate_hertz = 6;

Returns
TypeDescription
AudioStream.Builder

This builder for chaining.

clone()

public AudioStream.Builder clone()
Returns
TypeDescription
AudioStream.Builder
Overrides

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];

Returns
TypeDescription
int

The bitrateBps.

getChannelCount()

public int getChannelCount()

Number of audio channels. Must be between 1 and 6. The default is 2.

int32 channel_count = 3;

Returns
TypeDescription
int

The channelCount.

getChannelLayout(int index)

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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The channelLayout at the given index.

getChannelLayoutBytes(int index)

public 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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the channelLayout at the given index.

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;

Returns
TypeDescription
int

The count of channelLayout.

getChannelLayoutList()

public 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;

Returns
TypeDescription
ProtocolStringList

A list containing the channelLayout.

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;

Returns
TypeDescription
String

The codec.

getCodecBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for codec.

getDefaultInstanceForType()

public AudioStream getDefaultInstanceForType()
Returns
TypeDescription
AudioStream

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for displayName.

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;

Returns
TypeDescription
String

The languageCode.

getLanguageCodeBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for languageCode.

getMapping(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
AudioStream.AudioMapping

getMappingBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
AudioStream.AudioMapping.Builder

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;

Returns
TypeDescription
List<Builder>

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;

Returns
TypeDescription
int

getMappingList()

public List<AudioStream.AudioMapping> getMappingList()

The mapping for the Job.edit_list atoms with audio EditAtom.inputs.

repeated .google.cloud.video.transcoder.v1.AudioStream.AudioMapping mapping = 5;

Returns
TypeDescription
List<AudioMapping>

getMappingOrBuilder(int index)

public AudioStream.AudioMappingOrBuilder getMappingOrBuilder(int index)

The mapping for the Job.edit_list atoms with audio EditAtom.inputs.

repeated .google.cloud.video.transcoder.v1.AudioStream.AudioMapping mapping = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
AudioStream.AudioMappingOrBuilder

getMappingOrBuilderList()

public List<? extends AudioStream.AudioMappingOrBuilder> getMappingOrBuilderList()

The mapping for the Job.edit_list atoms with audio EditAtom.inputs.

repeated .google.cloud.video.transcoder.v1.AudioStream.AudioMapping mapping = 5;

Returns
TypeDescription
List<? extends com.google.cloud.video.transcoder.v1.AudioStream.AudioMappingOrBuilder>

getSampleRateHertz()

public int getSampleRateHertz()

The audio sample rate in Hertz. The default is 48000 Hertz.

int32 sample_rate_hertz = 6;

Returns
TypeDescription
int

The sampleRateHertz.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AudioStream other)

public AudioStream.Builder mergeFrom(AudioStream other)
Parameter
NameDescription
otherAudioStream
Returns
TypeDescription
AudioStream.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AudioStream.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AudioStream.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AudioStream.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AudioStream.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AudioStream.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AudioStream.Builder
Overrides

removeMapping(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
AudioStream.Builder

setBitrateBps(int value)

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];

Parameter
NameDescription
valueint

The bitrateBps to set.

Returns
TypeDescription
AudioStream.Builder

This builder for chaining.

setChannelCount(int value)

public AudioStream.Builder setChannelCount(int value)

Number of audio channels. Must be between 1 and 6. The default is 2.

int32 channel_count = 3;

Parameter
NameDescription
valueint

The channelCount to set.

Returns
TypeDescription
AudioStream.Builder

This builder for chaining.

setChannelLayout(int index, String value)

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
NameDescription
indexint

The index to set the value at.

valueString

The channelLayout to set.

Returns
TypeDescription
AudioStream.Builder

This builder for chaining.

setCodec(String value)

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;

Parameter
NameDescription
valueString

The codec to set.

Returns
TypeDescription
AudioStream.Builder

This builder for chaining.

setCodecBytes(ByteString value)

public AudioStream.Builder setCodecBytes(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;

Parameter
NameDescription
valueByteString

The bytes for codec to set.

Returns
TypeDescription
AudioStream.Builder

This builder for chaining.

setDisplayName(String value)

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;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
AudioStream.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public AudioStream.Builder setDisplayNameBytes(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;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
AudioStream.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AudioStream.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AudioStream.Builder
Overrides

setLanguageCode(String value)

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;

Parameter
NameDescription
valueString

The languageCode to set.

Returns
TypeDescription
AudioStream.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

public AudioStream.Builder setLanguageCodeBytes(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;

Parameter
NameDescription
valueByteString

The bytes for languageCode to set.

Returns
TypeDescription
AudioStream.Builder

This builder for chaining.

setMapping(int index, AudioStream.AudioMapping value)

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;

Parameters
NameDescription
indexint
valueAudioStream.AudioMapping
Returns
TypeDescription
AudioStream.Builder

setMapping(int index, AudioStream.AudioMapping.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueAudioStream.AudioMapping.Builder
Returns
TypeDescription
AudioStream.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AudioStream.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AudioStream.Builder
Overrides

setSampleRateHertz(int value)

public AudioStream.Builder setSampleRateHertz(int value)

The audio sample rate in Hertz. The default is 48000 Hertz.

int32 sample_rate_hertz = 6;

Parameter
NameDescription
valueint

The sampleRateHertz to set.

Returns
TypeDescription
AudioStream.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AudioStream.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AudioStream.Builder
Overrides