public static final class OutputAudioConfig.Builder extends GeneratedMessage.Builder<OutputAudioConfig.Builder> implements OutputAudioConfigOrBuilderOutputAudioConfig configures how the CES agent should synthesize outgoing audio responses.
Protobuf type google.cloud.ces.v1.OutputAudioConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > OutputAudioConfig.BuilderImplements
OutputAudioConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public OutputAudioConfig build()| Returns | |
|---|---|
| Type | Description |
OutputAudioConfig |
|
buildPartial()
public OutputAudioConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
OutputAudioConfig |
|
clear()
public OutputAudioConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
OutputAudioConfig.Builder |
|
clearAudioEncoding()
public OutputAudioConfig.Builder clearAudioEncoding()Required. The encoding of the output audio data.
.google.cloud.ces.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
OutputAudioConfig.Builder |
This builder for chaining. |
clearSampleRateHertz()
public OutputAudioConfig.Builder clearSampleRateHertz()Required. The sample rate (in Hertz) of the output audio data.
int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
OutputAudioConfig.Builder |
This builder for chaining. |
getAudioEncoding()
public AudioEncoding getAudioEncoding()Required. The encoding of the output 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 output 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 OutputAudioConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
OutputAudioConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getSampleRateHertz()
public int getSampleRateHertz()Required. The sample rate (in Hertz) of the output 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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(OutputAudioConfig other)
public OutputAudioConfig.Builder mergeFrom(OutputAudioConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
OutputAudioConfig |
| Returns | |
|---|---|
| Type | Description |
OutputAudioConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public OutputAudioConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OutputAudioConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public OutputAudioConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
OutputAudioConfig.Builder |
|
setAudioEncoding(AudioEncoding value)
public OutputAudioConfig.Builder setAudioEncoding(AudioEncoding value)Required. The encoding of the output audio data.
.google.cloud.ces.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
AudioEncodingThe audioEncoding to set. |
| Returns | |
|---|---|
| Type | Description |
OutputAudioConfig.Builder |
This builder for chaining. |
setAudioEncodingValue(int value)
public OutputAudioConfig.Builder setAudioEncodingValue(int value)Required. The encoding of the output audio data.
.google.cloud.ces.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for audioEncoding to set. |
| Returns | |
|---|---|
| Type | Description |
OutputAudioConfig.Builder |
This builder for chaining. |
setSampleRateHertz(int value)
public OutputAudioConfig.Builder setSampleRateHertz(int value)Required. The sample rate (in Hertz) of the output audio data.
int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe sampleRateHertz to set. |
| Returns | |
|---|---|
| Type | Description |
OutputAudioConfig.Builder |
This builder for chaining. |