Cloud Optimization v1 API - Class ShipmentTypeRequirement (2.6.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
Name Description
other ShipmentTypeRequirement

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
Type Description
RepeatedFieldstring

RequiredShipmentTypeAlternatives

public RepeatedField<string> RequiredShipmentTypeAlternatives { get; }

List of alternative shipment types required by the dependent_shipment_types.

Property Value
Type Description
RepeatedFieldstring

RequirementMode

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

Mode applied to the requirement.

Property Value
Type Description
ShipmentTypeRequirementTypesRequirementMode