Google Cloud Optimization V1 Client - Class VehicleLoad (0.2.0)

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
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
NameDescription
var int|string
Returns
TypeDescription
$this