- 1.53.0 (latest)
- 1.52.0
- 1.51.0
- 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 final class OptimizeToursResponse.Metrics.Builder extends GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder> implements OptimizeToursResponse.MetricsOrBuilder
Overall metrics, aggregated over all routes.
Protobuf type google.cloud.optimization.v1.OptimizeToursResponse.Metrics
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > OptimizeToursResponse.Metrics.BuilderImplements
OptimizeToursResponse.MetricsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public OptimizeToursResponse.Metrics.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
OptimizeToursResponse.Metrics.Builder |
build()
public OptimizeToursResponse.Metrics build()
Type | Description |
OptimizeToursResponse.Metrics |
buildPartial()
public OptimizeToursResponse.Metrics buildPartial()
Type | Description |
OptimizeToursResponse.Metrics |
clear()
public OptimizeToursResponse.Metrics.Builder clear()
Type | Description |
OptimizeToursResponse.Metrics.Builder |
clearAggregatedRouteMetrics()
public OptimizeToursResponse.Metrics.Builder clearAggregatedRouteMetrics()
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 |
OptimizeToursResponse.Metrics.Builder |
clearCosts()
public OptimizeToursResponse.Metrics.Builder clearCosts()
Type | Description |
OptimizeToursResponse.Metrics.Builder |
clearEarliestVehicleStartTime()
public OptimizeToursResponse.Metrics.Builder clearEarliestVehicleStartTime()
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 |
OptimizeToursResponse.Metrics.Builder |
clearField(Descriptors.FieldDescriptor field)
public OptimizeToursResponse.Metrics.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
OptimizeToursResponse.Metrics.Builder |
clearLatestVehicleEndTime()
public OptimizeToursResponse.Metrics.Builder clearLatestVehicleEndTime()
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 |
OptimizeToursResponse.Metrics.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public OptimizeToursResponse.Metrics.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
OptimizeToursResponse.Metrics.Builder |
clearSkippedMandatoryShipmentCount()
public OptimizeToursResponse.Metrics.Builder clearSkippedMandatoryShipmentCount()
Number of mandatory shipments skipped.
int32 skipped_mandatory_shipment_count = 2;
Type | Description |
OptimizeToursResponse.Metrics.Builder | This builder for chaining. |
clearTotalCost()
public OptimizeToursResponse.Metrics.Builder clearTotalCost()
Total cost of the solution. The sum of all values in the costs map.
double total_cost = 6;
Type | Description |
OptimizeToursResponse.Metrics.Builder | This builder for chaining. |
clearUsedVehicleCount()
public OptimizeToursResponse.Metrics.Builder clearUsedVehicleCount()
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 |
OptimizeToursResponse.Metrics.Builder | This builder for chaining. |
clone()
public OptimizeToursResponse.Metrics.Builder clone()
Type | Description |
OptimizeToursResponse.Metrics.Builder |
containsCosts(String key)
public 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 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. |
getAggregatedRouteMetricsBuilder()
public AggregatedMetrics.Builder getAggregatedRouteMetricsBuilder()
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.Builder |
getAggregatedRouteMetricsOrBuilder()
public 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 Map<String,Double> getCosts()
Use #getCostsMap() instead.
Type | Description |
Map<String,Double> |
getCostsCount()
public 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 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 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 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 |
getDefaultInstanceForType()
public OptimizeToursResponse.Metrics getDefaultInstanceForType()
Type | Description |
OptimizeToursResponse.Metrics |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEarliestVehicleStartTime()
public 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. |
getEarliestVehicleStartTimeBuilder()
public 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.protobuf.Timestamp earliest_vehicle_start_time = 4;
Type | Description |
Builder |
getEarliestVehicleStartTimeOrBuilder()
public 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 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. |
getLatestVehicleEndTimeBuilder()
public 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.protobuf.Timestamp latest_vehicle_end_time = 5;
Type | Description |
Builder |
getLatestVehicleEndTimeOrBuilder()
public 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 |
getMutableCosts()
public Map<String,Double> getMutableCosts()
Use alternate mutation accessors instead.
Type | Description |
Map<String,Double> |
getSkippedMandatoryShipmentCount()
public int getSkippedMandatoryShipmentCount()
Number of mandatory shipments skipped.
int32 skipped_mandatory_shipment_count = 2;
Type | Description |
int | The skippedMandatoryShipmentCount. |
getTotalCost()
public 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 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 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 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 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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeAggregatedRouteMetrics(AggregatedMetrics value)
public OptimizeToursResponse.Metrics.Builder mergeAggregatedRouteMetrics(AggregatedMetrics value)
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;
Name | Description |
value | AggregatedMetrics |
Type | Description |
OptimizeToursResponse.Metrics.Builder |
mergeEarliestVehicleStartTime(Timestamp value)
public OptimizeToursResponse.Metrics.Builder mergeEarliestVehicleStartTime(Timestamp value)
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;
Name | Description |
value | Timestamp |
Type | Description |
OptimizeToursResponse.Metrics.Builder |
mergeFrom(OptimizeToursResponse.Metrics other)
public OptimizeToursResponse.Metrics.Builder mergeFrom(OptimizeToursResponse.Metrics other)
Name | Description |
other | OptimizeToursResponse.Metrics |
Type | Description |
OptimizeToursResponse.Metrics.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public OptimizeToursResponse.Metrics.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
OptimizeToursResponse.Metrics.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public OptimizeToursResponse.Metrics.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
OptimizeToursResponse.Metrics.Builder |
mergeLatestVehicleEndTime(Timestamp value)
public OptimizeToursResponse.Metrics.Builder mergeLatestVehicleEndTime(Timestamp value)
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;
Name | Description |
value | Timestamp |
Type | Description |
OptimizeToursResponse.Metrics.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final OptimizeToursResponse.Metrics.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
OptimizeToursResponse.Metrics.Builder |
putAllCosts(Map<String,Double> values)
public OptimizeToursResponse.Metrics.Builder putAllCosts(Map<String,Double> values)
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 |
values | Map<String,Double> |
Type | Description |
OptimizeToursResponse.Metrics.Builder |
putCosts(String key, double value)
public OptimizeToursResponse.Metrics.Builder putCosts(String key, double value)
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 |
value | double |
Type | Description |
OptimizeToursResponse.Metrics.Builder |
removeCosts(String key)
public OptimizeToursResponse.Metrics.Builder removeCosts(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 |
OptimizeToursResponse.Metrics.Builder |
setAggregatedRouteMetrics(AggregatedMetrics value)
public OptimizeToursResponse.Metrics.Builder setAggregatedRouteMetrics(AggregatedMetrics value)
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;
Name | Description |
value | AggregatedMetrics |
Type | Description |
OptimizeToursResponse.Metrics.Builder |
setAggregatedRouteMetrics(AggregatedMetrics.Builder builderForValue)
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 fields of the same name.
.google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1;
Name | Description |
builderForValue | AggregatedMetrics.Builder |
Type | Description |
OptimizeToursResponse.Metrics.Builder |
setEarliestVehicleStartTime(Timestamp value)
public OptimizeToursResponse.Metrics.Builder setEarliestVehicleStartTime(Timestamp value)
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;
Name | Description |
value | Timestamp |
Type | Description |
OptimizeToursResponse.Metrics.Builder |
setEarliestVehicleStartTime(Timestamp.Builder builderForValue)
public OptimizeToursResponse.Metrics.Builder setEarliestVehicleStartTime(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.protobuf.Timestamp earliest_vehicle_start_time = 4;
Name | Description |
builderForValue | Builder |
Type | Description |
OptimizeToursResponse.Metrics.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public OptimizeToursResponse.Metrics.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
OptimizeToursResponse.Metrics.Builder |
setLatestVehicleEndTime(Timestamp value)
public OptimizeToursResponse.Metrics.Builder setLatestVehicleEndTime(Timestamp value)
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;
Name | Description |
value | Timestamp |
Type | Description |
OptimizeToursResponse.Metrics.Builder |
setLatestVehicleEndTime(Timestamp.Builder builderForValue)
public OptimizeToursResponse.Metrics.Builder setLatestVehicleEndTime(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.protobuf.Timestamp latest_vehicle_end_time = 5;
Name | Description |
builderForValue | Builder |
Type | Description |
OptimizeToursResponse.Metrics.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public OptimizeToursResponse.Metrics.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
OptimizeToursResponse.Metrics.Builder |
setSkippedMandatoryShipmentCount(int value)
public OptimizeToursResponse.Metrics.Builder setSkippedMandatoryShipmentCount(int value)
Number of mandatory shipments skipped.
int32 skipped_mandatory_shipment_count = 2;
Name | Description |
value | int The skippedMandatoryShipmentCount to set. |
Type | Description |
OptimizeToursResponse.Metrics.Builder | This builder for chaining. |
setTotalCost(double value)
public OptimizeToursResponse.Metrics.Builder setTotalCost(double value)
Total cost of the solution. The sum of all values in the costs map.
double total_cost = 6;
Name | Description |
value | double The totalCost to set. |
Type | Description |
OptimizeToursResponse.Metrics.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final OptimizeToursResponse.Metrics.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
OptimizeToursResponse.Metrics.Builder |
setUsedVehicleCount(int value)
public OptimizeToursResponse.Metrics.Builder setUsedVehicleCount(int value)
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;
Name | Description |
value | int The usedVehicleCount to set. |
Type | Description |
OptimizeToursResponse.Metrics.Builder | This builder for chaining. |