Package com.google.cloud.optimization.v1
Class ShipmentRoute
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.optimization.v1.ShipmentRoute
- All Implemented Interfaces:
ShipmentRouteOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class ShipmentRoute
extends com.google.protobuf.GeneratedMessage
implements ShipmentRouteOrBuilder
A vehicle's route can be decomposed, along the time axis, like this (we assume there are n visits): ``` | | | | | T[2], | | | | Transition | Visit #0 | | | V[2], | | | | #0 | aka | T[1] | V[1] | ... | V[n-1] | T[n] | | aka T[0] | V[0] | | | V[n-2],| | | | | | | | T[n-1] | | | ^ ^ ^ ^ ^ ^ ^ ^ vehicle V[0].start V[0].end V[1]. V[1]. V[n]. V[n]. vehicle start (arrival) (departure) start end start end end ``` Note that we make a difference between: * "punctual events", such as the vehicle start and end and each visit's start and end (aka arrival and departure). They happen at a given second. * "time intervals", such as the visits themselves, and the transition between visits. Though time intervals can sometimes have zero duration, i.e. start and end at the same second, they often have a positive duration. Invariants: * If there are n visits, there are n+1 transitions. * A visit is always surrounded by a transition before it (same index) and a transition after it (index + 1). * The vehicle start is always followed by transition #0. * The vehicle end is always preceded by transition #n. Zooming in, here is what happens during a `Transition` and a `Visit`: ``` ---+-------------------------------------+-----------------------------+--> | TRANSITION[i] | VISIT[i] | | | | | * TRAVEL: the vehicle moves from | PERFORM the visit: | | VISIT[i-1].departure_location to | | | VISIT[i].arrival_location, which | * Spend some time: | | takes a given travel duration | the "visit duration". | | and distance | | | | * Load or unload | | * BREAKS: the driver may have | some quantities from the | | breaks (e.g. lunch break). | vehicle: the "demand". | | | | | * WAIT: the driver/vehicle does | | | nothing. This can happen for | | | many reasons, for example when | | | the vehicle reaches the next | | | event's destination before the | | | start of its time window | | | | | | * DELAY: *right before* the next | | | arrival. E.g. the vehicle and/or | | | driver spends time unloading. | | | | | ---+-------------------------------------+-----------------------------+--> ^ ^ ^ V[i-1].end V[i].start V[i].end ``` Lastly, here is how the TRAVEL, BREAKS, DELAY and WAIT can be arranged during a transition. * They don't overlap. * The DELAY is unique and *must* be a contiguous period of time right before the next visit (or vehicle end). Thus, it suffice to know the delay duration to know its start and end time. * The BREAKS are contiguous, non-overlapping periods of time. The response specifies the start time and duration of each break. * TRAVEL and WAIT are "preemptable": they can be interrupted several times during this transition. Clients can assume that travel happens "as soon as possible" and that "wait" fills the remaining time. A (complex) example: ``` TRANSITION[i] --++-----+-----------------------------------------------------------++--> || | | | | | | || || T | B | T | | B | | D || || r | r | r | W | r | W | e || || a | e | a | a | e | a | l || || v | a | v | i | a | i | a || || e | k | e | t | k | t | y || || l | | l | | | | || || | | | | | | || --++-----------------------------------------------------------------++--> ```Protobuf type
google.cloud.optimization.v1.ShipmentRoute- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classData representing the execution of a break.static interfacestatic final classA vehicle's route can be decomposed, along the time axis, like this (we assume there are n visits): ``` | | | | | T[2], | | | | Transition | Visit #0 | | | V[2], | | | | #0 | aka | T[1] | V[1] |static final classDeprecated.static interfaceDeprecated.static final classThe encoded representation of a polyline.static interfacestatic final classTransition between two events on the route.static interfacestatic final classDeprecated.static interfaceDeprecated.static final classReports the actual load of the vehicle at some point along the route, for a given type (see [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]).static interfacestatic final classA visit performed during a route.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsRouteCosts(String key) Cost of the route, broken down by cost-related request fields.booleangetBreaks(int index) Breaks scheduled for the vehicle performing this route.intBreaks scheduled for the vehicle performing this route.Breaks scheduled for the vehicle performing this route.getBreaksOrBuilder(int index) Breaks scheduled for the vehicle performing this route.List<? extends ShipmentRoute.BreakOrBuilder>Breaks scheduled for the vehicle performing this route.static ShipmentRouteDeprecated.google.cloud.optimization.v1.ShipmentRoute.delay_before_vehicle_end is deprecated.Deprecated.static final com.google.protobuf.Descriptors.DescriptorgetEndLoads(int index) Deprecated.intDeprecated.Deprecated.getEndLoadsOrBuilder(int index) Deprecated.List<? extends CapacityQuantityOrBuilder>Deprecated.booleanWhen [OptimizeToursRequest.consider_road_traffic][google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic], is set to true, this field indicates that inconsistencies in route timings are predicted using traffic-based travel duration estimates.Duration, distance and load metrics for this route.Duration, distance and load metrics for this route.com.google.protobuf.Parser<ShipmentRoute>Deprecated.intCost of the route, broken down by cost-related request fields.Cost of the route, broken down by cost-related request fields.doublegetRouteCostsOrDefault(String key, double defaultValue) Cost of the route, broken down by cost-related request fields.doubleCost of the route, broken down by cost-related request fields.The encoded polyline representation of the route.The encoded polyline representation of the route.doubleTotal cost of the route.intgetTransitions(int index) Ordered list of transitions for the route.intOrdered list of transitions for the route.Ordered list of transitions for the route.getTransitionsOrBuilder(int index) Ordered list of transitions for the route.List<? extends ShipmentRoute.TransitionOrBuilder>Ordered list of transitions for the route.getTravelSteps(int index) Deprecated.intDeprecated.Deprecated.getTravelStepsOrBuilder(int index) Deprecated.List<? extends ShipmentRoute.TravelStepOrBuilder>Deprecated.com.google.protobuf.DurationDeprecated.google.cloud.optimization.v1.ShipmentRoute.vehicle_detour is deprecated.com.google.protobuf.DurationOrBuilderDeprecated.com.google.protobuf.TimestampTime at which the vehicle finishes its route.com.google.protobuf.TimestampOrBuilderTime at which the vehicle finishes its route.intVehicle performing the route, identified by its index in the source `ShipmentModel`.Label of the vehicle performing this route, equal to `ShipmentModel.vehicles(vehicle_index).label`, if specified.com.google.protobuf.ByteStringLabel of the vehicle performing this route, equal to `ShipmentModel.vehicles(vehicle_index).label`, if specified.com.google.protobuf.TimestampTime at which the vehicle starts its route.com.google.protobuf.TimestampOrBuilderTime at which the vehicle starts its route.getVisits(int index) Ordered sequence of visits representing a route.intOrdered sequence of visits representing a route.Ordered sequence of visits representing a route.getVisitsOrBuilder(int index) Ordered sequence of visits representing a route.List<? extends ShipmentRoute.VisitOrBuilder>Ordered sequence of visits representing a route.booleanDeprecated.google.cloud.optimization.v1.ShipmentRoute.delay_before_vehicle_end is deprecated.inthashCode()booleanDuration, distance and load metrics for this route.booleanThe encoded polyline representation of the route.booleanDeprecated.google.cloud.optimization.v1.ShipmentRoute.vehicle_detour is deprecated.booleanTime at which the vehicle finishes its route.booleanTime at which the vehicle starts its route.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic ShipmentRoute.Builderstatic ShipmentRoute.BuildernewBuilder(ShipmentRoute prototype) protected ShipmentRoute.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ShipmentRouteparseDelimitedFrom(InputStream input) static ShipmentRouteparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ShipmentRouteparseFrom(byte[] data) static ShipmentRouteparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ShipmentRouteparseFrom(com.google.protobuf.ByteString data) static ShipmentRouteparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ShipmentRouteparseFrom(com.google.protobuf.CodedInputStream input) static ShipmentRouteparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ShipmentRouteparseFrom(InputStream input) static ShipmentRouteparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ShipmentRouteparseFrom(ByteBuffer data) static ShipmentRouteparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ShipmentRoute>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
VEHICLE_INDEX_FIELD_NUMBER
public static final int VEHICLE_INDEX_FIELD_NUMBER- See Also:
-
VEHICLE_LABEL_FIELD_NUMBER
public static final int VEHICLE_LABEL_FIELD_NUMBER- See Also:
-
VEHICLE_START_TIME_FIELD_NUMBER
public static final int VEHICLE_START_TIME_FIELD_NUMBER- See Also:
-
VEHICLE_END_TIME_FIELD_NUMBER
public static final int VEHICLE_END_TIME_FIELD_NUMBER- See Also:
-
VISITS_FIELD_NUMBER
public static final int VISITS_FIELD_NUMBER- See Also:
-
TRANSITIONS_FIELD_NUMBER
public static final int TRANSITIONS_FIELD_NUMBER- See Also:
-
HAS_TRAFFIC_INFEASIBILITIES_FIELD_NUMBER
public static final int HAS_TRAFFIC_INFEASIBILITIES_FIELD_NUMBER- See Also:
-
ROUTE_POLYLINE_FIELD_NUMBER
public static final int ROUTE_POLYLINE_FIELD_NUMBER- See Also:
-
BREAKS_FIELD_NUMBER
public static final int BREAKS_FIELD_NUMBER- See Also:
-
METRICS_FIELD_NUMBER
public static final int METRICS_FIELD_NUMBER- See Also:
-
ROUTE_COSTS_FIELD_NUMBER
public static final int ROUTE_COSTS_FIELD_NUMBER- See Also:
-
ROUTE_TOTAL_COST_FIELD_NUMBER
public static final int ROUTE_TOTAL_COST_FIELD_NUMBER- See Also:
-
END_LOADS_FIELD_NUMBER
public static final int END_LOADS_FIELD_NUMBER- See Also:
-
TRAVEL_STEPS_FIELD_NUMBER
public static final int TRAVEL_STEPS_FIELD_NUMBER- See Also:
-
VEHICLE_DETOUR_FIELD_NUMBER
public static final int VEHICLE_DETOUR_FIELD_NUMBER- See Also:
-
DELAY_BEFORE_VEHICLE_END_FIELD_NUMBER
public static final int DELAY_BEFORE_VEHICLE_END_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getVehicleIndex
public int getVehicleIndex()Vehicle performing the route, identified by its index in the source `ShipmentModel`.
int32 vehicle_index = 1;- Specified by:
getVehicleIndexin interfaceShipmentRouteOrBuilder- Returns:
- The vehicleIndex.
-
getVehicleLabel
Label of the vehicle performing this route, equal to `ShipmentModel.vehicles(vehicle_index).label`, if specified.
string vehicle_label = 2;- Specified by:
getVehicleLabelin interfaceShipmentRouteOrBuilder- Returns:
- The vehicleLabel.
-
getVehicleLabelBytes
public com.google.protobuf.ByteString getVehicleLabelBytes()Label of the vehicle performing this route, equal to `ShipmentModel.vehicles(vehicle_index).label`, if specified.
string vehicle_label = 2;- Specified by:
getVehicleLabelBytesin interfaceShipmentRouteOrBuilder- Returns:
- The bytes for vehicleLabel.
-
hasVehicleStartTime
public boolean hasVehicleStartTime()Time at which the vehicle starts its route.
.google.protobuf.Timestamp vehicle_start_time = 5;- Specified by:
hasVehicleStartTimein interfaceShipmentRouteOrBuilder- Returns:
- Whether the vehicleStartTime field is set.
-
getVehicleStartTime
public com.google.protobuf.Timestamp getVehicleStartTime()Time at which the vehicle starts its route.
.google.protobuf.Timestamp vehicle_start_time = 5;- Specified by:
getVehicleStartTimein interfaceShipmentRouteOrBuilder- Returns:
- The vehicleStartTime.
-
getVehicleStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getVehicleStartTimeOrBuilder()Time at which the vehicle starts its route.
.google.protobuf.Timestamp vehicle_start_time = 5;- Specified by:
getVehicleStartTimeOrBuilderin interfaceShipmentRouteOrBuilder
-
hasVehicleEndTime
public boolean hasVehicleEndTime()Time at which the vehicle finishes its route.
.google.protobuf.Timestamp vehicle_end_time = 6;- Specified by:
hasVehicleEndTimein interfaceShipmentRouteOrBuilder- Returns:
- Whether the vehicleEndTime field is set.
-
getVehicleEndTime
public com.google.protobuf.Timestamp getVehicleEndTime()Time at which the vehicle finishes its route.
.google.protobuf.Timestamp vehicle_end_time = 6;- Specified by:
getVehicleEndTimein interfaceShipmentRouteOrBuilder- Returns:
- The vehicleEndTime.
-
getVehicleEndTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getVehicleEndTimeOrBuilder()Time at which the vehicle finishes its route.
.google.protobuf.Timestamp vehicle_end_time = 6;- Specified by:
getVehicleEndTimeOrBuilderin interfaceShipmentRouteOrBuilder
-
getVisitsList
Ordered sequence of visits representing a route. visits[i] is the i-th visit in the route. If this field is empty, the vehicle is considered as unused.
repeated .google.cloud.optimization.v1.ShipmentRoute.Visit visits = 7;- Specified by:
getVisitsListin interfaceShipmentRouteOrBuilder
-
getVisitsOrBuilderList
Ordered sequence of visits representing a route. visits[i] is the i-th visit in the route. If this field is empty, the vehicle is considered as unused.
repeated .google.cloud.optimization.v1.ShipmentRoute.Visit visits = 7;- Specified by:
getVisitsOrBuilderListin interfaceShipmentRouteOrBuilder
-
getVisitsCount
public int getVisitsCount()Ordered sequence of visits representing a route. visits[i] is the i-th visit in the route. If this field is empty, the vehicle is considered as unused.
repeated .google.cloud.optimization.v1.ShipmentRoute.Visit visits = 7;- Specified by:
getVisitsCountin interfaceShipmentRouteOrBuilder
-
getVisits
Ordered sequence of visits representing a route. visits[i] is the i-th visit in the route. If this field is empty, the vehicle is considered as unused.
repeated .google.cloud.optimization.v1.ShipmentRoute.Visit visits = 7;- Specified by:
getVisitsin interfaceShipmentRouteOrBuilder
-
getVisitsOrBuilder
Ordered sequence of visits representing a route. visits[i] is the i-th visit in the route. If this field is empty, the vehicle is considered as unused.
repeated .google.cloud.optimization.v1.ShipmentRoute.Visit visits = 7;- Specified by:
getVisitsOrBuilderin interfaceShipmentRouteOrBuilder
-
getTransitionsList
Ordered list of transitions for the route.
repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8;- Specified by:
getTransitionsListin interfaceShipmentRouteOrBuilder
-
getTransitionsOrBuilderList
Ordered list of transitions for the route.
repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8;- Specified by:
getTransitionsOrBuilderListin interfaceShipmentRouteOrBuilder
-
getTransitionsCount
public int getTransitionsCount()Ordered list of transitions for the route.
repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8;- Specified by:
getTransitionsCountin interfaceShipmentRouteOrBuilder
-
getTransitions
Ordered list of transitions for the route.
repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8;- Specified by:
getTransitionsin interfaceShipmentRouteOrBuilder
-
getTransitionsOrBuilder
Ordered list of transitions for the route.
repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8;- Specified by:
getTransitionsOrBuilderin interfaceShipmentRouteOrBuilder
-
getHasTrafficInfeasibilities
public boolean getHasTrafficInfeasibilities()When [OptimizeToursRequest.consider_road_traffic][google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic], is set to true, this field indicates that inconsistencies in route timings are predicted using traffic-based travel duration estimates. There may be insufficient time to complete traffic-adjusted travel, delays, and breaks between visits, before the first visit, or after the last visit, while still satisfying the visit and vehicle time windows. For example, ``` start_time(previous_visit) + duration(previous_visit) + travel_duration(previous_visit, next_visit) > start_time(next_visit) ``` Arrival at next_visit will likely happen later than its current time window due the increased estimate of travel time `travel_duration(previous_visit, next_visit)` due to traffic. Also, a break may be forced to overlap with a visit due to an increase in travel time estimates and visit or break time window restrictions.
bool has_traffic_infeasibilities = 9;- Specified by:
getHasTrafficInfeasibilitiesin interfaceShipmentRouteOrBuilder- Returns:
- The hasTrafficInfeasibilities.
-
hasRoutePolyline
public boolean hasRoutePolyline()The encoded polyline representation of the route. This field is only populated if [OptimizeToursRequest.populate_polylines][google.cloud.optimization.v1.OptimizeToursRequest.populate_polylines] is set to true.
.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10;- Specified by:
hasRoutePolylinein interfaceShipmentRouteOrBuilder- Returns:
- Whether the routePolyline field is set.
-
getRoutePolyline
The encoded polyline representation of the route. This field is only populated if [OptimizeToursRequest.populate_polylines][google.cloud.optimization.v1.OptimizeToursRequest.populate_polylines] is set to true.
.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10;- Specified by:
getRoutePolylinein interfaceShipmentRouteOrBuilder- Returns:
- The routePolyline.
-
getRoutePolylineOrBuilder
The encoded polyline representation of the route. This field is only populated if [OptimizeToursRequest.populate_polylines][google.cloud.optimization.v1.OptimizeToursRequest.populate_polylines] is set to true.
.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10;- Specified by:
getRoutePolylineOrBuilderin interfaceShipmentRouteOrBuilder
-
getBreaksList
Breaks scheduled for the vehicle performing this route. The `breaks` sequence represents time intervals, each starting at the corresponding `start_time` and lasting `duration` seconds.
repeated .google.cloud.optimization.v1.ShipmentRoute.Break breaks = 11;- Specified by:
getBreaksListin interfaceShipmentRouteOrBuilder
-
getBreaksOrBuilderList
Breaks scheduled for the vehicle performing this route. The `breaks` sequence represents time intervals, each starting at the corresponding `start_time` and lasting `duration` seconds.
repeated .google.cloud.optimization.v1.ShipmentRoute.Break breaks = 11;- Specified by:
getBreaksOrBuilderListin interfaceShipmentRouteOrBuilder
-
getBreaksCount
public int getBreaksCount()Breaks scheduled for the vehicle performing this route. The `breaks` sequence represents time intervals, each starting at the corresponding `start_time` and lasting `duration` seconds.
repeated .google.cloud.optimization.v1.ShipmentRoute.Break breaks = 11;- Specified by:
getBreaksCountin interfaceShipmentRouteOrBuilder
-
getBreaks
Breaks scheduled for the vehicle performing this route. The `breaks` sequence represents time intervals, each starting at the corresponding `start_time` and lasting `duration` seconds.
repeated .google.cloud.optimization.v1.ShipmentRoute.Break breaks = 11;- Specified by:
getBreaksin interfaceShipmentRouteOrBuilder
-
getBreaksOrBuilder
Breaks scheduled for the vehicle performing this route. The `breaks` sequence represents time intervals, each starting at the corresponding `start_time` and lasting `duration` seconds.
repeated .google.cloud.optimization.v1.ShipmentRoute.Break breaks = 11;- Specified by:
getBreaksOrBuilderin interfaceShipmentRouteOrBuilder
-
hasMetrics
public boolean hasMetrics()Duration, distance and load metrics for this route. The fields of [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are summed over all [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions] or [ShipmentRoute.visits][google.cloud.optimization.v1.ShipmentRoute.visits], depending on the context.
.google.cloud.optimization.v1.AggregatedMetrics metrics = 12;- Specified by:
hasMetricsin interfaceShipmentRouteOrBuilder- Returns:
- Whether the metrics field is set.
-
getMetrics
Duration, distance and load metrics for this route. The fields of [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are summed over all [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions] or [ShipmentRoute.visits][google.cloud.optimization.v1.ShipmentRoute.visits], depending on the context.
.google.cloud.optimization.v1.AggregatedMetrics metrics = 12;- Specified by:
getMetricsin interfaceShipmentRouteOrBuilder- Returns:
- The metrics.
-
getMetricsOrBuilder
Duration, distance and load metrics for this route. The fields of [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are summed over all [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions] or [ShipmentRoute.visits][google.cloud.optimization.v1.ShipmentRoute.visits], depending on the context.
.google.cloud.optimization.v1.AggregatedMetrics metrics = 12;- Specified by:
getMetricsOrBuilderin interfaceShipmentRouteOrBuilder
-
getRouteCostsCount
public int getRouteCostsCount()Description copied from interface:ShipmentRouteOrBuilderCost of the route, broken down by cost-related request fields. The keys are proto paths, relative to the input OptimizeToursRequest, e.g. "model.shipments.pickups.cost", and the values are the total cost generated by the corresponding cost field, aggregated over the whole route. In other words, costs["model.shipments.pickups.cost"] is the sum of all pickup costs over the route. All costs defined in the model are reported in detail here with the exception of costs related to TransitionAttributes that are only reported in an aggregated way as of 2022/01.
map<string, double> route_costs = 17;- Specified by:
getRouteCostsCountin interfaceShipmentRouteOrBuilder
-
containsRouteCosts
Cost of the route, broken down by cost-related request fields. The keys are proto paths, relative to the input OptimizeToursRequest, e.g. "model.shipments.pickups.cost", and the values are the total cost generated by the corresponding cost field, aggregated over the whole route. In other words, costs["model.shipments.pickups.cost"] is the sum of all pickup costs over the route. All costs defined in the model are reported in detail here with the exception of costs related to TransitionAttributes that are only reported in an aggregated way as of 2022/01.
map<string, double> route_costs = 17;- Specified by:
containsRouteCostsin interfaceShipmentRouteOrBuilder
-
getRouteCosts
Deprecated.UsegetRouteCostsMap()instead.- Specified by:
getRouteCostsin interfaceShipmentRouteOrBuilder
-
getRouteCostsMap
Cost of the route, broken down by cost-related request fields. The keys are proto paths, relative to the input OptimizeToursRequest, e.g. "model.shipments.pickups.cost", and the values are the total cost generated by the corresponding cost field, aggregated over the whole route. In other words, costs["model.shipments.pickups.cost"] is the sum of all pickup costs over the route. All costs defined in the model are reported in detail here with the exception of costs related to TransitionAttributes that are only reported in an aggregated way as of 2022/01.
map<string, double> route_costs = 17;- Specified by:
getRouteCostsMapin interfaceShipmentRouteOrBuilder
-
getRouteCostsOrDefault
Cost of the route, broken down by cost-related request fields. The keys are proto paths, relative to the input OptimizeToursRequest, e.g. "model.shipments.pickups.cost", and the values are the total cost generated by the corresponding cost field, aggregated over the whole route. In other words, costs["model.shipments.pickups.cost"] is the sum of all pickup costs over the route. All costs defined in the model are reported in detail here with the exception of costs related to TransitionAttributes that are only reported in an aggregated way as of 2022/01.
map<string, double> route_costs = 17;- Specified by:
getRouteCostsOrDefaultin interfaceShipmentRouteOrBuilder
-
getRouteCostsOrThrow
Cost of the route, broken down by cost-related request fields. The keys are proto paths, relative to the input OptimizeToursRequest, e.g. "model.shipments.pickups.cost", and the values are the total cost generated by the corresponding cost field, aggregated over the whole route. In other words, costs["model.shipments.pickups.cost"] is the sum of all pickup costs over the route. All costs defined in the model are reported in detail here with the exception of costs related to TransitionAttributes that are only reported in an aggregated way as of 2022/01.
map<string, double> route_costs = 17;- Specified by:
getRouteCostsOrThrowin interfaceShipmentRouteOrBuilder
-
getRouteTotalCost
public double getRouteTotalCost()Total cost of the route. The sum of all costs in the cost map.
double route_total_cost = 18;- Specified by:
getRouteTotalCostin interfaceShipmentRouteOrBuilder- Returns:
- The routeTotalCost.
-
getEndLoadsList
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead. Vehicle loads upon arrival at its end 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 end_loads = 13 [deprecated = true];- Specified by:
getEndLoadsListin interfaceShipmentRouteOrBuilder
-
getEndLoadsOrBuilderList
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead. Vehicle loads upon arrival at its end 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 end_loads = 13 [deprecated = true];- Specified by:
getEndLoadsOrBuilderListin interfaceShipmentRouteOrBuilder
-
getEndLoadsCount
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead. Vehicle loads upon arrival at its end 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 end_loads = 13 [deprecated = true];- Specified by:
getEndLoadsCountin interfaceShipmentRouteOrBuilder
-
getEndLoads
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead. Vehicle loads upon arrival at its end 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 end_loads = 13 [deprecated = true];- Specified by:
getEndLoadsin interfaceShipmentRouteOrBuilder
-
getEndLoadsOrBuilder
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead. Vehicle loads upon arrival at its end 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 end_loads = 13 [deprecated = true];- Specified by:
getEndLoadsOrBuilderin interfaceShipmentRouteOrBuilder
-
getTravelStepsList
Deprecated.Deprecated: Use [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions] instead. Ordered list of travel steps for the route.
repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true];- Specified by:
getTravelStepsListin interfaceShipmentRouteOrBuilder
-
getTravelStepsOrBuilderList
Deprecated.Deprecated: Use [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions] instead. Ordered list of travel steps for the route.
repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true];- Specified by:
getTravelStepsOrBuilderListin interfaceShipmentRouteOrBuilder
-
getTravelStepsCount
Deprecated.Deprecated: Use [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions] instead. Ordered list of travel steps for the route.
repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true];- Specified by:
getTravelStepsCountin interfaceShipmentRouteOrBuilder
-
getTravelSteps
Deprecated.Deprecated: Use [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions] instead. Ordered list of travel steps for the route.
repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true];- Specified by:
getTravelStepsin interfaceShipmentRouteOrBuilder
-
getTravelStepsOrBuilder
Deprecated.Deprecated: Use [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions] instead. Ordered list of travel steps for the route.
repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true];- Specified by:
getTravelStepsOrBuilderin interfaceShipmentRouteOrBuilder
-
hasVehicleDetour
Deprecated.google.cloud.optimization.v1.ShipmentRoute.vehicle_detour is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=2215Deprecated: No longer used. This field will only be populated at the [ShipmentRoute.Visit][google.cloud.optimization.v1.ShipmentRoute.Visit] level. This field is the extra detour time due to the shipments visited on the route. It is equal to `vehicle_end_time` - `vehicle_start_time` - travel duration from the vehicle's start_location to its `end_location`.
.google.protobuf.Duration vehicle_detour = 15 [deprecated = true];- Specified by:
hasVehicleDetourin interfaceShipmentRouteOrBuilder- Returns:
- Whether the vehicleDetour field is set.
-
getVehicleDetour
Deprecated.google.cloud.optimization.v1.ShipmentRoute.vehicle_detour is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=2215Deprecated: No longer used. This field will only be populated at the [ShipmentRoute.Visit][google.cloud.optimization.v1.ShipmentRoute.Visit] level. This field is the extra detour time due to the shipments visited on the route. It is equal to `vehicle_end_time` - `vehicle_start_time` - travel duration from the vehicle's start_location to its `end_location`.
.google.protobuf.Duration vehicle_detour = 15 [deprecated = true];- Specified by:
getVehicleDetourin interfaceShipmentRouteOrBuilder- Returns:
- The vehicleDetour.
-
getVehicleDetourOrBuilder
Deprecated.Deprecated: No longer used. This field will only be populated at the [ShipmentRoute.Visit][google.cloud.optimization.v1.ShipmentRoute.Visit] level. This field is the extra detour time due to the shipments visited on the route. It is equal to `vehicle_end_time` - `vehicle_start_time` - travel duration from the vehicle's start_location to its `end_location`.
.google.protobuf.Duration vehicle_detour = 15 [deprecated = true];- Specified by:
getVehicleDetourOrBuilderin interfaceShipmentRouteOrBuilder
-
hasDelayBeforeVehicleEnd
Deprecated.google.cloud.optimization.v1.ShipmentRoute.delay_before_vehicle_end is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=2219Deprecated: Delay occurring before the vehicle end. See [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true];- Specified by:
hasDelayBeforeVehicleEndin interfaceShipmentRouteOrBuilder- Returns:
- Whether the delayBeforeVehicleEnd field is set.
-
getDelayBeforeVehicleEnd
Deprecated.google.cloud.optimization.v1.ShipmentRoute.delay_before_vehicle_end is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=2219Deprecated: Delay occurring before the vehicle end. See [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true];- Specified by:
getDelayBeforeVehicleEndin interfaceShipmentRouteOrBuilder- Returns:
- The delayBeforeVehicleEnd.
-
getDelayBeforeVehicleEndOrBuilder
Deprecated.Deprecated: Delay occurring before the vehicle end. See [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true];- Specified by:
getDelayBeforeVehicleEndOrBuilderin interfaceShipmentRouteOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ShipmentRoute parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentRoute parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentRoute parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentRoute parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentRoute parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentRoute parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ShipmentRoute parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ShipmentRoute parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ShipmentRoute parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ShipmentRoute parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ShipmentRoute.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-