# Google Cloud Retail V2 Client - Class Condition (2.5.3)

2.5.3 (latest) 2.5.2 2.4.0 2.3.1 2.2.1 2.1.3 2.0.0 1.7.0 1.6.4 1.5.0 1.4.2 1.3.1 1.2.1 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Retail V2 Client class Condition.

Enum describing under which condition query expansion should occur.

Protobuf type `google.cloud.retail.v2.SearchRequest.QueryExpansionSpec.Condition`

## Namespace

Google \\ Cloud \\ Retail \\ V2 \\ 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-retail/latest/V2.SearchRequest.QueryExpansionSpec.Condition#_Google_Cloud_Retail_V2_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-retail/latest/V2.SearchResponse#_Google_Cloud_Retail_V2_SearchResponse__getTotalSize__)
is zero.

Generated from protobuf enum `DISABLED = 1;`

### AUTO

    Value: 3

Automatic query expansion built by Google Retail Search.

Generated from protobuf enum `AUTO = 3;`