Uses of Class
com.google.cloud.optimization.v1.ShipmentRoute.Builder
-
Uses of ShipmentRoute.Builder in com.google.cloud.optimization.v1
Methods in com.google.cloud.optimization.v1 that return ShipmentRoute.BuilderModifier and TypeMethodDescriptionShipmentRoute.Builder.addAllBreaks(Iterable<? extends ShipmentRoute.Break> values) Breaks scheduled for the vehicle performing this route.ShipmentRoute.Builder.addAllEndLoads(Iterable<? extends CapacityQuantity> values) Deprecated.ShipmentRoute.Builder.addAllTransitions(Iterable<? extends ShipmentRoute.Transition> values) Ordered list of transitions for the route.ShipmentRoute.Builder.addAllTravelSteps(Iterable<? extends ShipmentRoute.TravelStep> values) Deprecated.ShipmentRoute.Builder.addAllVisits(Iterable<? extends ShipmentRoute.Visit> values) Ordered sequence of visits representing a route.ShipmentRoute.Builder.addBreaks(int index, ShipmentRoute.Break value) Breaks scheduled for the vehicle performing this route.ShipmentRoute.Builder.addBreaks(int index, ShipmentRoute.Break.Builder builderForValue) Breaks scheduled for the vehicle performing this route.ShipmentRoute.Builder.addBreaks(ShipmentRoute.Break value) Breaks scheduled for the vehicle performing this route.ShipmentRoute.Builder.addBreaks(ShipmentRoute.Break.Builder builderForValue) Breaks scheduled for the vehicle performing this route.ShipmentRoute.Builder.addEndLoads(int index, CapacityQuantity value) Deprecated.ShipmentRoute.Builder.addEndLoads(int index, CapacityQuantity.Builder builderForValue) Deprecated.ShipmentRoute.Builder.addEndLoads(CapacityQuantity value) Deprecated.ShipmentRoute.Builder.addEndLoads(CapacityQuantity.Builder builderForValue) Deprecated.OptimizeToursRequest.Builder.addInjectedFirstSolutionRoutesBuilder()Guide the optimization algorithm in finding a first solution that is similar to a previous solution.OptimizeToursRequest.Builder.addInjectedFirstSolutionRoutesBuilder(int index) Guide the optimization algorithm in finding a first solution that is similar to a previous solution.OptimizeToursRequest.Builder.addRefreshDetailsRoutesBuilder()If non-empty, the given routes will be refreshed, without modifying their underlying sequence of visits or travel times: only other details will be updated.OptimizeToursRequest.Builder.addRefreshDetailsRoutesBuilder(int index) If non-empty, the given routes will be refreshed, without modifying their underlying sequence of visits or travel times: only other details will be updated.InjectedSolutionConstraint.Builder.addRoutesBuilder()Routes of the solution to inject.InjectedSolutionConstraint.Builder.addRoutesBuilder(int index) Routes of the solution to inject.OptimizeToursResponse.Builder.addRoutesBuilder()Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.OptimizeToursResponse.Builder.addRoutesBuilder(int index) Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.ShipmentRoute.Builder.addTransitions(int index, ShipmentRoute.Transition value) Ordered list of transitions for the route.ShipmentRoute.Builder.addTransitions(int index, ShipmentRoute.Transition.Builder builderForValue) Ordered list of transitions for the route.ShipmentRoute.Builder.addTransitions(ShipmentRoute.Transition value) Ordered list of transitions for the route.ShipmentRoute.Builder.addTransitions(ShipmentRoute.Transition.Builder builderForValue) Ordered list of transitions for the route.ShipmentRoute.Builder.addTravelSteps(int index, ShipmentRoute.TravelStep value) Deprecated.ShipmentRoute.Builder.addTravelSteps(int index, ShipmentRoute.TravelStep.Builder builderForValue) Deprecated.ShipmentRoute.Builder.addTravelSteps(ShipmentRoute.TravelStep value) Deprecated.ShipmentRoute.Builder.addTravelSteps(ShipmentRoute.TravelStep.Builder builderForValue) Deprecated.ShipmentRoute.Builder.addVisits(int index, ShipmentRoute.Visit value) Ordered sequence of visits representing a route.ShipmentRoute.Builder.addVisits(int index, ShipmentRoute.Visit.Builder builderForValue) Ordered sequence of visits representing a route.ShipmentRoute.Builder.addVisits(ShipmentRoute.Visit value) Ordered sequence of visits representing a route.ShipmentRoute.Builder.addVisits(ShipmentRoute.Visit.Builder builderForValue) Ordered sequence of visits representing a route.ShipmentRoute.Builder.clear()ShipmentRoute.Builder.clearBreaks()Breaks scheduled for the vehicle performing this route.ShipmentRoute.Builder.clearDelayBeforeVehicleEnd()Deprecated.ShipmentRoute.Builder.clearEndLoads()Deprecated.ShipmentRoute.Builder.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.ShipmentRoute.Builder.clearMetrics()Duration, distance and load metrics for this route.ShipmentRoute.Builder.clearRouteCosts()ShipmentRoute.Builder.clearRoutePolyline()The encoded polyline representation of the route.ShipmentRoute.Builder.clearRouteTotalCost()Total cost of the route.ShipmentRoute.Builder.clearTransitions()Ordered list of transitions for the route.ShipmentRoute.Builder.clearTravelSteps()Deprecated.ShipmentRoute.Builder.clearVehicleDetour()Deprecated.ShipmentRoute.Builder.clearVehicleEndTime()Time at which the vehicle finishes its route.ShipmentRoute.Builder.clearVehicleIndex()Vehicle performing the route, identified by its index in the source `ShipmentModel`.ShipmentRoute.Builder.clearVehicleLabel()Label of the vehicle performing this route, equal to `ShipmentModel.vehicles(vehicle_index).label`, if specified.ShipmentRoute.Builder.clearVehicleStartTime()Time at which the vehicle starts its route.ShipmentRoute.Builder.clearVisits()Ordered sequence of visits representing a route.OptimizeToursRequest.Builder.getInjectedFirstSolutionRoutesBuilder(int index) Guide the optimization algorithm in finding a first solution that is similar to a previous solution.OptimizeToursRequest.Builder.getRefreshDetailsRoutesBuilder(int index) If non-empty, the given routes will be refreshed, without modifying their underlying sequence of visits or travel times: only other details will be updated.InjectedSolutionConstraint.Builder.getRoutesBuilder(int index) Routes of the solution to inject.OptimizeToursResponse.Builder.getRoutesBuilder(int index) Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.ShipmentRoute.Builder.mergeDelayBeforeVehicleEnd(ShipmentRoute.Delay value) Deprecated.ShipmentRoute.Builder.mergeFrom(ShipmentRoute other) ShipmentRoute.Builder.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) ShipmentRoute.Builder.mergeFrom(com.google.protobuf.Message other) ShipmentRoute.Builder.mergeMetrics(AggregatedMetrics value) Duration, distance and load metrics for this route.ShipmentRoute.Builder.mergeRoutePolyline(ShipmentRoute.EncodedPolyline value) The encoded polyline representation of the route.ShipmentRoute.Builder.mergeVehicleDetour(com.google.protobuf.Duration value) Deprecated.ShipmentRoute.Builder.mergeVehicleEndTime(com.google.protobuf.Timestamp value) Time at which the vehicle finishes its route.ShipmentRoute.Builder.mergeVehicleStartTime(com.google.protobuf.Timestamp value) Time at which the vehicle starts its route.static ShipmentRoute.BuilderShipmentRoute.newBuilder()static ShipmentRoute.BuilderShipmentRoute.newBuilder(ShipmentRoute prototype) ShipmentRoute.newBuilderForType()protected ShipmentRoute.BuilderShipmentRoute.newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) ShipmentRoute.Builder.putAllRouteCosts(Map<String, Double> values) Cost of the route, broken down by cost-related request fields.ShipmentRoute.Builder.putRouteCosts(String key, double value) Cost of the route, broken down by cost-related request fields.ShipmentRoute.Builder.removeBreaks(int index) Breaks scheduled for the vehicle performing this route.ShipmentRoute.Builder.removeEndLoads(int index) Deprecated.ShipmentRoute.Builder.removeRouteCosts(String key) Cost of the route, broken down by cost-related request fields.ShipmentRoute.Builder.removeTransitions(int index) Ordered list of transitions for the route.ShipmentRoute.Builder.removeTravelSteps(int index) Deprecated.ShipmentRoute.Builder.removeVisits(int index) Ordered sequence of visits representing a route.ShipmentRoute.Builder.setBreaks(int index, ShipmentRoute.Break value) Breaks scheduled for the vehicle performing this route.ShipmentRoute.Builder.setBreaks(int index, ShipmentRoute.Break.Builder builderForValue) Breaks scheduled for the vehicle performing this route.ShipmentRoute.Builder.setDelayBeforeVehicleEnd(ShipmentRoute.Delay value) Deprecated.ShipmentRoute.Builder.setDelayBeforeVehicleEnd(ShipmentRoute.Delay.Builder builderForValue) Deprecated.ShipmentRoute.Builder.setEndLoads(int index, CapacityQuantity value) Deprecated.ShipmentRoute.Builder.setEndLoads(int index, CapacityQuantity.Builder builderForValue) Deprecated.ShipmentRoute.Builder.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.ShipmentRoute.Builder.setMetrics(AggregatedMetrics value) Duration, distance and load metrics for this route.ShipmentRoute.Builder.setMetrics(AggregatedMetrics.Builder builderForValue) Duration, distance and load metrics for this route.ShipmentRoute.Builder.setRoutePolyline(ShipmentRoute.EncodedPolyline value) The encoded polyline representation of the route.ShipmentRoute.Builder.setRoutePolyline(ShipmentRoute.EncodedPolyline.Builder builderForValue) The encoded polyline representation of the route.ShipmentRoute.Builder.setRouteTotalCost(double value) Total cost of the route.ShipmentRoute.Builder.setTransitions(int index, ShipmentRoute.Transition value) Ordered list of transitions for the route.ShipmentRoute.Builder.setTransitions(int index, ShipmentRoute.Transition.Builder builderForValue) Ordered list of transitions for the route.ShipmentRoute.Builder.setTravelSteps(int index, ShipmentRoute.TravelStep value) Deprecated.ShipmentRoute.Builder.setTravelSteps(int index, ShipmentRoute.TravelStep.Builder builderForValue) Deprecated.ShipmentRoute.Builder.setVehicleDetour(com.google.protobuf.Duration value) Deprecated.ShipmentRoute.Builder.setVehicleDetour(com.google.protobuf.Duration.Builder builderForValue) Deprecated.ShipmentRoute.Builder.setVehicleEndTime(com.google.protobuf.Timestamp value) Time at which the vehicle finishes its route.ShipmentRoute.Builder.setVehicleEndTime(com.google.protobuf.Timestamp.Builder builderForValue) Time at which the vehicle finishes its route.ShipmentRoute.Builder.setVehicleIndex(int value) Vehicle performing the route, identified by its index in the source `ShipmentModel`.ShipmentRoute.Builder.setVehicleLabel(String value) Label of the vehicle performing this route, equal to `ShipmentModel.vehicles(vehicle_index).label`, if specified.ShipmentRoute.Builder.setVehicleLabelBytes(com.google.protobuf.ByteString value) Label of the vehicle performing this route, equal to `ShipmentModel.vehicles(vehicle_index).label`, if specified.ShipmentRoute.Builder.setVehicleStartTime(com.google.protobuf.Timestamp value) Time at which the vehicle starts its route.ShipmentRoute.Builder.setVehicleStartTime(com.google.protobuf.Timestamp.Builder builderForValue) Time at which the vehicle starts its route.ShipmentRoute.Builder.setVisits(int index, ShipmentRoute.Visit value) Ordered sequence of visits representing a route.ShipmentRoute.Builder.setVisits(int index, ShipmentRoute.Visit.Builder builderForValue) Ordered sequence of visits representing a route.ShipmentRoute.toBuilder()Methods in com.google.cloud.optimization.v1 that return types with arguments of type ShipmentRoute.BuilderModifier and TypeMethodDescriptionOptimizeToursRequest.Builder.getInjectedFirstSolutionRoutesBuilderList()Guide the optimization algorithm in finding a first solution that is similar to a previous solution.OptimizeToursRequest.Builder.getRefreshDetailsRoutesBuilderList()If non-empty, the given routes will be refreshed, without modifying their underlying sequence of visits or travel times: only other details will be updated.InjectedSolutionConstraint.Builder.getRoutesBuilderList()Routes of the solution to inject.OptimizeToursResponse.Builder.getRoutesBuilderList()Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.Methods in com.google.cloud.optimization.v1 with parameters of type ShipmentRoute.BuilderModifier and TypeMethodDescriptionOptimizeToursRequest.Builder.addInjectedFirstSolutionRoutes(int index, ShipmentRoute.Builder builderForValue) Guide the optimization algorithm in finding a first solution that is similar to a previous solution.OptimizeToursRequest.Builder.addInjectedFirstSolutionRoutes(ShipmentRoute.Builder builderForValue) Guide the optimization algorithm in finding a first solution that is similar to a previous solution.OptimizeToursRequest.Builder.addRefreshDetailsRoutes(int index, ShipmentRoute.Builder builderForValue) If non-empty, the given routes will be refreshed, without modifying their underlying sequence of visits or travel times: only other details will be updated.OptimizeToursRequest.Builder.addRefreshDetailsRoutes(ShipmentRoute.Builder builderForValue) If non-empty, the given routes will be refreshed, without modifying their underlying sequence of visits or travel times: only other details will be updated.InjectedSolutionConstraint.Builder.addRoutes(int index, ShipmentRoute.Builder builderForValue) Routes of the solution to inject.InjectedSolutionConstraint.Builder.addRoutes(ShipmentRoute.Builder builderForValue) Routes of the solution to inject.OptimizeToursResponse.Builder.addRoutes(int index, ShipmentRoute.Builder builderForValue) Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.OptimizeToursResponse.Builder.addRoutes(ShipmentRoute.Builder builderForValue) Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.OptimizeToursRequest.Builder.setInjectedFirstSolutionRoutes(int index, ShipmentRoute.Builder builderForValue) Guide the optimization algorithm in finding a first solution that is similar to a previous solution.OptimizeToursRequest.Builder.setRefreshDetailsRoutes(int index, ShipmentRoute.Builder builderForValue) If non-empty, the given routes will be refreshed, without modifying their underlying sequence of visits or travel times: only other details will be updated.InjectedSolutionConstraint.Builder.setRoutes(int index, ShipmentRoute.Builder builderForValue) Routes of the solution to inject.OptimizeToursResponse.Builder.setRoutes(int index, ShipmentRoute.Builder builderForValue) Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.