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
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
build()
public ErrorHandlingSettings.FallbackResponseConfig build()
buildPartial()
public ErrorHandlingSettings.FallbackResponseConfig buildPartial()
clear()
public ErrorHandlingSettings.FallbackResponseConfig.Builder clear()
Overrides
clearCustomFallbackMessages()
public ErrorHandlingSettings.FallbackResponseConfig.Builder clearCustomFallbackMessages()
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];
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
|
getCustomFallbackMessages() (deprecated)
public Map<String,String> getCustomFallbackMessages()
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];
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];
| 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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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.
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
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()
Overrides
mergeFrom(ErrorHandlingSettings.FallbackResponseConfig other)
public ErrorHandlingSettings.FallbackResponseConfig.Builder mergeFrom(ErrorHandlingSettings.FallbackResponseConfig other)
public ErrorHandlingSettings.FallbackResponseConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ErrorHandlingSettings.FallbackResponseConfig.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
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];
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];
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
|
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.
|