Class AudioSettings (0.58.0)

public final class AudioSettings extends GeneratedMessage implements AudioSettingsOrBuilder

Information about the audio settings of an encoding profile.

Protobuf type google.ads.admanager.v1.AudioSettings

Static Fields

BITRATE_FIELD_NUMBER

public static final int BITRATE_FIELD_NUMBER
Field Value
Type Description
int

CHANNELS_FIELD_NUMBER

public static final int CHANNELS_FIELD_NUMBER
Field Value
Type Description
int

CODEC_FIELD_NUMBER

public static final int CODEC_FIELD_NUMBER
Field Value
Type Description
int

SAMPLE_RATE_HERTZ_FIELD_NUMBER

public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AudioSettings getDefaultInstance()
Returns
Type Description
AudioSettings

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AudioSettings.Builder newBuilder()
Returns
Type Description
AudioSettings.Builder

newBuilder(AudioSettings prototype)

public static AudioSettings.Builder newBuilder(AudioSettings prototype)
Parameter
Name Description
prototype AudioSettings
Returns
Type Description
AudioSettings.Builder

parseDelimitedFrom(InputStream input)

public static AudioSettings parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AudioSettings
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AudioSettings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AudioSettings
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AudioSettings parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AudioSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AudioSettings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AudioSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AudioSettings parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AudioSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AudioSettings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AudioSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AudioSettings parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AudioSettings
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AudioSettings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AudioSettings
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AudioSettings parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AudioSettings
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AudioSettings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AudioSettings
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AudioSettings parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AudioSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AudioSettings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AudioSettings
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AudioSettings> parser()
Returns
Type Description
Parser<AudioSettings>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBitrate()

public long getBitrate()

Required. The bitrate of the audio, in bits per second. This value must be between 8kbps and 250 Mbps.

optional int64 bitrate = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The bitrate.

getChannels()

public long getChannels()

Required. The number of audio channels, including low frequency channels. This value has a maximum of 8.

optional int64 channels = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The channels.

getCodec()

public String getCodec()

Required. The RFC6381 codec string of the audio.

optional string codec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The codec.

getCodecBytes()

public ByteString getCodecBytes()

Required. The RFC6381 codec string of the audio.

optional string codec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for codec.

getDefaultInstanceForType()

public AudioSettings getDefaultInstanceForType()
Returns
Type Description
AudioSettings

getParserForType()

public Parser<AudioSettings> getParserForType()
Returns
Type Description
Parser<AudioSettings>
Overrides

getSampleRateHertz()

public long getSampleRateHertz()

Required. The audio sample rate in hertz. Must be between 44kHz and 100kHz.

optional int64 sample_rate_hertz = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The sampleRateHertz.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasBitrate()

public boolean hasBitrate()

Required. The bitrate of the audio, in bits per second. This value must be between 8kbps and 250 Mbps.

optional int64 bitrate = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the bitrate field is set.

hasChannels()

public boolean hasChannels()

Required. The number of audio channels, including low frequency channels. This value has a maximum of 8.

optional int64 channels = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the channels field is set.

hasCodec()

public boolean hasCodec()

Required. The RFC6381 codec string of the audio.

optional string codec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the codec field is set.

hasSampleRateHertz()

public boolean hasSampleRateHertz()

Required. The audio sample rate in hertz. Must be between 44kHz and 100kHz.

optional int64 sample_rate_hertz = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the sampleRateHertz field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AudioSettings.Builder newBuilderForType()
Returns
Type Description
AudioSettings.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected AudioSettings.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AudioSettings.Builder
Overrides

toBuilder()

public AudioSettings.Builder toBuilder()
Returns
Type Description
AudioSettings.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException