# Discovery Engine V1 API - Class Google::Cloud::DiscoveryEngine::V1::Engine::ChatEngineConfig (v2.8.0)

2.8.0 (latest) 2.7.0 2.6.2 2.5.0 2.4.0 2.3.1 2.2.0 2.1.1 2.0.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.2 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.2 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::Engine::ChatEngineConfig.

Configurations for a Chat Engine.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #agent_creation_config

    def agent_creation_config() -> ::Google::Cloud::DiscoveryEngine::V1::Engine::ChatEngineConfig::AgentCreationConfig

**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1::Engine::ChatEngineConfig::AgentCreationConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Engine-ChatEngineConfig-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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-EngineService-Client#Google__Cloud__DiscoveryEngine__V1__EngineService__Client_get_engine_instance_ "Google::Cloud::DiscoveryEngine::V1::EngineService::Client#get_engine (method)")
  or
  [EngineService.ListEngines](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-EngineService-Client#Google__Cloud__DiscoveryEngine__V1__EngineService__Client_list_engines_instance_ "Google::Cloud::DiscoveryEngine::V1::EngineService::Client#list_engines (method)")
  API after engine creation.

### #agent_creation_config=

    def agent_creation_config=(value) -> ::Google::Cloud::DiscoveryEngine::V1::Engine::ChatEngineConfig::AgentCreationConfig

**Parameter**

- **value** ([::Google::Cloud::DiscoveryEngine::V1::Engine::ChatEngineConfig::AgentCreationConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Engine-ChatEngineConfig-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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-EngineService-Client#Google__Cloud__DiscoveryEngine__V1__EngineService__Client_get_engine_instance_ "Google::Cloud::DiscoveryEngine::V1::EngineService::Client#get_engine (method)")
  or
  [EngineService.ListEngines](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-EngineService-Client#Google__Cloud__DiscoveryEngine__V1__EngineService__Client_list_engines_instance_ "Google::Cloud::DiscoveryEngine::V1::EngineService::Client#list_engines (method)")
  API after engine creation.
**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1::Engine::ChatEngineConfig::AgentCreationConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Engine-ChatEngineConfig-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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-EngineService-Client#Google__Cloud__DiscoveryEngine__V1__EngineService__Client_get_engine_instance_ "Google::Cloud::DiscoveryEngine::V1::EngineService::Client#get_engine (method)")
  or
  [EngineService.ListEngines](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-EngineService-Client#Google__Cloud__DiscoveryEngine__V1__EngineService__Client_list_engines_instance_ "Google::Cloud::DiscoveryEngine::V1::EngineService::Client#list_engines (method)")
  API after engine creation.

### #allow_cross_region

    def allow_cross_region() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-EngineService-Client#Google__Cloud__DiscoveryEngine__V1__EngineService__Client_create_engine_instance_ "Google::Cloud::DiscoveryEngine::V1::EngineService::Client#create_engine (method)").
  It means they cannot be retrieved using
  [EngineService.GetEngine](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-EngineService-Client#Google__Cloud__DiscoveryEngine__V1__EngineService__Client_get_engine_instance_ "Google::Cloud::DiscoveryEngine::V1::EngineService::Client#get_engine (method)")
  or
  [EngineService.ListEngines](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-EngineService-Client#Google__Cloud__DiscoveryEngine__V1__EngineService__Client_list_engines_instance_ "Google::Cloud::DiscoveryEngine::V1::EngineService::Client#list_engines (method)")
  API after engine creation.

### #allow_cross_region=

    def allow_cross_region=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-EngineService-Client#Google__Cloud__DiscoveryEngine__V1__EngineService__Client_create_engine_instance_ "Google::Cloud::DiscoveryEngine::V1::EngineService::Client#create_engine (method)").
  It means they cannot be retrieved using
  [EngineService.GetEngine](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-EngineService-Client#Google__Cloud__DiscoveryEngine__V1__EngineService__Client_get_engine_instance_ "Google::Cloud::DiscoveryEngine::V1::EngineService::Client#get_engine (method)")
  or
  [EngineService.ListEngines](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-EngineService-Client#Google__Cloud__DiscoveryEngine__V1__EngineService__Client_list_engines_instance_ "Google::Cloud::DiscoveryEngine::V1::EngineService::Client#list_engines (method)")
  API after engine creation.
**Returns**

- (::Boolean) --- Optional. 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-EngineService-Client#Google__Cloud__DiscoveryEngine__V1__EngineService__Client_create_engine_instance_ "Google::Cloud::DiscoveryEngine::V1::EngineService::Client#create_engine (method)").
  It means they cannot be retrieved using
  [EngineService.GetEngine](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-EngineService-Client#Google__Cloud__DiscoveryEngine__V1__EngineService__Client_get_engine_instance_ "Google::Cloud::DiscoveryEngine::V1::EngineService::Client#get_engine (method)")
  or
  [EngineService.ListEngines](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-EngineService-Client#Google__Cloud__DiscoveryEngine__V1__EngineService__Client_list_engines_instance_ "Google::Cloud::DiscoveryEngine::V1::EngineService::Client#list_engines (method)")
  API after engine creation.

### #dialogflow_agent_to_link

    def dialogflow_agent_to_link() -> ::String

**Returns**

- (::String) --- The 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-EngineService-Client#Google__Cloud__DiscoveryEngine__V1__EngineService__Client_get_engine_instance_ "Google::Cloud::DiscoveryEngine::V1::EngineService::Client#get_engine (method)")
  or
  [EngineService.ListEngines](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-EngineService-Client#Google__Cloud__DiscoveryEngine__V1__EngineService__Client_list_engines_instance_ "Google::Cloud::DiscoveryEngine::V1::EngineService::Client#list_engines (method)")
  API after engine creation. Use
  [ChatEngineMetadata.dialogflow_agent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Engine-ChatEngineMetadata#Google__Cloud__DiscoveryEngine__V1__Engine__ChatEngineMetadata_dialogflow_agent_instance_ "Google::Cloud::DiscoveryEngine::V1::Engine::ChatEngineMetadata#dialogflow_agent (method)")
  for actual agent association after Engine is created.

### #dialogflow_agent_to_link=

    def dialogflow_agent_to_link=(value) -> ::String

**Parameter**

- **value** (::String) --- The 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-EngineService-Client#Google__Cloud__DiscoveryEngine__V1__EngineService__Client_get_engine_instance_ "Google::Cloud::DiscoveryEngine::V1::EngineService::Client#get_engine (method)")
  or
  [EngineService.ListEngines](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-EngineService-Client#Google__Cloud__DiscoveryEngine__V1__EngineService__Client_list_engines_instance_ "Google::Cloud::DiscoveryEngine::V1::EngineService::Client#list_engines (method)")
  API after engine creation. Use
  [ChatEngineMetadata.dialogflow_agent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Engine-ChatEngineMetadata#Google__Cloud__DiscoveryEngine__V1__Engine__ChatEngineMetadata_dialogflow_agent_instance_ "Google::Cloud::DiscoveryEngine::V1::Engine::ChatEngineMetadata#dialogflow_agent (method)")
  for actual agent association after Engine is created.
**Returns**

- (::String) --- The 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-EngineService-Client#Google__Cloud__DiscoveryEngine__V1__EngineService__Client_get_engine_instance_ "Google::Cloud::DiscoveryEngine::V1::EngineService::Client#get_engine (method)")
  or
  [EngineService.ListEngines](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-EngineService-Client#Google__Cloud__DiscoveryEngine__V1__EngineService__Client_list_engines_instance_ "Google::Cloud::DiscoveryEngine::V1::EngineService::Client#list_engines (method)")
  API after engine creation. Use
  [ChatEngineMetadata.dialogflow_agent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Engine-ChatEngineMetadata#Google__Cloud__DiscoveryEngine__V1__Engine__ChatEngineMetadata_dialogflow_agent_instance_ "Google::Cloud::DiscoveryEngine::V1::Engine::ChatEngineMetadata#dialogflow_agent (method)")
  for actual agent association after Engine is created.