Class AudioStream (1.50.0)

publicfinalclass AudioStreamextendsGeneratedMessageV3implementsAudioStreamOrBuilder

Audio stream resource.

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

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static 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

DISPLAY_NAME_FIELD_NUMBER

publicstaticfinalintDISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

LANGUAGE_CODE_FIELD_NUMBER

publicstaticfinalintLANGUAGE_CODE_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

Static Methods

getDefaultInstance()

publicstaticAudioStreamgetDefaultInstance()
Returns
Type Description
AudioStream

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticAudioStream.BuildernewBuilder()
Returns
Type Description
AudioStream.Builder

newBuilder(AudioStream prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

publicstaticAudioStreamparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AudioStream
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAudioStreamparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AudioStream
Exceptions
Type Description
IOException

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

publicstaticParser<AudioStream>parser()
Returns
Type Description
Parser<AudioStream>

Methods

equals(Object obj)

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

getDisplayName()

publicStringgetDisplayName()

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

The displayName.

getDisplayNameBytes()

publicByteStringgetDisplayNameBytes()

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
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. Not supported in MP4 files.

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. Not supported in MP4 files.

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

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>

getParserForType()

publicParser<AudioStream>getParserForType()
Returns
Type Description
Parser<AudioStream>
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

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicAudioStream.BuildernewBuilderForType()
Returns
Type Description
AudioStream.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

publicAudioStream.BuildertoBuilder()
Returns
Type Description
AudioStream.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

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.