Struct google_api_proto::google::cloud::dialogflow::cx::v3::TransitionRoute
source · pub struct TransitionRoute {
pub name: String,
pub description: String,
pub intent: String,
pub condition: String,
pub trigger_fulfillment: Option<Fulfillment>,
pub target: Option<Target>,
}
Expand description
A transition route specifies a [intent][google.cloud.dialogflow.cx.v3.Intent] that can be matched and/or a data condition that can be evaluated during a session. When a specified transition is matched, the following actions are taken in order:
- If there is a
[
trigger_fulfillment
][google.cloud.dialogflow.cx.v3.TransitionRoute.trigger_fulfillment] associated with the transition, it will be called. - If there is a
[
target_page
][google.cloud.dialogflow.cx.v3.TransitionRoute.target_page] associated with the transition, the session will transition into the specified page. - If there is a
[
target_flow
][google.cloud.dialogflow.cx.v3.TransitionRoute.target_flow] associated with the transition, the session will transition into the specified flow.
Fields§
§name: String
Output only. The unique identifier of this transition route.
description: String
Optional. The description of the transition route. The maximum length is 500 characters.
intent: String
The unique identifier of an [Intent][google.cloud.dialogflow.cx.v3.Intent].
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>
.
Indicates that the transition can only happen when the given intent is
matched.
At least one of intent
or condition
must be specified. When both
intent
and condition
are specified, the transition can only happen
when both are fulfilled.
condition: String
The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
See the conditions
reference.
At least one of intent
or condition
must be specified. When both
intent
and condition
are specified, the transition can only happen
when both are fulfilled.
trigger_fulfillment: Option<Fulfillment>
The fulfillment to call when the condition is satisfied. At least one of
trigger_fulfillment
and target
must be specified. When both are
defined, trigger_fulfillment
is executed first.
target: Option<Target>
The target to transition to, either a page in the same host flow (the flow that owns this [TransitionRoute][google.cloud.dialogflow.cx.v3.TransitionRoute]), or another flow in the same agent.
Trait Implementations§
source§impl Clone for TransitionRoute
impl Clone for TransitionRoute
source§fn clone(&self) -> TransitionRoute
fn clone(&self) -> TransitionRoute
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TransitionRoute
impl Debug for TransitionRoute
source§impl Default for TransitionRoute
impl Default for TransitionRoute
source§impl Message for TransitionRoute
impl Message for TransitionRoute
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 TransitionRoute
impl PartialEq for TransitionRoute
source§fn eq(&self, other: &TransitionRoute) -> bool
fn eq(&self, other: &TransitionRoute) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TransitionRoute
Auto Trait Implementations§
impl Freeze for TransitionRoute
impl RefUnwindSafe for TransitionRoute
impl Send for TransitionRoute
impl Sync for TransitionRoute
impl Unpin for TransitionRoute
impl UnwindSafe for TransitionRoute
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