Interface ErrorHandlingSettings.FallbackResponseConfigOrBuilder (0.9.0)

public static interface ErrorHandlingSettings.FallbackResponseConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsCustomFallbackMessages(String key)

public abstract boolean containsCustomFallbackMessages(String key)

Optional. The fallback messages in case of system errors (e.g. LLM errors), mapped by supported language code.

map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getCustomFallbackMessages() (deprecated)

public abstract Map<String,String> getCustomFallbackMessages()
Returns
Type Description
Map<String,String>

getCustomFallbackMessagesCount()

public abstract int getCustomFallbackMessagesCount()

Optional. The fallback messages in case of system errors (e.g. LLM errors), mapped by supported language code.

map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getCustomFallbackMessagesMap()

public abstract Map<String,String> getCustomFallbackMessagesMap()

Optional. The fallback messages in case of system errors (e.g. LLM errors), mapped by supported language code.

map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getCustomFallbackMessagesOrDefault(String key, String defaultValue)

public abstract String getCustomFallbackMessagesOrDefault(String key, String defaultValue)

Optional. The fallback messages in case of system errors (e.g. LLM errors), mapped by supported language code.

map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getCustomFallbackMessagesOrThrow(String key)

public abstract String getCustomFallbackMessagesOrThrow(String key)

Optional. The fallback messages in case of system errors (e.g. LLM errors), mapped by supported language code.

map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getMaxFallbackAttempts()

public abstract int getMaxFallbackAttempts()

Optional. The maximum number of fallback attempts to make before the agent emitting EndSession Signal.

int32 max_fallback_attempts = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The maxFallbackAttempts.