Cloud Optimization v1 API - Class ShipmentModel.Types.PrecedenceRule (2.0.0)

public sealed class PrecedenceRule : IMessage<ShipmentModel.Types.PrecedenceRule>, IEquatable<ShipmentModel.Types.PrecedenceRule>, IDeepCloneable<ShipmentModel.Types.PrecedenceRule>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Optimization v1 API class ShipmentModel.Types.PrecedenceRule.

A precedence rule between two events (each event is the pickup or the delivery of a shipment): the "second" event has to start at least offset_duration after "first" has started.

Several precedences can refer to the same (or related) events, e.g., "pickup of B happens after delivery of A" and "pickup of C happens after pickup of B".

Furthermore, precedences only apply when both shipments are performed and are otherwise ignored.

Inheritance

Object > ShipmentModel.Types.PrecedenceRule

Namespace

Google.Cloud.Optimization.V1

Assembly

Google.Cloud.Optimization.V1.dll

Constructors

PrecedenceRule()

public PrecedenceRule()

PrecedenceRule(ShipmentModel.Types.PrecedenceRule)

public PrecedenceRule(ShipmentModel.Types.PrecedenceRule other)
Parameter
NameDescription
otherShipmentModel.Types.PrecedenceRule

Properties

FirstIndex

public int FirstIndex { get; set; }

Shipment index of the "first" event. This field must be specified.

Property Value
TypeDescription
Int32

FirstIsDelivery

public bool FirstIsDelivery { get; set; }

Indicates if the "first" event is a delivery.

Property Value
TypeDescription
Boolean

HasFirstIndex

public bool HasFirstIndex { get; }

Gets whether the "first_index" field is set

Property Value
TypeDescription
Boolean

HasSecondIndex

public bool HasSecondIndex { get; }

Gets whether the "second_index" field is set

Property Value
TypeDescription
Boolean

OffsetDuration

public Duration OffsetDuration { get; set; }

The offset between the "first" and "second" event. It can be negative.

Property Value
TypeDescription
Duration

SecondIndex

public int SecondIndex { get; set; }

Shipment index of the "second" event. This field must be specified.

Property Value
TypeDescription
Int32

SecondIsDelivery

public bool SecondIsDelivery { get; set; }

Indicates if the "second" event is a delivery.

Property Value
TypeDescription
Boolean