Class AudioStream.Builder (1.13.0)

publicstaticfinalclass AudioStream.BuilderextendsGeneratedMessageV3.Builder<AudioStream.Builder>implementsAudioStreamOrBuilder

Audio stream resource.

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

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addAllChannelLayout(Iterable<String> values)

publicAudioStream.BuilderaddAllChannelLayout(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
Name Description
values Iterable<String>

The channelLayout to add.

Returns
Type Description
AudioStream.Builder

This builder for chaining.

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

publicAudioStream.BuilderaddAllMapping(Iterable<?extendsAudioStream.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
Name Description
values Iterable<? extends com.google.cloud.video.transcoder.v1.AudioStream.AudioMapping>
Returns
Type Description
AudioStream.Builder

addChannelLayout(String value)

publicAudioStream.BuilderaddChannelLayout(Stringvalue)

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
Name Description
value String

The channelLayout to add.

Returns
Type Description
AudioStream.Builder

This builder for chaining.

addChannelLayoutBytes(ByteString value)

publicAudioStream.BuilderaddChannelLayoutBytes(ByteStringvalue)

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
Name Description
value ByteString

The bytes of the channelLayout to add.

Returns
Type Description
AudioStream.Builder

This builder for chaining.

addMapping(AudioStream.AudioMapping value)

publicAudioStream.BuilderaddMapping(AudioStream.AudioMappingvalue)

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

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

Parameter
Name Description
value AudioStream.AudioMapping
Returns
Type Description
AudioStream.Builder

addMapping(AudioStream.AudioMapping.Builder builderForValue)

publicAudioStream.BuilderaddMapping(AudioStream.AudioMapping.BuilderbuilderForValue)

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

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

Parameter
Name Description
builderForValue AudioStream.AudioMapping.Builder
Returns
Type Description
AudioStream.Builder

addMapping(int index, AudioStream.AudioMapping value)

publicAudioStream.BuilderaddMapping(intindex,AudioStream.AudioMappingvalue)

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

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

Parameters
Name Description
index int
value AudioStream.AudioMapping
Returns
Type Description
AudioStream.Builder

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

publicAudioStream.BuilderaddMapping(intindex,AudioStream.AudioMapping.BuilderbuilderForValue)

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

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

Parameters
Name Description
index int
builderForValue AudioStream.AudioMapping.Builder
Returns
Type Description
AudioStream.Builder

addMappingBuilder()

publicAudioStream.AudioMapping.BuilderaddMappingBuilder()

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

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

Returns
Type Description
AudioStream.AudioMapping.Builder

addMappingBuilder(int index)

publicAudioStream.AudioMapping.BuilderaddMappingBuilder(intindex)

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

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

Parameter
Name Description
index int
Returns
Type Description
AudioStream.AudioMapping.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicAudioStream.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AudioStream.Builder
Overrides

build()

publicAudioStreambuild()
Returns
Type Description
AudioStream

buildPartial()

publicAudioStreambuildPartial()
Returns
Type Description
AudioStream

clear()

publicAudioStream.Builderclear()
Returns
Type Description
AudioStream.Builder
Overrides

clearBitrateBps()

publicAudioStream.BuilderclearBitrateBps()

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
Type Description
AudioStream.Builder

This builder for chaining.

clearChannelCount()

publicAudioStream.BuilderclearChannelCount()

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

int32 channel_count = 3;

Returns
Type Description
AudioStream.Builder

This builder for chaining.

clearChannelLayout()

publicAudioStream.BuilderclearChannelLayout()

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
Type Description
AudioStream.Builder

This builder for chaining.

clearCodec()

publicAudioStream.BuilderclearCodec()

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
Type Description
AudioStream.Builder

This builder for chaining.

clearDisplayName()

publicAudioStream.BuilderclearDisplayName()

The name for this particular audio stream that will be added to the HLS/DASH manifest.

string display_name = 8;

Returns
Type Description
AudioStream.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicAudioStream.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AudioStream.Builder
Overrides

clearLanguageCode()

publicAudioStream.BuilderclearLanguageCode()

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.

string language_code = 7;

Returns
Type Description
AudioStream.Builder

This builder for chaining.

clearMapping()

publicAudioStream.BuilderclearMapping()

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

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

Returns
Type Description
AudioStream.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

publicAudioStream.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AudioStream.Builder
Overrides

clearSampleRateHertz()

publicAudioStream.BuilderclearSampleRateHertz()

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

int32 sample_rate_hertz = 6;

Returns
Type Description
AudioStream.Builder

This builder for chaining.

clone()

publicAudioStream.Builderclone()
Returns
Type Description
AudioStream.Builder
Overrides

getBitrateBps()

publicintgetBitrateBps()

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
Type Description
int

The bitrateBps.

getChannelCount()

publicintgetChannelCount()

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

int32 channel_count = 3;

Returns
Type Description
int

The channelCount.

getChannelLayout(int index)

publicStringgetChannelLayout(intindex)

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
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The channelLayout at the given index.

getChannelLayoutBytes(int index)

publicByteStringgetChannelLayoutBytes(intindex)

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
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the channelLayout at the given index.

getChannelLayoutCount()

publicintgetChannelLayoutCount()

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
Type Description
int

The count of channelLayout.

getChannelLayoutList()

publicProtocolStringListgetChannelLayoutList()

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
Type Description
ProtocolStringList

A list containing the channelLayout.

getCodec()

publicStringgetCodec()

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
Type Description
String

The codec.

getCodecBytes()

publicByteStringgetCodecBytes()

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
Type Description
ByteString

The bytes for codec.

getDefaultInstanceForType()

publicAudioStreamgetDefaultInstanceForType()
Returns
Type Description
AudioStream

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

publicStringgetDisplayName()

The name for this particular audio stream that will be added to the HLS/DASH manifest.

string display_name = 8;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

publicByteStringgetDisplayNameBytes()

The name for this particular audio stream that will be added to the HLS/DASH manifest.

string display_name = 8;

Returns
Type Description
ByteString

The bytes for displayName.

getLanguageCode()

publicStringgetLanguageCode()

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.

string language_code = 7;

Returns
Type Description
String

The languageCode.

getLanguageCodeBytes()

publicByteStringgetLanguageCodeBytes()

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.

string language_code = 7;

Returns
Type Description
ByteString

The bytes for languageCode.

getMapping(int index)

publicAudioStream.AudioMappinggetMapping(intindex)

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

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

Parameter
Name Description
index int
Returns
Type Description
AudioStream.AudioMapping

getMappingBuilder(int index)

publicAudioStream.AudioMapping.BuildergetMappingBuilder(intindex)

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

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

Parameter
Name Description
index int
Returns
Type Description
AudioStream.AudioMapping.Builder

getMappingBuilderList()

publicList<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
Type Description
List<Builder>

getMappingCount()

publicintgetMappingCount()

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

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

Returns
Type Description
int

getMappingList()

publicList<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
Type Description
List<AudioMapping>

getMappingOrBuilder(int index)

publicAudioStream.AudioMappingOrBuildergetMappingOrBuilder(intindex)

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

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

Parameter
Name Description
index int
Returns
Type Description
AudioStream.AudioMappingOrBuilder

getMappingOrBuilderList()

publicList<?extendsAudioStream.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
Type Description
List<? extends com.google.cloud.video.transcoder.v1.AudioStream.AudioMappingOrBuilder>

getSampleRateHertz()

publicintgetSampleRateHertz()

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

int32 sample_rate_hertz = 6;

Returns
Type Description
int

The sampleRateHertz.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AudioStream other)

publicAudioStream.BuildermergeFrom(AudioStreamother)
Parameter
Name Description
other AudioStream
Returns
Type Description
AudioStream.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicAudioStream.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AudioStream.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicAudioStream.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
AudioStream.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalAudioStream.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AudioStream.Builder
Overrides

removeMapping(int index)

publicAudioStream.BuilderremoveMapping(intindex)

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

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

Parameter
Name Description
index int
Returns
Type Description
AudioStream.Builder

setBitrateBps(int value)

publicAudioStream.BuildersetBitrateBps(intvalue)

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
Name Description
value int

The bitrateBps to set.

Returns
Type Description
AudioStream.Builder

This builder for chaining.

setChannelCount(int value)

publicAudioStream.BuildersetChannelCount(intvalue)

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

int32 channel_count = 3;

Parameter
Name Description
value int

The channelCount to set.

Returns
Type Description
AudioStream.Builder

This builder for chaining.

setChannelLayout(int index, String value)

publicAudioStream.BuildersetChannelLayout(intindex,Stringvalue)

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
Name Description
index int

The index to set the value at.

value String

The channelLayout to set.

Returns
Type Description
AudioStream.Builder

This builder for chaining.

setCodec(String value)

publicAudioStream.BuildersetCodec(Stringvalue)

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
Name Description
value String

The codec to set.

Returns
Type Description
AudioStream.Builder

This builder for chaining.

setCodecBytes(ByteString value)

publicAudioStream.BuildersetCodecBytes(ByteStringvalue)

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
Name Description
value ByteString

The bytes for codec to set.

Returns
Type Description
AudioStream.Builder

This builder for chaining.

setDisplayName(String value)

publicAudioStream.BuildersetDisplayName(Stringvalue)

The name for this particular audio stream that will be added to the HLS/DASH manifest.

string display_name = 8;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
AudioStream.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

publicAudioStream.BuildersetDisplayNameBytes(ByteStringvalue)

The name for this particular audio stream that will be added to the HLS/DASH manifest.

string display_name = 8;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
AudioStream.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicAudioStream.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AudioStream.Builder
Overrides

setLanguageCode(String value)

publicAudioStream.BuildersetLanguageCode(Stringvalue)

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.

string language_code = 7;

Parameter
Name Description
value String

The languageCode to set.

Returns
Type Description
AudioStream.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

publicAudioStream.BuildersetLanguageCodeBytes(ByteStringvalue)

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.

string language_code = 7;

Parameter
Name Description
value ByteString

The bytes for languageCode to set.

Returns
Type Description
AudioStream.Builder

This builder for chaining.

setMapping(int index, AudioStream.AudioMapping value)

publicAudioStream.BuildersetMapping(intindex,AudioStream.AudioMappingvalue)

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

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

Parameters
Name Description
index int
value AudioStream.AudioMapping
Returns
Type Description
AudioStream.Builder

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

publicAudioStream.BuildersetMapping(intindex,AudioStream.AudioMapping.BuilderbuilderForValue)

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

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

Parameters
Name Description
index int
builderForValue AudioStream.AudioMapping.Builder
Returns
Type Description
AudioStream.Builder

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

publicAudioStream.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AudioStream.Builder
Overrides

setSampleRateHertz(int value)

publicAudioStream.BuildersetSampleRateHertz(intvalue)

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

int32 sample_rate_hertz = 6;

Parameter
Name Description
value int

The sampleRateHertz to set.

Returns
Type Description
AudioStream.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalAudioStream.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AudioStream.Builder
Overrides

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.