pub struct GoogleCloudDialogflowV2DetectIntentResponse {
pub output_audio: Option<Vec<u8>>,
pub output_audio_config: Option<GoogleCloudDialogflowV2OutputAudioConfig>,
pub query_result: Option<GoogleCloudDialogflowV2QueryResult>,
pub response_id: Option<String>,
pub webhook_status: Option<GoogleRpcStatus>,
}
Expand description
The message returned from the DetectIntent method.
§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§
§output_audio: Option<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<GoogleCloudDialogflowV2OutputAudioConfig>
The config used by the speech synthesizer to generate the output audio.
query_result: Option<GoogleCloudDialogflowV2QueryResult>
The selected results of the conversational query or event processing. See alternative_query_results
for additional potential results.
response_id: Option<String>
The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues.
webhook_status: Option<GoogleRpcStatus>
Specifies the status of the webhook request.
Trait Implementations§
Source§impl Clone for GoogleCloudDialogflowV2DetectIntentResponse
impl Clone for GoogleCloudDialogflowV2DetectIntentResponse
Source§fn clone(&self) -> GoogleCloudDialogflowV2DetectIntentResponse
fn clone(&self) -> GoogleCloudDialogflowV2DetectIntentResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for GoogleCloudDialogflowV2DetectIntentResponse
impl Default for GoogleCloudDialogflowV2DetectIntentResponse
Source§fn default() -> GoogleCloudDialogflowV2DetectIntentResponse
fn default() -> GoogleCloudDialogflowV2DetectIntentResponse
Source§impl<'de> Deserialize<'de> for GoogleCloudDialogflowV2DetectIntentResponse
impl<'de> Deserialize<'de> for GoogleCloudDialogflowV2DetectIntentResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl ResponseResult for GoogleCloudDialogflowV2DetectIntentResponse
Auto Trait Implementations§
impl Freeze for GoogleCloudDialogflowV2DetectIntentResponse
impl RefUnwindSafe for GoogleCloudDialogflowV2DetectIntentResponse
impl Send for GoogleCloudDialogflowV2DetectIntentResponse
impl Sync for GoogleCloudDialogflowV2DetectIntentResponse
impl Unpin for GoogleCloudDialogflowV2DetectIntentResponse
impl UnwindSafe for GoogleCloudDialogflowV2DetectIntentResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more