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.
Implements
IMessage<ShipmentModel.Types.PrecedenceRule>, IEquatable<ShipmentModel.Types.PrecedenceRule>, IDeepCloneable<ShipmentModel.Types.PrecedenceRule>, IBufferMessage, IMessageNamespace
Google.Cloud.Optimization.V1Assembly
Google.Cloud.Optimization.V1.dll
Constructors
PrecedenceRule()
public PrecedenceRule()
PrecedenceRule(ShipmentModel.Types.PrecedenceRule)
public PrecedenceRule(ShipmentModel.Types.PrecedenceRule other)
Parameter | |
---|---|
Name | Description |
other | ShipmentModel.Types.PrecedenceRule |
Properties
FirstIndex
public int FirstIndex { get; set; }
Shipment index of the "first" event. This field must be specified.
Property Value | |
---|---|
Type | Description |
Int32 |
FirstIsDelivery
public bool FirstIsDelivery { get; set; }
Indicates if the "first" event is a delivery.
Property Value | |
---|---|
Type | Description |
Boolean |
HasFirstIndex
public bool HasFirstIndex { get; }
Gets whether the "first_index" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasSecondIndex
public bool HasSecondIndex { get; }
Gets whether the "second_index" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
OffsetDuration
public Duration OffsetDuration { get; set; }
The offset between the "first" and "second" event. It can be negative.
Property Value | |
---|---|
Type | Description |
Duration |
SecondIndex
public int SecondIndex { get; set; }
Shipment index of the "second" event. This field must be specified.
Property Value | |
---|---|
Type | Description |
Int32 |
SecondIsDelivery
public bool SecondIsDelivery { get; set; }
Indicates if the "second" event is a delivery.
Property Value | |
---|---|
Type | Description |
Boolean |