public static final class AudioSettings.Builder extends GeneratedMessage.Builder<AudioSettings.Builder> implements AudioSettingsOrBuilderInformation about the audio settings of an encoding profile.
Protobuf type google.ads.admanager.v1.AudioSettings
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AudioSettings.BuilderImplements
AudioSettingsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AudioSettings build()| Returns | |
|---|---|
| Type | Description |
AudioSettings |
|
buildPartial()
public AudioSettings buildPartial()| Returns | |
|---|---|
| Type | Description |
AudioSettings |
|
clear()
public AudioSettings.Builder clear()| Returns | |
|---|---|
| Type | Description |
AudioSettings.Builder |
|
clearBitrate()
public AudioSettings.Builder clearBitrate()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 |
AudioSettings.Builder |
This builder for chaining. |
clearChannels()
public AudioSettings.Builder clearChannels()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 |
AudioSettings.Builder |
This builder for chaining. |
clearCodec()
public AudioSettings.Builder clearCodec()Required. The RFC6381 codec string of the audio.
optional string codec = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AudioSettings.Builder |
This builder for chaining. |
clearSampleRateHertz()
public AudioSettings.Builder clearSampleRateHertz()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 |
AudioSettings.Builder |
This builder for chaining. |
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 |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AudioSettings other)
public AudioSettings.Builder mergeFrom(AudioSettings other)| Parameter | |
|---|---|
| Name | Description |
other |
AudioSettings |
| Returns | |
|---|---|
| Type | Description |
AudioSettings.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AudioSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AudioSettings.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AudioSettings.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AudioSettings.Builder |
|
setBitrate(long value)
public AudioSettings.Builder setBitrate(long value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe bitrate to set. |
| Returns | |
|---|---|
| Type | Description |
AudioSettings.Builder |
This builder for chaining. |
setChannels(long value)
public AudioSettings.Builder setChannels(long value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe channels to set. |
| Returns | |
|---|---|
| Type | Description |
AudioSettings.Builder |
This builder for chaining. |
setCodec(String value)
public AudioSettings.Builder setCodec(String value)Required. The RFC6381 codec string of the audio.
optional string codec = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe codec to set. |
| Returns | |
|---|---|
| Type | Description |
AudioSettings.Builder |
This builder for chaining. |
setCodecBytes(ByteString value)
public AudioSettings.Builder setCodecBytes(ByteString value)Required. The RFC6381 codec string of the audio.
optional string codec = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for codec to set. |
| Returns | |
|---|---|
| Type | Description |
AudioSettings.Builder |
This builder for chaining. |
setSampleRateHertz(long value)
public AudioSettings.Builder setSampleRateHertz(long value)Required. The audio sample rate in hertz. Must be between 44kHz and 100kHz.
optional int64 sample_rate_hertz = 4 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe sampleRateHertz to set. |
| Returns | |
|---|---|
| Type | Description |
AudioSettings.Builder |
This builder for chaining. |