Struct google_api_proto::google::cloud::dialogflow::v2beta1::AutomatedAgentReply
source · pub struct AutomatedAgentReply {
pub response_messages: Vec<ResponseMessage>,
pub match_confidence: f32,
pub parameters: Option<Struct>,
pub cx_session_parameters: Option<Struct>,
pub automated_agent_reply_type: i32,
pub allow_cancellation: bool,
pub cx_current_page: String,
pub call_companion_auth_code: Bytes,
pub response: Option<Response>,
pub match: Option<Match>,
}
Expand description
Represents a response from an automated agent.
Fields§
§response_messages: Vec<ResponseMessage>
Response messages from the automated agent.
match_confidence: f32
The confidence of the 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.
parameters: Option<Struct>
The collection of current parameters at the time of this response.
cx_session_parameters: Option<Struct>
The collection of current Dialogflow CX agent session parameters at the
time of this response.
Deprecated: Use parameters
instead.
automated_agent_reply_type: i32
AutomatedAgentReply type.
allow_cancellation: bool
Indicates whether the partial automated agent reply is interruptible when a later reply message arrives. e.g. if the agent specified some music as partial response, it can be cancelled.
cx_current_page: String
The unique identifier of the current Dialogflow CX conversation page.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>
.
call_companion_auth_code: Bytes
The auth code for accessing Call Companion UI.
response: Option<Response>
Required.
match: Option<Match>
Info on the query match for the automated agent response.
Implementations§
source§impl AutomatedAgentReply
impl AutomatedAgentReply
sourcepub fn automated_agent_reply_type(&self) -> AutomatedAgentReplyType
pub fn automated_agent_reply_type(&self) -> AutomatedAgentReplyType
Returns the enum value of automated_agent_reply_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_automated_agent_reply_type(&mut self, value: AutomatedAgentReplyType)
pub fn set_automated_agent_reply_type(&mut self, value: AutomatedAgentReplyType)
Sets automated_agent_reply_type
to the provided enum value.
Trait Implementations§
source§impl Clone for AutomatedAgentReply
impl Clone for AutomatedAgentReply
source§fn clone(&self) -> AutomatedAgentReply
fn clone(&self) -> AutomatedAgentReply
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AutomatedAgentReply
impl Debug for AutomatedAgentReply
source§impl Default for AutomatedAgentReply
impl Default for AutomatedAgentReply
source§impl Message for AutomatedAgentReply
impl Message for AutomatedAgentReply
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 AutomatedAgentReply
impl PartialEq for AutomatedAgentReply
source§fn eq(&self, other: &AutomatedAgentReply) -> bool
fn eq(&self, other: &AutomatedAgentReply) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AutomatedAgentReply
Auto Trait Implementations§
impl !Freeze for AutomatedAgentReply
impl RefUnwindSafe for AutomatedAgentReply
impl Send for AutomatedAgentReply
impl Sync for AutomatedAgentReply
impl Unpin for AutomatedAgentReply
impl UnwindSafe for AutomatedAgentReply
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