# Google Maps FleetEngine Delivery V1 Client - Class VehicleStop (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 VehicleStop.

Describes a point where a Vehicle stops to perform one or more `Task`s.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ planned_location` | `https://docs.cloud.google.com/php/docs/reference/maps-fleetengine-delivery/latest/V1.LocationInfo` Required. The location of the stop. Note that the locations in the `Task`s might not exactly match this location, but will be within a short distance of it. This field won't be populated in the response of a `GetTask` call. |
| `↳ tasks` | `array<https://docs.cloud.google.com/php/docs/reference/maps-fleetengine-delivery/latest/V1.VehicleStop.TaskInfo>` The list of `Task`s to be performed at this stop. This field won't be populated in the response of a `GetTask` call. |
| `↳ state` | `int` The state of the `VehicleStop`. This field won't be populated in the response of a `GetTask` call. |

### getPlannedLocation

Required. The location of the stop. Note that the locations in the `Task`s
might not exactly match this location, but will be within a short distance
of it. This field won't be populated in the response of a `GetTask` call.

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

### hasPlannedLocation

### clearPlannedLocation

### setPlannedLocation

Required. The location of the stop. Note that the locations in the `Task`s
might not exactly match this location, but will be within a short distance
of it. This field won't be populated in the response of a `GetTask` call.

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

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

### getTasks

The list of `Task`s to be performed at this stop. This field won't be
populated in the response of a `GetTask` call.

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

### setTasks

The list of `Task`s to be performed at this stop. This field won't be
populated in the response of a `GetTask` call.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/maps-fleetengine-delivery/latest/V1.VehicleStop.TaskInfo>` |

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

### getState

The state of the `VehicleStop`. This field won't be populated in the
response of a `GetTask` call.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setState

The state of the `VehicleStop`. This field won't be populated in the
response of a `GetTask` call.

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

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