# Google Maps Route Optimization V1 Client - Class BatchOptimizeToursRequest (0.6.2)

0.6.2 (latest) 0.6.1 0.5.1 0.4.1 0.3.3 0.2.0 0.1.0 Reference documentation and code samples for the Google Maps Route Optimization V1 Client class BatchOptimizeToursRequest.

Request to batch optimize tours as an asynchronous operation.

Each input file should contain one `OptimizeToursRequest`, and each output
file will contain one `OptimizeToursResponse`. The request contains
information to read/write and parse the files. All the input and output files
should be under the same project.

Generated from protobuf message `google.maps.routeoptimization.v1.BatchOptimizeToursRequest`

## Namespace

Google \\ Maps \\ RouteOptimization \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Target project and location to make a call. Format: \* \* `projects/{project-id}` \* \* `projects/{project-id}/locations/{location-id}` If no location is specified, a region will be chosen automatically. |
| `↳ model_configs` | `array<https://docs.cloud.google.com/php/docs/reference/maps-routeoptimization/latest/V1.BatchOptimizeToursRequest.AsyncModelConfig>` Required. Input/Output information each purchase model, such as file paths and data formats. |

### getParent

Required. Target project and location to make a call.

Format:

- `projects/{project-id}`
- `projects/{project-id}/locations/{location-id}` If no location is specified, a region will be chosen automatically.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setParent

Required. Target project and location to make a call.

Format:

- `projects/{project-id}`
- `projects/{project-id}/locations/{location-id}` If no location is specified, a region will be chosen automatically.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getModelConfigs

Required. Input/Output information each purchase model, such as file paths
and data formats.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/maps-routeoptimization/latest/V1.BatchOptimizeToursRequest.AsyncModelConfig>` |   |

### setModelConfigs

Required. Input/Output information each purchase model, such as file paths
and data formats.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/maps-routeoptimization/latest/V1.BatchOptimizeToursRequest.AsyncModelConfig>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |