#[non_exhaustive]pub struct ChatEngineConfig {
pub agent_creation_config: Option<AgentCreationConfig>,
pub dialogflow_agent_to_link: String,
pub allow_cross_region: bool,
/* private fields */
}engine-service only.Expand description
Configurations for a Chat Engine.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.agent_creation_config: Option<AgentCreationConfig>The configurationt generate the Dialogflow agent that is associated to this Engine.
Note that these configurations are one-time consumed by and passed to Dialogflow service. It means they cannot be retrieved using EngineService.GetEngine or EngineService.ListEngines API after engine creation.
dialogflow_agent_to_link: StringThe resource name of an exist Dialogflow agent to link to this Chat
Engine. Customers can either provide agent_creation_config to create
agent or provide an agent name that links the agent with the Chat engine.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.
Note that the dialogflow_agent_to_link are one-time consumed by and
passed to Dialogflow service. It means they cannot be retrieved using
EngineService.GetEngine
or
EngineService.ListEngines
API after engine creation. Use
ChatEngineMetadata.dialogflow_agent
for actual agent association after Engine is created.
allow_cross_region: boolOptional. If the flag set to true, we allow the agent and engine are in different locations, otherwise the agent and engine are required to be in the same location. The flag is set to false by default.
Note that the allow_cross_region are one-time consumed by and
passed to
EngineService.CreateEngine.
It means they cannot be retrieved using
EngineService.GetEngine
or
EngineService.ListEngines
API after engine creation.
Implementations§
Source§impl ChatEngineConfig
impl ChatEngineConfig
pub fn new() -> Self
Sourcepub fn set_agent_creation_config<T>(self, v: T) -> Selfwhere
T: Into<AgentCreationConfig>,
pub fn set_agent_creation_config<T>(self, v: T) -> Selfwhere
T: Into<AgentCreationConfig>,
Sets the value of agent_creation_config.
§Example
use google_cloud_discoveryengine_v1::model::engine::chat_engine_config::AgentCreationConfig;
let x = ChatEngineConfig::new().set_agent_creation_config(AgentCreationConfig::default()/* use setters */);Sourcepub fn set_or_clear_agent_creation_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<AgentCreationConfig>,
pub fn set_or_clear_agent_creation_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<AgentCreationConfig>,
Sets or clears the value of agent_creation_config.
§Example
use google_cloud_discoveryengine_v1::model::engine::chat_engine_config::AgentCreationConfig;
let x = ChatEngineConfig::new().set_or_clear_agent_creation_config(Some(AgentCreationConfig::default()/* use setters */));
let x = ChatEngineConfig::new().set_or_clear_agent_creation_config(None::<AgentCreationConfig>);Sourcepub fn set_dialogflow_agent_to_link<T: Into<String>>(self, v: T) -> Self
pub fn set_dialogflow_agent_to_link<T: Into<String>>(self, v: T) -> Self
Sets the value of dialogflow_agent_to_link.
§Example
let x = ChatEngineConfig::new().set_dialogflow_agent_to_link("example");Sourcepub fn set_allow_cross_region<T: Into<bool>>(self, v: T) -> Self
pub fn set_allow_cross_region<T: Into<bool>>(self, v: T) -> Self
Sets the value of allow_cross_region.
§Example
let x = ChatEngineConfig::new().set_allow_cross_region(true);Trait Implementations§
Source§impl Clone for ChatEngineConfig
impl Clone for ChatEngineConfig
Source§fn clone(&self) -> ChatEngineConfig
fn clone(&self) -> ChatEngineConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more