# Cloud Optimization v1 API - Enum OptimizeToursRequest.Types.SearchMode (2.7.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.7.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/latest/Google.Cloud.Optimization.V1.OptimizeToursRequest.Types.SearchMode)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/2.6.0/Google.Cloud.Optimization.V1.OptimizeToursRequest.Types.SearchMode)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/2.5.0/Google.Cloud.Optimization.V1.OptimizeToursRequest.Types.SearchMode)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/2.4.0/Google.Cloud.Optimization.V1.OptimizeToursRequest.Types.SearchMode)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/2.3.0/Google.Cloud.Optimization.V1.OptimizeToursRequest.Types.SearchMode)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/2.2.0/Google.Cloud.Optimization.V1.OptimizeToursRequest.Types.SearchMode)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/2.1.0/Google.Cloud.Optimization.V1.OptimizeToursRequest.Types.SearchMode)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/2.0.0/Google.Cloud.Optimization.V1.OptimizeToursRequest.Types.SearchMode)
- [1.0.0-beta01](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/1.0.0-beta01/Google.Cloud.Optimization.V1.OptimizeToursRequest.Types.SearchMode)

    public enum OptimizeToursRequest.Types.SearchMode

Reference documentation and code samples for the Cloud Optimization v1 API enum OptimizeToursRequest.Types.SearchMode.

Mode defining the behavior of the search, trading off latency versus
solution quality. In all modes, the global request deadline is enforced.

## Namespace

[Google.Cloud.Optimization.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/latest/Google.Cloud.Optimization.V1)

## Assembly

Google.Cloud.Optimization.V1.dll

| ## Fields ||
|---|---|
| **Name** | **Description** |
| `ConsumeAllAvailableTime` | Spend all the available time to search for better solutions. |
| `ReturnFast` | Stop the search after finding the first good solution. |
| `Unspecified` | Unspecified search mode, equivalent to `RETURN_FAST`. |