Reference documentation and code samples for the Cloud Optimization V1 API class Google::Cloud::Optimization::V1::ShipmentRoute::Visit.
A visit performed during a route. This visit corresponds to a pickup or a
delivery of a Shipment
.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#arrival_loads
def arrival_loads() -> ::Array<::Google::Cloud::Optimization::V1::CapacityQuantity>
-
(::Array<::Google::Cloud::Optimization::V1::CapacityQuantity>) — Deprecated: Use [ShipmentRoute.Transition.loads][] instead.
Vehicle loads upon arrival at the visit location, for each
type specified in Vehicle.capacities,
start_load_intervals
,end_load_intervals
ordemands
.Exception: we omit loads for quantity types unconstrained by intervals and that don't have any non-zero demand on the route.
#arrival_loads=
def arrival_loads=(value) -> ::Array<::Google::Cloud::Optimization::V1::CapacityQuantity>
-
value (::Array<::Google::Cloud::Optimization::V1::CapacityQuantity>) — Deprecated: Use [ShipmentRoute.Transition.loads][] instead.
Vehicle loads upon arrival at the visit location, for each
type specified in Vehicle.capacities,
start_load_intervals
,end_load_intervals
ordemands
.Exception: we omit loads for quantity types unconstrained by intervals and that don't have any non-zero demand on the route.
-
(::Array<::Google::Cloud::Optimization::V1::CapacityQuantity>) — Deprecated: Use [ShipmentRoute.Transition.loads][] instead.
Vehicle loads upon arrival at the visit location, for each
type specified in Vehicle.capacities,
start_load_intervals
,end_load_intervals
ordemands
.Exception: we omit loads for quantity types unconstrained by intervals and that don't have any non-zero demand on the route.
#delay_before_start
def delay_before_start() -> ::Google::Cloud::Optimization::V1::ShipmentRoute::Delay
- (::Google::Cloud::Optimization::V1::ShipmentRoute::Delay) — Deprecated: Use [ShipmentRoute.Transition.delay_duration][] instead.
#delay_before_start=
def delay_before_start=(value) -> ::Google::Cloud::Optimization::V1::ShipmentRoute::Delay
- value (::Google::Cloud::Optimization::V1::ShipmentRoute::Delay) — Deprecated: Use [ShipmentRoute.Transition.delay_duration][] instead.
- (::Google::Cloud::Optimization::V1::ShipmentRoute::Delay) — Deprecated: Use [ShipmentRoute.Transition.delay_duration][] instead.
#demands
def demands() -> ::Array<::Google::Cloud::Optimization::V1::CapacityQuantity>
- (::Array<::Google::Cloud::Optimization::V1::CapacityQuantity>) — Deprecated: Use [Visit.load_demands][] instead.
#demands=
def demands=(value) -> ::Array<::Google::Cloud::Optimization::V1::CapacityQuantity>
- value (::Array<::Google::Cloud::Optimization::V1::CapacityQuantity>) — Deprecated: Use [Visit.load_demands][] instead.
- (::Array<::Google::Cloud::Optimization::V1::CapacityQuantity>) — Deprecated: Use [Visit.load_demands][] instead.
#detour
def detour() -> ::Google::Protobuf::Duration
-
(::Google::Protobuf::Duration) —
Extra detour time due to the shipments visited on the route before the visit and to the potential waiting time induced by time windows. If the visit is a delivery, the detour is computed from the corresponding pickup visit and is equal to: ``` start_time(delivery) - start_time(pickup)
- (duration(pickup) + travel duration from the pickup location
to the delivery location).
Otherwise, it is computed from the vehicle `start_location` and is equal to:
start_time - vehicle_start_time - travel duration from the vehicle'sstart_location
to the visit. ```
- (duration(pickup) + travel duration from the pickup location
to the delivery location).
#detour=
def detour=(value) -> ::Google::Protobuf::Duration
-
value (::Google::Protobuf::Duration) —
Extra detour time due to the shipments visited on the route before the visit and to the potential waiting time induced by time windows. If the visit is a delivery, the detour is computed from the corresponding pickup visit and is equal to: ``` start_time(delivery) - start_time(pickup)
- (duration(pickup) + travel duration from the pickup location
to the delivery location).
Otherwise, it is computed from the vehicle `start_location` and is equal to:
start_time - vehicle_start_time - travel duration from the vehicle'sstart_location
to the visit. ```
- (duration(pickup) + travel duration from the pickup location
to the delivery location).
-
(::Google::Protobuf::Duration) —
Extra detour time due to the shipments visited on the route before the visit and to the potential waiting time induced by time windows. If the visit is a delivery, the detour is computed from the corresponding pickup visit and is equal to: ``` start_time(delivery) - start_time(pickup)
- (duration(pickup) + travel duration from the pickup location
to the delivery location).
Otherwise, it is computed from the vehicle `start_location` and is equal to:
start_time - vehicle_start_time - travel duration from the vehicle'sstart_location
to the visit. ```
- (duration(pickup) + travel duration from the pickup location
to the delivery location).
#is_pickup
def is_pickup() -> ::Boolean
-
(::Boolean) — If true the visit corresponds to a pickup of a
Shipment
. Otherwise, it corresponds to a delivery.
#is_pickup=
def is_pickup=(value) -> ::Boolean
-
value (::Boolean) — If true the visit corresponds to a pickup of a
Shipment
. Otherwise, it corresponds to a delivery.
-
(::Boolean) — If true the visit corresponds to a pickup of a
Shipment
. Otherwise, it corresponds to a delivery.
#load_demands
def load_demands() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Optimization::V1::Shipment::Load}
-
(::Google::Protobuf::Map{::String => ::Google::Cloud::Optimization::V1::Shipment::Load}) — Total visit load demand as the sum of the shipment and the visit request
load_demands
. The values are negative if the visit is a delivery. Demands are reported for the same types as the Transition.loads (see this field).
#load_demands=
def load_demands=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Optimization::V1::Shipment::Load}
-
value (::Google::Protobuf::Map{::String => ::Google::Cloud::Optimization::V1::Shipment::Load}) — Total visit load demand as the sum of the shipment and the visit request
load_demands
. The values are negative if the visit is a delivery. Demands are reported for the same types as the Transition.loads (see this field).
-
(::Google::Protobuf::Map{::String => ::Google::Cloud::Optimization::V1::Shipment::Load}) — Total visit load demand as the sum of the shipment and the visit request
load_demands
. The values are negative if the visit is a delivery. Demands are reported for the same types as the Transition.loads (see this field).
#shipment_index
def shipment_index() -> ::Integer
-
(::Integer) — Index of the
shipments
field in the source ShipmentModel.
#shipment_index=
def shipment_index=(value) -> ::Integer
-
value (::Integer) — Index of the
shipments
field in the source ShipmentModel.
-
(::Integer) — Index of the
shipments
field in the source ShipmentModel.
#shipment_label
def shipment_label() -> ::String
-
(::String) — Copy of the corresponding
Shipment.label
, if specified in theShipment
.
#shipment_label=
def shipment_label=(value) -> ::String
-
value (::String) — Copy of the corresponding
Shipment.label
, if specified in theShipment
.
-
(::String) — Copy of the corresponding
Shipment.label
, if specified in theShipment
.
#start_time
def start_time() -> ::Google::Protobuf::Timestamp
-
(::Google::Protobuf::Timestamp) — Time at which the visit starts. Note that the vehicle may arrive earlier
than this at the visit location. Times are consistent with the
ShipmentModel
.
#start_time=
def start_time=(value) -> ::Google::Protobuf::Timestamp
-
value (::Google::Protobuf::Timestamp) — Time at which the visit starts. Note that the vehicle may arrive earlier
than this at the visit location. Times are consistent with the
ShipmentModel
.
-
(::Google::Protobuf::Timestamp) — Time at which the visit starts. Note that the vehicle may arrive earlier
than this at the visit location. Times are consistent with the
ShipmentModel
.
#visit_label
def visit_label() -> ::String
-
(::String) — Copy of the corresponding
VisitRequest.label,
if specified in the
VisitRequest
.
#visit_label=
def visit_label=(value) -> ::String
-
value (::String) — Copy of the corresponding
VisitRequest.label,
if specified in the
VisitRequest
.
-
(::String) — Copy of the corresponding
VisitRequest.label,
if specified in the
VisitRequest
.
#visit_request_index
def visit_request_index() -> ::Integer
-
(::Integer) — Index of
VisitRequest
in either the pickup or delivery field of theShipment
(seeis_pickup
).
#visit_request_index=
def visit_request_index=(value) -> ::Integer
-
value (::Integer) — Index of
VisitRequest
in either the pickup or delivery field of theShipment
(seeis_pickup
).
-
(::Integer) — Index of
VisitRequest
in either the pickup or delivery field of theShipment
(seeis_pickup
).