public static final class ErrorHandlingSettings.Builder extends GeneratedMessage.Builder<ErrorHandlingSettings.Builder> implements ErrorHandlingSettingsOrBuilderSettings to describe how errors should be handled in the app.
Protobuf type google.cloud.ces.v1beta.ErrorHandlingSettings
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ErrorHandlingSettings.BuilderImplements
ErrorHandlingSettingsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ErrorHandlingSettings build()| Returns | |
|---|---|
| Type | Description |
ErrorHandlingSettings |
|
buildPartial()
public ErrorHandlingSettings buildPartial()| Returns | |
|---|---|
| Type | Description |
ErrorHandlingSettings |
|
clear()
public ErrorHandlingSettings.Builder clear()| Returns | |
|---|---|
| Type | Description |
ErrorHandlingSettings.Builder |
|
clearEndSessionConfig()
public ErrorHandlingSettings.Builder clearEndSessionConfig()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 |
ErrorHandlingSettings.Builder |
|
clearErrorHandlingStrategy()
public ErrorHandlingSettings.Builder clearErrorHandlingStrategy()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 |
ErrorHandlingSettings.Builder |
This builder for chaining. |
clearFallbackResponseConfig()
public ErrorHandlingSettings.Builder clearFallbackResponseConfig()Optional. Configuration for handling fallback responses.
.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ErrorHandlingSettings.Builder |
|
getDefaultInstanceForType()
public ErrorHandlingSettings getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ErrorHandlingSettings |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEndSessionConfig()
public 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 |
ErrorHandlingSettings.EndSessionConfig |
The endSessionConfig. |
getEndSessionConfigBuilder()
public ErrorHandlingSettings.EndSessionConfig.Builder getEndSessionConfigBuilder()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 |
ErrorHandlingSettings.EndSessionConfig.Builder |
|
getEndSessionConfigOrBuilder()
public 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 |
ErrorHandlingSettings.EndSessionConfigOrBuilder |
|
getErrorHandlingStrategy()
public 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 |
ErrorHandlingSettings.ErrorHandlingStrategy |
The errorHandlingStrategy. |
getErrorHandlingStrategyValue()
public 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 |
int |
The enum numeric value on the wire for errorHandlingStrategy. |
getFallbackResponseConfig()
public 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 |
ErrorHandlingSettings.FallbackResponseConfig |
The fallbackResponseConfig. |
getFallbackResponseConfigBuilder()
public ErrorHandlingSettings.FallbackResponseConfig.Builder getFallbackResponseConfigBuilder()Optional. Configuration for handling fallback responses.
.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ErrorHandlingSettings.FallbackResponseConfig.Builder |
|
getFallbackResponseConfigOrBuilder()
public 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 |
ErrorHandlingSettings.FallbackResponseConfigOrBuilder |
|
hasEndSessionConfig()
public 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 |
boolean |
Whether the endSessionConfig field is set. |
hasFallbackResponseConfig()
public 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 |
boolean |
Whether the fallbackResponseConfig field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeEndSessionConfig(ErrorHandlingSettings.EndSessionConfig value)
public ErrorHandlingSettings.Builder mergeEndSessionConfig(ErrorHandlingSettings.EndSessionConfig value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ErrorHandlingSettings.EndSessionConfig |
| Returns | |
|---|---|
| Type | Description |
ErrorHandlingSettings.Builder |
|
mergeFallbackResponseConfig(ErrorHandlingSettings.FallbackResponseConfig value)
public ErrorHandlingSettings.Builder mergeFallbackResponseConfig(ErrorHandlingSettings.FallbackResponseConfig value)Optional. Configuration for handling fallback responses.
.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ErrorHandlingSettings.FallbackResponseConfig |
| Returns | |
|---|---|
| Type | Description |
ErrorHandlingSettings.Builder |
|
mergeFrom(ErrorHandlingSettings other)
public ErrorHandlingSettings.Builder mergeFrom(ErrorHandlingSettings other)| Parameter | |
|---|---|
| Name | Description |
other |
ErrorHandlingSettings |
| Returns | |
|---|---|
| Type | Description |
ErrorHandlingSettings.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ErrorHandlingSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ErrorHandlingSettings.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ErrorHandlingSettings.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ErrorHandlingSettings.Builder |
|
setEndSessionConfig(ErrorHandlingSettings.EndSessionConfig value)
public ErrorHandlingSettings.Builder setEndSessionConfig(ErrorHandlingSettings.EndSessionConfig value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ErrorHandlingSettings.EndSessionConfig |
| Returns | |
|---|---|
| Type | Description |
ErrorHandlingSettings.Builder |
|
setEndSessionConfig(ErrorHandlingSettings.EndSessionConfig.Builder builderForValue)
public ErrorHandlingSettings.Builder setEndSessionConfig(ErrorHandlingSettings.EndSessionConfig.Builder builderForValue)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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ErrorHandlingSettings.EndSessionConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
ErrorHandlingSettings.Builder |
|
setErrorHandlingStrategy(ErrorHandlingSettings.ErrorHandlingStrategy value)
public ErrorHandlingSettings.Builder setErrorHandlingStrategy(ErrorHandlingSettings.ErrorHandlingStrategy value)Optional. The strategy to use for error handling.
.google.cloud.ces.v1beta.ErrorHandlingSettings.ErrorHandlingStrategy error_handling_strategy = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ErrorHandlingSettings.ErrorHandlingStrategyThe errorHandlingStrategy to set. |
| Returns | |
|---|---|
| Type | Description |
ErrorHandlingSettings.Builder |
This builder for chaining. |
setErrorHandlingStrategyValue(int value)
public ErrorHandlingSettings.Builder setErrorHandlingStrategyValue(int value)Optional. The strategy to use for error handling.
.google.cloud.ces.v1beta.ErrorHandlingSettings.ErrorHandlingStrategy error_handling_strategy = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for errorHandlingStrategy to set. |
| Returns | |
|---|---|
| Type | Description |
ErrorHandlingSettings.Builder |
This builder for chaining. |
setFallbackResponseConfig(ErrorHandlingSettings.FallbackResponseConfig value)
public ErrorHandlingSettings.Builder setFallbackResponseConfig(ErrorHandlingSettings.FallbackResponseConfig value)Optional. Configuration for handling fallback responses.
.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ErrorHandlingSettings.FallbackResponseConfig |
| Returns | |
|---|---|
| Type | Description |
ErrorHandlingSettings.Builder |
|
setFallbackResponseConfig(ErrorHandlingSettings.FallbackResponseConfig.Builder builderForValue)
public ErrorHandlingSettings.Builder setFallbackResponseConfig(ErrorHandlingSettings.FallbackResponseConfig.Builder builderForValue)Optional. Configuration for handling fallback responses.
.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ErrorHandlingSettings.FallbackResponseConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
ErrorHandlingSettings.Builder |
|