# Google Maps Route Optimization V1 Client - Class VehicleLoad (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 VehicleLoad.

Reports the actual load of the vehicle at some point along the route,
for a given type (see
[Transition.vehicle_loads](https://docs.cloud.google.com/php/docs/reference/maps-routeoptimization/latest/V1.ShipmentRoute.Transition#_Google_Maps_RouteOptimization_V1_ShipmentRoute_Transition__getVehicleLoads__)).

Generated from protobuf message `google.maps.routeoptimization.v1.ShipmentRoute.VehicleLoad`

## Namespace

Google \\ Maps \\ RouteOptimization \\ V1 \\ ShipmentRoute

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ amount` | `int|string` The amount of load on the vehicle, for the given type. The unit of load is usually indicated by the type. See [Transition.vehicle_loads](https://docs.cloud.google.com/php/docs/reference/maps-routeoptimization/latest/V1.ShipmentRoute.Transition#_Google_Maps_RouteOptimization_V1_ShipmentRoute_Transition__getVehicleLoads__). |

### getAmount

The amount of load on the vehicle, for the given type. The unit of load
is usually indicated by the type. See
[Transition.vehicle_loads](https://docs.cloud.google.com/php/docs/reference/maps-routeoptimization/latest/V1.ShipmentRoute.Transition#_Google_Maps_RouteOptimization_V1_ShipmentRoute_Transition__getVehicleLoads__).

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

### setAmount

The amount of load on the vehicle, for the given type. The unit of load
is usually indicated by the type. See
[Transition.vehicle_loads](https://docs.cloud.google.com/php/docs/reference/maps-routeoptimization/latest/V1.ShipmentRoute.Transition#_Google_Maps_RouteOptimization_V1_ShipmentRoute_Transition__getVehicleLoads__).

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

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