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.GeneratedMessageV3.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.GeneratedMessageV3.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 typegoogle.cloud.optimization.v1.AggregatedMetrics
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AggregatedMetrics.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AggregatedMetricsbuild()AggregatedMetricsbuildPartial()AggregatedMetrics.Builderclear()AggregatedMetrics.BuilderclearBreakDuration()Total break duration for a route or a solution.AggregatedMetrics.BuilderclearCosts()Deprecated.AggregatedMetrics.BuilderclearDelayDuration()Total delay duration for a route or a solution.AggregatedMetrics.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AggregatedMetrics.BuilderclearMaxLoads()AggregatedMetrics.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AggregatedMetrics.BuilderclearPerformedShipmentCount()Number of shipments performed.AggregatedMetrics.BuilderclearTotalCost()Deprecated.google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated.AggregatedMetrics.BuilderclearTotalDuration()The total duration should be equal to the sum of all durations above.AggregatedMetrics.BuilderclearTravelDistanceMeters()Total travel distance for a route or a solution.AggregatedMetrics.BuilderclearTravelDuration()Total travel duration for a route or a solution.AggregatedMetrics.BuilderclearVisitDuration()Total visit duration for a route or a solution.AggregatedMetrics.BuilderclearWaitDuration()Total wait duration for a route or a solution.AggregatedMetrics.Builderclone()booleancontainsCosts(String key)Deprecated.booleancontainsMaxLoads(String key)Maximum load achieved over the entire route (resp.com.google.protobuf.DurationgetBreakDuration()Total break duration for a route or a solution.com.google.protobuf.Duration.BuildergetBreakDurationBuilder()Total break duration for a route or a solution.com.google.protobuf.DurationOrBuildergetBreakDurationOrBuilder()Total break duration for a route or a solution.Map<String,Double>getCosts()Deprecated.intgetCostsCount()Deprecated.Map<String,Double>getCostsMap()Deprecated.doublegetCostsOrDefault(String key, double defaultValue)Deprecated.doublegetCostsOrThrow(String key)Deprecated.AggregatedMetricsgetDefaultInstanceForType()com.google.protobuf.DurationgetDelayDuration()Total delay duration for a route or a solution.com.google.protobuf.Duration.BuildergetDelayDurationBuilder()Total delay duration for a route or a solution.com.google.protobuf.DurationOrBuildergetDelayDurationOrBuilder()Total delay duration for a route or a solution.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Map<String,ShipmentRoute.VehicleLoad>getMaxLoads()Deprecated.intgetMaxLoadsCount()Maximum load achieved over the entire route (resp.Map<String,ShipmentRoute.VehicleLoad>getMaxLoadsMap()Maximum load achieved over the entire route (resp.ShipmentRoute.VehicleLoadgetMaxLoadsOrDefault(String key, ShipmentRoute.VehicleLoad defaultValue)Maximum load achieved over the entire route (resp.ShipmentRoute.VehicleLoadgetMaxLoadsOrThrow(String key)Maximum load achieved over the entire route (resp.Map<String,Double>getMutableCosts()Deprecated.Map<String,ShipmentRoute.VehicleLoad>getMutableMaxLoads()Deprecated.intgetPerformedShipmentCount()Number of shipments performed.doublegetTotalCost()Deprecated.google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated.com.google.protobuf.DurationgetTotalDuration()The total duration should be equal to the sum of all durations above.com.google.protobuf.Duration.BuildergetTotalDurationBuilder()The total duration should be equal to the sum of all durations above.com.google.protobuf.DurationOrBuildergetTotalDurationOrBuilder()The total duration should be equal to the sum of all durations above.doublegetTravelDistanceMeters()Total travel distance for a route or a solution.com.google.protobuf.DurationgetTravelDuration()Total travel duration for a route or a solution.com.google.protobuf.Duration.BuildergetTravelDurationBuilder()Total travel duration for a route or a solution.com.google.protobuf.DurationOrBuildergetTravelDurationOrBuilder()Total travel duration for a route or a solution.com.google.protobuf.DurationgetVisitDuration()Total visit duration for a route or a solution.com.google.protobuf.Duration.BuildergetVisitDurationBuilder()Total visit duration for a route or a solution.com.google.protobuf.DurationOrBuildergetVisitDurationOrBuilder()Total visit duration for a route or a solution.com.google.protobuf.DurationgetWaitDuration()Total wait duration for a route or a solution.com.google.protobuf.Duration.BuildergetWaitDurationBuilder()Total wait duration for a route or a solution.com.google.protobuf.DurationOrBuildergetWaitDurationOrBuilder()Total wait duration for a route or a solution.booleanhasBreakDuration()Total break duration for a route or a solution.booleanhasDelayDuration()Total delay duration for a route or a solution.booleanhasTotalDuration()The total duration should be equal to the sum of all durations above.booleanhasTravelDuration()Total travel duration for a route or a solution.booleanhasVisitDuration()Total visit duration for a route or a solution.booleanhasWaitDuration()Total wait duration for a route or a solution.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()AggregatedMetrics.BuildermergeBreakDuration(com.google.protobuf.Duration value)Total break duration for a route or a solution.AggregatedMetrics.BuildermergeDelayDuration(com.google.protobuf.Duration value)Total delay duration for a route or a solution.AggregatedMetrics.BuildermergeFrom(AggregatedMetrics other)AggregatedMetrics.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AggregatedMetrics.BuildermergeFrom(com.google.protobuf.Message other)AggregatedMetrics.BuildermergeTotalDuration(com.google.protobuf.Duration value)The total duration should be equal to the sum of all durations above.AggregatedMetrics.BuildermergeTravelDuration(com.google.protobuf.Duration value)Total travel duration for a route or a solution.AggregatedMetrics.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AggregatedMetrics.BuildermergeVisitDuration(com.google.protobuf.Duration value)Total visit duration for a route or a solution.AggregatedMetrics.BuildermergeWaitDuration(com.google.protobuf.Duration value)Total wait duration for a route or a solution.AggregatedMetrics.BuilderputAllCosts(Map<String,Double> values)Deprecated.AggregatedMetrics.BuilderputAllMaxLoads(Map<String,ShipmentRoute.VehicleLoad> values)Maximum load achieved over the entire route (resp.AggregatedMetrics.BuilderputCosts(String key, double value)Deprecated.AggregatedMetrics.BuilderputMaxLoads(String key, ShipmentRoute.VehicleLoad value)Maximum load achieved over the entire route (resp.AggregatedMetrics.BuilderremoveCosts(String key)Deprecated.AggregatedMetrics.BuilderremoveMaxLoads(String key)Maximum load achieved over the entire route (resp.AggregatedMetrics.BuildersetBreakDuration(com.google.protobuf.Duration value)Total break duration for a route or a solution.AggregatedMetrics.BuildersetBreakDuration(com.google.protobuf.Duration.Builder builderForValue)Total break duration for a route or a solution.AggregatedMetrics.BuildersetDelayDuration(com.google.protobuf.Duration value)Total delay duration for a route or a solution.AggregatedMetrics.BuildersetDelayDuration(com.google.protobuf.Duration.Builder builderForValue)Total delay duration for a route or a solution.AggregatedMetrics.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AggregatedMetrics.BuildersetPerformedShipmentCount(int value)Number of shipments performed.AggregatedMetrics.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)AggregatedMetrics.BuildersetTotalCost(double value)Deprecated.google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated.AggregatedMetrics.BuildersetTotalDuration(com.google.protobuf.Duration value)The total duration should be equal to the sum of all durations above.AggregatedMetrics.BuildersetTotalDuration(com.google.protobuf.Duration.Builder builderForValue)The total duration should be equal to the sum of all durations above.AggregatedMetrics.BuildersetTravelDistanceMeters(double value)Total travel distance for a route or a solution.AggregatedMetrics.BuildersetTravelDuration(com.google.protobuf.Duration value)Total travel duration for a route or a solution.AggregatedMetrics.BuildersetTravelDuration(com.google.protobuf.Duration.Builder builderForValue)Total travel duration for a route or a solution.AggregatedMetrics.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AggregatedMetrics.BuildersetVisitDuration(com.google.protobuf.Duration value)Total visit duration for a route or a solution.AggregatedMetrics.BuildersetVisitDuration(com.google.protobuf.Duration.Builder builderForValue)Total visit duration for a route or a solution.AggregatedMetrics.BuildersetWaitDuration(com.google.protobuf.Duration value)Total wait duration for a route or a solution.AggregatedMetrics.BuildersetWaitDuration(com.google.protobuf.Duration.Builder builderForValue)Total wait duration for a route or a solution.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AggregatedMetrics.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AggregatedMetrics.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AggregatedMetrics.Builder>
-
clear
public AggregatedMetrics.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<AggregatedMetrics.Builder>
-
getDefaultInstanceForType
public AggregatedMetrics getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AggregatedMetrics build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AggregatedMetrics buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AggregatedMetrics.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AggregatedMetrics.Builder>
-
setField
public AggregatedMetrics.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AggregatedMetrics.Builder>
-
clearField
public AggregatedMetrics.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AggregatedMetrics.Builder>
-
clearOneof
public AggregatedMetrics.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AggregatedMetrics.Builder>
-
setRepeatedField
public AggregatedMetrics.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AggregatedMetrics.Builder>
-
addRepeatedField
public AggregatedMetrics.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AggregatedMetrics.Builder>
-
mergeFrom
public AggregatedMetrics.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AggregatedMetrics.Builder>
-
mergeFrom
public AggregatedMetrics.Builder mergeFrom(AggregatedMetrics other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
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;- Parameters:
value- The performedShipmentCount to set.- Returns:
- This builder for chaining.
-
clearPerformedShipmentCount
public AggregatedMetrics.Builder 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
public AggregatedMetrics.Builder setTravelDuration(com.google.protobuf.Duration value)
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
public AggregatedMetrics.Builder mergeTravelDuration(com.google.protobuf.Duration value)
Total travel duration for a route or a solution.
.google.protobuf.Duration travel_duration = 2;
-
clearTravelDuration
public AggregatedMetrics.Builder 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
public AggregatedMetrics.Builder setWaitDuration(com.google.protobuf.Duration value)
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
public AggregatedMetrics.Builder mergeWaitDuration(com.google.protobuf.Duration value)
Total wait duration for a route or a solution.
.google.protobuf.Duration wait_duration = 3;
-
clearWaitDuration
public AggregatedMetrics.Builder 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
public AggregatedMetrics.Builder setDelayDuration(com.google.protobuf.Duration value)
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
public AggregatedMetrics.Builder mergeDelayDuration(com.google.protobuf.Duration value)
Total delay duration for a route or a solution.
.google.protobuf.Duration delay_duration = 4;
-
clearDelayDuration
public AggregatedMetrics.Builder 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
public AggregatedMetrics.Builder setBreakDuration(com.google.protobuf.Duration value)
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
public AggregatedMetrics.Builder mergeBreakDuration(com.google.protobuf.Duration value)
Total break duration for a route or a solution.
.google.protobuf.Duration break_duration = 5;
-
clearBreakDuration
public AggregatedMetrics.Builder 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
public AggregatedMetrics.Builder setVisitDuration(com.google.protobuf.Duration value)
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
public AggregatedMetrics.Builder mergeVisitDuration(com.google.protobuf.Duration value)
Total visit duration for a route or a solution.
.google.protobuf.Duration visit_duration = 6;
-
clearVisitDuration
public AggregatedMetrics.Builder 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
public AggregatedMetrics.Builder setTotalDuration(com.google.protobuf.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][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
public AggregatedMetrics.Builder mergeTotalDuration(com.google.protobuf.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][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
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][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
public AggregatedMetrics.Builder setTravelDistanceMeters(double value)
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
public AggregatedMetrics.Builder 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
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][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 public Map<String,ShipmentRoute.VehicleLoad> getMaxLoads()
Deprecated.UsegetMaxLoadsMap()instead.- Specified by:
getMaxLoadsin interfaceAggregatedMetricsOrBuilder
-
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][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
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][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
public AggregatedMetrics.Builder clearMaxLoads()
-
removeMaxLoads
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][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 public Map<String,ShipmentRoute.VehicleLoad> getMutableMaxLoads()
Deprecated.Use alternate mutation accessors instead.
-
putMaxLoads
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][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
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][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 public int 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 public boolean containsCosts(String key)
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 public Map<String,Double> getCosts()
Deprecated.UsegetCostsMap()instead.- Specified by:
getCostsin interfaceAggregatedMetricsOrBuilder
-
getCostsMap
@Deprecated public Map<String,Double> 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 public double getCostsOrDefault(String key, double defaultValue)
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 public double getCostsOrThrow(String key)
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 public AggregatedMetrics.Builder clearCosts()
Deprecated.
-
removeCosts
@Deprecated public AggregatedMetrics.Builder removeCosts(String key)
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 public Map<String,Double> getMutableCosts()
Deprecated.Use alternate mutation accessors instead.
-
putCosts
@Deprecated public AggregatedMetrics.Builder putCosts(String key, double value)
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 public AggregatedMetrics.Builder putAllCosts(Map<String,Double> values)
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 public double getTotalCost()
Deprecated.google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=2351Deprecated: 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 public AggregatedMetrics.Builder setTotalCost(double value)
Deprecated.google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=2351Deprecated: 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 public AggregatedMetrics.Builder clearTotalCost()
Deprecated.google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=2351Deprecated: 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.
-
setUnknownFields
public final AggregatedMetrics.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AggregatedMetrics.Builder>
-
mergeUnknownFields
public final AggregatedMetrics.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AggregatedMetrics.Builder>
-
-