Class OptimizeToursResponse.Metrics.Builder (1.25.0)
Stay organized with collections
Save and categorize content based on your preferences.
- 1.76.0 (latest)
- 1.74.0
- 1.73.0
- 1.72.0
- 1.71.0
- 1.70.0
- 1.68.0
- 1.66.0
- 1.65.0
- 1.62.0
- 1.61.0
- 1.60.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 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
publicstaticfinalclass OptimizeToursResponse.Metrics.BuilderextendsGeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder>implementsOptimizeToursResponse.MetricsOrBuilderOverall 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.MetricsOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicOptimizeToursResponse.Metrics.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
|
build()
publicOptimizeToursResponse.Metricsbuild()| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics |
|
buildPartial()
publicOptimizeToursResponse.MetricsbuildPartial()| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics |
|
clear()
publicOptimizeToursResponse.Metrics.Builderclear()| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
|
clearAggregatedRouteMetrics()
publicOptimizeToursResponse.Metrics.BuilderclearAggregatedRouteMetrics()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;
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
|
clearCosts()
publicOptimizeToursResponse.Metrics.BuilderclearCosts()| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
|
clearEarliestVehicleStartTime()
publicOptimizeToursResponse.Metrics.BuilderclearEarliestVehicleStartTime()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;
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
|
clearField(Descriptors.FieldDescriptor field)
publicOptimizeToursResponse.Metrics.BuilderclearField(Descriptors.FieldDescriptorfield)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
|
clearLatestVehicleEndTime()
publicOptimizeToursResponse.Metrics.BuilderclearLatestVehicleEndTime()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;
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
publicOptimizeToursResponse.Metrics.BuilderclearOneof(Descriptors.OneofDescriptoroneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
|
clearSkippedMandatoryShipmentCount()
publicOptimizeToursResponse.Metrics.BuilderclearSkippedMandatoryShipmentCount()Number of mandatory shipments skipped.
int32 skipped_mandatory_shipment_count = 2;
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
This builder for chaining. |
clearTotalCost()
publicOptimizeToursResponse.Metrics.BuilderclearTotalCost()Total cost of the solution. The sum of all values in the costs map.
double total_cost = 6;
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
This builder for chaining. |
clearUsedVehicleCount()
publicOptimizeToursResponse.Metrics.BuilderclearUsedVehicleCount()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;
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
This builder for chaining. |
clone()
publicOptimizeToursResponse.Metrics.Builderclone()| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
|
containsCosts(String key)
publicbooleancontainsCosts(Stringkey)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;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getAggregatedRouteMetrics()
publicAggregatedMetricsgetAggregatedRouteMetrics()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;
| Returns | |
|---|---|
| Type | Description |
AggregatedMetrics |
The aggregatedRouteMetrics. |
getAggregatedRouteMetricsBuilder()
publicAggregatedMetrics.BuildergetAggregatedRouteMetricsBuilder()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;
| Returns | |
|---|---|
| Type | Description |
AggregatedMetrics.Builder |
|
getAggregatedRouteMetricsOrBuilder()
publicAggregatedMetricsOrBuildergetAggregatedRouteMetricsOrBuilder()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;
| Returns | |
|---|---|
| Type | Description |
AggregatedMetricsOrBuilder |
|
getCosts()
publicMap<String,Double>getCosts()Use #getCostsMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,Double> |
|
getCostsCount()
publicintgetCostsCount()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;
| Returns | |
|---|---|
| Type | Description |
int |
|
getCostsMap()
publicMap<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;
| Returns | |
|---|---|
| Type | Description |
Map<String,Double> |
|
getCostsOrDefault(String key, double defaultValue)
publicdoublegetCostsOrDefault(Stringkey,doubledefaultValue)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;
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
double |
| Returns | |
|---|---|
| Type | Description |
double |
|
getCostsOrThrow(String key)
publicdoublegetCostsOrThrow(Stringkey)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;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
double |
|
getDefaultInstanceForType()
publicOptimizeToursResponse.MetricsgetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics |
|
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEarliestVehicleStartTime()
publicTimestampgetEarliestVehicleStartTime()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;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The earliestVehicleStartTime. |
getEarliestVehicleStartTimeBuilder()
publicTimestamp.BuildergetEarliestVehicleStartTimeBuilder()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;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getEarliestVehicleStartTimeOrBuilder()
publicTimestampOrBuildergetEarliestVehicleStartTimeOrBuilder()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;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getLatestVehicleEndTime()
publicTimestampgetLatestVehicleEndTime()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;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The latestVehicleEndTime. |
getLatestVehicleEndTimeBuilder()
publicTimestamp.BuildergetLatestVehicleEndTimeBuilder()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;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getLatestVehicleEndTimeOrBuilder()
publicTimestampOrBuildergetLatestVehicleEndTimeOrBuilder()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;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getMutableCosts()
publicMap<String,Double>getMutableCosts()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,Double> |
|
getSkippedMandatoryShipmentCount()
publicintgetSkippedMandatoryShipmentCount()Number of mandatory shipments skipped.
int32 skipped_mandatory_shipment_count = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The skippedMandatoryShipmentCount. |
getTotalCost()
publicdoublegetTotalCost()Total cost of the solution. The sum of all values in the costs map.
double total_cost = 6;
| Returns | |
|---|---|
| Type | Description |
double |
The totalCost. |
getUsedVehicleCount()
publicintgetUsedVehicleCount()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;
| Returns | |
|---|---|
| Type | Description |
int |
The usedVehicleCount. |
hasAggregatedRouteMetrics()
publicbooleanhasAggregatedRouteMetrics()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;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the aggregatedRouteMetrics field is set. |
hasEarliestVehicleStartTime()
publicbooleanhasEarliestVehicleStartTime()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;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the earliestVehicleStartTime field is set. |
hasLatestVehicleEndTime()
publicbooleanhasLatestVehicleEndTime()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;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the latestVehicleEndTime field is set. |
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapField(int number)
protectedMapFieldinternalGetMapField(intnumber)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
MapField |
|
internalGetMutableMapField(int number)
protectedMapFieldinternalGetMutableMapField(intnumber)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
MapField |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeAggregatedRouteMetrics(AggregatedMetrics value)
publicOptimizeToursResponse.Metrics.BuildermergeAggregatedRouteMetrics(AggregatedMetricsvalue)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;
| Parameter | |
|---|---|
| Name | Description |
value |
AggregatedMetrics |
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
|
mergeEarliestVehicleStartTime(Timestamp value)
publicOptimizeToursResponse.Metrics.BuildermergeEarliestVehicleStartTime(Timestampvalue)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;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
|
mergeFrom(OptimizeToursResponse.Metrics other)
publicOptimizeToursResponse.Metrics.BuildermergeFrom(OptimizeToursResponse.Metricsother)| Parameter | |
|---|---|
| Name | Description |
other |
OptimizeToursResponse.Metrics |
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicOptimizeToursResponse.Metrics.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicOptimizeToursResponse.Metrics.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
|
mergeLatestVehicleEndTime(Timestamp value)
publicOptimizeToursResponse.Metrics.BuildermergeLatestVehicleEndTime(Timestampvalue)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;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalOptimizeToursResponse.Metrics.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
|
putAllCosts(Map<String,Double> values)
publicOptimizeToursResponse.Metrics.BuilderputAllCosts(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;
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,Double> |
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
|
putCosts(String key, double value)
publicOptimizeToursResponse.Metrics.BuilderputCosts(Stringkey,doublevalue)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;
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
double |
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
|
removeCosts(String key)
publicOptimizeToursResponse.Metrics.BuilderremoveCosts(Stringkey)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;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
|
setAggregatedRouteMetrics(AggregatedMetrics value)
publicOptimizeToursResponse.Metrics.BuildersetAggregatedRouteMetrics(AggregatedMetricsvalue)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;
| Parameter | |
|---|---|
| Name | Description |
value |
AggregatedMetrics |
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
|
setAggregatedRouteMetrics(AggregatedMetrics.Builder builderForValue)
publicOptimizeToursResponse.Metrics.BuildersetAggregatedRouteMetrics(AggregatedMetrics.BuilderbuilderForValue)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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
AggregatedMetrics.Builder |
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
|
setEarliestVehicleStartTime(Timestamp value)
publicOptimizeToursResponse.Metrics.BuildersetEarliestVehicleStartTime(Timestampvalue)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;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
|
setEarliestVehicleStartTime(Timestamp.Builder builderForValue)
publicOptimizeToursResponse.Metrics.BuildersetEarliestVehicleStartTime(Timestamp.BuilderbuilderForValue)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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
publicOptimizeToursResponse.Metrics.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
|
setLatestVehicleEndTime(Timestamp value)
publicOptimizeToursResponse.Metrics.BuildersetLatestVehicleEndTime(Timestampvalue)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;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
|
setLatestVehicleEndTime(Timestamp.Builder builderForValue)
publicOptimizeToursResponse.Metrics.BuildersetLatestVehicleEndTime(Timestamp.BuilderbuilderForValue)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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicOptimizeToursResponse.Metrics.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
|
setSkippedMandatoryShipmentCount(int value)
publicOptimizeToursResponse.Metrics.BuildersetSkippedMandatoryShipmentCount(intvalue)Number of mandatory shipments skipped.
int32 skipped_mandatory_shipment_count = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
int The skippedMandatoryShipmentCount to set. |
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
This builder for chaining. |
setTotalCost(double value)
publicOptimizeToursResponse.Metrics.BuildersetTotalCost(doublevalue)Total cost of the solution. The sum of all values in the costs map.
double total_cost = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
double The totalCost to set. |
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalOptimizeToursResponse.Metrics.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
|
setUsedVehicleCount(int value)
publicOptimizeToursResponse.Metrics.BuildersetUsedVehicleCount(intvalue)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;
| Parameter | |
|---|---|
| Name | Description |
value |
int The usedVehicleCount to set. |
| Returns | |
|---|---|
| Type | Description |
OptimizeToursResponse.Metrics.Builder |
This builder for chaining. |