Google Cloud Optimization V1 Client - Class Load (0.5.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
NameDescription
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
TypeDescription
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
NameDescription
var int|string
Returns
TypeDescription
$this