Cloud Optimization v1 API - Class ShipmentTypeRequirement (2.3.0)

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.

Inheritance

object > ShipmentTypeRequirement

Namespace

Google.Cloud.Optimization.V1

Assembly

Google.Cloud.Optimization.V1.dll

Constructors

ShipmentTypeRequirement()

public ShipmentTypeRequirement()

ShipmentTypeRequirement(ShipmentTypeRequirement)

public ShipmentTypeRequirement(ShipmentTypeRequirement other)
Parameter
NameDescription
otherShipmentTypeRequirement

Properties

DependentShipmentTypes

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.

Property Value
TypeDescription
RepeatedFieldstring

RequiredShipmentTypeAlternatives

public RepeatedField<string> RequiredShipmentTypeAlternatives { get; }

List of alternative shipment types required by the dependent_shipment_types.

Property Value
TypeDescription
RepeatedFieldstring

RequirementMode

public ShipmentTypeRequirement.Types.RequirementMode RequirementMode { get; set; }

Mode applied to the requirement.

Property Value
TypeDescription
ShipmentTypeRequirementTypesRequirementMode