# Google Cloud Discovery Engine V1 Client - Class Condition (1.11.1)

1.11.1 (latest) 1.11.0 1.10.1 1.9.1 1.8.0 1.7.0 1.6.1 1.5.1 1.4.0 1.3.3 1.2.0 1.1.0 1.0.0 0.11.3 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class Condition.

Enum describing under which condition query expansion should occur.

Protobuf type `google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition`

## Namespace

Google \\ Cloud \\ DiscoveryEngine \\ V1 \\ SearchRequest \\ QueryExpansionSpec

## Methods

### static::name

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

### static::value

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

## Constants

### CONDITION_UNSPECIFIED

    Value: 0

Unspecified query expansion condition. In this case, server behavior
defaults to
[Condition.DISABLED](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.SearchRequest.QueryExpansionSpec.Condition#_Google_Cloud_DiscoveryEngine_V1_SearchRequest_QueryExpansionSpec_Condition__DISABLED).

Generated from protobuf enum `CONDITION_UNSPECIFIED = 0;`

### DISABLED

    Value: 1

Disabled query expansion. Only the exact search query is used, even if
[SearchResponse.total_size](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.SearchResponse#_Google_Cloud_DiscoveryEngine_V1_SearchResponse__getTotalSize__)
is zero.

Generated from protobuf enum `DISABLED = 1;`

### AUTO

    Value: 2

Automatic query expansion built by the Search API.

Generated from protobuf enum `AUTO = 2;`