Cloud Optimization V1 API - Class Google::Cloud::Optimization::V1::ShipmentTypeRequirement (v0.7.0)

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>
Returns
  • (::Array<::String>) — 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.

#dependent_shipment_types=

def dependent_shipment_types=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — 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.

Returns
  • (::Array<::String>) — 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.

#required_shipment_type_alternatives

def required_shipment_type_alternatives() -> ::Array<::String>
Returns
  • (::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>
Parameter
  • value (::Array<::String>) — List of alternative shipment types required by the dependent_shipment_types.
Returns
  • (::Array<::String>) — List of alternative shipment types required by the dependent_shipment_types.

#requirement_mode

def requirement_mode() -> ::Google::Cloud::Optimization::V1::ShipmentTypeRequirement::RequirementMode

#requirement_mode=

def requirement_mode=(value) -> ::Google::Cloud::Optimization::V1::ShipmentTypeRequirement::RequirementMode
Parameter