Class AudioStream.Builder (1.5.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

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

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

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

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

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

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

publicAudioStreambuild()
Returns
Type Description

buildPartial()

publicAudioStreambuildPartial()
Returns
Type Description

clear()

publicAudioStream.Builderclear()
Returns
Type Description
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.

clearField(Descriptors.FieldDescriptor field)

publicAudioStream.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
Returns
Type Description
Overrides

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

clearOneof(Descriptors.OneofDescriptor oneof)

publicAudioStream.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
Returns
Type Description
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
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

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Overrides

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

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

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

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

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

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
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

mergeFrom(AudioStream other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicAudioStream.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Overrides Exceptions
Type Description

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalAudioStream.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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

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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

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

publicAudioStream.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
index int
value Object
Returns
Type Description
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
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.