Package com.google.cloud.dialogflow.v2
Enum KnowledgeAssistDebugInfo.QueryGenerationFailureReason
java.lang.Object
java.lang.Enum<KnowledgeAssistDebugInfo.QueryGenerationFailureReason>
com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<KnowledgeAssistDebugInfo.QueryGenerationFailureReason>
- Enclosing class:
- KnowledgeAssistDebugInfo
public static enum KnowledgeAssistDebugInfo.QueryGenerationFailureReason
extends Enum<KnowledgeAssistDebugInfo.QueryGenerationFailureReason>
implements com.google.protobuf.ProtocolMessageEnum
Reason for query generation failure.Protobuf enum
google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionQuery generation is blocked by Knowledge Assist conversation profile level / agent id level filtering.The conversation has no messages.The last message in the conversation is empty.Call to Knowedge Assist query generation model fails.Default value.Query generation failed due to LLM response parse failure.Query generation model decides that there is no new topic change or there has been similar queries generated in the previous turns.Query generation is blocked due to out of quota.The generated query is blocked due to redaction.Knowedge Assist generated query is blocked by RAI (Responsible AI).The trigger event condition is not met. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intQuery generation is blocked by Knowledge Assist conversation profile level / agent id level filtering.static final intThe conversation has no messages.static final intThe last message in the conversation is empty.static final intCall to Knowedge Assist query generation model fails.static final intDefault value.static final intQuery generation failed due to LLM response parse failure.static final intQuery generation model decides that there is no new topic change or there has been similar queries generated in the previous turns.static final intQuery generation is blocked due to out of quota.static final intThe generated query is blocked due to redaction.static final intKnowedge Assist generated query is blocked by RAI (Responsible AI).static final intThe trigger event condition is not met. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<KnowledgeAssistDebugInfo.QueryGenerationFailureReason>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED
public static final KnowledgeAssistDebugInfo.QueryGenerationFailureReason QUERY_GENERATION_FAILURE_REASON_UNSPECIFIEDDefault value.
QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED = 0; -
QUERY_GENERATION_OUT_OF_QUOTA
public static final KnowledgeAssistDebugInfo.QueryGenerationFailureReason QUERY_GENERATION_OUT_OF_QUOTAQuery generation is blocked due to out of quota.
QUERY_GENERATION_OUT_OF_QUOTA = 1; -
QUERY_GENERATION_FAILED
Call to Knowedge Assist query generation model fails.
QUERY_GENERATION_FAILED = 2; -
QUERY_GENERATION_NO_QUERY_GENERATED
public static final KnowledgeAssistDebugInfo.QueryGenerationFailureReason QUERY_GENERATION_NO_QUERY_GENERATEDQuery generation model decides that there is no new topic change or there has been similar queries generated in the previous turns.
QUERY_GENERATION_NO_QUERY_GENERATED = 3; -
QUERY_GENERATION_RAI_FAILED
public static final KnowledgeAssistDebugInfo.QueryGenerationFailureReason QUERY_GENERATION_RAI_FAILEDKnowedge Assist generated query is blocked by RAI (Responsible AI).
QUERY_GENERATION_RAI_FAILED = 4; -
NOT_IN_ALLOWLIST
Query generation is blocked by Knowledge Assist conversation profile level / agent id level filtering.
NOT_IN_ALLOWLIST = 5; -
QUERY_GENERATION_QUERY_REDACTED
public static final KnowledgeAssistDebugInfo.QueryGenerationFailureReason QUERY_GENERATION_QUERY_REDACTEDThe generated query is blocked due to redaction.
QUERY_GENERATION_QUERY_REDACTED = 6; -
QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED
public static final KnowledgeAssistDebugInfo.QueryGenerationFailureReason QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILEDQuery generation failed due to LLM response parse failure.
QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED = 10; -
QUERY_GENERATION_EMPTY_CONVERSATION
public static final KnowledgeAssistDebugInfo.QueryGenerationFailureReason QUERY_GENERATION_EMPTY_CONVERSATIONThe conversation has no messages.
QUERY_GENERATION_EMPTY_CONVERSATION = 11; -
QUERY_GENERATION_EMPTY_LAST_MESSAGE
public static final KnowledgeAssistDebugInfo.QueryGenerationFailureReason QUERY_GENERATION_EMPTY_LAST_MESSAGEThe last message in the conversation is empty.
QUERY_GENERATION_EMPTY_LAST_MESSAGE = 12; -
QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET
public static final KnowledgeAssistDebugInfo.QueryGenerationFailureReason QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_METThe trigger event condition is not met. This occurs in the following scenarios: 1. The trigger_event is CUSTOMER_MESSAGE or UNSPECIFIED, but the last message is not from the customer. 2. The trigger_event is AGENT_MESSAGE, but the last message is not from the agent.
QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET = 13; -
UNRECOGNIZED
-
-
Field Details
-
QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED_VALUE
public static final int QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED_VALUEDefault value.
QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED = 0;- See Also:
-
QUERY_GENERATION_OUT_OF_QUOTA_VALUE
public static final int QUERY_GENERATION_OUT_OF_QUOTA_VALUEQuery generation is blocked due to out of quota.
QUERY_GENERATION_OUT_OF_QUOTA = 1;- See Also:
-
QUERY_GENERATION_FAILED_VALUE
public static final int QUERY_GENERATION_FAILED_VALUECall to Knowedge Assist query generation model fails.
QUERY_GENERATION_FAILED = 2;- See Also:
-
QUERY_GENERATION_NO_QUERY_GENERATED_VALUE
public static final int QUERY_GENERATION_NO_QUERY_GENERATED_VALUEQuery generation model decides that there is no new topic change or there has been similar queries generated in the previous turns.
QUERY_GENERATION_NO_QUERY_GENERATED = 3;- See Also:
-
QUERY_GENERATION_RAI_FAILED_VALUE
public static final int QUERY_GENERATION_RAI_FAILED_VALUEKnowedge Assist generated query is blocked by RAI (Responsible AI).
QUERY_GENERATION_RAI_FAILED = 4;- See Also:
-
NOT_IN_ALLOWLIST_VALUE
public static final int NOT_IN_ALLOWLIST_VALUEQuery generation is blocked by Knowledge Assist conversation profile level / agent id level filtering.
NOT_IN_ALLOWLIST = 5;- See Also:
-
QUERY_GENERATION_QUERY_REDACTED_VALUE
public static final int QUERY_GENERATION_QUERY_REDACTED_VALUEThe generated query is blocked due to redaction.
QUERY_GENERATION_QUERY_REDACTED = 6;- See Also:
-
QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED_VALUE
public static final int QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED_VALUEQuery generation failed due to LLM response parse failure.
QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED = 10;- See Also:
-
QUERY_GENERATION_EMPTY_CONVERSATION_VALUE
public static final int QUERY_GENERATION_EMPTY_CONVERSATION_VALUEThe conversation has no messages.
QUERY_GENERATION_EMPTY_CONVERSATION = 11;- See Also:
-
QUERY_GENERATION_EMPTY_LAST_MESSAGE_VALUE
public static final int QUERY_GENERATION_EMPTY_LAST_MESSAGE_VALUEThe last message in the conversation is empty.
QUERY_GENERATION_EMPTY_LAST_MESSAGE = 12;- See Also:
-
QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET_VALUE
public static final int QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET_VALUEThe trigger event condition is not met. This occurs in the following scenarios: 1. The trigger_event is CUSTOMER_MESSAGE or UNSPECIFIED, but the last message is not from the customer. 2. The trigger_event is AGENT_MESSAGE, but the last message is not from the agent.
QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET = 13;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<KnowledgeAssistDebugInfo.QueryGenerationFailureReason> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static KnowledgeAssistDebugInfo.QueryGenerationFailureReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-