pub struct GoogleCloudDialogflowCxV3DetectIntentResponse {
pub allow_cancellation: Option<bool>,
pub output_audio: Option<Vec<u8>>,
pub output_audio_config: Option<GoogleCloudDialogflowCxV3OutputAudioConfig>,
pub query_result: Option<GoogleCloudDialogflowCxV3QueryResult>,
pub response_id: Option<String>,
pub response_type: Option<String>,
}
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§
§allow_cancellation: Option<bool>
Indicates whether the partial response can be cancelled when a later response arrives. e.g. if the agent specified some music as partial response, it can be cancelled.
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.response_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<GoogleCloudDialogflowCxV3OutputAudioConfig>
The config used by the speech synthesizer to generate the output audio.
query_result: Option<GoogleCloudDialogflowCxV3QueryResult>
The result of the conversational query.
response_id: Option<String>
Output only. The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues.
response_type: Option<String>
Response type.
Trait Implementations§
Source§impl Clone for GoogleCloudDialogflowCxV3DetectIntentResponse
impl Clone for GoogleCloudDialogflowCxV3DetectIntentResponse
Source§fn clone(&self) -> GoogleCloudDialogflowCxV3DetectIntentResponse
fn clone(&self) -> GoogleCloudDialogflowCxV3DetectIntentResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for GoogleCloudDialogflowCxV3DetectIntentResponse
impl Default for GoogleCloudDialogflowCxV3DetectIntentResponse
Source§fn default() -> GoogleCloudDialogflowCxV3DetectIntentResponse
fn default() -> GoogleCloudDialogflowCxV3DetectIntentResponse
Source§impl<'de> Deserialize<'de> for GoogleCloudDialogflowCxV3DetectIntentResponse
impl<'de> Deserialize<'de> for GoogleCloudDialogflowCxV3DetectIntentResponse
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 GoogleCloudDialogflowCxV3DetectIntentResponse
Auto Trait Implementations§
impl Freeze for GoogleCloudDialogflowCxV3DetectIntentResponse
impl RefUnwindSafe for GoogleCloudDialogflowCxV3DetectIntentResponse
impl Send for GoogleCloudDialogflowCxV3DetectIntentResponse
impl Sync for GoogleCloudDialogflowCxV3DetectIntentResponse
impl Unpin for GoogleCloudDialogflowCxV3DetectIntentResponse
impl UnwindSafe for GoogleCloudDialogflowCxV3DetectIntentResponse
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