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

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
Google\Protobuf\Internal\RepeatedField

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

setIncompatibilityMode

Mode applied to the incompatibility.

Parameter
Name Description
var int
Returns
Type Description
$this