Struct google_api_proto::google::cloud::dialogflow::cx::v3::form::parameter::FillBehavior
source · pub struct FillBehavior {
pub initial_prompt_fulfillment: Option<Fulfillment>,
pub reprompt_event_handlers: Vec<EventHandler>,
}
Expand description
Configuration for how the filling of a parameter should be handled.
Fields§
§initial_prompt_fulfillment: Option<Fulfillment>
Required. The fulfillment to provide the initial prompt that the agent can present to the user in order to fill the parameter.
reprompt_event_handlers: Vec<EventHandler>
The handlers for parameter-level events, used to provide reprompt for the parameter or transition to a different page/flow. The supported events are:
sys.no-match-<N>
, where N can be from 1 to 6sys.no-match-default
sys.no-input-<N>
, where N can be from 1 to 6sys.no-input-default
sys.invalid-parameter
initial_prompt_fulfillment
provides the first prompt for the
parameter.
If the user’s response does not fill the parameter, a
no-match/no-input event will be triggered, and the fulfillment
associated with the sys.no-match-1
/sys.no-input-1
handler (if
defined) will be called to provide a prompt. The
sys.no-match-2
/sys.no-input-2
handler (if defined) will respond to
the next no-match/no-input event, and so on.
A sys.no-match-default
or sys.no-input-default
handler will be used
to handle all following no-match/no-input events after all numbered
no-match/no-input handlers for the parameter are consumed.
A sys.invalid-parameter
handler can be defined to handle the case
where the parameter values have been invalidated
by webhook. For
example, if the user’s response fill the parameter, however the
parameter was invalidated by webhook, the fulfillment associated with
the sys.invalid-parameter
handler (if defined) will be called to
provide a prompt.
If the event handler for the corresponding event can’t be found on the
parameter, initial_prompt_fulfillment
will be re-prompted.
Trait Implementations§
source§impl Clone for FillBehavior
impl Clone for FillBehavior
source§fn clone(&self) -> FillBehavior
fn clone(&self) -> FillBehavior
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FillBehavior
impl Debug for FillBehavior
source§impl Default for FillBehavior
impl Default for FillBehavior
source§impl Message for FillBehavior
impl Message for FillBehavior
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for FillBehavior
impl PartialEq for FillBehavior
source§fn eq(&self, other: &FillBehavior) -> bool
fn eq(&self, other: &FillBehavior) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FillBehavior
Auto Trait Implementations§
impl Freeze for FillBehavior
impl RefUnwindSafe for FillBehavior
impl Send for FillBehavior
impl Sync for FillBehavior
impl Unpin for FillBehavior
impl UnwindSafe for FillBehavior
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request