Struct google_dialogflow2_beta1::GoogleCloudDialogflowV2beta1StreamingAnalyzeContentRequest [−][src]
pub struct GoogleCloudDialogflowV2beta1StreamingAnalyzeContentRequest { pub input_text: Option<String>, pub reply_audio_config: Option<GoogleCloudDialogflowV2beta1OutputAudioConfig>, pub input_audio: Option<String>, pub text_config: Option<GoogleCloudDialogflowV2beta1InputTextConfig>, pub audio_config: Option<GoogleCloudDialogflowV2beta1InputAudioConfig>, }
The top-level message sent by the client to the StreamingAnalyzeContent
method.
Multiple request messages must be sent in the following order:
-
The first message must contain
participant
andconfig
fields. To receive an audio response, the first message must also contain thereply_audio_config
field. The first message must not containinput
. -
All subsequent messages must contain only input data. Specifically:
- If the
config
in the first message was set toaudio_config
, then all subsequent messages must contain onlyinput_audio
. It is a good practice to split the input audio into short chunks and deliver each chunk in a separate message. - If the
config
in the first message was set totext_config
, then the second message must contain onlyinput_text
. Moreover, theinput_text
field can be only sent once. After all input is delivered, the client must half-close, or abort the request stream.
- If the
Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
Fields
input_text: Option<String>
The UTF-8 encoded natural language text to be processed. Must be sent if
text_config
is set in the first message. Text length must not exceed
256 bytes. The input_text
field can be only sent once.
reply_audio_config: Option<GoogleCloudDialogflowV2beta1OutputAudioConfig>
Optional. Instructs the speech synthesizer how to generate the output audio.
input_audio: Option<String>
The input audio content to be recognized. Must be sent if audio_config
is set in the first message. The complete audio over all streaming
messages must not exceed 1 minute.
text_config: Option<GoogleCloudDialogflowV2beta1InputTextConfig>
The natural language text to be processed.
audio_config: Option<GoogleCloudDialogflowV2beta1InputAudioConfig>
Instructs the speech recognizer how to process the speech audio.
Trait Implementations
impl Default for GoogleCloudDialogflowV2beta1StreamingAnalyzeContentRequest
[src]
impl Default for GoogleCloudDialogflowV2beta1StreamingAnalyzeContentRequest
fn default() -> GoogleCloudDialogflowV2beta1StreamingAnalyzeContentRequest
[src]
fn default() -> GoogleCloudDialogflowV2beta1StreamingAnalyzeContentRequest
Returns the "default value" for a type. Read more
impl Clone for GoogleCloudDialogflowV2beta1StreamingAnalyzeContentRequest
[src]
impl Clone for GoogleCloudDialogflowV2beta1StreamingAnalyzeContentRequest
fn clone(&self) -> GoogleCloudDialogflowV2beta1StreamingAnalyzeContentRequest
[src]
fn clone(&self) -> GoogleCloudDialogflowV2beta1StreamingAnalyzeContentRequest
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for GoogleCloudDialogflowV2beta1StreamingAnalyzeContentRequest
[src]
impl Debug for GoogleCloudDialogflowV2beta1StreamingAnalyzeContentRequest
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl RequestValue for GoogleCloudDialogflowV2beta1StreamingAnalyzeContentRequest
[src]
impl RequestValue for GoogleCloudDialogflowV2beta1StreamingAnalyzeContentRequest