# Class ShipmentTypeIncompatibility (1.15.0)

1.15.0 (latest) 1.14.0 1.13.0 1.12.0 1.11.2 1.10.0 1.9.1 1.8.5 1.7.0 1.6.0 1.5.0 1.4.3 1.3.2 1.2.0 1.1.3 1.0.1 0.1.1

    ShipmentTypeIncompatibility(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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". |
| `incompatibility_mode` | `https://docs.cloud.google.com/python/docs/reference/optimization/latest/google.cloud.optimization_v1.types.ShipmentTypeIncompatibility.IncompatibilityMode` Mode applied to the incompatibility. |

## Classes

### IncompatibilityMode

    IncompatibilityMode(value)

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.