Class InputAudioConfig.Builder (0.1.0)

public static final class InputAudioConfig.Builder extends GeneratedMessage.Builder<InputAudioConfig.Builder> implements InputAudioConfigOrBuilder

InputAudioConfig configures how the CES agent should interpret the incoming audio data.

Protobuf type google.cloud.ces.v1.InputAudioConfig

Static Methods

getDescriptor()

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

Methods

build()

public InputAudioConfig build()
Returns
Type Description
InputAudioConfig

buildPartial()

public InputAudioConfig buildPartial()
Returns
Type Description
InputAudioConfig

clear()

public InputAudioConfig.Builder clear()
Returns
Type Description
InputAudioConfig.Builder
Overrides

clearAudioEncoding()

public InputAudioConfig.Builder clearAudioEncoding()

Required. The encoding of the input audio data.

.google.cloud.ces.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
InputAudioConfig.Builder

This builder for chaining.

clearNoiseSuppressionLevel()

public InputAudioConfig.Builder clearNoiseSuppressionLevel()

Optional. Whether to enable noise suppression on the input audio. Available values are "low", "moderate", "high", "very_high".

string noise_suppression_level = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InputAudioConfig.Builder

This builder for chaining.

clearSampleRateHertz()

public InputAudioConfig.Builder clearSampleRateHertz()

Required. The sample rate (in Hertz) of the input audio data.

int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
InputAudioConfig.Builder

This builder for chaining.

getAudioEncoding()

public AudioEncoding getAudioEncoding()

Required. The encoding of the input audio data.

.google.cloud.ces.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AudioEncoding

The audioEncoding.

getAudioEncodingValue()

public int getAudioEncodingValue()

Required. The encoding of the input audio data.

.google.cloud.ces.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for audioEncoding.

getDefaultInstanceForType()

public InputAudioConfig getDefaultInstanceForType()
Returns
Type Description
InputAudioConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNoiseSuppressionLevel()

public String getNoiseSuppressionLevel()

Optional. Whether to enable noise suppression on the input audio. Available values are "low", "moderate", "high", "very_high".

string noise_suppression_level = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The noiseSuppressionLevel.

getNoiseSuppressionLevelBytes()

public ByteString getNoiseSuppressionLevelBytes()

Optional. Whether to enable noise suppression on the input audio. Available values are "low", "moderate", "high", "very_high".

string noise_suppression_level = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for noiseSuppressionLevel.

getSampleRateHertz()

public int getSampleRateHertz()

Required. The sample rate (in Hertz) of the input audio data.

int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The sampleRateHertz.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InputAudioConfig other)

public InputAudioConfig.Builder mergeFrom(InputAudioConfig other)
Parameter
Name Description
other InputAudioConfig
Returns
Type Description
InputAudioConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InputAudioConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InputAudioConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InputAudioConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InputAudioConfig.Builder
Overrides

setAudioEncoding(AudioEncoding value)

public InputAudioConfig.Builder setAudioEncoding(AudioEncoding value)

Required. The encoding of the input audio data.

.google.cloud.ces.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AudioEncoding

The audioEncoding to set.

Returns
Type Description
InputAudioConfig.Builder

This builder for chaining.

setAudioEncodingValue(int value)

public InputAudioConfig.Builder setAudioEncodingValue(int value)

Required. The encoding of the input audio data.

.google.cloud.ces.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for audioEncoding to set.

Returns
Type Description
InputAudioConfig.Builder

This builder for chaining.

setNoiseSuppressionLevel(String value)

public InputAudioConfig.Builder setNoiseSuppressionLevel(String value)

Optional. Whether to enable noise suppression on the input audio. Available values are "low", "moderate", "high", "very_high".

string noise_suppression_level = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The noiseSuppressionLevel to set.

Returns
Type Description
InputAudioConfig.Builder

This builder for chaining.

setNoiseSuppressionLevelBytes(ByteString value)

public InputAudioConfig.Builder setNoiseSuppressionLevelBytes(ByteString value)

Optional. Whether to enable noise suppression on the input audio. Available values are "low", "moderate", "high", "very_high".

string noise_suppression_level = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for noiseSuppressionLevel to set.

Returns
Type Description
InputAudioConfig.Builder

This builder for chaining.

setSampleRateHertz(int value)

public InputAudioConfig.Builder setSampleRateHertz(int value)

Required. The sample rate (in Hertz) of the input audio data.

int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The sampleRateHertz to set.

Returns
Type Description
InputAudioConfig.Builder

This builder for chaining.