Struct googapis::google::cloud::dialogflow::v2beta1::StreamingDetectIntentResponse [−][src]
pub struct StreamingDetectIntentResponse {
pub response_id: String,
pub recognition_result: Option<StreamingRecognitionResult>,
pub query_result: Option<QueryResult>,
pub alternative_query_results: Vec<QueryResult>,
pub webhook_status: Option<Status>,
pub output_audio: Vec<u8>,
pub output_audio_config: Option<OutputAudioConfig>,
}
Expand description
The top-level message returned from the
StreamingDetectIntent
method.
Multiple response messages can be returned in order:
-
If the
StreamingDetectIntentRequest.input_audio
field was set, therecognition_result
field is populated for one or more messages. See the [StreamingRecognitionResult][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult] message for details about the result message sequence. -
The next message contains
response_id
,query_result
,alternative_query_results
and optionallywebhook_status
if a WebHook was called. -
If
output_audio_config
was specified in the request or agent-level speech synthesizer is configured, all subsequent messages containoutput_audio
andoutput_audio_config
.
Fields
response_id: String
The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues.
recognition_result: Option<StreamingRecognitionResult>
The result of speech recognition.
query_result: Option<QueryResult>
The selected results of the conversational query or event processing.
See alternative_query_results
for additional potential results.
alternative_query_results: Vec<QueryResult>
If Knowledge Connectors are enabled, there could be more than one result
returned for a given query or event, and this field will contain all
results except for the top one, which is captured in query_result. The
alternative results are ordered by decreasing
QueryResult.intent_detection_confidence
. If Knowledge Connectors are
disabled, this field will be empty until multiple responses for regular
intents are supported, at which point those additional results will be
surfaced here.
webhook_status: Option<Status>
Specifies the status of the webhook request.
output_audio: Vec<u8>
The audio data bytes encoded as specified in the request.
Note: The output audio is generated based on the values of default platform
text responses found in the query_result.fulfillment_messages
field. If
multiple default text responses exist, they will be concatenated when
generating audio. If no default platform text responses exist, the
generated audio content will be empty.
In some scenarios, multiple output audio fields may be present in the response structure. In these cases, only the top-most-level audio output has content.
output_audio_config: Option<OutputAudioConfig>
The config used by the speech synthesizer to generate the output audio.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl Send for StreamingDetectIntentResponse
impl Sync for StreamingDetectIntentResponse
impl Unpin for StreamingDetectIntentResponse
impl UnwindSafe for StreamingDetectIntentResponse
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more