Google Cloud Optimization V1 Client - Class Load (1.0.1)

Reference documentation and code samples for the Google Cloud Optimization V1 Client class Load.

When performing a visit, a predefined amount may be added to the vehicle load if it's a pickup, or subtracted if it's a delivery. This message defines such amount. See load_demands.

Generated from protobuf message google.cloud.optimization.v1.Shipment.Load

Namespace

Google \ Cloud \ Optimization \ V1 \ Shipment

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ amount int|string

The amount by which the load of the vehicle performing the corresponding visit will vary. Since it is an integer, users are advised to choose an appropriate unit to avoid loss of precision. Must be ≥ 0.

getAmount

The amount by which the load of the vehicle performing the corresponding visit will vary. Since it is an integer, users are advised to choose an appropriate unit to avoid loss of precision. Must be ≥ 0.

Returns
Type Description
int|string

setAmount

The amount by which the load of the vehicle performing the corresponding visit will vary. Since it is an integer, users are advised to choose an appropriate unit to avoid loss of precision. Must be ≥ 0.

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