# Google Cloud Discovery Engine V1 Client - Class AgentCreationConfig (1.11.1)

1.11.1 (latest) 1.11.0 1.10.1 1.9.1 1.8.0 1.7.0 1.6.1 1.5.1 1.4.0 1.3.3 1.2.0 1.1.0 1.0.0 0.11.3 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class AgentCreationConfig.

Configurations for generating a Dialogflow agent.

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/php/docs/reference/cloud-discoveryengine/latest/V1.Client.EngineServiceClient#_Google_Cloud_DiscoveryEngine_V1_Client_EngineServiceClient__getEngine__)
or
[EngineService.ListEngines](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.Client.EngineServiceClient#_Google_Cloud_DiscoveryEngine_V1_Client_EngineServiceClient__listEngines__)
API after engine creation.

Generated from protobuf message `google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig`

## Namespace

Google \\ Cloud \\ DiscoveryEngine \\ V1 \\ Engine \\ ChatEngineConfig

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ business` | `string` Name of the company, organization or other entity that the agent represents. Used for knowledge connector LLM prompt and for knowledge search. |
| `↳ default_language_code` | `string` Required. The default language of the agent as a language tag. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. |
| `↳ time_zone` | `string` Required. The time zone of the agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris. |
| `↳ location` | `string` Agent location for Agent creation, supported values: global/us/eu. If not provided, us Engine will create Agent using us-central-1 by default; eu Engine will create Agent using eu-west-1 by default. |

### getBusiness

Name of the company, organization or other entity that the agent
represents. Used for knowledge connector LLM prompt and for knowledge
search.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setBusiness

Name of the company, organization or other entity that the agent
represents. Used for knowledge connector LLM prompt and for knowledge
search.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDefaultLanguageCode

Required. The default language of the agent as a language tag.

See [Language
Support](https://cloud.google.com/dialogflow/docs/reference/language)
for a list of the currently supported language codes.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDefaultLanguageCode

Required. The default language of the agent as a language tag.

See [Language
Support](https://cloud.google.com/dialogflow/docs/reference/language)
for a list of the currently supported language codes.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTimeZone

Required. The time zone of the agent from the [time zone
database](https://www.iana.org/time-zones), e.g., America/New_York,
Europe/Paris.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setTimeZone

Required. The time zone of the agent from the [time zone
database](https://www.iana.org/time-zones), e.g., America/New_York,
Europe/Paris.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLocation

Agent location for Agent creation, supported values: global/us/eu.

If not provided, us Engine will create Agent using us-central-1 by
default; eu Engine will create Agent using eu-west-1 by default.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setLocation

Agent location for Agent creation, supported values: global/us/eu.

If not provided, us Engine will create Agent using us-central-1 by
default; eu Engine will create Agent using eu-west-1 by default.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |