# Google Maps FleetEngine V1 Client - Class SearchVehiclesResponse (0.5.3)

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

`SearchVehicles` response message.

Generated from protobuf message `maps.fleetengine.v1.SearchVehiclesResponse`

## Namespace

Google \\ Maps \\ FleetEngine \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ matches` | `array<https://docs.cloud.google.com/php/docs/reference/maps-fleetengine/latest/V1.VehicleMatch>` List of vehicles that match the `SearchVehiclesRequest` criteria, ordered according to `SearchVehiclesRequest.order_by` field. |

### getMatches

List of vehicles that match the `SearchVehiclesRequest` criteria, ordered
according to `SearchVehiclesRequest.order_by` field.

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

### setMatches

List of vehicles that match the `SearchVehiclesRequest` criteria, ordered
according to `SearchVehiclesRequest.order_by` field.

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

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