Struct gapi_grpc::google::cloud::dialogflow::cx::v3::Match[][src]

pub struct Match {
    pub intent: Option<Intent>,
    pub event: String,
    pub parameters: Option<Struct>,
    pub resolved_input: String,
    pub match_type: i32,
    pub confidence: f32,
}

Represents one match result of [MatchIntent][].

Fields

intent: Option<Intent>

The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in this message, including but not limited to: name and display_name. Only filled for [INTENT][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.

event: String

The event that matched the query. Only filled for [EVENT][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.

parameters: Option<Struct>

The collection of parameters extracted from the query.

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:

resolved_input: String

Final text input which was matched during MatchIntent. This value can be different from original input sent in request because of spelling correction or other processing.

match_type: i32

Type of this [Match][google.cloud.dialogflow.cx.v3.Match].

confidence: f32

The confidence of this match. 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.

Implementations

impl Match[src]

pub fn match_type(&self) -> MatchType[src]

Returns the enum value of match_type, or the default if the field is set to an invalid enum value.

pub fn set_match_type(&mut self, value: MatchType)[src]

Sets match_type to the provided enum value.

Trait Implementations

impl Clone for Match[src]

impl Debug for Match[src]

impl Default for Match[src]

impl Message for Match[src]

impl PartialEq<Match> for Match[src]

impl StructuralPartialEq for Match[src]

Auto Trait Implementations

impl RefUnwindSafe for Match

impl Send for Match

impl Sync for Match

impl Unpin for Match

impl UnwindSafe for Match

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]