Struct GoogleCloudDialogflowCxV3QueryResult

Source
pub struct GoogleCloudDialogflowCxV3QueryResult {
Show 19 fields pub advanced_settings: Option<GoogleCloudDialogflowCxV3AdvancedSettings>, pub allow_answer_feedback: Option<bool>, pub current_page: Option<GoogleCloudDialogflowCxV3Page>, pub data_store_connection_signals: Option<GoogleCloudDialogflowCxV3DataStoreConnectionSignals>, pub diagnostic_info: Option<HashMap<String, Value>>, pub dtmf: Option<GoogleCloudDialogflowCxV3DtmfInput>, pub intent: Option<GoogleCloudDialogflowCxV3Intent>, pub intent_detection_confidence: Option<f32>, pub language_code: Option<String>, pub match_: Option<GoogleCloudDialogflowCxV3Match>, pub parameters: Option<HashMap<String, Value>>, pub response_messages: Option<Vec<GoogleCloudDialogflowCxV3ResponseMessage>>, pub sentiment_analysis_result: Option<GoogleCloudDialogflowCxV3SentimentAnalysisResult>, pub text: Option<String>, pub transcript: Option<String>, pub trigger_event: Option<String>, pub trigger_intent: Option<String>, pub webhook_payloads: Option<Vec<HashMap<String, Value>>>, pub webhook_statuses: Option<Vec<GoogleRpcStatus>>,
}
Expand description

Represents the result of a conversational query.

This type is not used in any activity, and only used as part of another schema.

Fields§

§advanced_settings: Option<GoogleCloudDialogflowCxV3AdvancedSettings>

Returns the current advanced settings including IVR settings. Even though the operations configured by these settings are performed by Dialogflow, the client may need to perform special logic at the moment. For example, if Dialogflow exports audio to Google Cloud Storage, then the client may need to wait for the resulting object to appear in the bucket before proceeding.

§allow_answer_feedback: Option<bool>

Indicates whether the Thumbs up/Thumbs down rating controls are need to be shown for the response in the Dialogflow Messenger widget.

§current_page: Option<GoogleCloudDialogflowCxV3Page>

The current Page. Some, not all fields are filled in this message, including but not limited to name and display_name.

§data_store_connection_signals: Option<GoogleCloudDialogflowCxV3DataStoreConnectionSignals>

Optional. Data store connection feature output signals. Filled only when data stores are involved in serving the query and DetectIntentRequest.populate data_store_connection_quality_signals is set to true in the request.

§diagnostic_info: Option<HashMap<String, Value>>

The free-form diagnostic info. For example, this field could contain webhook call latency. The fields of this data can change without notice, so you should not write code that depends on its structure. One of the fields is called “Alternative Matched Intents”, which may aid with debugging. The following describes these intent results: - The list is empty if no intent was matched to end-user input. - Only intents that are referenced in the currently active flow are included. - The matched intent is included. - Other intents that could have matched end-user input, but did not match because they are referenced by intent routes that are out of scope, are included. - Other intents referenced by intent routes in scope that matched end-user input, but had a lower confidence score.

§dtmf: Option<GoogleCloudDialogflowCxV3DtmfInput>

If a DTMF was provided as input, this field will contain a copy of the DtmfInput.

§intent: Option<GoogleCloudDialogflowCxV3Intent>

The Intent that matched the conversational query. Some, not all fields are filled in this message, including but not limited to: name and display_name. This field is deprecated, please use QueryResult.match instead.

§intent_detection_confidence: Option<f32>

The intent detection confidence. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation. This field is deprecated, please use QueryResult.match instead.

§language_code: Option<String>

The language that was triggered during intent detection. See Language Support for a list of the currently supported language codes.

§match_: Option<GoogleCloudDialogflowCxV3Match>

Intent match result, could be an intent or an event.

§parameters: Option<HashMap<String, Value>>

The collected session parameters. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: * MapKey type: string * MapKey value: parameter name * MapValue type: If parameter’s entity type is a composite entity then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map. * MapValue value: If parameter’s entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.

§response_messages: Option<Vec<GoogleCloudDialogflowCxV3ResponseMessage>>

The list of rich messages returned to the client. Responses vary from simple text messages to more sophisticated, structured payloads used to drive complex logic.

§sentiment_analysis_result: Option<GoogleCloudDialogflowCxV3SentimentAnalysisResult>

The sentiment analyss result, which depends on analyze_query_text_sentiment, specified in the request.

§text: Option<String>

If natural language text was provided as input, this field will contain a copy of the text.

§transcript: Option<String>

If natural language speech audio was provided as input, this field will contain the transcript for the audio.

§trigger_event: Option<String>

If an event was provided as input, this field will contain the name of the event.

§trigger_intent: Option<String>

If an intent was provided as input, this field will contain a copy of the intent identifier. Format: projects//locations//agents//intents/.

§webhook_payloads: Option<Vec<HashMap<String, Value>>>

The list of webhook payload in WebhookResponse.payload, in the order of call sequence. If some webhook call fails or doesn’t return any payload, an empty Struct would be used instead.

§webhook_statuses: Option<Vec<GoogleRpcStatus>>

The list of webhook call status in the order of call sequence.

Trait Implementations§

Source§

impl Clone for GoogleCloudDialogflowCxV3QueryResult

Source§

fn clone(&self) -> GoogleCloudDialogflowCxV3QueryResult

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GoogleCloudDialogflowCxV3QueryResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for GoogleCloudDialogflowCxV3QueryResult

Source§

fn default() -> GoogleCloudDialogflowCxV3QueryResult

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for GoogleCloudDialogflowCxV3QueryResult

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for GoogleCloudDialogflowCxV3QueryResult

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Part for GoogleCloudDialogflowCxV3QueryResult

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,