public sealed class ShipmentTypeRequirement : IMessage<ShipmentTypeRequirement>, IEquatable<ShipmentTypeRequirement>, IDeepCloneable<ShipmentTypeRequirement>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Optimization v1 API class ShipmentTypeRequirement.
Specifies requirements between shipments based on their shipment_type.
The specifics of the requirement are defined by the requirement mode.
public RepeatedField<string> DependentShipmentTypes { get; }
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eShipmentTypeRequirement\u003c/code\u003e class in the Cloud Optimization v1 API is 2.6.0, and previous versions are available for reference.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eShipmentTypeRequirement\u003c/code\u003e is a class that specifies the relationship requirements between shipments based on their \u003ccode\u003eshipment_type\u003c/code\u003e, with the specifics defined by a requirement mode.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eShipmentTypeRequirement\u003c/code\u003e class has properties such as \u003ccode\u003eDependentShipmentTypes\u003c/code\u003e, \u003ccode\u003eRequiredShipmentTypeAlternatives\u003c/code\u003e, and \u003ccode\u003eRequirementMode\u003c/code\u003e, which are used to manage and define shipment relationship requirements.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eShipmentTypeRequirement\u003c/code\u003e class has two constructors: a default constructor and one that takes another \u003ccode\u003eShipmentTypeRequirement\u003c/code\u003e object as a parameter for creating a copy.\u003c/p\u003e\n"]]],[],null,[]]