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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation covers the \u003ccode\u003eShipmentTypeRequirement\u003c/code\u003e class within the Google Cloud Optimization v1 API, used for defining relationships between shipments based on their types.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eShipmentTypeRequirement\u003c/code\u003e class specifies dependencies between shipments, where \u003ccode\u003edependent_shipment_types\u003c/code\u003e require at least one shipment of \u003ccode\u003erequired_shipment_type_alternatives\u003c/code\u003e on the same route.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers properties such as \u003ccode\u003eDependentShipmentTypes\u003c/code\u003e, \u003ccode\u003eRequiredShipmentTypeAlternatives\u003c/code\u003e, and \u003ccode\u003eRequirementMode\u003c/code\u003e to manage the specifics of shipment type dependencies.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eShipmentTypeRequirement\u003c/code\u003e class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available for the class is 2.6.0 and it has version history going back to 1.0.0-beta01.\u003c/p\u003e\n"]]],[],null,[]]