Package com.google.cloud.optimization.v1
Class ShipmentRoute.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ShipmentRoute.Builder>
com.google.cloud.optimization.v1.ShipmentRoute.Builder
- All Implemented Interfaces:
ShipmentRouteOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ShipmentRoute
public static final class ShipmentRoute.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ShipmentRoute.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllBreaks(Iterable<? extends ShipmentRoute.Break> values) Breaks scheduled for the vehicle performing this route.addAllEndLoads(Iterable<? extends CapacityQuantity> values) Deprecated.addAllTransitions(Iterable<? extends ShipmentRoute.Transition> values) Ordered list of transitions for the route.addAllTravelSteps(Iterable<? extends ShipmentRoute.TravelStep> values) Deprecated.addAllVisits(Iterable<? extends ShipmentRoute.Visit> values) Ordered sequence of visits representing a route.addBreaks(int index, ShipmentRoute.Break value) Breaks scheduled for the vehicle performing this route.addBreaks(int index, ShipmentRoute.Break.Builder builderForValue) Breaks scheduled for the vehicle performing this route.addBreaks(ShipmentRoute.Break value) Breaks scheduled for the vehicle performing this route.addBreaks(ShipmentRoute.Break.Builder builderForValue) Breaks scheduled for the vehicle performing this route.Breaks scheduled for the vehicle performing this route.addBreaksBuilder(int index) Breaks scheduled for the vehicle performing this route.addEndLoads(int index, CapacityQuantity value) Deprecated.addEndLoads(int index, CapacityQuantity.Builder builderForValue) Deprecated.addEndLoads(CapacityQuantity value) Deprecated.addEndLoads(CapacityQuantity.Builder builderForValue) Deprecated.Deprecated.addEndLoadsBuilder(int index) Deprecated.addTransitions(int index, ShipmentRoute.Transition value) Ordered list of transitions for the route.addTransitions(int index, ShipmentRoute.Transition.Builder builderForValue) Ordered list of transitions for the route.Ordered list of transitions for the route.addTransitions(ShipmentRoute.Transition.Builder builderForValue) Ordered list of transitions for the route.Ordered list of transitions for the route.addTransitionsBuilder(int index) Ordered list of transitions for the route.addTravelSteps(int index, ShipmentRoute.TravelStep value) Deprecated.addTravelSteps(int index, ShipmentRoute.TravelStep.Builder builderForValue) Deprecated.Deprecated.addTravelSteps(ShipmentRoute.TravelStep.Builder builderForValue) Deprecated.Deprecated.addTravelStepsBuilder(int index) Deprecated.addVisits(int index, ShipmentRoute.Visit value) Ordered sequence of visits representing a route.addVisits(int index, ShipmentRoute.Visit.Builder builderForValue) Ordered sequence of visits representing a route.addVisits(ShipmentRoute.Visit value) Ordered sequence of visits representing a route.addVisits(ShipmentRoute.Visit.Builder builderForValue) Ordered sequence of visits representing a route.Ordered sequence of visits representing a route.addVisitsBuilder(int index) Ordered sequence of visits representing a route.build()clear()Breaks scheduled for the vehicle performing this route.Deprecated.Deprecated.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.Duration, distance and load metrics for this route.The encoded polyline representation of the route.Total cost of the route.Ordered list of transitions for the route.Deprecated.Deprecated.Time at which the vehicle finishes its route.Vehicle 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.Time at which the vehicle starts its route.Ordered sequence of visits representing a route.booleancontainsRouteCosts(String key) Cost of the route, broken down by cost-related request fields.getBreaks(int index) Breaks scheduled for the vehicle performing this route.getBreaksBuilder(int index) Breaks scheduled for the vehicle performing this route.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.Deprecated.google.cloud.optimization.v1.ShipmentRoute.delay_before_vehicle_end is deprecated.Deprecated.Deprecated.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEndLoads(int index) Deprecated.getEndLoadsBuilder(int index) Deprecated.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.Duration, distance and load metrics for this route.Deprecated.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.The encoded polyline representation of the route.doubleTotal cost of the route.getTransitions(int index) Ordered list of transitions for the route.getTransitionsBuilder(int index) Ordered list of transitions for the route.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.getTravelStepsBuilder(int index) Deprecated.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.Duration.BuilderDeprecated.com.google.protobuf.DurationOrBuilderDeprecated.com.google.protobuf.TimestampTime at which the vehicle finishes its route.com.google.protobuf.Timestamp.BuilderTime 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.Timestamp.BuilderTime 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.getVisitsBuilder(int index) Ordered sequence of visits representing a route.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.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) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanDeprecated.mergeFrom(ShipmentRoute other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMetrics(AggregatedMetrics value) Duration, distance and load metrics for this route.The encoded polyline representation of the route.mergeVehicleDetour(com.google.protobuf.Duration value) Deprecated.mergeVehicleEndTime(com.google.protobuf.Timestamp value) Time at which the vehicle finishes its route.mergeVehicleStartTime(com.google.protobuf.Timestamp value) Time at which the vehicle starts its route.putAllRouteCosts(Map<String, Double> values) Cost of the route, broken down by cost-related request fields.putRouteCosts(String key, double value) Cost of the route, broken down by cost-related request fields.removeBreaks(int index) Breaks scheduled for the vehicle performing this route.removeEndLoads(int index) Deprecated.removeRouteCosts(String key) Cost of the route, broken down by cost-related request fields.removeTransitions(int index) Ordered list of transitions for the route.removeTravelSteps(int index) Deprecated.removeVisits(int index) Ordered sequence of visits representing a route.setBreaks(int index, ShipmentRoute.Break value) Breaks scheduled for the vehicle performing this route.setBreaks(int index, ShipmentRoute.Break.Builder builderForValue) Breaks scheduled for the vehicle performing this route.Deprecated.setDelayBeforeVehicleEnd(ShipmentRoute.Delay.Builder builderForValue) Deprecated.setEndLoads(int index, CapacityQuantity value) Deprecated.setEndLoads(int index, CapacityQuantity.Builder builderForValue) Deprecated.setHasTrafficInfeasibilities(boolean value) 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.setMetrics(AggregatedMetrics value) Duration, distance and load metrics for this route.setMetrics(AggregatedMetrics.Builder builderForValue) Duration, distance and load metrics for this route.The encoded polyline representation of the route.setRoutePolyline(ShipmentRoute.EncodedPolyline.Builder builderForValue) The encoded polyline representation of the route.setRouteTotalCost(double value) Total cost of the route.setTransitions(int index, ShipmentRoute.Transition value) Ordered list of transitions for the route.setTransitions(int index, ShipmentRoute.Transition.Builder builderForValue) Ordered list of transitions for the route.setTravelSteps(int index, ShipmentRoute.TravelStep value) Deprecated.setTravelSteps(int index, ShipmentRoute.TravelStep.Builder builderForValue) Deprecated.setVehicleDetour(com.google.protobuf.Duration value) Deprecated.setVehicleDetour(com.google.protobuf.Duration.Builder builderForValue) Deprecated.setVehicleEndTime(com.google.protobuf.Timestamp value) Time at which the vehicle finishes its route.setVehicleEndTime(com.google.protobuf.Timestamp.Builder builderForValue) Time at which the vehicle finishes its route.setVehicleIndex(int value) Vehicle performing the route, identified by its index in the source `ShipmentModel`.setVehicleLabel(String value) Label of the vehicle performing this route, equal to `ShipmentModel.vehicles(vehicle_index).label`, if specified.setVehicleLabelBytes(com.google.protobuf.ByteString value) Label of the vehicle performing this route, equal to `ShipmentModel.vehicles(vehicle_index).label`, if specified.setVehicleStartTime(com.google.protobuf.Timestamp value) Time at which the vehicle starts its route.setVehicleStartTime(com.google.protobuf.Timestamp.Builder builderForValue) Time at which the vehicle starts its route.setVisits(int index, ShipmentRoute.Visit value) Ordered sequence of visits representing a route.setVisits(int index, ShipmentRoute.Visit.Builder builderForValue) Ordered sequence of visits representing a route.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<ShipmentRoute.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<ShipmentRoute.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ShipmentRoute.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ShipmentRoute.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ShipmentRoute.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ShipmentRoute.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ShipmentRoute.Builder>
-
mergeFrom
public ShipmentRoute.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ShipmentRoute.Builder>- Throws:
IOException
-
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.
-
setVehicleIndex
Vehicle performing the route, identified by its index in the source `ShipmentModel`.
int32 vehicle_index = 1;- Parameters:
value- The vehicleIndex to set.- Returns:
- This builder for chaining.
-
clearVehicleIndex
Vehicle performing the route, identified by its index in the source `ShipmentModel`.
int32 vehicle_index = 1;- Returns:
- This builder for chaining.
-
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.
-
setVehicleLabel
Label of the vehicle performing this route, equal to `ShipmentModel.vehicles(vehicle_index).label`, if specified.
string vehicle_label = 2;- Parameters:
value- The vehicleLabel to set.- Returns:
- This builder for chaining.
-
clearVehicleLabel
Label of the vehicle performing this route, equal to `ShipmentModel.vehicles(vehicle_index).label`, if specified.
string vehicle_label = 2;- Returns:
- This builder for chaining.
-
setVehicleLabelBytes
Label of the vehicle performing this route, equal to `ShipmentModel.vehicles(vehicle_index).label`, if specified.
string vehicle_label = 2;- Parameters:
value- The bytes for vehicleLabel to set.- Returns:
- This builder for chaining.
-
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.
-
setVehicleStartTime
Time at which the vehicle starts its route.
.google.protobuf.Timestamp vehicle_start_time = 5; -
setVehicleStartTime
public ShipmentRoute.Builder setVehicleStartTime(com.google.protobuf.Timestamp.Builder builderForValue) Time at which the vehicle starts its route.
.google.protobuf.Timestamp vehicle_start_time = 5; -
mergeVehicleStartTime
Time at which the vehicle starts its route.
.google.protobuf.Timestamp vehicle_start_time = 5; -
clearVehicleStartTime
Time at which the vehicle starts its route.
.google.protobuf.Timestamp vehicle_start_time = 5; -
getVehicleStartTimeBuilder
public com.google.protobuf.Timestamp.Builder getVehicleStartTimeBuilder()Time at which the vehicle starts its route.
.google.protobuf.Timestamp vehicle_start_time = 5; -
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.
-
setVehicleEndTime
Time at which the vehicle finishes its route.
.google.protobuf.Timestamp vehicle_end_time = 6; -
setVehicleEndTime
public ShipmentRoute.Builder setVehicleEndTime(com.google.protobuf.Timestamp.Builder builderForValue) Time at which the vehicle finishes its route.
.google.protobuf.Timestamp vehicle_end_time = 6; -
mergeVehicleEndTime
Time at which the vehicle finishes its route.
.google.protobuf.Timestamp vehicle_end_time = 6; -
clearVehicleEndTime
Time at which the vehicle finishes its route.
.google.protobuf.Timestamp vehicle_end_time = 6; -
getVehicleEndTimeBuilder
public com.google.protobuf.Timestamp.Builder getVehicleEndTimeBuilder()Time at which the vehicle finishes its route.
.google.protobuf.Timestamp vehicle_end_time = 6; -
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
-
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
-
setVisits
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; -
setVisits
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; -
addVisits
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; -
addVisits
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; -
addVisits
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; -
addVisits
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; -
addAllVisits
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; -
clearVisits
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; -
removeVisits
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; -
getVisitsBuilder
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; -
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
-
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
-
addVisitsBuilder
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; -
addVisitsBuilder
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; -
getVisitsBuilderList
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; -
getTransitionsList
Ordered list of transitions for the route.
repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8;- Specified by:
getTransitionsListin 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
-
setTransitions
Ordered list of transitions for the route.
repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; -
setTransitions
public ShipmentRoute.Builder setTransitions(int index, ShipmentRoute.Transition.Builder builderForValue) Ordered list of transitions for the route.
repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; -
addTransitions
Ordered list of transitions for the route.
repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; -
addTransitions
Ordered list of transitions for the route.
repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; -
addTransitions
Ordered list of transitions for the route.
repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; -
addTransitions
public ShipmentRoute.Builder addTransitions(int index, ShipmentRoute.Transition.Builder builderForValue) Ordered list of transitions for the route.
repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; -
addAllTransitions
Ordered list of transitions for the route.
repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; -
clearTransitions
Ordered list of transitions for the route.
repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; -
removeTransitions
Ordered list of transitions for the route.
repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; -
getTransitionsBuilder
Ordered list of transitions for the route.
repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; -
getTransitionsOrBuilder
Ordered list of transitions for the route.
repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8;- Specified by:
getTransitionsOrBuilderin interfaceShipmentRouteOrBuilder
-
getTransitionsOrBuilderList
Ordered list of transitions for the route.
repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8;- Specified by:
getTransitionsOrBuilderListin interfaceShipmentRouteOrBuilder
-
addTransitionsBuilder
Ordered list of transitions for the route.
repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; -
addTransitionsBuilder
Ordered list of transitions for the route.
repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; -
getTransitionsBuilderList
Ordered list of transitions for the route.
repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; -
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.
-
setHasTrafficInfeasibilities
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;- Parameters:
value- The hasTrafficInfeasibilities to set.- Returns:
- This builder for chaining.
-
clearHasTrafficInfeasibilities
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;- Returns:
- This builder for chaining.
-
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.
-
setRoutePolyline
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; -
setRoutePolyline
public ShipmentRoute.Builder setRoutePolyline(ShipmentRoute.EncodedPolyline.Builder builderForValue) 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; -
mergeRoutePolyline
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; -
clearRoutePolyline
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; -
getRoutePolylineBuilder
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; -
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
-
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
-
setBreaks
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; -
setBreaks
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; -
addBreaks
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; -
addBreaks
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; -
addBreaks
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; -
addBreaks
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; -
addAllBreaks
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; -
clearBreaks
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; -
removeBreaks
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; -
getBreaksBuilder
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; -
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
-
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
-
addBreaksBuilder
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; -
addBreaksBuilder
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; -
getBreaksBuilderList
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; -
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.
-
setMetrics
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; -
setMetrics
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; -
mergeMetrics
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; -
clearMetrics
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; -
getMetricsBuilder
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; -
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
-
clearRouteCosts
-
removeRouteCosts
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; -
getMutableRouteCosts
Deprecated.Use alternate mutation accessors instead. -
putRouteCosts
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; -
putAllRouteCosts
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; -
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.
-
setRouteTotalCost
Total cost of the route. The sum of all costs in the cost map.
double route_total_cost = 18;- Parameters:
value- The routeTotalCost to set.- Returns:
- This builder for chaining.
-
clearRouteTotalCost
Total cost of the route. The sum of all costs in the cost map.
double route_total_cost = 18;- Returns:
- This builder for chaining.
-
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
-
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
-
setEndLoads
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]; -
setEndLoads
@Deprecated public ShipmentRoute.Builder setEndLoads(int index, CapacityQuantity.Builder builderForValue) 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]; -
addEndLoads
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]; -
addEndLoads
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]; -
addEndLoads
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]; -
addEndLoads
@Deprecated public ShipmentRoute.Builder addEndLoads(int index, CapacityQuantity.Builder builderForValue) 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]; -
addAllEndLoads
@Deprecated public ShipmentRoute.Builder addAllEndLoads(Iterable<? extends CapacityQuantity> values) 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]; -
clearEndLoads
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]; -
removeEndLoads
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]; -
getEndLoadsBuilder
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]; -
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
-
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
-
addEndLoadsBuilder
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]; -
addEndLoadsBuilder
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]; -
getEndLoadsBuilderList
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]; -
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
-
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
-
setTravelSteps
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]; -
setTravelSteps
@Deprecated public ShipmentRoute.Builder setTravelSteps(int index, ShipmentRoute.TravelStep.Builder builderForValue) 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]; -
addTravelSteps
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]; -
addTravelSteps
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]; -
addTravelSteps
@Deprecated public ShipmentRoute.Builder addTravelSteps(ShipmentRoute.TravelStep.Builder builderForValue) 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]; -
addTravelSteps
@Deprecated public ShipmentRoute.Builder addTravelSteps(int index, ShipmentRoute.TravelStep.Builder builderForValue) 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]; -
addAllTravelSteps
@Deprecated public ShipmentRoute.Builder addAllTravelSteps(Iterable<? extends ShipmentRoute.TravelStep> values) 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]; -
clearTravelSteps
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]; -
removeTravelSteps
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]; -
getTravelStepsBuilder
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]; -
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
-
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
-
addTravelStepsBuilder
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]; -
addTravelStepsBuilder
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]; -
getTravelStepsBuilderList
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]; -
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.
-
setVehicleDetour
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]; -
setVehicleDetour
@Deprecated public ShipmentRoute.Builder setVehicleDetour(com.google.protobuf.Duration.Builder builderForValue) 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]; -
mergeVehicleDetour
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]; -
clearVehicleDetour
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]; -
getVehicleDetourBuilder
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]; -
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.
-
setDelayBeforeVehicleEnd
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]; -
setDelayBeforeVehicleEnd
@Deprecated public ShipmentRoute.Builder setDelayBeforeVehicleEnd(ShipmentRoute.Delay.Builder builderForValue) 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]; -
mergeDelayBeforeVehicleEnd
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]; -
clearDelayBeforeVehicleEnd
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]; -
getDelayBeforeVehicleEndBuilder
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]; -
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
-