Reference documentation and code samples for the Google Cloud Optimization V1 Client class ShipmentTypeRequirement.
Specifies requirements between shipments based on their shipment_type.
The specifics of the requirement are defined by the requirement mode.
Generated from protobuf message google.cloud.optimization.v1.ShipmentTypeRequirement
Namespace
Google \ Cloud \ Optimization \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ required_shipment_type_alternatives
array
List of alternative shipment types required by the dependent_shipment_types
.
↳ dependent_shipment_types
array
All shipments with a type in the dependent_shipment_types
field require at least one shipment of type required_shipment_type_alternatives
to be visited on the same route. NOTE: Chains of requirements such that a shipment_type
depends on itself are not allowed.
↳ requirement_mode
int
Mode applied to the requirement.
getRequiredShipmentTypeAlternatives
List of alternative shipment types required by the dependent_shipment_types
.
setRequiredShipmentTypeAlternatives
List of alternative shipment types required by the dependent_shipment_types
.
var
string[]
$this
getDependentShipmentTypes
All shipments with a type in the dependent_shipment_types
field require
at least one shipment of type required_shipment_type_alternatives
to be
visited on the same route.
NOTE: Chains of requirements such that a shipment_type
depends on itself
are not allowed.
setDependentShipmentTypes
All shipments with a type in the dependent_shipment_types
field require
at least one shipment of type required_shipment_type_alternatives
to be
visited on the same route.
NOTE: Chains of requirements such that a shipment_type
depends on itself
are not allowed.
var
string[]
$this
getRequirementMode
Mode applied to the requirement.
int
setRequirementMode
Mode applied to the requirement.
var
int
$this