Package com.google.cloud.optimization.v1
Class AggregatedMetrics.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AggregatedMetrics.Builder>
com.google.cloud.optimization.v1.AggregatedMetrics.Builder
- All Implemented Interfaces:
AggregatedMetricsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AggregatedMetrics
public static final class AggregatedMetrics.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AggregatedMetrics.Builder>
implements AggregatedMetricsOrBuilder
Aggregated metrics for [ShipmentRoute][google.cloud.optimization.v1.ShipmentRoute] (resp. for [OptimizeToursResponse][google.cloud.optimization.v1.OptimizeToursResponse] over all [Transition][google.cloud.optimization.v1.ShipmentRoute.Transition] and/or [Visit][google.cloud.optimization.v1.ShipmentRoute.Visit] (resp. over all [ShipmentRoute][google.cloud.optimization.v1.ShipmentRoute]) elements.Protobuf type
google.cloud.optimization.v1.AggregatedMetrics-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Total break duration for a route or a solution.Deprecated.Total delay duration for a route or a solution.Number of shipments performed.Deprecated.google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated.The total duration should be equal to the sum of all durations above.Total travel distance for a route or a solution.Total travel duration for a route or a solution.Total visit duration for a route or a solution.Total wait duration for a route or a solution.booleancontainsCosts(String key) Deprecated.booleancontainsMaxLoads(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][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] (resp.com.google.protobuf.DurationTotal break duration for a route or a solution.com.google.protobuf.Duration.BuilderTotal break duration for a route or a solution.com.google.protobuf.DurationOrBuilderTotal break duration for a route or a solution.getCosts()Deprecated.intDeprecated.Deprecated.doublegetCostsOrDefault(String key, double defaultValue) Deprecated.doublegetCostsOrThrow(String key) Deprecated.com.google.protobuf.DurationTotal delay duration for a route or a solution.com.google.protobuf.Duration.BuilderTotal delay duration for a route or a solution.com.google.protobuf.DurationOrBuilderTotal delay duration for a route or a solution.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.intMaximum 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][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] (resp.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][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] (resp.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][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] (resp.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][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] (resp.Deprecated.Deprecated.intNumber of shipments performed.doubleDeprecated.google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated.com.google.protobuf.DurationThe total duration should be equal to the sum of all durations above.com.google.protobuf.Duration.BuilderThe total duration should be equal to the sum of all durations above.com.google.protobuf.DurationOrBuilderThe total duration should be equal to the sum of all durations above.doubleTotal travel distance for a route or a solution.com.google.protobuf.DurationTotal travel duration for a route or a solution.com.google.protobuf.Duration.BuilderTotal travel duration for a route or a solution.com.google.protobuf.DurationOrBuilderTotal travel duration for a route or a solution.com.google.protobuf.DurationTotal visit duration for a route or a solution.com.google.protobuf.Duration.BuilderTotal visit duration for a route or a solution.com.google.protobuf.DurationOrBuilderTotal visit duration for a route or a solution.com.google.protobuf.DurationTotal wait duration for a route or a solution.com.google.protobuf.Duration.BuilderTotal wait duration for a route or a solution.com.google.protobuf.DurationOrBuilderTotal wait duration for a route or a solution.booleanTotal break duration for a route or a solution.booleanTotal delay duration for a route or a solution.booleanThe total duration should be equal to the sum of all durations above.booleanTotal travel duration for a route or a solution.booleanTotal visit duration for a route or a solution.booleanTotal wait duration for a route or a solution.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeBreakDuration(com.google.protobuf.Duration value) Total break duration for a route or a solution.mergeDelayDuration(com.google.protobuf.Duration value) Total delay duration for a route or a solution.mergeFrom(AggregatedMetrics other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeTotalDuration(com.google.protobuf.Duration value) The total duration should be equal to the sum of all durations above.mergeTravelDuration(com.google.protobuf.Duration value) Total travel duration for a route or a solution.mergeVisitDuration(com.google.protobuf.Duration value) Total visit duration for a route or a solution.mergeWaitDuration(com.google.protobuf.Duration value) Total wait duration for a route or a solution.putAllCosts(Map<String, Double> values) Deprecated.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][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] (resp.Deprecated.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][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] (resp.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][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] (resp.removeCosts(String key) Deprecated.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][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] (resp.setBreakDuration(com.google.protobuf.Duration value) Total break duration for a route or a solution.setBreakDuration(com.google.protobuf.Duration.Builder builderForValue) Total break duration for a route or a solution.setDelayDuration(com.google.protobuf.Duration value) Total delay duration for a route or a solution.setDelayDuration(com.google.protobuf.Duration.Builder builderForValue) Total delay duration for a route or a solution.setPerformedShipmentCount(int value) Number of shipments performed.setTotalCost(double value) Deprecated.google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated.setTotalDuration(com.google.protobuf.Duration value) The total duration should be equal to the sum of all durations above.setTotalDuration(com.google.protobuf.Duration.Builder builderForValue) The total duration should be equal to the sum of all durations above.setTravelDistanceMeters(double value) Total travel distance for a route or a solution.setTravelDuration(com.google.protobuf.Duration value) Total travel duration for a route or a solution.setTravelDuration(com.google.protobuf.Duration.Builder builderForValue) Total travel duration for a route or a solution.setVisitDuration(com.google.protobuf.Duration value) Total visit duration for a route or a solution.setVisitDuration(com.google.protobuf.Duration.Builder builderForValue) Total visit duration for a route or a solution.setWaitDuration(com.google.protobuf.Duration value) Total wait duration for a route or a solution.setWaitDuration(com.google.protobuf.Duration.Builder builderForValue) Total wait duration for a route or a solution.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<AggregatedMetrics.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<AggregatedMetrics.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AggregatedMetrics.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<AggregatedMetrics.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<AggregatedMetrics.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<AggregatedMetrics.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AggregatedMetrics.Builder>
-
mergeFrom
public AggregatedMetrics.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<AggregatedMetrics.Builder>- Throws:
IOException
-
getPerformedShipmentCount
public int getPerformedShipmentCount()Number of shipments performed. Note that a pickup and delivery pair only counts once.
int32 performed_shipment_count = 1;- Specified by:
getPerformedShipmentCountin interfaceAggregatedMetricsOrBuilder- Returns:
- The performedShipmentCount.
-
setPerformedShipmentCount
Number of shipments performed. Note that a pickup and delivery pair only counts once.
int32 performed_shipment_count = 1;- Parameters:
value- The performedShipmentCount to set.- Returns:
- This builder for chaining.
-
clearPerformedShipmentCount
Number of shipments performed. Note that a pickup and delivery pair only counts once.
int32 performed_shipment_count = 1;- Returns:
- This builder for chaining.
-
hasTravelDuration
public boolean hasTravelDuration()Total travel duration for a route or a solution.
.google.protobuf.Duration travel_duration = 2;- Specified by:
hasTravelDurationin interfaceAggregatedMetricsOrBuilder- Returns:
- Whether the travelDuration field is set.
-
getTravelDuration
public com.google.protobuf.Duration getTravelDuration()Total travel duration for a route or a solution.
.google.protobuf.Duration travel_duration = 2;- Specified by:
getTravelDurationin interfaceAggregatedMetricsOrBuilder- Returns:
- The travelDuration.
-
setTravelDuration
Total travel duration for a route or a solution.
.google.protobuf.Duration travel_duration = 2; -
setTravelDuration
public AggregatedMetrics.Builder setTravelDuration(com.google.protobuf.Duration.Builder builderForValue) Total travel duration for a route or a solution.
.google.protobuf.Duration travel_duration = 2; -
mergeTravelDuration
Total travel duration for a route or a solution.
.google.protobuf.Duration travel_duration = 2; -
clearTravelDuration
Total travel duration for a route or a solution.
.google.protobuf.Duration travel_duration = 2; -
getTravelDurationBuilder
public com.google.protobuf.Duration.Builder getTravelDurationBuilder()Total travel duration for a route or a solution.
.google.protobuf.Duration travel_duration = 2; -
getTravelDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder()Total travel duration for a route or a solution.
.google.protobuf.Duration travel_duration = 2;- Specified by:
getTravelDurationOrBuilderin interfaceAggregatedMetricsOrBuilder
-
hasWaitDuration
public boolean hasWaitDuration()Total wait duration for a route or a solution.
.google.protobuf.Duration wait_duration = 3;- Specified by:
hasWaitDurationin interfaceAggregatedMetricsOrBuilder- Returns:
- Whether the waitDuration field is set.
-
getWaitDuration
public com.google.protobuf.Duration getWaitDuration()Total wait duration for a route or a solution.
.google.protobuf.Duration wait_duration = 3;- Specified by:
getWaitDurationin interfaceAggregatedMetricsOrBuilder- Returns:
- The waitDuration.
-
setWaitDuration
Total wait duration for a route or a solution.
.google.protobuf.Duration wait_duration = 3; -
setWaitDuration
public AggregatedMetrics.Builder setWaitDuration(com.google.protobuf.Duration.Builder builderForValue) Total wait duration for a route or a solution.
.google.protobuf.Duration wait_duration = 3; -
mergeWaitDuration
Total wait duration for a route or a solution.
.google.protobuf.Duration wait_duration = 3; -
clearWaitDuration
Total wait duration for a route or a solution.
.google.protobuf.Duration wait_duration = 3; -
getWaitDurationBuilder
public com.google.protobuf.Duration.Builder getWaitDurationBuilder()Total wait duration for a route or a solution.
.google.protobuf.Duration wait_duration = 3; -
getWaitDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getWaitDurationOrBuilder()Total wait duration for a route or a solution.
.google.protobuf.Duration wait_duration = 3;- Specified by:
getWaitDurationOrBuilderin interfaceAggregatedMetricsOrBuilder
-
hasDelayDuration
public boolean hasDelayDuration()Total delay duration for a route or a solution.
.google.protobuf.Duration delay_duration = 4;- Specified by:
hasDelayDurationin interfaceAggregatedMetricsOrBuilder- Returns:
- Whether the delayDuration field is set.
-
getDelayDuration
public com.google.protobuf.Duration getDelayDuration()Total delay duration for a route or a solution.
.google.protobuf.Duration delay_duration = 4;- Specified by:
getDelayDurationin interfaceAggregatedMetricsOrBuilder- Returns:
- The delayDuration.
-
setDelayDuration
Total delay duration for a route or a solution.
.google.protobuf.Duration delay_duration = 4; -
setDelayDuration
public AggregatedMetrics.Builder setDelayDuration(com.google.protobuf.Duration.Builder builderForValue) Total delay duration for a route or a solution.
.google.protobuf.Duration delay_duration = 4; -
mergeDelayDuration
Total delay duration for a route or a solution.
.google.protobuf.Duration delay_duration = 4; -
clearDelayDuration
Total delay duration for a route or a solution.
.google.protobuf.Duration delay_duration = 4; -
getDelayDurationBuilder
public com.google.protobuf.Duration.Builder getDelayDurationBuilder()Total delay duration for a route or a solution.
.google.protobuf.Duration delay_duration = 4; -
getDelayDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getDelayDurationOrBuilder()Total delay duration for a route or a solution.
.google.protobuf.Duration delay_duration = 4;- Specified by:
getDelayDurationOrBuilderin interfaceAggregatedMetricsOrBuilder
-
hasBreakDuration
public boolean hasBreakDuration()Total break duration for a route or a solution.
.google.protobuf.Duration break_duration = 5;- Specified by:
hasBreakDurationin interfaceAggregatedMetricsOrBuilder- Returns:
- Whether the breakDuration field is set.
-
getBreakDuration
public com.google.protobuf.Duration getBreakDuration()Total break duration for a route or a solution.
.google.protobuf.Duration break_duration = 5;- Specified by:
getBreakDurationin interfaceAggregatedMetricsOrBuilder- Returns:
- The breakDuration.
-
setBreakDuration
Total break duration for a route or a solution.
.google.protobuf.Duration break_duration = 5; -
setBreakDuration
public AggregatedMetrics.Builder setBreakDuration(com.google.protobuf.Duration.Builder builderForValue) Total break duration for a route or a solution.
.google.protobuf.Duration break_duration = 5; -
mergeBreakDuration
Total break duration for a route or a solution.
.google.protobuf.Duration break_duration = 5; -
clearBreakDuration
Total break duration for a route or a solution.
.google.protobuf.Duration break_duration = 5; -
getBreakDurationBuilder
public com.google.protobuf.Duration.Builder getBreakDurationBuilder()Total break duration for a route or a solution.
.google.protobuf.Duration break_duration = 5; -
getBreakDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getBreakDurationOrBuilder()Total break duration for a route or a solution.
.google.protobuf.Duration break_duration = 5;- Specified by:
getBreakDurationOrBuilderin interfaceAggregatedMetricsOrBuilder
-
hasVisitDuration
public boolean hasVisitDuration()Total visit duration for a route or a solution.
.google.protobuf.Duration visit_duration = 6;- Specified by:
hasVisitDurationin interfaceAggregatedMetricsOrBuilder- Returns:
- Whether the visitDuration field is set.
-
getVisitDuration
public com.google.protobuf.Duration getVisitDuration()Total visit duration for a route or a solution.
.google.protobuf.Duration visit_duration = 6;- Specified by:
getVisitDurationin interfaceAggregatedMetricsOrBuilder- Returns:
- The visitDuration.
-
setVisitDuration
Total visit duration for a route or a solution.
.google.protobuf.Duration visit_duration = 6; -
setVisitDuration
public AggregatedMetrics.Builder setVisitDuration(com.google.protobuf.Duration.Builder builderForValue) Total visit duration for a route or a solution.
.google.protobuf.Duration visit_duration = 6; -
mergeVisitDuration
Total visit duration for a route or a solution.
.google.protobuf.Duration visit_duration = 6; -
clearVisitDuration
Total visit duration for a route or a solution.
.google.protobuf.Duration visit_duration = 6; -
getVisitDurationBuilder
public com.google.protobuf.Duration.Builder getVisitDurationBuilder()Total visit duration for a route or a solution.
.google.protobuf.Duration visit_duration = 6; -
getVisitDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getVisitDurationOrBuilder()Total visit duration for a route or a solution.
.google.protobuf.Duration visit_duration = 6;- Specified by:
getVisitDurationOrBuilderin interfaceAggregatedMetricsOrBuilder
-
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][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time] `-` [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time]
.google.protobuf.Duration total_duration = 7;- Specified by:
hasTotalDurationin interfaceAggregatedMetricsOrBuilder- Returns:
- Whether the totalDuration field is set.
-
getTotalDuration
public com.google.protobuf.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][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time] `-` [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time]
.google.protobuf.Duration total_duration = 7;- Specified by:
getTotalDurationin interfaceAggregatedMetricsOrBuilder- Returns:
- The totalDuration.
-
setTotalDuration
The total duration should be equal to the sum of all durations above. For routes, it also corresponds to: [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time] `-` [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time]
.google.protobuf.Duration total_duration = 7; -
setTotalDuration
public AggregatedMetrics.Builder setTotalDuration(com.google.protobuf.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][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time] `-` [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time]
.google.protobuf.Duration total_duration = 7; -
mergeTotalDuration
The total duration should be equal to the sum of all durations above. For routes, it also corresponds to: [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time] `-` [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time]
.google.protobuf.Duration total_duration = 7; -
clearTotalDuration
The total duration should be equal to the sum of all durations above. For routes, it also corresponds to: [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time] `-` [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time]
.google.protobuf.Duration total_duration = 7; -
getTotalDurationBuilder
public com.google.protobuf.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][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time] `-` [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time]
.google.protobuf.Duration total_duration = 7; -
getTotalDurationOrBuilder
public com.google.protobuf.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][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time] `-` [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time]
.google.protobuf.Duration total_duration = 7;- Specified by:
getTotalDurationOrBuilderin interfaceAggregatedMetricsOrBuilder
-
getTravelDistanceMeters
public double getTravelDistanceMeters()Total travel distance for a route or a solution.
double travel_distance_meters = 8;- Specified by:
getTravelDistanceMetersin interfaceAggregatedMetricsOrBuilder- Returns:
- The travelDistanceMeters.
-
setTravelDistanceMeters
Total travel distance for a route or a solution.
double travel_distance_meters = 8;- Parameters:
value- The travelDistanceMeters to set.- Returns:
- This builder for chaining.
-
clearTravelDistanceMeters
Total travel distance for a route or a solution.
double travel_distance_meters = 8;- Returns:
- This builder for chaining.
-
getMaxLoadsCount
public int getMaxLoadsCount()Description copied from interface:AggregatedMetricsOrBuilderMaximum 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][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] (resp. [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;- Specified by:
getMaxLoadsCountin interfaceAggregatedMetricsOrBuilder
-
containsMaxLoads
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][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] (resp. [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;- Specified by:
containsMaxLoadsin interfaceAggregatedMetricsOrBuilder
-
getMaxLoads
Deprecated.UsegetMaxLoadsMap()instead.- Specified by:
getMaxLoadsin interfaceAggregatedMetricsOrBuilder
-
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][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] (resp. [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;- Specified by:
getMaxLoadsMapin interfaceAggregatedMetricsOrBuilder
-
getMaxLoadsOrDefault
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][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] (resp. [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;- Specified by:
getMaxLoadsOrDefaultin interfaceAggregatedMetricsOrBuilder
-
getMaxLoadsOrThrow
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][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] (resp. [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;- Specified by:
getMaxLoadsOrThrowin interfaceAggregatedMetricsOrBuilder
-
clearMaxLoads
-
removeMaxLoads
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][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] (resp. [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; -
getMutableMaxLoads
Deprecated.Use alternate mutation accessors instead. -
putMaxLoads
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][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] (resp. [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; -
putAllMaxLoads
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][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] (resp. [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; -
putMaxLoadsBuilderIfAbsent
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][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] (resp. [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; -
getCostsCount
Deprecated.Description copied from interface:AggregatedMetricsOrBuilderDeprecated: Use [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs] and [OptimizeToursResponse.Metrics.costs][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.costs] instead.
map<string, double> costs = 10 [deprecated = true];- Specified by:
getCostsCountin interfaceAggregatedMetricsOrBuilder
-
containsCosts
Deprecated.Deprecated: Use [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs] and [OptimizeToursResponse.Metrics.costs][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.costs] instead.
map<string, double> costs = 10 [deprecated = true];- Specified by:
containsCostsin interfaceAggregatedMetricsOrBuilder
-
getCosts
Deprecated.UsegetCostsMap()instead.- Specified by:
getCostsin interfaceAggregatedMetricsOrBuilder
-
getCostsMap
Deprecated.Deprecated: Use [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs] and [OptimizeToursResponse.Metrics.costs][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.costs] instead.
map<string, double> costs = 10 [deprecated = true];- Specified by:
getCostsMapin interfaceAggregatedMetricsOrBuilder
-
getCostsOrDefault
Deprecated.Deprecated: Use [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs] and [OptimizeToursResponse.Metrics.costs][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.costs] instead.
map<string, double> costs = 10 [deprecated = true];- Specified by:
getCostsOrDefaultin interfaceAggregatedMetricsOrBuilder
-
getCostsOrThrow
Deprecated.Deprecated: Use [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs] and [OptimizeToursResponse.Metrics.costs][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.costs] instead.
map<string, double> costs = 10 [deprecated = true];- Specified by:
getCostsOrThrowin interfaceAggregatedMetricsOrBuilder
-
clearCosts
Deprecated. -
removeCosts
Deprecated.Deprecated: Use [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs] and [OptimizeToursResponse.Metrics.costs][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.costs] instead.
map<string, double> costs = 10 [deprecated = true]; -
getMutableCosts
Deprecated.Use alternate mutation accessors instead. -
putCosts
Deprecated.Deprecated: Use [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs] and [OptimizeToursResponse.Metrics.costs][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.costs] instead.
map<string, double> costs = 10 [deprecated = true]; -
putAllCosts
Deprecated.Deprecated: Use [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs] and [OptimizeToursResponse.Metrics.costs][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.costs] instead.
map<string, double> costs = 10 [deprecated = true]; -
getTotalCost
Deprecated.google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=2381Deprecated: Use [ShipmentRoute.route_total_cost][google.cloud.optimization.v1.ShipmentRoute.route_total_cost] and [OptimizeToursResponse.Metrics.total_cost][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.total_cost] instead.
double total_cost = 11 [deprecated = true];- Specified by:
getTotalCostin interfaceAggregatedMetricsOrBuilder- Returns:
- The totalCost.
-
setTotalCost
Deprecated.google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=2381Deprecated: Use [ShipmentRoute.route_total_cost][google.cloud.optimization.v1.ShipmentRoute.route_total_cost] and [OptimizeToursResponse.Metrics.total_cost][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.total_cost] instead.
double total_cost = 11 [deprecated = true];- Parameters:
value- The totalCost to set.- Returns:
- This builder for chaining.
-
clearTotalCost
Deprecated.google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=2381Deprecated: Use [ShipmentRoute.route_total_cost][google.cloud.optimization.v1.ShipmentRoute.route_total_cost] and [OptimizeToursResponse.Metrics.total_cost][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.total_cost] instead.
double total_cost = 11 [deprecated = true];- Returns:
- This builder for chaining.
-