Reference documentation and code samples for the Cloud Optimization V1 API module Google::Cloud::Optimization::V1::ShipmentTypeIncompatibility::IncompatibilityMode.
Modes defining how the appearance of incompatible shipments are restricted
on the same route.
Constants
INCOMPATIBILITY_MODE_UNSPECIFIED
value: 0 Unspecified incompatibility mode. This value should never be used.
NOT_PERFORMED_BY_SAME_VEHICLE
value: 1 In this mode, two shipments with incompatible types can never share the
same vehicle.
NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY
value: 2
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.
[[["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-09-09 UTC."],[],[],null,["# Cloud Optimization V1 API - Module Google::Cloud::Optimization::V1::ShipmentTypeIncompatibility::IncompatibilityMode (v0.12.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.12.0 (latest)](/ruby/docs/reference/google-cloud-optimization-v1/latest/Google-Cloud-Optimization-V1-ShipmentTypeIncompatibility-IncompatibilityMode)\n- [0.11.1](/ruby/docs/reference/google-cloud-optimization-v1/0.11.1/Google-Cloud-Optimization-V1-ShipmentTypeIncompatibility-IncompatibilityMode)\n- [0.10.0](/ruby/docs/reference/google-cloud-optimization-v1/0.10.0/Google-Cloud-Optimization-V1-ShipmentTypeIncompatibility-IncompatibilityMode)\n- [0.9.2](/ruby/docs/reference/google-cloud-optimization-v1/0.9.2/Google-Cloud-Optimization-V1-ShipmentTypeIncompatibility-IncompatibilityMode)\n- [0.8.2](/ruby/docs/reference/google-cloud-optimization-v1/0.8.2/Google-Cloud-Optimization-V1-ShipmentTypeIncompatibility-IncompatibilityMode)\n- [0.7.0](/ruby/docs/reference/google-cloud-optimization-v1/0.7.0/Google-Cloud-Optimization-V1-ShipmentTypeIncompatibility-IncompatibilityMode)\n- [0.6.0](/ruby/docs/reference/google-cloud-optimization-v1/0.6.0/Google-Cloud-Optimization-V1-ShipmentTypeIncompatibility-IncompatibilityMode)\n- [0.5.0](/ruby/docs/reference/google-cloud-optimization-v1/0.5.0/Google-Cloud-Optimization-V1-ShipmentTypeIncompatibility-IncompatibilityMode)\n- [0.4.1](/ruby/docs/reference/google-cloud-optimization-v1/0.4.1/Google-Cloud-Optimization-V1-ShipmentTypeIncompatibility-IncompatibilityMode)\n- [0.3.0](/ruby/docs/reference/google-cloud-optimization-v1/0.3.0/Google-Cloud-Optimization-V1-ShipmentTypeIncompatibility-IncompatibilityMode)\n- [0.2.1](/ruby/docs/reference/google-cloud-optimization-v1/0.2.1/Google-Cloud-Optimization-V1-ShipmentTypeIncompatibility-IncompatibilityMode)\n- [0.1.1](/ruby/docs/reference/google-cloud-optimization-v1/0.1.1/Google-Cloud-Optimization-V1-ShipmentTypeIncompatibility-IncompatibilityMode) \nReference documentation and code samples for the Cloud Optimization V1 API module Google::Cloud::Optimization::V1::ShipmentTypeIncompatibility::IncompatibilityMode.\n\nModes defining how the appearance of incompatible shipments are restricted\non the same route.\n\nConstants\n---------\n\n### INCOMPATIBILITY_MODE_UNSPECIFIED\n\n**value:** 0 \nUnspecified incompatibility mode. This value should never be used.\n\n### NOT_PERFORMED_BY_SAME_VEHICLE\n\n**value:** 1 \nIn this mode, two shipments with incompatible types can never share the\nsame vehicle.\n\n### NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY\n\n**value:** 2 \n\nFor two shipments with incompatible types with the\n`NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY` incompatibility mode:\n\n\u003cbr /\u003e\n\n- If both are pickups only (no deliveries) or deliveries only (no pickups), they cannot share the same vehicle at all.\n- 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."]]