# Interface ErrorHandlingSettingsOrBuilder (0.9.0)

0.9.0 (latest) 0.7.0 0.4.0 0.3.0 0.1.0

    public interface ErrorHandlingSettingsOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getEndSessionConfig()

    public abstract ErrorHandlingSettings.EndSessionConfig getEndSessionConfig()

Optional. Configuration for ending the session in case of system errors
(e.g. LLM errors).

`
.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig` | The endSessionConfig. |

### getEndSessionConfigOrBuilder()

    public abstract ErrorHandlingSettings.EndSessionConfigOrBuilder getEndSessionConfigOrBuilder()

Optional. Configuration for ending the session in case of system errors
(e.g. LLM errors).

`
.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfigOrBuilder` |   |

### getErrorHandlingStrategy()

    public abstract ErrorHandlingSettings.ErrorHandlingStrategy getErrorHandlingStrategy()

Optional. The strategy to use for error handling.

`
.google.cloud.ces.v1beta.ErrorHandlingSettings.ErrorHandlingStrategy error_handling_strategy = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.ErrorHandlingSettings.ErrorHandlingStrategy` | The errorHandlingStrategy. |

### getErrorHandlingStrategyValue()

    public abstract int getErrorHandlingStrategyValue()

Optional. The strategy to use for error handling.

`
.google.cloud.ces.v1beta.ErrorHandlingSettings.ErrorHandlingStrategy error_handling_strategy = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for errorHandlingStrategy. |

### getFallbackResponseConfig()

    public abstract ErrorHandlingSettings.FallbackResponseConfig getFallbackResponseConfig()

Optional. Configuration for handling fallback responses.

`
.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig` | The fallbackResponseConfig. |

### getFallbackResponseConfigOrBuilder()

    public abstract ErrorHandlingSettings.FallbackResponseConfigOrBuilder getFallbackResponseConfigOrBuilder()

Optional. Configuration for handling fallback responses.

`
.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfigOrBuilder` |   |

### hasEndSessionConfig()

    public abstract boolean hasEndSessionConfig()

Optional. Configuration for ending the session in case of system errors
(e.g. LLM errors).

`
.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the endSessionConfig field is set. |

### hasFallbackResponseConfig()

    public abstract boolean hasFallbackResponseConfig()

Optional. Configuration for handling fallback responses.

`
.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the fallbackResponseConfig field is set. |