Package com.google.cloud.optimization.v1
Interface ShipmentRoute.VisitOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ShipmentRoute.Visit,ShipmentRoute.Visit.Builder
- Enclosing class:
- ShipmentRoute
public static interface ShipmentRoute.VisitOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTotal visit load demand as the sum of the shipment and the visit request `load_demands`.getArrivalLoads(int index) Deprecated.intDeprecated.Deprecated.getArrivalLoadsOrBuilder(int index) Deprecated.List<? extends CapacityQuantityOrBuilder>Deprecated.Deprecated.google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is deprecated.Deprecated.getDemands(int index) Deprecated.intDeprecated.Deprecated.getDemandsOrBuilder(int index) Deprecated.List<? extends CapacityQuantityOrBuilder>Deprecated.com.google.protobuf.DurationExtra detour time due to the shipments visited on the route before the visit and to the potential waiting time induced by time windows.com.google.protobuf.DurationOrBuilderExtra detour time due to the shipments visited on the route before the visit and to the potential waiting time induced by time windows.booleanIf true the visit corresponds to a pickup of a `Shipment`.Deprecated.intTotal visit load demand as the sum of the shipment and the visit request `load_demands`.Total visit load demand as the sum of the shipment and the visit request `load_demands`.getLoadDemandsOrDefault(String key, Shipment.Load defaultValue) Total visit load demand as the sum of the shipment and the visit request `load_demands`.Total visit load demand as the sum of the shipment and the visit request `load_demands`.intIndex of the `shipments` field in the source [ShipmentModel][google.cloud.optimization.v1.ShipmentModel].Copy of the corresponding `Shipment.label`, if specified in the `Shipment`.com.google.protobuf.ByteStringCopy of the corresponding `Shipment.label`, if specified in the `Shipment`.com.google.protobuf.TimestampTime at which the visit starts.com.google.protobuf.TimestampOrBuilderTime at which the visit starts.Copy of the corresponding [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label], if specified in the `VisitRequest`.com.google.protobuf.ByteStringCopy of the corresponding [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label], if specified in the `VisitRequest`.intIndex of `VisitRequest` in either the pickup or delivery field of the `Shipment` (see `is_pickup`).booleanDeprecated.google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is deprecated.booleanExtra detour time due to the shipments visited on the route before the visit and to the potential waiting time induced by time windows.booleanTime at which the visit starts.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getShipmentIndex
int getShipmentIndex()Index of the `shipments` field in the source [ShipmentModel][google.cloud.optimization.v1.ShipmentModel].
int32 shipment_index = 1;- Returns:
- The shipmentIndex.
-
getIsPickup
boolean getIsPickup()If true the visit corresponds to a pickup of a `Shipment`. Otherwise, it corresponds to a delivery.
bool is_pickup = 2;- Returns:
- The isPickup.
-
getVisitRequestIndex
int getVisitRequestIndex()Index of `VisitRequest` in either the pickup or delivery field of the `Shipment` (see `is_pickup`).
int32 visit_request_index = 3;- Returns:
- The visitRequestIndex.
-
hasStartTime
boolean hasStartTime()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 start_time = 4;- Returns:
- Whether the startTime field is set.
-
getStartTime
com.google.protobuf.Timestamp getStartTime()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 start_time = 4;- Returns:
- The startTime.
-
getStartTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()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 start_time = 4; -
getLoadDemandsCount
int getLoadDemandsCount()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][google.cloud.optimization.v1.ShipmentRoute.Transition] (see this field).
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; -
containsLoadDemands
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][google.cloud.optimization.v1.ShipmentRoute.Transition] (see this field).
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; -
getLoadDemands
Deprecated.UsegetLoadDemandsMap()instead. -
getLoadDemandsMap
Map<String,Shipment.Load> getLoadDemandsMap()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][google.cloud.optimization.v1.ShipmentRoute.Transition] (see this field).
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; -
getLoadDemandsOrDefault
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][google.cloud.optimization.v1.ShipmentRoute.Transition] (see this field).
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; -
getLoadDemandsOrThrow
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][google.cloud.optimization.v1.ShipmentRoute.Transition] (see this field).
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; -
hasDetour
boolean hasDetour()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's `start_location` to the visit. ```
.google.protobuf.Duration detour = 6;- Returns:
- Whether the detour field is set.
-
getDetour
com.google.protobuf.Duration getDetour()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's `start_location` to the visit. ```
.google.protobuf.Duration detour = 6;- Returns:
- The detour.
-
getDetourOrBuilder
com.google.protobuf.DurationOrBuilder getDetourOrBuilder()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's `start_location` to the visit. ```
.google.protobuf.Duration detour = 6; -
getShipmentLabel
String getShipmentLabel()Copy of the corresponding `Shipment.label`, if specified in the `Shipment`.
string shipment_label = 7;- Returns:
- The shipmentLabel.
-
getShipmentLabelBytes
com.google.protobuf.ByteString getShipmentLabelBytes()Copy of the corresponding `Shipment.label`, if specified in the `Shipment`.
string shipment_label = 7;- Returns:
- The bytes for shipmentLabel.
-
getVisitLabel
String getVisitLabel()Copy of the corresponding [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label], if specified in the `VisitRequest`.
string visit_label = 8;- Returns:
- The visitLabel.
-
getVisitLabelBytes
com.google.protobuf.ByteString getVisitLabelBytes()Copy of the corresponding [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label], if specified in the `VisitRequest`.
string visit_label = 8;- Returns:
- The bytes for visitLabel.
-
getArrivalLoadsList
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead. Vehicle loads upon arrival at the visit location, for each type specified in [Vehicle.capacities][google.cloud.optimization.v1.Vehicle.capacities], `start_load_intervals`, `end_load_intervals` or `demands`. Exception: we omit loads for quantity types unconstrained by intervals and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; -
getArrivalLoads
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead. Vehicle loads upon arrival at the visit location, for each type specified in [Vehicle.capacities][google.cloud.optimization.v1.Vehicle.capacities], `start_load_intervals`, `end_load_intervals` or `demands`. Exception: we omit loads for quantity types unconstrained by intervals and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; -
getArrivalLoadsCount
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead. Vehicle loads upon arrival at the visit location, for each type specified in [Vehicle.capacities][google.cloud.optimization.v1.Vehicle.capacities], `start_load_intervals`, `end_load_intervals` or `demands`. Exception: we omit loads for quantity types unconstrained by intervals and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; -
getArrivalLoadsOrBuilderList
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead. Vehicle loads upon arrival at the visit location, for each type specified in [Vehicle.capacities][google.cloud.optimization.v1.Vehicle.capacities], `start_load_intervals`, `end_load_intervals` or `demands`. Exception: we omit loads for quantity types unconstrained by intervals and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; -
getArrivalLoadsOrBuilder
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead. Vehicle loads upon arrival at the visit location, for each type specified in [Vehicle.capacities][google.cloud.optimization.v1.Vehicle.capacities], `start_load_intervals`, `end_load_intervals` or `demands`. Exception: we omit loads for quantity types unconstrained by intervals and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; -
hasDelayBeforeStart
Deprecated.google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=1965Deprecated: Use [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration] instead. Delay occurring before the visit starts.
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true];- Returns:
- Whether the delayBeforeStart field is set.
-
getDelayBeforeStart
Deprecated.google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=1965Deprecated: Use [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration] instead. Delay occurring before the visit starts.
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true];- Returns:
- The delayBeforeStart.
-
getDelayBeforeStartOrBuilder
Deprecated.Deprecated: Use [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration] instead. Delay occurring before the visit starts.
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; -
getDemandsList
Deprecated.Deprecated: Use [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; -
getDemands
Deprecated.Deprecated: Use [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; -
getDemandsCount
Deprecated.Deprecated: Use [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; -
getDemandsOrBuilderList
Deprecated.Deprecated: Use [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; -
getDemandsOrBuilder
Deprecated.Deprecated: Use [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
-