Reference documentation and code samples for the Cloud Optimization V1 API class Google::Cloud::Optimization::V1::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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#incompatibility_mode
def incompatibility_mode() -> ::Google::Cloud::Optimization::V1::ShipmentTypeIncompatibility::IncompatibilityMode
Returns
- (::Google::Cloud::Optimization::V1::ShipmentTypeIncompatibility::IncompatibilityMode) — Mode applied to the incompatibility.
#incompatibility_mode=
def incompatibility_mode=(value) -> ::Google::Cloud::Optimization::V1::ShipmentTypeIncompatibility::IncompatibilityMode
Parameter
- value (::Google::Cloud::Optimization::V1::ShipmentTypeIncompatibility::IncompatibilityMode) — Mode applied to the incompatibility.
Returns
- (::Google::Cloud::Optimization::V1::ShipmentTypeIncompatibility::IncompatibilityMode) — Mode applied to the incompatibility.
#types
def types() -> ::Array<::String>
Returns
-
(::Array<::String>) — List of incompatible types. Two shipments having different
shipment_types
among those listed are "incompatible".
#types=
def types=(value) -> ::Array<::String>
Parameter
-
value (::Array<::String>) — List of incompatible types. Two shipments having different
shipment_types
among those listed are "incompatible".
Returns
-
(::Array<::String>) — List of incompatible types. Two shipments having different
shipment_types
among those listed are "incompatible".