Reference documentation and code samples for the Cloud Optimization V1 API class Google::Cloud::Optimization::V1::ShipmentModel::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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#first_index
def first_index() -> ::Integer
- (::Integer) — Shipment index of the "first" event. This field must be specified.
#first_index=
def first_index=(value) -> ::Integer
- value (::Integer) — Shipment index of the "first" event. This field must be specified.
- (::Integer) — Shipment index of the "first" event. This field must be specified.
#first_is_delivery
def first_is_delivery() -> ::Boolean
- (::Boolean) — Indicates if the "first" event is a delivery.
#first_is_delivery=
def first_is_delivery=(value) -> ::Boolean
- value (::Boolean) — Indicates if the "first" event is a delivery.
- (::Boolean) — Indicates if the "first" event is a delivery.
#offset_duration
def offset_duration() -> ::Google::Protobuf::Duration
- (::Google::Protobuf::Duration) — The offset between the "first" and "second" event. It can be negative.
#offset_duration=
def offset_duration=(value) -> ::Google::Protobuf::Duration
- value (::Google::Protobuf::Duration) — The offset between the "first" and "second" event. It can be negative.
- (::Google::Protobuf::Duration) — The offset between the "first" and "second" event. It can be negative.
#second_index
def second_index() -> ::Integer
- (::Integer) — Shipment index of the "second" event. This field must be specified.
#second_index=
def second_index=(value) -> ::Integer
- value (::Integer) — Shipment index of the "second" event. This field must be specified.
- (::Integer) — Shipment index of the "second" event. This field must be specified.
#second_is_delivery
def second_is_delivery() -> ::Boolean
- (::Boolean) — Indicates if the "second" event is a delivery.
#second_is_delivery=
def second_is_delivery=(value) -> ::Boolean
- value (::Boolean) — Indicates if the "second" event is a delivery.
- (::Boolean) — Indicates if the "second" event is a delivery.