Struct gapi_grpc::google::cloud::dialogflow::cx::v3beta1::Intent[][src]

pub struct Intent {
    pub name: String,
    pub display_name: String,
    pub training_phrases: Vec<TrainingPhrase>,
    pub parameters: Vec<Parameter>,
    pub priority: i32,
    pub is_fallback: bool,
    pub labels: HashMap<String, String>,
    pub description: String,
}

An intent represents a user’s intent to interact with a conversational agent.

You can provide information for the Dialogflow API to use to match user input to an intent by adding training phrases (i.e., examples of user input) to your intent.

Fields

name: String

The unique identifier of the intent. Required for the [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3beta1.Intents.UpdateIntent] method. [Intents.CreateIntent][google.cloud.dialogflow.cx.v3beta1.Intents.CreateIntent] populates the name automatically. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

display_name: String

Required. The human-readable name of the intent, unique within the agent.

training_phrases: Vec<TrainingPhrase>

The collection of training phrases the agent is trained on to identify the intent.

parameters: Vec<Parameter>

The collection of parameters associated with the intent.

priority: i32

The priority of this intent. Higher numbers represent higher priorities.

is_fallback: bool

Indicates whether this is a fallback intent. Currently only default fallback intent is allowed in the agent, which is added upon agent creation. Adding training phrases to fallback intent is useful in the case of requests that are mistakenly matched, since training phrases assigned to fallback intents act as negative examples that triggers no-match event.

labels: HashMap<String, String>

The key/value metadata to label an intent. Labels can contain lowercase letters, digits and the symbols ‘-’ and ‘_’. International characters are allowed, including letters from unicase alphabets. Keys must start with a letter. Keys and values can be no longer than 63 characters and no more than 128 bytes.

Prefix “sys-” is reserved for Dialogflow defined labels. Currently allowed Dialogflow defined labels include:

description: String

Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters.

Trait Implementations

impl Clone for Intent[src]

impl Debug for Intent[src]

impl Default for Intent[src]

impl Message for Intent[src]

impl PartialEq<Intent> for Intent[src]

impl StructuralPartialEq for Intent[src]

Auto Trait Implementations

impl RefUnwindSafe for Intent

impl Send for Intent

impl Sync for Intent

impl Unpin for Intent

impl UnwindSafe for Intent

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]