Package com.google.cloud.optimization.v1
Class OptimizeToursResponse.Metrics.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OptimizeToursResponse.Metrics.Builder>
com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.Builder
- All Implemented Interfaces:
OptimizeToursResponse.MetricsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- OptimizeToursResponse.Metrics
public static final class OptimizeToursResponse.Metrics.Builder
extends com.google.protobuf.GeneratedMessage.Builder<OptimizeToursResponse.Metrics.Builder>
implements OptimizeToursResponse.MetricsOrBuilder
Overall metrics, aggregated over all routes.Protobuf type
google.cloud.optimization.v1.OptimizeToursResponse.Metrics-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Aggregated over the routes.The earliest start time for a used vehicle, computed as the minimum over all used vehicles of [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time].The latest end time for a used vehicle, computed as the maximum over all used vehicles of [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time].Number of mandatory shipments skipped.Total cost of the solution.Number of vehicles used.booleancontainsCosts(String key) Cost of the solution, broken down by cost-related request fields.Aggregated over the routes.Aggregated over the routes.Aggregated over the routes.getCosts()Deprecated.intCost of the solution, broken down by cost-related request fields.Cost of the solution, broken down by cost-related request fields.doublegetCostsOrDefault(String key, double defaultValue) Cost of the solution, broken down by cost-related request fields.doublegetCostsOrThrow(String key) Cost of the solution, broken down by cost-related request fields.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampThe earliest start time for a used vehicle, computed as the minimum over all used vehicles of [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time].com.google.protobuf.Timestamp.BuilderThe earliest start time for a used vehicle, computed as the minimum over all used vehicles of [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time].com.google.protobuf.TimestampOrBuilderThe earliest start time for a used vehicle, computed as the minimum over all used vehicles of [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time].com.google.protobuf.TimestampThe latest end time for a used vehicle, computed as the maximum over all used vehicles of [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time].com.google.protobuf.Timestamp.BuilderThe latest end time for a used vehicle, computed as the maximum over all used vehicles of [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time].com.google.protobuf.TimestampOrBuilderThe latest end time for a used vehicle, computed as the maximum over all used vehicles of [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time].Deprecated.intNumber of mandatory shipments skipped.doubleTotal cost of the solution.intNumber of vehicles used.booleanAggregated over the routes.booleanThe earliest start time for a used vehicle, computed as the minimum over all used vehicles of [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time].booleanThe latest end time for a used vehicle, computed as the maximum over all used vehicles of [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time].protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanAggregated over the routes.mergeEarliestVehicleStartTime(com.google.protobuf.Timestamp value) The earliest start time for a used vehicle, computed as the minimum over all used vehicles of [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time].mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLatestVehicleEndTime(com.google.protobuf.Timestamp value) The latest end time for a used vehicle, computed as the maximum over all used vehicles of [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time].putAllCosts(Map<String, Double> values) Cost of the solution, broken down by cost-related request fields.Cost of the solution, broken down by cost-related request fields.removeCosts(String key) Cost of the solution, broken down by cost-related request fields.Aggregated over the routes.setAggregatedRouteMetrics(AggregatedMetrics.Builder builderForValue) Aggregated over the routes.setEarliestVehicleStartTime(com.google.protobuf.Timestamp value) The earliest start time for a used vehicle, computed as the minimum over all used vehicles of [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time].setEarliestVehicleStartTime(com.google.protobuf.Timestamp.Builder builderForValue) The earliest start time for a used vehicle, computed as the minimum over all used vehicles of [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time].setLatestVehicleEndTime(com.google.protobuf.Timestamp value) The latest end time for a used vehicle, computed as the maximum over all used vehicles of [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time].setLatestVehicleEndTime(com.google.protobuf.Timestamp.Builder builderForValue) The latest end time for a used vehicle, computed as the maximum over all used vehicles of [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time].setSkippedMandatoryShipmentCount(int value) Number of mandatory shipments skipped.setTotalCost(double value) Total cost of the solution.setUsedVehicleCount(int value) Number of vehicles used.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<OptimizeToursResponse.Metrics.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<OptimizeToursResponse.Metrics.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<OptimizeToursResponse.Metrics.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<OptimizeToursResponse.Metrics.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<OptimizeToursResponse.Metrics.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<OptimizeToursResponse.Metrics.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<OptimizeToursResponse.Metrics.Builder>
-
mergeFrom
public OptimizeToursResponse.Metrics.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<OptimizeToursResponse.Metrics.Builder>- Throws:
IOException
-
hasAggregatedRouteMetrics
public boolean hasAggregatedRouteMetrics()Aggregated over the routes. Each metric is the sum (or max, for loads) over all [ShipmentRoute.metrics][google.cloud.optimization.v1.ShipmentRoute.metrics] fields of the same name.
.google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1;- Specified by:
hasAggregatedRouteMetricsin interfaceOptimizeToursResponse.MetricsOrBuilder- Returns:
- Whether the aggregatedRouteMetrics field is set.
-
getAggregatedRouteMetrics
Aggregated over the routes. Each metric is the sum (or max, for loads) over all [ShipmentRoute.metrics][google.cloud.optimization.v1.ShipmentRoute.metrics] fields of the same name.
.google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1;- Specified by:
getAggregatedRouteMetricsin interfaceOptimizeToursResponse.MetricsOrBuilder- Returns:
- The aggregatedRouteMetrics.
-
setAggregatedRouteMetrics
Aggregated over the routes. Each metric is the sum (or max, for loads) over all [ShipmentRoute.metrics][google.cloud.optimization.v1.ShipmentRoute.metrics] fields of the same name.
.google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1; -
setAggregatedRouteMetrics
public OptimizeToursResponse.Metrics.Builder setAggregatedRouteMetrics(AggregatedMetrics.Builder builderForValue) Aggregated over the routes. Each metric is the sum (or max, for loads) over all [ShipmentRoute.metrics][google.cloud.optimization.v1.ShipmentRoute.metrics] fields of the same name.
.google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1; -
mergeAggregatedRouteMetrics
Aggregated over the routes. Each metric is the sum (or max, for loads) over all [ShipmentRoute.metrics][google.cloud.optimization.v1.ShipmentRoute.metrics] fields of the same name.
.google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1; -
clearAggregatedRouteMetrics
Aggregated over the routes. Each metric is the sum (or max, for loads) over all [ShipmentRoute.metrics][google.cloud.optimization.v1.ShipmentRoute.metrics] fields of the same name.
.google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1; -
getAggregatedRouteMetricsBuilder
Aggregated over the routes. Each metric is the sum (or max, for loads) over all [ShipmentRoute.metrics][google.cloud.optimization.v1.ShipmentRoute.metrics] fields of the same name.
.google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1; -
getAggregatedRouteMetricsOrBuilder
Aggregated over the routes. Each metric is the sum (or max, for loads) over all [ShipmentRoute.metrics][google.cloud.optimization.v1.ShipmentRoute.metrics] fields of the same name.
.google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1;- Specified by:
getAggregatedRouteMetricsOrBuilderin interfaceOptimizeToursResponse.MetricsOrBuilder
-
getSkippedMandatoryShipmentCount
public int getSkippedMandatoryShipmentCount()Number of mandatory shipments skipped.
int32 skipped_mandatory_shipment_count = 2;- Specified by:
getSkippedMandatoryShipmentCountin interfaceOptimizeToursResponse.MetricsOrBuilder- Returns:
- The skippedMandatoryShipmentCount.
-
setSkippedMandatoryShipmentCount
Number of mandatory shipments skipped.
int32 skipped_mandatory_shipment_count = 2;- Parameters:
value- The skippedMandatoryShipmentCount to set.- Returns:
- This builder for chaining.
-
clearSkippedMandatoryShipmentCount
Number of mandatory shipments skipped.
int32 skipped_mandatory_shipment_count = 2;- Returns:
- This builder for chaining.
-
getUsedVehicleCount
public int getUsedVehicleCount()Number of vehicles used. Note: if a vehicle route is empty and [Vehicle.used_if_route_is_empty][google.cloud.optimization.v1.Vehicle.used_if_route_is_empty] is true, the vehicle is considered used.
int32 used_vehicle_count = 3;- Specified by:
getUsedVehicleCountin interfaceOptimizeToursResponse.MetricsOrBuilder- Returns:
- The usedVehicleCount.
-
setUsedVehicleCount
Number of vehicles used. Note: if a vehicle route is empty and [Vehicle.used_if_route_is_empty][google.cloud.optimization.v1.Vehicle.used_if_route_is_empty] is true, the vehicle is considered used.
int32 used_vehicle_count = 3;- Parameters:
value- The usedVehicleCount to set.- Returns:
- This builder for chaining.
-
clearUsedVehicleCount
Number of vehicles used. Note: if a vehicle route is empty and [Vehicle.used_if_route_is_empty][google.cloud.optimization.v1.Vehicle.used_if_route_is_empty] is true, the vehicle is considered used.
int32 used_vehicle_count = 3;- Returns:
- This builder for chaining.
-
hasEarliestVehicleStartTime
public boolean hasEarliestVehicleStartTime()The earliest start time for a used vehicle, computed as the minimum over all used vehicles of [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time].
.google.protobuf.Timestamp earliest_vehicle_start_time = 4;- Specified by:
hasEarliestVehicleStartTimein interfaceOptimizeToursResponse.MetricsOrBuilder- Returns:
- Whether the earliestVehicleStartTime field is set.
-
getEarliestVehicleStartTime
public com.google.protobuf.Timestamp getEarliestVehicleStartTime()The earliest start time for a used vehicle, computed as the minimum over all used vehicles of [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time].
.google.protobuf.Timestamp earliest_vehicle_start_time = 4;- Specified by:
getEarliestVehicleStartTimein interfaceOptimizeToursResponse.MetricsOrBuilder- Returns:
- The earliestVehicleStartTime.
-
setEarliestVehicleStartTime
public OptimizeToursResponse.Metrics.Builder setEarliestVehicleStartTime(com.google.protobuf.Timestamp value) The earliest start time for a used vehicle, computed as the minimum over all used vehicles of [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time].
.google.protobuf.Timestamp earliest_vehicle_start_time = 4; -
setEarliestVehicleStartTime
public OptimizeToursResponse.Metrics.Builder setEarliestVehicleStartTime(com.google.protobuf.Timestamp.Builder builderForValue) The earliest start time for a used vehicle, computed as the minimum over all used vehicles of [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time].
.google.protobuf.Timestamp earliest_vehicle_start_time = 4; -
mergeEarliestVehicleStartTime
public OptimizeToursResponse.Metrics.Builder mergeEarliestVehicleStartTime(com.google.protobuf.Timestamp value) The earliest start time for a used vehicle, computed as the minimum over all used vehicles of [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time].
.google.protobuf.Timestamp earliest_vehicle_start_time = 4; -
clearEarliestVehicleStartTime
The earliest start time for a used vehicle, computed as the minimum over all used vehicles of [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time].
.google.protobuf.Timestamp earliest_vehicle_start_time = 4; -
getEarliestVehicleStartTimeBuilder
public com.google.protobuf.Timestamp.Builder getEarliestVehicleStartTimeBuilder()The earliest start time for a used vehicle, computed as the minimum over all used vehicles of [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time].
.google.protobuf.Timestamp earliest_vehicle_start_time = 4; -
getEarliestVehicleStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEarliestVehicleStartTimeOrBuilder()The earliest start time for a used vehicle, computed as the minimum over all used vehicles of [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time].
.google.protobuf.Timestamp earliest_vehicle_start_time = 4;- Specified by:
getEarliestVehicleStartTimeOrBuilderin interfaceOptimizeToursResponse.MetricsOrBuilder
-
hasLatestVehicleEndTime
public boolean hasLatestVehicleEndTime()The latest end time for a used vehicle, computed as the maximum over all used vehicles of [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time].
.google.protobuf.Timestamp latest_vehicle_end_time = 5;- Specified by:
hasLatestVehicleEndTimein interfaceOptimizeToursResponse.MetricsOrBuilder- Returns:
- Whether the latestVehicleEndTime field is set.
-
getLatestVehicleEndTime
public com.google.protobuf.Timestamp getLatestVehicleEndTime()The latest end time for a used vehicle, computed as the maximum over all used vehicles of [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time].
.google.protobuf.Timestamp latest_vehicle_end_time = 5;- Specified by:
getLatestVehicleEndTimein interfaceOptimizeToursResponse.MetricsOrBuilder- Returns:
- The latestVehicleEndTime.
-
setLatestVehicleEndTime
public OptimizeToursResponse.Metrics.Builder setLatestVehicleEndTime(com.google.protobuf.Timestamp value) The latest end time for a used vehicle, computed as the maximum over all used vehicles of [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time].
.google.protobuf.Timestamp latest_vehicle_end_time = 5; -
setLatestVehicleEndTime
public OptimizeToursResponse.Metrics.Builder setLatestVehicleEndTime(com.google.protobuf.Timestamp.Builder builderForValue) The latest end time for a used vehicle, computed as the maximum over all used vehicles of [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time].
.google.protobuf.Timestamp latest_vehicle_end_time = 5; -
mergeLatestVehicleEndTime
public OptimizeToursResponse.Metrics.Builder mergeLatestVehicleEndTime(com.google.protobuf.Timestamp value) The latest end time for a used vehicle, computed as the maximum over all used vehicles of [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time].
.google.protobuf.Timestamp latest_vehicle_end_time = 5; -
clearLatestVehicleEndTime
The latest end time for a used vehicle, computed as the maximum over all used vehicles of [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time].
.google.protobuf.Timestamp latest_vehicle_end_time = 5; -
getLatestVehicleEndTimeBuilder
public com.google.protobuf.Timestamp.Builder getLatestVehicleEndTimeBuilder()The latest end time for a used vehicle, computed as the maximum over all used vehicles of [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time].
.google.protobuf.Timestamp latest_vehicle_end_time = 5; -
getLatestVehicleEndTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getLatestVehicleEndTimeOrBuilder()The latest end time for a used vehicle, computed as the maximum over all used vehicles of [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time].
.google.protobuf.Timestamp latest_vehicle_end_time = 5;- Specified by:
getLatestVehicleEndTimeOrBuilderin interfaceOptimizeToursResponse.MetricsOrBuilder
-
getCostsCount
public int getCostsCount()Description copied from interface:OptimizeToursResponse.MetricsOrBuilderCost of the solution, 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 solution. In other words, costs["model.shipments.pickups.cost"] is the sum of all pickup costs over the solution. 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> costs = 10;- Specified by:
getCostsCountin interfaceOptimizeToursResponse.MetricsOrBuilder
-
containsCosts
Cost of the solution, 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 solution. In other words, costs["model.shipments.pickups.cost"] is the sum of all pickup costs over the solution. 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> costs = 10;- Specified by:
containsCostsin interfaceOptimizeToursResponse.MetricsOrBuilder
-
getCosts
Deprecated.UsegetCostsMap()instead.- Specified by:
getCostsin interfaceOptimizeToursResponse.MetricsOrBuilder
-
getCostsMap
Cost of the solution, 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 solution. In other words, costs["model.shipments.pickups.cost"] is the sum of all pickup costs over the solution. 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> costs = 10;- Specified by:
getCostsMapin interfaceOptimizeToursResponse.MetricsOrBuilder
-
getCostsOrDefault
Cost of the solution, 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 solution. In other words, costs["model.shipments.pickups.cost"] is the sum of all pickup costs over the solution. 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> costs = 10;- Specified by:
getCostsOrDefaultin interfaceOptimizeToursResponse.MetricsOrBuilder
-
getCostsOrThrow
Cost of the solution, 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 solution. In other words, costs["model.shipments.pickups.cost"] is the sum of all pickup costs over the solution. 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> costs = 10;- Specified by:
getCostsOrThrowin interfaceOptimizeToursResponse.MetricsOrBuilder
-
clearCosts
-
removeCosts
Cost of the solution, 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 solution. In other words, costs["model.shipments.pickups.cost"] is the sum of all pickup costs over the solution. 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> costs = 10; -
getMutableCosts
Deprecated.Use alternate mutation accessors instead. -
putCosts
Cost of the solution, 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 solution. In other words, costs["model.shipments.pickups.cost"] is the sum of all pickup costs over the solution. 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> costs = 10; -
putAllCosts
Cost of the solution, 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 solution. In other words, costs["model.shipments.pickups.cost"] is the sum of all pickup costs over the solution. 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> costs = 10; -
getTotalCost
public double getTotalCost()Total cost of the solution. The sum of all values in the costs map.
double total_cost = 6;- Specified by:
getTotalCostin interfaceOptimizeToursResponse.MetricsOrBuilder- Returns:
- The totalCost.
-
setTotalCost
Total cost of the solution. The sum of all values in the costs map.
double total_cost = 6;- Parameters:
value- The totalCost to set.- Returns:
- This builder for chaining.
-
clearTotalCost
Total cost of the solution. The sum of all values in the costs map.
double total_cost = 6;- Returns:
- This builder for chaining.
-