Enum ShipmentTypeIncompatibility.IncompatibilityMode (1.12.0)

public enum ShipmentTypeIncompatibility.IncompatibilityMode extends Enum<ShipmentTypeIncompatibility.IncompatibilityMode> implements ProtocolMessageEnum

Modes defining how the appearance of incompatible shipments are restricted on the same route.

Protobuf enum google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode

Implements

ProtocolMessageEnum

Static Fields

NameDescription
INCOMPATIBILITY_MODE_UNSPECIFIED

Unspecified incompatibility mode. This value should never be used.

INCOMPATIBILITY_MODE_UNSPECIFIED = 0;

INCOMPATIBILITY_MODE_UNSPECIFIED_VALUE

Unspecified incompatibility mode. This value should never be used.

INCOMPATIBILITY_MODE_UNSPECIFIED = 0;

NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY

For two shipments with incompatible types with the NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY incompatibility mode:

  • If both are pickups only (no deliveries) or deliveries only (no pickups), they cannot share the same vehicle at all.
  • If one of the shipments has a delivery and the other a pickup, the two shipments can share the same vehicle iff the former shipment is delivered before the latter is picked up.

NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY = 2;

NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY_VALUE

For two shipments with incompatible types with the NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY incompatibility mode:

  • If both are pickups only (no deliveries) or deliveries only (no pickups), they cannot share the same vehicle at all.
  • If one of the shipments has a delivery and the other a pickup, the two shipments can share the same vehicle iff the former shipment is delivered before the latter is picked up.

NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY = 2;

NOT_PERFORMED_BY_SAME_VEHICLE

In this mode, two shipments with incompatible types can never share the same vehicle.

NOT_PERFORMED_BY_SAME_VEHICLE = 1;

NOT_PERFORMED_BY_SAME_VEHICLE_VALUE

In this mode, two shipments with incompatible types can never share the same vehicle.

NOT_PERFORMED_BY_SAME_VEHICLE = 1;

UNRECOGNIZED

Static Methods

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

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

NameDescription
getDescriptorForType()
getNumber()
getValueDescriptor()