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

public sealed class ShipmentModel.Types.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(PrecedenceRule)

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

Properties

FirstIndex

public int FirstIndex { get; set; }

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

Property Value
TypeDescription
int

FirstIsDelivery

public bool FirstIsDelivery { get; set; }

Indicates if the "first" event is a delivery.

Property Value
TypeDescription
bool

HasFirstIndex

public bool HasFirstIndex { get; }

Gets whether the "first_index" field is set

Property Value
TypeDescription
bool

HasSecondIndex

public bool HasSecondIndex { get; }

Gets whether the "second_index" field is set

Property Value
TypeDescription
bool

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
int

SecondIsDelivery

public bool SecondIsDelivery { get; set; }

Indicates if the "second" event is a delivery.

Property Value
TypeDescription
bool