# Google Maps FleetEngine Delivery V1 Client - Class TaskInfo (0.5.3)

0.5.3 (latest) 0.5.2 0.4.1 0.3.1 0.2.0 0.1.8 Reference documentation and code samples for the Google Maps FleetEngine Delivery V1 Client class TaskInfo.

Additional information about the Task performed at this stop.

Generated from protobuf message `maps.fleetengine.delivery.v1.VehicleStop.TaskInfo`

## Namespace

Google \\ Maps \\ FleetEngine \\ Delivery \\ V1 \\ VehicleStop

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ task_id` | `string` The Task ID. This field won't be populated in the response of a `GetTask` call. Task IDs are subject to the following restrictions: \* \* Must be a valid Unicode string. \* \* Limited to a maximum length of 64 characters. \* \* Normalized according to [Unicode Normalization Form C](http://www.unicode.org/reports/tr15/). \* \* May not contain any of the following ASCII characters: '/', ':', '?', ',', or '#'. |
| `↳ task_duration` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` Output only. The time required to perform the Task. |
| `↳ target_time_window` | `https://docs.cloud.google.com/php/docs/reference/maps-fleetengine-delivery/latest/V1.TimeWindow` Output only. The time window during which the task should be completed. This is only set in the response to `GetDeliveryVehicle`. |

### getTaskId

The Task ID. This field won't be populated in the response of a `GetTask`
call. Task IDs are subject to the following restrictions:

- Must be a valid Unicode string.

- Limited to a maximum length of 64 characters.

- Normalized according to [Unicode Normalization Form C](http://www.unicode.org/reports/tr15/).
- May not contain any of the following ASCII characters: '/', ':', '?', ',', or '#'.

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

### setTaskId

The Task ID. This field won't be populated in the response of a `GetTask`
call. Task IDs are subject to the following restrictions:

- Must be a valid Unicode string.

- Limited to a maximum length of 64 characters.

- Normalized according to [Unicode Normalization Form C](http://www.unicode.org/reports/tr15/).
- May not contain any of the following ASCII characters: '/', ':', '?', ',', or '#'.

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

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

### getTaskDuration

Output only. The time required to perform the Task.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration|null` |   |

### hasTaskDuration

### clearTaskDuration

### setTaskDuration

Output only. The time required to perform the Task.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` |

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

### getTargetTimeWindow

Output only. The time window during which the task should be completed.

This is only set in the response to `GetDeliveryVehicle`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/maps-fleetengine-delivery/latest/V1.TimeWindow|null` |   |

### hasTargetTimeWindow

### clearTargetTimeWindow

### setTargetTimeWindow

Output only. The time window during which the task should be completed.

This is only set in the response to `GetDeliveryVehicle`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/maps-fleetengine-delivery/latest/V1.TimeWindow` |

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