Class ErrorHandlingSettings.FallbackResponseConfig.Builder (0.9.0)

public static final class ErrorHandlingSettings.FallbackResponseConfig.Builder extends GeneratedMessage.Builder<ErrorHandlingSettings.FallbackResponseConfig.Builder> implements ErrorHandlingSettings.FallbackResponseConfigOrBuilder

Configuration for handling fallback responses.

Protobuf type google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ErrorHandlingSettings.FallbackResponseConfig build()
Returns
Type Description
ErrorHandlingSettings.FallbackResponseConfig

buildPartial()

public ErrorHandlingSettings.FallbackResponseConfig buildPartial()
Returns
Type Description
ErrorHandlingSettings.FallbackResponseConfig

clear()

public ErrorHandlingSettings.FallbackResponseConfig.Builder clear()
Returns
Type Description
ErrorHandlingSettings.FallbackResponseConfig.Builder
Overrides

clearCustomFallbackMessages()

public ErrorHandlingSettings.FallbackResponseConfig.Builder clearCustomFallbackMessages()
Returns
Type Description
ErrorHandlingSettings.FallbackResponseConfig.Builder

clearMaxFallbackAttempts()

public ErrorHandlingSettings.FallbackResponseConfig.Builder clearMaxFallbackAttempts()

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
ErrorHandlingSettings.FallbackResponseConfig.Builder

This builder for chaining.

containsCustomFallbackMessages(String key)

public 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 Map<String,String> getCustomFallbackMessages()
Returns
Type Description
Map<String,String>

getCustomFallbackMessagesCount()

public 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 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 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 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

getDefaultInstanceForType()

public ErrorHandlingSettings.FallbackResponseConfig getDefaultInstanceForType()
Returns
Type Description
ErrorHandlingSettings.FallbackResponseConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMaxFallbackAttempts()

public 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.

getMutableCustomFallbackMessages() (deprecated)

public Map<String,String> getMutableCustomFallbackMessages()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ErrorHandlingSettings.FallbackResponseConfig other)

public ErrorHandlingSettings.FallbackResponseConfig.Builder mergeFrom(ErrorHandlingSettings.FallbackResponseConfig other)
Parameter
Name Description
other ErrorHandlingSettings.FallbackResponseConfig
Returns
Type Description
ErrorHandlingSettings.FallbackResponseConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ErrorHandlingSettings.FallbackResponseConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ErrorHandlingSettings.FallbackResponseConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ErrorHandlingSettings.FallbackResponseConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ErrorHandlingSettings.FallbackResponseConfig.Builder
Overrides

putAllCustomFallbackMessages(Map<String,String> values)

public ErrorHandlingSettings.FallbackResponseConfig.Builder putAllCustomFallbackMessages(Map<String,String> values)

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
values Map<String,String>
Returns
Type Description
ErrorHandlingSettings.FallbackResponseConfig.Builder

putCustomFallbackMessages(String key, String value)

public ErrorHandlingSettings.FallbackResponseConfig.Builder putCustomFallbackMessages(String key, String value)

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
value String
Returns
Type Description
ErrorHandlingSettings.FallbackResponseConfig.Builder

removeCustomFallbackMessages(String key)

public ErrorHandlingSettings.FallbackResponseConfig.Builder removeCustomFallbackMessages(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
ErrorHandlingSettings.FallbackResponseConfig.Builder

setMaxFallbackAttempts(int value)

public ErrorHandlingSettings.FallbackResponseConfig.Builder setMaxFallbackAttempts(int value)

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];

Parameter
Name Description
value int

The maxFallbackAttempts to set.

Returns
Type Description
ErrorHandlingSettings.FallbackResponseConfig.Builder

This builder for chaining.