- 1.51.0 (latest)
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.14
- 0.1.2
public static interface OptimizeToursResponse.MetricsOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
containsCosts(String key)
public abstract boolean containsCosts(String key)
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;
Name | Description |
key | String |
Type | Description |
boolean |
getAggregatedRouteMetrics()
public abstract AggregatedMetrics getAggregatedRouteMetrics()
Aggregated over the routes. Each metric is the sum (or max, for loads) over all ShipmentRoute.metrics fields of the same name.
.google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1;
Type | Description |
AggregatedMetrics | The aggregatedRouteMetrics. |
getAggregatedRouteMetricsOrBuilder()
public abstract AggregatedMetricsOrBuilder getAggregatedRouteMetricsOrBuilder()
Aggregated over the routes. Each metric is the sum (or max, for loads) over all ShipmentRoute.metrics fields of the same name.
.google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1;
Type | Description |
AggregatedMetricsOrBuilder |
getCosts()
public abstract Map<String,Double> getCosts()
Use #getCostsMap() instead.
Type | Description |
Map<String,Double> |
getCostsCount()
public abstract int getCostsCount()
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;
Type | Description |
int |
getCostsMap()
public abstract Map<String,Double> 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;
Type | Description |
Map<String,Double> |
getCostsOrDefault(String key, double defaultValue)
public abstract double getCostsOrDefault(String key, double defaultValue)
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;
Name | Description |
key | String |
defaultValue | double |
Type | Description |
double |
getCostsOrThrow(String key)
public abstract double getCostsOrThrow(String key)
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;
Name | Description |
key | String |
Type | Description |
double |
getEarliestVehicleStartTime()
public abstract Timestamp getEarliestVehicleStartTime()
The earliest start time for a used vehicle, computed as the minimum over all used vehicles of ShipmentRoute.vehicle_start_time.
.google.protobuf.Timestamp earliest_vehicle_start_time = 4;
Type | Description |
Timestamp | The earliestVehicleStartTime. |
getEarliestVehicleStartTimeOrBuilder()
public abstract TimestampOrBuilder getEarliestVehicleStartTimeOrBuilder()
The earliest start time for a used vehicle, computed as the minimum over all used vehicles of ShipmentRoute.vehicle_start_time.
.google.protobuf.Timestamp earliest_vehicle_start_time = 4;
Type | Description |
TimestampOrBuilder |
getLatestVehicleEndTime()
public abstract Timestamp getLatestVehicleEndTime()
The latest end time for a used vehicle, computed as the maximum over all used vehicles of ShipmentRoute.vehicle_end_time.
.google.protobuf.Timestamp latest_vehicle_end_time = 5;
Type | Description |
Timestamp | The latestVehicleEndTime. |
getLatestVehicleEndTimeOrBuilder()
public abstract TimestampOrBuilder getLatestVehicleEndTimeOrBuilder()
The latest end time for a used vehicle, computed as the maximum over all used vehicles of ShipmentRoute.vehicle_end_time.
.google.protobuf.Timestamp latest_vehicle_end_time = 5;
Type | Description |
TimestampOrBuilder |
getSkippedMandatoryShipmentCount()
public abstract int getSkippedMandatoryShipmentCount()
Number of mandatory shipments skipped.
int32 skipped_mandatory_shipment_count = 2;
Type | Description |
int | The skippedMandatoryShipmentCount. |
getTotalCost()
public abstract double getTotalCost()
Total cost of the solution. The sum of all values in the costs map.
double total_cost = 6;
Type | Description |
double | The totalCost. |
getUsedVehicleCount()
public abstract int getUsedVehicleCount()
Number of vehicles used. Note: if a vehicle route is empty and Vehicle.used_if_route_is_empty is true, the vehicle is considered used.
int32 used_vehicle_count = 3;
Type | Description |
int | The usedVehicleCount. |
hasAggregatedRouteMetrics()
public abstract boolean hasAggregatedRouteMetrics()
Aggregated over the routes. Each metric is the sum (or max, for loads) over all ShipmentRoute.metrics fields of the same name.
.google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1;
Type | Description |
boolean | Whether the aggregatedRouteMetrics field is set. |
hasEarliestVehicleStartTime()
public abstract boolean hasEarliestVehicleStartTime()
The earliest start time for a used vehicle, computed as the minimum over all used vehicles of ShipmentRoute.vehicle_start_time.
.google.protobuf.Timestamp earliest_vehicle_start_time = 4;
Type | Description |
boolean | Whether the earliestVehicleStartTime field is set. |
hasLatestVehicleEndTime()
public abstract boolean hasLatestVehicleEndTime()
The latest end time for a used vehicle, computed as the maximum over all used vehicles of ShipmentRoute.vehicle_end_time.
.google.protobuf.Timestamp latest_vehicle_end_time = 5;
Type | Description |
boolean | Whether the latestVehicleEndTime field is set. |