Google Cloud Optimization V1 Client - Class ShipmentTypeIncompatibility (0.3.4)

Reference documentation and code samples for the Google Cloud 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.cloud.optimization.v1.ShipmentTypeIncompatibility

Namespace

Google \ Cloud \ Optimization \ V1

Methods

__construct

Constructor.

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

setTypes

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

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getIncompatibilityMode

Mode applied to the incompatibility.

Returns
TypeDescription
int

setIncompatibilityMode

Mode applied to the incompatibility.

Parameter
NameDescription
var int
Returns
TypeDescription
$this