Struct google_api_proto::google::cloud::dialogflow::v2::AutomatedAgentConfig
source · pub struct AutomatedAgentConfig {
pub agent: String,
pub session_ttl: Option<Duration>,
}
Expand description
Defines the Automated Agent to connect to a conversation.
Fields§
§agent: String
Required. ID of the Dialogflow agent environment to use.
This project needs to either be the same project as the conversation or you
need to grant service-<Conversation Project Number>@gcp-sa-dialogflow.iam.gserviceaccount.com
the Dialogflow API Service Agent
role in this project.
-
For ES agents, use format:
projects/<Project ID>/locations/<Location ID>/agent/environments/<Environment ID or '-'>
. If environment is not specified, the defaultdraft
environment is used. Refer to DetectIntentRequest for more details. -
For CX agents, use format
projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID or '-'>
. If environment is not specified, the defaultdraft
environment is used.
session_ttl: Option<Duration>
Optional. Configure lifetime of the Dialogflow session. By default, a Dialogflow CX session remains active and its data is stored for 30 minutes after the last request is sent for the session. This value should be no longer than 1 day.
Trait Implementations§
source§impl Clone for AutomatedAgentConfig
impl Clone for AutomatedAgentConfig
source§fn clone(&self) -> AutomatedAgentConfig
fn clone(&self) -> AutomatedAgentConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AutomatedAgentConfig
impl Debug for AutomatedAgentConfig
source§impl Default for AutomatedAgentConfig
impl Default for AutomatedAgentConfig
source§impl Message for AutomatedAgentConfig
impl Message for AutomatedAgentConfig
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 AutomatedAgentConfig
impl PartialEq for AutomatedAgentConfig
source§fn eq(&self, other: &AutomatedAgentConfig) -> bool
fn eq(&self, other: &AutomatedAgentConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AutomatedAgentConfig
Auto Trait Implementations§
impl Freeze for AutomatedAgentConfig
impl RefUnwindSafe for AutomatedAgentConfig
impl Send for AutomatedAgentConfig
impl Sync for AutomatedAgentConfig
impl Unpin for AutomatedAgentConfig
impl UnwindSafe for AutomatedAgentConfig
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