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

pub struct Fulfillment {
    pub messages: Vec<ResponseMessage>,
    pub webhook: String,
    pub tag: String,
    pub set_parameter_actions: Vec<SetParameterAction>,
    pub conditional_cases: Vec<ConditionalCases>,
}

A fulfillment can do one or more of the following actions at the same time:

Fulfillments can be called at various stages in the [Page][google.cloud.dialogflow.cx.v3beta1.Page] or [Form][google.cloud.dialogflow.cx.v3beta1.Form] lifecycle. For example, when a [DetectIntentRequest][google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest] drives a session to enter a new page, the page’s entry fulfillment can add a static response to the [QueryResult][google.cloud.dialogflow.cx.v3beta1.QueryResult] in the returning [DetectIntentResponse][google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse], call the webhook (for example, to load user data from a database), or both.

Fields

messages: Vec<ResponseMessage>

The list of rich message responses to present to the user.

webhook: String

The webhook to call. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>.

tag: String

The tag used by the webhook to identify which fulfillment is being called. This field is required if webhook is specified.

set_parameter_actions: Vec<SetParameterAction>

Set parameter values before executing the webhook.

conditional_cases: Vec<ConditionalCases>

Conditional cases for this fulfillment.

Trait Implementations

impl Clone for Fulfillment[src]

impl Debug for Fulfillment[src]

impl Default for Fulfillment[src]

impl Message for Fulfillment[src]

impl PartialEq<Fulfillment> for Fulfillment[src]

impl StructuralPartialEq for Fulfillment[src]

Auto Trait Implementations

impl RefUnwindSafe for Fulfillment

impl Send for Fulfillment

impl Sync for Fulfillment

impl Unpin for Fulfillment

impl UnwindSafe for Fulfillment

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]