Enum ShipmentTypeRequirement.RequirementMode (1.53.0)

public enum ShipmentTypeRequirement.RequirementMode extends Enum<ShipmentTypeRequirement.RequirementMode> implements ProtocolMessageEnum

Modes defining the appearance of dependent shipments on a route.

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

Implements

ProtocolMessageEnum

Static Fields

Name Description
IN_SAME_VEHICLE_AT_DELIVERY_TIME

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

IN_SAME_VEHICLE_AT_DELIVERY_TIME = 3;

IN_SAME_VEHICLE_AT_DELIVERY_TIME_VALUE

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

IN_SAME_VEHICLE_AT_DELIVERY_TIME = 3;

IN_SAME_VEHICLE_AT_PICKUP_TIME

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.

IN_SAME_VEHICLE_AT_PICKUP_TIME = 2;

IN_SAME_VEHICLE_AT_PICKUP_TIME_VALUE

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.

IN_SAME_VEHICLE_AT_PICKUP_TIME = 2;

PERFORMED_BY_SAME_VEHICLE

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

PERFORMED_BY_SAME_VEHICLE = 1;

PERFORMED_BY_SAME_VEHICLE_VALUE

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

PERFORMED_BY_SAME_VEHICLE = 1;

REQUIREMENT_MODE_UNSPECIFIED

Unspecified requirement mode. This value should never be used.

REQUIREMENT_MODE_UNSPECIFIED = 0;

REQUIREMENT_MODE_UNSPECIFIED_VALUE

Unspecified requirement mode. This value should never be used.

REQUIREMENT_MODE_UNSPECIFIED = 0;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()