Class AudioStream (0.4.3)

publicfinalclass AudioStreamextendsGeneratedMessageV3implementsAudioStreamOrBuilder

Audio stream resource.

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

Inherited Members

Fields

BITRATE_BPS_FIELD_NUMBER

publicstaticfinalintBITRATE_BPS_FIELD_NUMBER
Field Value
Type Description
int

CHANNEL_COUNT_FIELD_NUMBER

publicstaticfinalintCHANNEL_COUNT_FIELD_NUMBER
Field Value
Type Description
int

CHANNEL_LAYOUT_FIELD_NUMBER

publicstaticfinalintCHANNEL_LAYOUT_FIELD_NUMBER
Field Value
Type Description
int

CODEC_FIELD_NUMBER

publicstaticfinalintCODEC_FIELD_NUMBER
Field Value
Type Description
int

MAPPING_FIELD_NUMBER

publicstaticfinalintMAPPING_FIELD_NUMBER
Field Value
Type Description
int

SAMPLE_RATE_HERTZ_FIELD_NUMBER

publicstaticfinalintSAMPLE_RATE_HERTZ_FIELD_NUMBER
Field Value
Type Description
int

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
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.

getDefaultInstance()

publicstaticAudioStreamgetDefaultInstance()
Returns
Type Description

getDefaultInstanceForType()

publicAudioStreamgetDefaultInstanceForType()
Returns
Type Description

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description

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

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>

getParserForType()

publicParser<AudioStream>getParserForType()
Returns
Type Description
Overrides

getSampleRateHertz()

publicintgetSampleRateHertz()

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

int32 sample_rate_hertz = 6;

Returns
Type Description
int

The sampleRateHertz.

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getUnknownFields()

publicfinalUnknownFieldSetgetUnknownFields()
Returns
Type Description
Overrides

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

newBuilder()

publicstaticAudioStream.BuildernewBuilder()
Returns
Type Description

newBuilder(AudioStream prototype)

publicstaticAudioStream.BuildernewBuilder(AudioStreamprototype)
Parameter
Name Description
prototype AudioStream
Returns
Type Description

newBuilderForType()

publicAudioStream.BuildernewBuilderForType()
Returns
Type Description

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedAudioStream.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
Returns
Type Description
Overrides

parseDelimitedFrom(InputStream input)

publicstaticAudioStreamparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Exceptions
Type Description

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAudioStreamparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exceptions
Type Description

parseFrom(byte[] data)

publicstaticAudioStreamparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
Exceptions
Type Description

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticAudioStreamparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exceptions
Type Description

parseFrom(ByteString data)

publicstaticAudioStreamparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
Exceptions
Type Description

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticAudioStreamparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exceptions
Type Description

parseFrom(CodedInputStream input)

publicstaticAudioStreamparseFrom(CodedInputStreaminput)
Parameter
Name Description
Returns
Type Description
Exceptions
Type Description

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAudioStreamparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exceptions
Type Description

parseFrom(InputStream input)

publicstaticAudioStreamparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Exceptions
Type Description

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAudioStreamparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exceptions
Type Description

parseFrom(ByteBuffer data)

publicstaticAudioStreamparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Exceptions
Type Description

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticAudioStreamparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exceptions
Type Description

parser()

publicstaticParser<AudioStream>parser()
Returns
Type Description

toBuilder()

publicAudioStream.BuildertoBuilder()
Returns
Type Description

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
Overrides Exceptions
Type Description

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.