# Google Cloud Dialogflow Cx V3 Client - Class GenerativeSettings (0.11.1)

0.11.1 (latest) 0.11.0 0.10.2 0.9.2 0.8.1 0.7.2 0.6.0 0.5.2 0.4.1 0.3.4 0.2.1 0.1.1 Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class GenerativeSettings.

Settings for Generative AI.

Generated from protobuf message `google.cloud.dialogflow.cx.v3.GenerativeSettings`

## Namespace

Google \\ Cloud \\ Dialogflow \\ Cx \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generativeSettings`. |
| `↳ fallback_settings` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.GenerativeSettings.FallbackSettings` Settings for Generative Fallback. |
| `↳ generative_safety_settings` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.SafetySettings` Settings for Generative Safety. |
| `↳ knowledge_connector_settings` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.GenerativeSettings.KnowledgeConnectorSettings` Settings for knowledge connector. |
| `↳ language_code` | `string` Language for this settings. |
| `↳ llm_model_settings` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.LlmModelSettings` LLM model settings. |

### getName

Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generativeSettings`.

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

### setName

Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generativeSettings`.

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

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

### getFallbackSettings

Settings for Generative Fallback.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.GenerativeSettings.FallbackSettings|null` |   |

### hasFallbackSettings

### clearFallbackSettings

### setFallbackSettings

Settings for Generative Fallback.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.GenerativeSettings.FallbackSettings` |

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

### getGenerativeSafetySettings

Settings for Generative Safety.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.SafetySettings|null` |   |

### hasGenerativeSafetySettings

### clearGenerativeSafetySettings

### setGenerativeSafetySettings

Settings for Generative Safety.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.SafetySettings` |

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

### getKnowledgeConnectorSettings

Settings for knowledge connector.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.GenerativeSettings.KnowledgeConnectorSettings|null` |   |

### hasKnowledgeConnectorSettings

### clearKnowledgeConnectorSettings

### setKnowledgeConnectorSettings

Settings for knowledge connector.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.GenerativeSettings.KnowledgeConnectorSettings` |

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

### getLanguageCode

Language for this settings.

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

### setLanguageCode

Language for this settings.

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

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

### getLlmModelSettings

LLM model settings.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.LlmModelSettings|null` |   |

### hasLlmModelSettings

### clearLlmModelSettings

### setLlmModelSettings

LLM model settings.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.LlmModelSettings` |

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