public static final class AudioInput.Builder extends GeneratedMessageV3.Builder<AudioInput.Builder> implements AudioInputOrBuilder
Represents the natural speech audio to be processed.
Protobuf type google.cloud.dialogflow.cx.v3beta1.AudioInput
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public AudioInput.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public AudioInput build()
Returns
public AudioInput buildPartial()
Returns
public AudioInput.Builder clear()
Returns
Overrides
public AudioInput.Builder clearAudio()
The natural language speech audio to be processed.
A single request can contain up to 1 minute of speech audio data.
The transcribed text cannot contain more than 256
bytes.
For non-streaming audio detect intent, both config
and audio
must be
provided.
For streaming audio detect intent, config
must be provided in
the first request and audio
must be provided in all following requests.
bytes audio = 2;
Returns
public AudioInput.Builder clearConfig()
Required. Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
public AudioInput.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public AudioInput.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public AudioInput.Builder clone()
Returns
Overrides
public ByteString getAudio()
The natural language speech audio to be processed.
A single request can contain up to 1 minute of speech audio data.
The transcribed text cannot contain more than 256
bytes.
For non-streaming audio detect intent, both config
and audio
must be
provided.
For streaming audio detect intent, config
must be provided in
the first request and audio
must be provided in all following requests.
bytes audio = 2;
Returns
public InputAudioConfig getConfig()
Required. Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
public InputAudioConfig.Builder getConfigBuilder()
Required. Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
public InputAudioConfigOrBuilder getConfigOrBuilder()
Required. Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
public AudioInput getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public boolean hasConfig()
Required. Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type |
Description |
boolean |
Whether the config field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public AudioInput.Builder mergeConfig(InputAudioConfig value)
Required. Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public AudioInput.Builder mergeFrom(AudioInput other)
Parameter
Returns
public AudioInput.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public AudioInput.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final AudioInput.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public AudioInput.Builder setAudio(ByteString value)
The natural language speech audio to be processed.
A single request can contain up to 1 minute of speech audio data.
The transcribed text cannot contain more than 256
bytes.
For non-streaming audio detect intent, both config
and audio
must be
provided.
For streaming audio detect intent, config
must be provided in
the first request and audio
must be provided in all following requests.
bytes audio = 2;
Parameter
Name |
Description |
value |
ByteString
The audio to set.
|
Returns
public AudioInput.Builder setConfig(InputAudioConfig value)
Required. Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public AudioInput.Builder setConfig(InputAudioConfig.Builder builderForValue)
Required. Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public AudioInput.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public AudioInput.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final AudioInput.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides