# Google Maps Route Optimization V1 Client - Class IncompatibilityMode (0.6.2)

0.6.2 (latest) 0.6.1 0.5.1 0.4.1 0.3.3 0.2.0 0.1.0 Reference documentation and code samples for the Google Maps Route Optimization V1 Client class IncompatibilityMode.

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

Protobuf type `google.maps.routeoptimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode`

## Namespace

Google \\ Maps \\ RouteOptimization \\ V1 \\ ShipmentTypeIncompatibility

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### INCOMPATIBILITY_MODE_UNSPECIFIED

    Value: 0

Unspecified incompatibility mode. This value should never be used.

Generated from protobuf enum `INCOMPATIBILITY_MODE_UNSPECIFIED = 0;`

### NOT_PERFORMED_BY_SAME_VEHICLE

    Value: 1

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

Generated from protobuf enum `NOT_PERFORMED_BY_SAME_VEHICLE = 1;`

### NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY

    Value: 2

In this mode, two shipments with incompatible types can never be on the
same vehicle at the same time:

- They can share the same vehicle only if one is delivered before the
  other is picked up.

- When both shipments are pickups-only (no deliveries) or deliveries-only
  (no pickups), they can't share the same vehicle at all.

Generated from protobuf enum `NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY = 2;`