# 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 search as you type should occur.

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

## Namespace

Google \\ Cloud \\ DiscoveryEngine \\ V1 \\ SearchRequest \\ SearchAsYouTypeSpec

## Methods

### static::name

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

### static::value

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

## Constants

### CONDITION_UNSPECIFIED

    Value: 0

Server behavior defaults to
[Condition.DISABLED](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.SearchRequest.SearchAsYouTypeSpec.Condition#_Google_Cloud_DiscoveryEngine_V1_SearchRequest_SearchAsYouTypeSpec_Condition__DISABLED).

Generated from protobuf enum `CONDITION_UNSPECIFIED = 0;`

### DISABLED

    Value: 1

Disables Search As You Type.

Generated from protobuf enum `DISABLED = 1;`

### ENABLED

    Value: 2

Enables Search As You Type.

Generated from protobuf enum `ENABLED = 2;`

### AUTO

    Value: 3

Automatic switching between search-as-you-type and standard search
modes, ideal for single-API implementations (e.g., debouncing).

Generated from protobuf enum `AUTO = 3;`