Class ErrorHandlingSettings.FallbackResponseConfig (0.9.0)

public static final class ErrorHandlingSettings.FallbackResponseConfig extends GeneratedMessage implements ErrorHandlingSettings.FallbackResponseConfigOrBuilder

Configuration for handling fallback responses.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > ErrorHandlingSettings.FallbackResponseConfig

Static Fields

CUSTOM_FALLBACK_MESSAGES_FIELD_NUMBER

public static final int CUSTOM_FALLBACK_MESSAGES_FIELD_NUMBER
Field Value
Type Description
int

MAX_FALLBACK_ATTEMPTS_FIELD_NUMBER

public static final int MAX_FALLBACK_ATTEMPTS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ErrorHandlingSettings.FallbackResponseConfig getDefaultInstance()
Returns
Type Description
ErrorHandlingSettings.FallbackResponseConfig

getDescriptor()

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

newBuilder()

public static ErrorHandlingSettings.FallbackResponseConfig.Builder newBuilder()
Returns
Type Description
ErrorHandlingSettings.FallbackResponseConfig.Builder

newBuilder(ErrorHandlingSettings.FallbackResponseConfig prototype)

public static ErrorHandlingSettings.FallbackResponseConfig.Builder newBuilder(ErrorHandlingSettings.FallbackResponseConfig prototype)
Parameter
Name Description
prototype ErrorHandlingSettings.FallbackResponseConfig
Returns
Type Description
ErrorHandlingSettings.FallbackResponseConfig.Builder

parseDelimitedFrom(InputStream input)

public static ErrorHandlingSettings.FallbackResponseConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ErrorHandlingSettings.FallbackResponseConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ErrorHandlingSettings.FallbackResponseConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ErrorHandlingSettings.FallbackResponseConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ErrorHandlingSettings.FallbackResponseConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ErrorHandlingSettings.FallbackResponseConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ErrorHandlingSettings.FallbackResponseConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ErrorHandlingSettings.FallbackResponseConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ErrorHandlingSettings.FallbackResponseConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ErrorHandlingSettings.FallbackResponseConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ErrorHandlingSettings.FallbackResponseConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ErrorHandlingSettings.FallbackResponseConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ErrorHandlingSettings.FallbackResponseConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ErrorHandlingSettings.FallbackResponseConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ErrorHandlingSettings.FallbackResponseConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ErrorHandlingSettings.FallbackResponseConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ErrorHandlingSettings.FallbackResponseConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ErrorHandlingSettings.FallbackResponseConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ErrorHandlingSettings.FallbackResponseConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ErrorHandlingSettings.FallbackResponseConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ErrorHandlingSettings.FallbackResponseConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ErrorHandlingSettings.FallbackResponseConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ErrorHandlingSettings.FallbackResponseConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ErrorHandlingSettings.FallbackResponseConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ErrorHandlingSettings.FallbackResponseConfig> parser()
Returns
Type Description
Parser<FallbackResponseConfig>

Methods

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

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

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.

getParserForType()

public Parser<ErrorHandlingSettings.FallbackResponseConfig> getParserForType()
Returns
Type Description
Parser<FallbackResponseConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

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.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ErrorHandlingSettings.FallbackResponseConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ErrorHandlingSettings.FallbackResponseConfig.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException