Reference documentation and code samples for the Cloud Optimization V1 API class Google::Cloud::Optimization::V1::ShipmentTypeRequirement.
Specifies requirements between shipments based on their shipment_type. The specifics of the requirement are defined by the requirement mode.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#dependent_shipment_types
def dependent_shipment_types() -> ::Array<::String>
-
(::Array<::String>) — All shipments with a type in the
dependent_shipment_types
field require at least one shipment of typerequired_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.
#dependent_shipment_types=
def dependent_shipment_types=(value) -> ::Array<::String>
-
value (::Array<::String>) — All shipments with a type in the
dependent_shipment_types
field require at least one shipment of typerequired_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.
-
(::Array<::String>) — All shipments with a type in the
dependent_shipment_types
field require at least one shipment of typerequired_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.
#required_shipment_type_alternatives
def required_shipment_type_alternatives() -> ::Array<::String>
-
(::Array<::String>) — List of alternative shipment types required by the
dependent_shipment_types
.
#required_shipment_type_alternatives=
def required_shipment_type_alternatives=(value) -> ::Array<::String>
-
value (::Array<::String>) — List of alternative shipment types required by the
dependent_shipment_types
.
-
(::Array<::String>) — List of alternative shipment types required by the
dependent_shipment_types
.
#requirement_mode
def requirement_mode() -> ::Google::Cloud::Optimization::V1::ShipmentTypeRequirement::RequirementMode
- (::Google::Cloud::Optimization::V1::ShipmentTypeRequirement::RequirementMode) — Mode applied to the requirement.
#requirement_mode=
def requirement_mode=(value) -> ::Google::Cloud::Optimization::V1::ShipmentTypeRequirement::RequirementMode
- value (::Google::Cloud::Optimization::V1::ShipmentTypeRequirement::RequirementMode) — Mode applied to the requirement.
- (::Google::Cloud::Optimization::V1::ShipmentTypeRequirement::RequirementMode) — Mode applied to the requirement.