# Google Cloud Dialogflow V2 Client - Class QueryGenerationFailureReason (2.4.0)

2.4.0 (latest) 2.3.1 2.2.1 2.1.2 2.0.1 1.17.2 1.16.0 1.15.1 1.14.0 1.13.0 1.12.3 1.11.0 1.10.2 1.9.0 1.8.0 1.7.2 1.6.0 1.5.0 1.4.0 1.3.2 1.2.0 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class QueryGenerationFailureReason.

Reason for query generation failure.

Protobuf type `google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason`

## Namespace

Google \\ Cloud \\ Dialogflow \\ V2 \\ KnowledgeAssistDebugInfo

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED

    Value: 0

Default value.

Generated from protobuf enum `QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED = 0;`

### QUERY_GENERATION_OUT_OF_QUOTA

    Value: 1

Query generation is blocked due to out of quota.

Generated from protobuf enum `QUERY_GENERATION_OUT_OF_QUOTA = 1;`

### QUERY_GENERATION_FAILED

    Value: 2

Call to Knowedge Assist query generation model fails.

Generated from protobuf enum `QUERY_GENERATION_FAILED = 2;`

### QUERY_GENERATION_NO_QUERY_GENERATED

    Value: 3

Query generation model decides that there is no new topic change or
there has been similar queries generated in the previous turns.

Generated from protobuf enum `QUERY_GENERATION_NO_QUERY_GENERATED = 3;`

### QUERY_GENERATION_RAI_FAILED

    Value: 4

Knowedge Assist generated query is blocked by RAI (Responsible AI).

Generated from protobuf enum `QUERY_GENERATION_RAI_FAILED = 4;`

### NOT_IN_ALLOWLIST

    Value: 5

Query generation is blocked by Knowledge Assist conversation profile
level / agent id level filtering.

Generated from protobuf enum `NOT_IN_ALLOWLIST = 5;`

### QUERY_GENERATION_QUERY_REDACTED

    Value: 6

The generated query is blocked due to redaction.

Generated from protobuf enum `QUERY_GENERATION_QUERY_REDACTED = 6;`

### QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED

    Value: 10

Query generation failed due to LLM response parse failure.

Generated from protobuf enum `QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED = 10;`

### QUERY_GENERATION_EMPTY_CONVERSATION

    Value: 11

The conversation has no messages.

Generated from protobuf enum `QUERY_GENERATION_EMPTY_CONVERSATION = 11;`

### QUERY_GENERATION_EMPTY_LAST_MESSAGE

    Value: 12

The last message in the conversation is empty.

Generated from protobuf enum `QUERY_GENERATION_EMPTY_LAST_MESSAGE = 12;`

### QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET

    Value: 13

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

Generated from protobuf enum `QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET = 13;`