# Google Maps Route Optimization V1 Client - Class ShipmentTypeIncompatibility (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 ShipmentTypeIncompatibility.

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.

Generated from protobuf message `google.maps.routeoptimization.v1.ShipmentTypeIncompatibility`

## Namespace

Google \\ Maps \\ RouteOptimization \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ types` | `string[]` List of incompatible types. Two shipments having different `shipment_types` among those listed are "incompatible". |
| `↳ incompatibility_mode` | `int` Mode applied to the incompatibility. |

### getTypes

List of incompatible types. Two shipments having different `shipment_types`
among those listed are "incompatible".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setTypes

List of incompatible types. Two shipments having different `shipment_types`
among those listed are "incompatible".

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getIncompatibilityMode

Mode applied to the incompatibility.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [IncompatibilityMode](https://docs.cloud.google.com/php/docs/reference/maps-routeoptimization/latest/V1.ShipmentTypeIncompatibility.IncompatibilityMode). |

### setIncompatibilityMode

Mode applied to the incompatibility.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [IncompatibilityMode](https://docs.cloud.google.com/php/docs/reference/maps-routeoptimization/latest/V1.ShipmentTypeIncompatibility.IncompatibilityMode). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |