0.6.0 (latest) 0.5.0 0.4.4 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Ces V1 Client class FallbackResponseConfig.

Configuration for handling fallback responses.

Generated from protobuf message `google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig`

## Namespace

Google \\ Cloud \\ Ces \\ V1 \\ ErrorHandlingSettings

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ custom_fallback_messages` | `array|Google\Protobuf\Internal\MapField` Optional. The fallback messages in case of system errors (e.g. LLM errors), mapped by [supported language code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language). |
| `↳ max_fallback_attempts` | `int` Optional. The maximum number of fallback attempts to make before the agent emitting [EndSession](https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.EndSession.md.txt) Signal. |

### getCustomFallbackMessages

Optional. The fallback messages in case of system errors (e.g. LLM
errors), mapped by [supported language
code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Internal\MapField` |   |

### setCustomFallbackMessages

Optional. The fallback messages in case of system errors (e.g. LLM
errors), mapped by [supported language
code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|Google\Protobuf\Internal\MapField` |

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

### getMaxFallbackAttempts

Optional. The maximum number of fallback attempts to make before the
agent emitting [EndSession](https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.EndSession.md.txt) Signal.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setMaxFallbackAttempts

Optional. The maximum number of fallback attempts to make before the
agent emitting [EndSession](https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.EndSession.md.txt) Signal.

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

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