Specifies incompatibilties between shipments depending on their
shipment_type. The appearance of incompatible shipments on the same
route is restricted based on the incompatibility mode.
Attributes
Name
Description
types
MutableSequence[str]
List of incompatible types. Two shipments having different
shipment_types among those listed are "incompatible".
Modes defining how the appearance of incompatible shipments
are restricted on the same route.
- 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Class ShipmentTypeIncompatibility (1.11.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.11.2 (latest)](/python/docs/reference/optimization/latest/google.cloud.optimization_v1.types.ShipmentTypeIncompatibility)\n- [1.11.0](/python/docs/reference/optimization/1.11.0/google.cloud.optimization_v1.types.ShipmentTypeIncompatibility)\n- [1.10.0](/python/docs/reference/optimization/1.10.0/google.cloud.optimization_v1.types.ShipmentTypeIncompatibility)\n- [1.9.1](/python/docs/reference/optimization/1.9.1/google.cloud.optimization_v1.types.ShipmentTypeIncompatibility)\n- [1.8.5](/python/docs/reference/optimization/1.8.5/google.cloud.optimization_v1.types.ShipmentTypeIncompatibility)\n- [1.7.0](/python/docs/reference/optimization/1.7.0/google.cloud.optimization_v1.types.ShipmentTypeIncompatibility)\n- [1.6.0](/python/docs/reference/optimization/1.6.0/google.cloud.optimization_v1.types.ShipmentTypeIncompatibility)\n- [1.5.0](/python/docs/reference/optimization/1.5.0/google.cloud.optimization_v1.types.ShipmentTypeIncompatibility)\n- [1.4.3](/python/docs/reference/optimization/1.4.3/google.cloud.optimization_v1.types.ShipmentTypeIncompatibility)\n- [1.3.2](/python/docs/reference/optimization/1.3.2/google.cloud.optimization_v1.types.ShipmentTypeIncompatibility)\n- [1.2.0](/python/docs/reference/optimization/1.2.0/google.cloud.optimization_v1.types.ShipmentTypeIncompatibility)\n- [1.1.3](/python/docs/reference/optimization/1.1.3/google.cloud.optimization_v1.types.ShipmentTypeIncompatibility)\n- [1.0.1](/python/docs/reference/optimization/1.0.1/google.cloud.optimization_v1.types.ShipmentTypeIncompatibility)\n- [0.1.1](/python/docs/reference/optimization/0.1.1/google.cloud.optimization_v1.types.ShipmentTypeIncompatibility) \n\n ShipmentTypeIncompatibility(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nSpecifies incompatibilties between shipments depending on their\nshipment_type. The appearance of incompatible shipments on the same\nroute is restricted based on the incompatibility mode.\n\nClasses\n-------\n\n### IncompatibilityMode\n\n IncompatibilityMode(value)\n\nModes defining how the appearance of incompatible shipments\nare restricted on the same route. \n\n - If both are pickups only (no deliveries) or deliveries\n only (no pickups), they cannot share the same vehicle at\n all.\n - If one of the shipments has a delivery and the other a\n pickup, the two shipments can share the same vehicle iff\n the former shipment is delivered before the latter is\n picked up."]]