# Cloud Optimization v1 API - Enum ShipmentTypeIncompatibility.Types.IncompatibilityMode (2.7.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.7.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/latest/Google.Cloud.Optimization.V1.ShipmentTypeIncompatibility.Types.IncompatibilityMode)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/2.6.0/Google.Cloud.Optimization.V1.ShipmentTypeIncompatibility.Types.IncompatibilityMode)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/2.5.0/Google.Cloud.Optimization.V1.ShipmentTypeIncompatibility.Types.IncompatibilityMode)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/2.4.0/Google.Cloud.Optimization.V1.ShipmentTypeIncompatibility.Types.IncompatibilityMode)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/2.3.0/Google.Cloud.Optimization.V1.ShipmentTypeIncompatibility.Types.IncompatibilityMode)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/2.2.0/Google.Cloud.Optimization.V1.ShipmentTypeIncompatibility.Types.IncompatibilityMode)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/2.1.0/Google.Cloud.Optimization.V1.ShipmentTypeIncompatibility.Types.IncompatibilityMode)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/2.0.0/Google.Cloud.Optimization.V1.ShipmentTypeIncompatibility.Types.IncompatibilityMode)
- [1.0.0-beta01](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/1.0.0-beta01/Google.Cloud.Optimization.V1.ShipmentTypeIncompatibility.Types.IncompatibilityMode)

    public enum ShipmentTypeIncompatibility.Types.IncompatibilityMode

Reference documentation and code samples for the Cloud Optimization v1 API enum ShipmentTypeIncompatibility.Types.IncompatibilityMode.

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

## Namespace

[Google.Cloud.Optimization.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/latest/Google.Cloud.Optimization.V1)

## Assembly

Google.Cloud.Optimization.V1.dll

| ## Fields ||
|---|---|
| **Name** | **Description** |
| `NotInSameVehicleSimultaneously` | 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. |
| `NotPerformedBySameVehicle` | In this mode, two shipments with incompatible types can never share the same vehicle. |
| `Unspecified` | Unspecified incompatibility mode. This value should never be used. |