Google Cloud Optimization V1 Client - Class RequirementMode (1.0.1)

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

Modes defining the appearance of dependent shipments on a route.

Protobuf type google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode

Namespace

Google \ Cloud \ Optimization \ V1 \ ShipmentTypeRequirement

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

REQUIREMENT_MODE_UNSPECIFIED

Value: 0

Unspecified requirement mode. This value should never be used.

Generated from protobuf enum REQUIREMENT_MODE_UNSPECIFIED = 0;

PERFORMED_BY_SAME_VEHICLE

Value: 1

In this mode, all "dependent" shipments must share the same vehicle as at least one of their "required" shipments.

Generated from protobuf enum PERFORMED_BY_SAME_VEHICLE = 1;

IN_SAME_VEHICLE_AT_PICKUP_TIME

Value: 2

With the IN_SAME_VEHICLE_AT_PICKUP_TIME mode, all "dependent" shipments need to have at least one "required" shipment on their vehicle at the time of their pickup.

A "dependent" shipment pickup must therefore have either:

  • A delivery-only "required" shipment delivered on the route after, or
  • A "required" shipment picked up on the route before it, and if the "required" shipment has a delivery, this delivery must be performed after the "dependent" shipment's pickup.

Generated from protobuf enum IN_SAME_VEHICLE_AT_PICKUP_TIME = 2;

IN_SAME_VEHICLE_AT_DELIVERY_TIME

Value: 3

Same as before, except the "dependent" shipments need to have a "required" shipment on their vehicle at the time of their delivery.

Generated from protobuf enum IN_SAME_VEHICLE_AT_DELIVERY_TIME = 3;