Google Cloud Optimization V1 Client - Class VehicleLoad (0.6.5)

Reference documentation and code samples for the Google Cloud 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).

Generated from protobuf message google.cloud.optimization.v1.ShipmentRoute.VehicleLoad

Namespace

Google \ Cloud \ Optimization \ 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.

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.

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.

Parameter
Name Description
var int|string
Returns
Type Description
$this