- 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 final class AggregatedMetrics.Builder extends GeneratedMessageV3.Builder<AggregatedMetrics.Builder> implements AggregatedMetricsOrBuilder
Aggregated metrics for ShipmentRoute (resp. for OptimizeToursResponse over all Transition and/or Visit (resp. over all ShipmentRoute) elements.
Protobuf type google.cloud.optimization.v1.AggregatedMetrics
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AggregatedMetrics.BuilderImplements
AggregatedMetricsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AggregatedMetrics.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
AggregatedMetrics.Builder |
build()
public AggregatedMetrics build()
Type | Description |
AggregatedMetrics |
buildPartial()
public AggregatedMetrics buildPartial()
Type | Description |
AggregatedMetrics |
clear()
public AggregatedMetrics.Builder clear()
Type | Description |
AggregatedMetrics.Builder |
clearBreakDuration()
public AggregatedMetrics.Builder clearBreakDuration()
Total break duration for a route or a solution.
.google.protobuf.Duration break_duration = 5;
Type | Description |
AggregatedMetrics.Builder |
clearCosts()
public AggregatedMetrics.Builder clearCosts()
Type | Description |
AggregatedMetrics.Builder |
clearDelayDuration()
public AggregatedMetrics.Builder clearDelayDuration()
Total delay duration for a route or a solution.
.google.protobuf.Duration delay_duration = 4;
Type | Description |
AggregatedMetrics.Builder |
clearField(Descriptors.FieldDescriptor field)
public AggregatedMetrics.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
AggregatedMetrics.Builder |
clearMaxLoads()
public AggregatedMetrics.Builder clearMaxLoads()
Type | Description |
AggregatedMetrics.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public AggregatedMetrics.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
AggregatedMetrics.Builder |
clearPerformedShipmentCount()
public AggregatedMetrics.Builder clearPerformedShipmentCount()
Number of shipments performed. Note that a pickup and delivery pair only counts once.
int32 performed_shipment_count = 1;
Type | Description |
AggregatedMetrics.Builder | This builder for chaining. |
clearTotalCost()
public AggregatedMetrics.Builder clearTotalCost()
Deprecated: Use [ShipmentRoute.route_total_cost][] and [OptimizeToursResponse.Metrics.total_cost][] instead.
double total_cost = 11 [deprecated = true];
Type | Description |
AggregatedMetrics.Builder | This builder for chaining. |
clearTotalDuration()
public AggregatedMetrics.Builder clearTotalDuration()
The total duration should be equal to the sum of all durations above. For routes, it also corresponds to ShipmentRoute.vehicle_end_time - ShipmentRoute.vehicle_start_time.
.google.protobuf.Duration total_duration = 7;
Type | Description |
AggregatedMetrics.Builder |
clearTravelDistanceMeters()
public AggregatedMetrics.Builder clearTravelDistanceMeters()
Total travel distance for a route or a solution.
double travel_distance_meters = 8;
Type | Description |
AggregatedMetrics.Builder | This builder for chaining. |
clearTravelDuration()
public AggregatedMetrics.Builder clearTravelDuration()
Total travel duration for a route or a solution.
.google.protobuf.Duration travel_duration = 2;
Type | Description |
AggregatedMetrics.Builder |
clearVisitDuration()
public AggregatedMetrics.Builder clearVisitDuration()
Total visit duration for a route or a solution.
.google.protobuf.Duration visit_duration = 6;
Type | Description |
AggregatedMetrics.Builder |
clearWaitDuration()
public AggregatedMetrics.Builder clearWaitDuration()
Total wait duration for a route or a solution.
.google.protobuf.Duration wait_duration = 3;
Type | Description |
AggregatedMetrics.Builder |
clone()
public AggregatedMetrics.Builder clone()
Type | Description |
AggregatedMetrics.Builder |
containsCosts(String key)
public boolean containsCosts(String key)
Deprecated: Use [ShipmentRoute.route_costs][] and [OptimizeToursResponse.Metrics.costs][] instead.
map<string, double> costs = 10 [deprecated = true];
Name | Description |
key | String |
Type | Description |
boolean |
containsMaxLoads(String key)
public boolean containsMaxLoads(String key)
Maximum load achieved over the entire route (resp. solution), for each of the quantities on this route (resp. solution), computed as the maximum over all Transition.vehicle_loads (resp. ShipmentRoute.metrics.max_loads.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
Name | Description |
key | String |
Type | Description |
boolean |
getBreakDuration()
public Duration getBreakDuration()
Total break duration for a route or a solution.
.google.protobuf.Duration break_duration = 5;
Type | Description |
Duration | The breakDuration. |
getBreakDurationBuilder()
public Duration.Builder getBreakDurationBuilder()
Total break duration for a route or a solution.
.google.protobuf.Duration break_duration = 5;
Type | Description |
Builder |
getBreakDurationOrBuilder()
public DurationOrBuilder getBreakDurationOrBuilder()
Total break duration for a route or a solution.
.google.protobuf.Duration break_duration = 5;
Type | Description |
DurationOrBuilder |
getCosts()
public Map<String,Double> getCosts()
Use #getCostsMap() instead.
Type | Description |
Map<String,Double> |
getCostsCount()
public int getCostsCount()
Deprecated: Use [ShipmentRoute.route_costs][] and [OptimizeToursResponse.Metrics.costs][] instead.
map<string, double> costs = 10 [deprecated = true];
Type | Description |
int |
getCostsMap()
public Map<String,Double> getCostsMap()
Deprecated: Use [ShipmentRoute.route_costs][] and [OptimizeToursResponse.Metrics.costs][] instead.
map<string, double> costs = 10 [deprecated = true];
Type | Description |
Map<String,Double> |
getCostsOrDefault(String key, double defaultValue)
public double getCostsOrDefault(String key, double defaultValue)
Deprecated: Use [ShipmentRoute.route_costs][] and [OptimizeToursResponse.Metrics.costs][] instead.
map<string, double> costs = 10 [deprecated = true];
Name | Description |
key | String |
defaultValue | double |
Type | Description |
double |
getCostsOrThrow(String key)
public double getCostsOrThrow(String key)
Deprecated: Use [ShipmentRoute.route_costs][] and [OptimizeToursResponse.Metrics.costs][] instead.
map<string, double> costs = 10 [deprecated = true];
Name | Description |
key | String |
Type | Description |
double |
getDefaultInstanceForType()
public AggregatedMetrics getDefaultInstanceForType()
Type | Description |
AggregatedMetrics |
getDelayDuration()
public Duration getDelayDuration()
Total delay duration for a route or a solution.
.google.protobuf.Duration delay_duration = 4;
Type | Description |
Duration | The delayDuration. |
getDelayDurationBuilder()
public Duration.Builder getDelayDurationBuilder()
Total delay duration for a route or a solution.
.google.protobuf.Duration delay_duration = 4;
Type | Description |
Builder |
getDelayDurationOrBuilder()
public DurationOrBuilder getDelayDurationOrBuilder()
Total delay duration for a route or a solution.
.google.protobuf.Duration delay_duration = 4;
Type | Description |
DurationOrBuilder |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getMaxLoads()
public Map<String,ShipmentRoute.VehicleLoad> getMaxLoads()
Use #getMaxLoadsMap() instead.
Type | Description |
Map<String,VehicleLoad> |
getMaxLoadsCount()
public int getMaxLoadsCount()
Maximum load achieved over the entire route (resp. solution), for each of the quantities on this route (resp. solution), computed as the maximum over all Transition.vehicle_loads (resp. ShipmentRoute.metrics.max_loads.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
Type | Description |
int |
getMaxLoadsMap()
public Map<String,ShipmentRoute.VehicleLoad> getMaxLoadsMap()
Maximum load achieved over the entire route (resp. solution), for each of the quantities on this route (resp. solution), computed as the maximum over all Transition.vehicle_loads (resp. ShipmentRoute.metrics.max_loads.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
Type | Description |
Map<String,VehicleLoad> |
getMaxLoadsOrDefault(String key, ShipmentRoute.VehicleLoad defaultValue)
public ShipmentRoute.VehicleLoad getMaxLoadsOrDefault(String key, ShipmentRoute.VehicleLoad defaultValue)
Maximum load achieved over the entire route (resp. solution), for each of the quantities on this route (resp. solution), computed as the maximum over all Transition.vehicle_loads (resp. ShipmentRoute.metrics.max_loads.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
Name | Description |
key | String |
defaultValue | ShipmentRoute.VehicleLoad |
Type | Description |
ShipmentRoute.VehicleLoad |
getMaxLoadsOrThrow(String key)
public ShipmentRoute.VehicleLoad getMaxLoadsOrThrow(String key)
Maximum load achieved over the entire route (resp. solution), for each of the quantities on this route (resp. solution), computed as the maximum over all Transition.vehicle_loads (resp. ShipmentRoute.metrics.max_loads.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
Name | Description |
key | String |
Type | Description |
ShipmentRoute.VehicleLoad |
getMutableCosts()
public Map<String,Double> getMutableCosts()
Use alternate mutation accessors instead.
Type | Description |
Map<String,Double> |
getMutableMaxLoads()
public Map<String,ShipmentRoute.VehicleLoad> getMutableMaxLoads()
Use alternate mutation accessors instead.
Type | Description |
Map<String,VehicleLoad> |
getPerformedShipmentCount()
public int getPerformedShipmentCount()
Number of shipments performed. Note that a pickup and delivery pair only counts once.
int32 performed_shipment_count = 1;
Type | Description |
int | The performedShipmentCount. |
getTotalCost()
public double getTotalCost()
Deprecated: Use [ShipmentRoute.route_total_cost][] and [OptimizeToursResponse.Metrics.total_cost][] instead.
double total_cost = 11 [deprecated = true];
Type | Description |
double | The totalCost. |
getTotalDuration()
public Duration getTotalDuration()
The total duration should be equal to the sum of all durations above. For routes, it also corresponds to ShipmentRoute.vehicle_end_time - ShipmentRoute.vehicle_start_time.
.google.protobuf.Duration total_duration = 7;
Type | Description |
Duration | The totalDuration. |
getTotalDurationBuilder()
public Duration.Builder getTotalDurationBuilder()
The total duration should be equal to the sum of all durations above. For routes, it also corresponds to ShipmentRoute.vehicle_end_time - ShipmentRoute.vehicle_start_time.
.google.protobuf.Duration total_duration = 7;
Type | Description |
Builder |
getTotalDurationOrBuilder()
public DurationOrBuilder getTotalDurationOrBuilder()
The total duration should be equal to the sum of all durations above. For routes, it also corresponds to ShipmentRoute.vehicle_end_time - ShipmentRoute.vehicle_start_time.
.google.protobuf.Duration total_duration = 7;
Type | Description |
DurationOrBuilder |
getTravelDistanceMeters()
public double getTravelDistanceMeters()
Total travel distance for a route or a solution.
double travel_distance_meters = 8;
Type | Description |
double | The travelDistanceMeters. |
getTravelDuration()
public Duration getTravelDuration()
Total travel duration for a route or a solution.
.google.protobuf.Duration travel_duration = 2;
Type | Description |
Duration | The travelDuration. |
getTravelDurationBuilder()
public Duration.Builder getTravelDurationBuilder()
Total travel duration for a route or a solution.
.google.protobuf.Duration travel_duration = 2;
Type | Description |
Builder |
getTravelDurationOrBuilder()
public DurationOrBuilder getTravelDurationOrBuilder()
Total travel duration for a route or a solution.
.google.protobuf.Duration travel_duration = 2;
Type | Description |
DurationOrBuilder |
getVisitDuration()
public Duration getVisitDuration()
Total visit duration for a route or a solution.
.google.protobuf.Duration visit_duration = 6;
Type | Description |
Duration | The visitDuration. |
getVisitDurationBuilder()
public Duration.Builder getVisitDurationBuilder()
Total visit duration for a route or a solution.
.google.protobuf.Duration visit_duration = 6;
Type | Description |
Builder |
getVisitDurationOrBuilder()
public DurationOrBuilder getVisitDurationOrBuilder()
Total visit duration for a route or a solution.
.google.protobuf.Duration visit_duration = 6;
Type | Description |
DurationOrBuilder |
getWaitDuration()
public Duration getWaitDuration()
Total wait duration for a route or a solution.
.google.protobuf.Duration wait_duration = 3;
Type | Description |
Duration | The waitDuration. |
getWaitDurationBuilder()
public Duration.Builder getWaitDurationBuilder()
Total wait duration for a route or a solution.
.google.protobuf.Duration wait_duration = 3;
Type | Description |
Builder |
getWaitDurationOrBuilder()
public DurationOrBuilder getWaitDurationOrBuilder()
Total wait duration for a route or a solution.
.google.protobuf.Duration wait_duration = 3;
Type | Description |
DurationOrBuilder |
hasBreakDuration()
public boolean hasBreakDuration()
Total break duration for a route or a solution.
.google.protobuf.Duration break_duration = 5;
Type | Description |
boolean | Whether the breakDuration field is set. |
hasDelayDuration()
public boolean hasDelayDuration()
Total delay duration for a route or a solution.
.google.protobuf.Duration delay_duration = 4;
Type | Description |
boolean | Whether the delayDuration field is set. |
hasTotalDuration()
public boolean hasTotalDuration()
The total duration should be equal to the sum of all durations above. For routes, it also corresponds to ShipmentRoute.vehicle_end_time - ShipmentRoute.vehicle_start_time.
.google.protobuf.Duration total_duration = 7;
Type | Description |
boolean | Whether the totalDuration field is set. |
hasTravelDuration()
public boolean hasTravelDuration()
Total travel duration for a route or a solution.
.google.protobuf.Duration travel_duration = 2;
Type | Description |
boolean | Whether the travelDuration field is set. |
hasVisitDuration()
public boolean hasVisitDuration()
Total visit duration for a route or a solution.
.google.protobuf.Duration visit_duration = 6;
Type | Description |
boolean | Whether the visitDuration field is set. |
hasWaitDuration()
public boolean hasWaitDuration()
Total wait duration for a route or a solution.
.google.protobuf.Duration wait_duration = 3;
Type | Description |
boolean | Whether the waitDuration 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 |
mergeBreakDuration(Duration value)
public AggregatedMetrics.Builder mergeBreakDuration(Duration value)
Total break duration for a route or a solution.
.google.protobuf.Duration break_duration = 5;
Name | Description |
value | Duration |
Type | Description |
AggregatedMetrics.Builder |
mergeDelayDuration(Duration value)
public AggregatedMetrics.Builder mergeDelayDuration(Duration value)
Total delay duration for a route or a solution.
.google.protobuf.Duration delay_duration = 4;
Name | Description |
value | Duration |
Type | Description |
AggregatedMetrics.Builder |
mergeFrom(AggregatedMetrics other)
public AggregatedMetrics.Builder mergeFrom(AggregatedMetrics other)
Name | Description |
other | AggregatedMetrics |
Type | Description |
AggregatedMetrics.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AggregatedMetrics.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AggregatedMetrics.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public AggregatedMetrics.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
AggregatedMetrics.Builder |
mergeTotalDuration(Duration value)
public AggregatedMetrics.Builder mergeTotalDuration(Duration value)
The total duration should be equal to the sum of all durations above. For routes, it also corresponds to ShipmentRoute.vehicle_end_time - ShipmentRoute.vehicle_start_time.
.google.protobuf.Duration total_duration = 7;
Name | Description |
value | Duration |
Type | Description |
AggregatedMetrics.Builder |
mergeTravelDuration(Duration value)
public AggregatedMetrics.Builder mergeTravelDuration(Duration value)
Total travel duration for a route or a solution.
.google.protobuf.Duration travel_duration = 2;
Name | Description |
value | Duration |
Type | Description |
AggregatedMetrics.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AggregatedMetrics.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
AggregatedMetrics.Builder |
mergeVisitDuration(Duration value)
public AggregatedMetrics.Builder mergeVisitDuration(Duration value)
Total visit duration for a route or a solution.
.google.protobuf.Duration visit_duration = 6;
Name | Description |
value | Duration |
Type | Description |
AggregatedMetrics.Builder |
mergeWaitDuration(Duration value)
public AggregatedMetrics.Builder mergeWaitDuration(Duration value)
Total wait duration for a route or a solution.
.google.protobuf.Duration wait_duration = 3;
Name | Description |
value | Duration |
Type | Description |
AggregatedMetrics.Builder |
putAllCosts(Map<String,Double> values)
public AggregatedMetrics.Builder putAllCosts(Map<String,Double> values)
Deprecated: Use [ShipmentRoute.route_costs][] and [OptimizeToursResponse.Metrics.costs][] instead.
map<string, double> costs = 10 [deprecated = true];
Name | Description |
values | Map<String,Double> |
Type | Description |
AggregatedMetrics.Builder |
putAllMaxLoads(Map<String,ShipmentRoute.VehicleLoad> values)
public AggregatedMetrics.Builder putAllMaxLoads(Map<String,ShipmentRoute.VehicleLoad> values)
Maximum load achieved over the entire route (resp. solution), for each of the quantities on this route (resp. solution), computed as the maximum over all Transition.vehicle_loads (resp. ShipmentRoute.metrics.max_loads.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
Name | Description |
values | Map<String,VehicleLoad> |
Type | Description |
AggregatedMetrics.Builder |
putCosts(String key, double value)
public AggregatedMetrics.Builder putCosts(String key, double value)
Deprecated: Use [ShipmentRoute.route_costs][] and [OptimizeToursResponse.Metrics.costs][] instead.
map<string, double> costs = 10 [deprecated = true];
Name | Description |
key | String |
value | double |
Type | Description |
AggregatedMetrics.Builder |
putMaxLoads(String key, ShipmentRoute.VehicleLoad value)
public AggregatedMetrics.Builder putMaxLoads(String key, ShipmentRoute.VehicleLoad value)
Maximum load achieved over the entire route (resp. solution), for each of the quantities on this route (resp. solution), computed as the maximum over all Transition.vehicle_loads (resp. ShipmentRoute.metrics.max_loads.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
Name | Description |
key | String |
value | ShipmentRoute.VehicleLoad |
Type | Description |
AggregatedMetrics.Builder |
removeCosts(String key)
public AggregatedMetrics.Builder removeCosts(String key)
Deprecated: Use [ShipmentRoute.route_costs][] and [OptimizeToursResponse.Metrics.costs][] instead.
map<string, double> costs = 10 [deprecated = true];
Name | Description |
key | String |
Type | Description |
AggregatedMetrics.Builder |
removeMaxLoads(String key)
public AggregatedMetrics.Builder removeMaxLoads(String key)
Maximum load achieved over the entire route (resp. solution), for each of the quantities on this route (resp. solution), computed as the maximum over all Transition.vehicle_loads (resp. ShipmentRoute.metrics.max_loads.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
Name | Description |
key | String |
Type | Description |
AggregatedMetrics.Builder |
setBreakDuration(Duration value)
public AggregatedMetrics.Builder setBreakDuration(Duration value)
Total break duration for a route or a solution.
.google.protobuf.Duration break_duration = 5;
Name | Description |
value | Duration |
Type | Description |
AggregatedMetrics.Builder |
setBreakDuration(Duration.Builder builderForValue)
public AggregatedMetrics.Builder setBreakDuration(Duration.Builder builderForValue)
Total break duration for a route or a solution.
.google.protobuf.Duration break_duration = 5;
Name | Description |
builderForValue | Builder |
Type | Description |
AggregatedMetrics.Builder |
setDelayDuration(Duration value)
public AggregatedMetrics.Builder setDelayDuration(Duration value)
Total delay duration for a route or a solution.
.google.protobuf.Duration delay_duration = 4;
Name | Description |
value | Duration |
Type | Description |
AggregatedMetrics.Builder |
setDelayDuration(Duration.Builder builderForValue)
public AggregatedMetrics.Builder setDelayDuration(Duration.Builder builderForValue)
Total delay duration for a route or a solution.
.google.protobuf.Duration delay_duration = 4;
Name | Description |
builderForValue | Builder |
Type | Description |
AggregatedMetrics.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public AggregatedMetrics.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
AggregatedMetrics.Builder |
setPerformedShipmentCount(int value)
public AggregatedMetrics.Builder setPerformedShipmentCount(int value)
Number of shipments performed. Note that a pickup and delivery pair only counts once.
int32 performed_shipment_count = 1;
Name | Description |
value | int The performedShipmentCount to set. |
Type | Description |
AggregatedMetrics.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AggregatedMetrics.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
AggregatedMetrics.Builder |
setTotalCost(double value)
public AggregatedMetrics.Builder setTotalCost(double value)
Deprecated: Use [ShipmentRoute.route_total_cost][] and [OptimizeToursResponse.Metrics.total_cost][] instead.
double total_cost = 11 [deprecated = true];
Name | Description |
value | double The totalCost to set. |
Type | Description |
AggregatedMetrics.Builder | This builder for chaining. |
setTotalDuration(Duration value)
public AggregatedMetrics.Builder setTotalDuration(Duration value)
The total duration should be equal to the sum of all durations above. For routes, it also corresponds to ShipmentRoute.vehicle_end_time - ShipmentRoute.vehicle_start_time.
.google.protobuf.Duration total_duration = 7;
Name | Description |
value | Duration |
Type | Description |
AggregatedMetrics.Builder |
setTotalDuration(Duration.Builder builderForValue)
public AggregatedMetrics.Builder setTotalDuration(Duration.Builder builderForValue)
The total duration should be equal to the sum of all durations above. For routes, it also corresponds to ShipmentRoute.vehicle_end_time - ShipmentRoute.vehicle_start_time.
.google.protobuf.Duration total_duration = 7;
Name | Description |
builderForValue | Builder |
Type | Description |
AggregatedMetrics.Builder |
setTravelDistanceMeters(double value)
public AggregatedMetrics.Builder setTravelDistanceMeters(double value)
Total travel distance for a route or a solution.
double travel_distance_meters = 8;
Name | Description |
value | double The travelDistanceMeters to set. |
Type | Description |
AggregatedMetrics.Builder | This builder for chaining. |
setTravelDuration(Duration value)
public AggregatedMetrics.Builder setTravelDuration(Duration value)
Total travel duration for a route or a solution.
.google.protobuf.Duration travel_duration = 2;
Name | Description |
value | Duration |
Type | Description |
AggregatedMetrics.Builder |
setTravelDuration(Duration.Builder builderForValue)
public AggregatedMetrics.Builder setTravelDuration(Duration.Builder builderForValue)
Total travel duration for a route or a solution.
.google.protobuf.Duration travel_duration = 2;
Name | Description |
builderForValue | Builder |
Type | Description |
AggregatedMetrics.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final AggregatedMetrics.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
AggregatedMetrics.Builder |
setVisitDuration(Duration value)
public AggregatedMetrics.Builder setVisitDuration(Duration value)
Total visit duration for a route or a solution.
.google.protobuf.Duration visit_duration = 6;
Name | Description |
value | Duration |
Type | Description |
AggregatedMetrics.Builder |
setVisitDuration(Duration.Builder builderForValue)
public AggregatedMetrics.Builder setVisitDuration(Duration.Builder builderForValue)
Total visit duration for a route or a solution.
.google.protobuf.Duration visit_duration = 6;
Name | Description |
builderForValue | Builder |
Type | Description |
AggregatedMetrics.Builder |
setWaitDuration(Duration value)
public AggregatedMetrics.Builder setWaitDuration(Duration value)
Total wait duration for a route or a solution.
.google.protobuf.Duration wait_duration = 3;
Name | Description |
value | Duration |
Type | Description |
AggregatedMetrics.Builder |
setWaitDuration(Duration.Builder builderForValue)
public AggregatedMetrics.Builder setWaitDuration(Duration.Builder builderForValue)
Total wait duration for a route or a solution.
.google.protobuf.Duration wait_duration = 3;
Name | Description |
builderForValue | Builder |
Type | Description |
AggregatedMetrics.Builder |