Cloud Optimization V1 API - Class Google::Cloud::Optimization::V1::ShipmentModel::PrecedenceRule (v0.2.1)

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
Returns
  • (::Integer) — Shipment index of the "first" event. This field must be specified.

#first_index=

def first_index=(value) -> ::Integer
Parameter
  • value (::Integer) — Shipment index of the "first" event. This field must be specified.
Returns
  • (::Integer) — Shipment index of the "first" event. This field must be specified.

#first_is_delivery

def first_is_delivery() -> ::Boolean
Returns
  • (::Boolean) — Indicates if the "first" event is a delivery.

#first_is_delivery=

def first_is_delivery=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Indicates if the "first" event is a delivery.
Returns
  • (::Boolean) — Indicates if the "first" event is a delivery.

#offset_duration

def offset_duration() -> ::Google::Protobuf::Duration
Returns

#offset_duration=

def offset_duration=(value) -> ::Google::Protobuf::Duration
Parameter
Returns

#second_index

def second_index() -> ::Integer
Returns
  • (::Integer) — Shipment index of the "second" event. This field must be specified.

#second_index=

def second_index=(value) -> ::Integer
Parameter
  • value (::Integer) — Shipment index of the "second" event. This field must be specified.
Returns
  • (::Integer) — Shipment index of the "second" event. This field must be specified.

#second_is_delivery

def second_is_delivery() -> ::Boolean
Returns
  • (::Boolean) — Indicates if the "second" event is a delivery.

#second_is_delivery=

def second_is_delivery=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Indicates if the "second" event is a delivery.
Returns
  • (::Boolean) — Indicates if the "second" event is a delivery.