Reference documentation and code samples for the Google Cloud Ces V1 Client class ErrorHandlingSettings.
Settings to describe how errors should be handled in the app.
Generated from protobuf message google.cloud.ces.v1.ErrorHandlingSettings
Namespace
Google \ Cloud \ Ces \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ error_handling_strategy |
int
Optional. The strategy to use for error handling. |
↳ fallback_response_config |
ErrorHandlingSettings\FallbackResponseConfig
Optional. Configuration for handling fallback responses. |
↳ end_session_config |
ErrorHandlingSettings\EndSessionConfig
Optional. Configuration for ending the session in case of system errors (e.g. LLM errors). |
getErrorHandlingStrategy
Optional. The strategy to use for error handling.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type ErrorHandlingStrategy. |
setErrorHandlingStrategy
Optional. The strategy to use for error handling.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type ErrorHandlingStrategy. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getFallbackResponseConfig
Optional. Configuration for handling fallback responses.
| Returns | |
|---|---|
| Type | Description |
ErrorHandlingSettings\FallbackResponseConfig|null |
|
hasFallbackResponseConfig
clearFallbackResponseConfig
setFallbackResponseConfig
Optional. Configuration for handling fallback responses.
| Parameter | |
|---|---|
| Name | Description |
var |
ErrorHandlingSettings\FallbackResponseConfig
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getEndSessionConfig
Optional. Configuration for ending the session in case of system errors (e.g. LLM errors).
| Returns | |
|---|---|
| Type | Description |
ErrorHandlingSettings\EndSessionConfig|null |
|
hasEndSessionConfig
clearEndSessionConfig
setEndSessionConfig
Optional. Configuration for ending the session in case of system errors (e.g. LLM errors).
| Parameter | |
|---|---|
| Name | Description |
var |
ErrorHandlingSettings\EndSessionConfig
|
| Returns | |
|---|---|
| Type | Description |
$this |
|