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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AggregatedMetrics
build()
AggregatedMetrics
buildPartial()
AggregatedMetrics.Builder
clear()
AggregatedMetrics.Builder
clearBreakDuration()
Total break duration for a route or a solution.AggregatedMetrics.Builder
clearCosts()
Deprecated.AggregatedMetrics.Builder
clearDelayDuration()
Total delay duration for a route or a solution.AggregatedMetrics.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
AggregatedMetrics.Builder
clearMaxLoads()
AggregatedMetrics.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
AggregatedMetrics.Builder
clearPerformedShipmentCount()
Number of shipments performed.AggregatedMetrics.Builder
clearTotalCost()
Deprecated.google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated.AggregatedMetrics.Builder
clearTotalDuration()
The total duration should be equal to the sum of all durations above.AggregatedMetrics.Builder
clearTravelDistanceMeters()
Total travel distance for a route or a solution.AggregatedMetrics.Builder
clearTravelDuration()
Total travel duration for a route or a solution.AggregatedMetrics.Builder
clearVisitDuration()
Total visit duration for a route or a solution.AggregatedMetrics.Builder
clearWaitDuration()
Total wait duration for a route or a solution.AggregatedMetrics.Builder
clone()
boolean
containsCosts(String key)
Deprecated.boolean
containsMaxLoads(String key)
Maximum load achieved over the entire route (resp.com.google.protobuf.Duration
getBreakDuration()
Total break duration for a route or a solution.com.google.protobuf.Duration.Builder
getBreakDurationBuilder()
Total break duration for a route or a solution.com.google.protobuf.DurationOrBuilder
getBreakDurationOrBuilder()
Total break duration for a route or a solution.Map<String,Double>
getCosts()
Deprecated.int
getCostsCount()
Deprecated.Map<String,Double>
getCostsMap()
Deprecated.double
getCostsOrDefault(String key, double defaultValue)
Deprecated.double
getCostsOrThrow(String key)
Deprecated.AggregatedMetrics
getDefaultInstanceForType()
com.google.protobuf.Duration
getDelayDuration()
Total delay duration for a route or a solution.com.google.protobuf.Duration.Builder
getDelayDurationBuilder()
Total delay duration for a route or a solution.com.google.protobuf.DurationOrBuilder
getDelayDurationOrBuilder()
Total delay duration for a route or a solution.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Map<String,ShipmentRoute.VehicleLoad>
getMaxLoads()
Deprecated.int
getMaxLoadsCount()
Maximum load achieved over the entire route (resp.Map<String,ShipmentRoute.VehicleLoad>
getMaxLoadsMap()
Maximum load achieved over the entire route (resp.ShipmentRoute.VehicleLoad
getMaxLoadsOrDefault(String key, ShipmentRoute.VehicleLoad defaultValue)
Maximum load achieved over the entire route (resp.ShipmentRoute.VehicleLoad
getMaxLoadsOrThrow(String key)
Maximum load achieved over the entire route (resp.Map<String,Double>
getMutableCosts()
Deprecated.Map<String,ShipmentRoute.VehicleLoad>
getMutableMaxLoads()
Deprecated.int
getPerformedShipmentCount()
Number of shipments performed.double
getTotalCost()
Deprecated.google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated.com.google.protobuf.Duration
getTotalDuration()
The total duration should be equal to the sum of all durations above.com.google.protobuf.Duration.Builder
getTotalDurationBuilder()
The total duration should be equal to the sum of all durations above.com.google.protobuf.DurationOrBuilder
getTotalDurationOrBuilder()
The total duration should be equal to the sum of all durations above.double
getTravelDistanceMeters()
Total travel distance for a route or a solution.com.google.protobuf.Duration
getTravelDuration()
Total travel duration for a route or a solution.com.google.protobuf.Duration.Builder
getTravelDurationBuilder()
Total travel duration for a route or a solution.com.google.protobuf.DurationOrBuilder
getTravelDurationOrBuilder()
Total travel duration for a route or a solution.com.google.protobuf.Duration
getVisitDuration()
Total visit duration for a route or a solution.com.google.protobuf.Duration.Builder
getVisitDurationBuilder()
Total visit duration for a route or a solution.com.google.protobuf.DurationOrBuilder
getVisitDurationOrBuilder()
Total visit duration for a route or a solution.com.google.protobuf.Duration
getWaitDuration()
Total wait duration for a route or a solution.com.google.protobuf.Duration.Builder
getWaitDurationBuilder()
Total wait duration for a route or a solution.com.google.protobuf.DurationOrBuilder
getWaitDurationOrBuilder()
Total wait duration for a route or a solution.boolean
hasBreakDuration()
Total break duration for a route or a solution.boolean
hasDelayDuration()
Total delay duration for a route or a solution.boolean
hasTotalDuration()
The total duration should be equal to the sum of all durations above.boolean
hasTravelDuration()
Total travel duration for a route or a solution.boolean
hasVisitDuration()
Total visit duration for a route or a solution.boolean
hasWaitDuration()
Total wait duration for a route or a solution.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
AggregatedMetrics.Builder
mergeBreakDuration(com.google.protobuf.Duration value)
Total break duration for a route or a solution.AggregatedMetrics.Builder
mergeDelayDuration(com.google.protobuf.Duration value)
Total delay duration for a route or a solution.AggregatedMetrics.Builder
mergeFrom(AggregatedMetrics other)
AggregatedMetrics.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AggregatedMetrics.Builder
mergeFrom(com.google.protobuf.Message other)
AggregatedMetrics.Builder
mergeTotalDuration(com.google.protobuf.Duration value)
The total duration should be equal to the sum of all durations above.AggregatedMetrics.Builder
mergeTravelDuration(com.google.protobuf.Duration value)
Total travel duration for a route or a solution.AggregatedMetrics.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AggregatedMetrics.Builder
mergeVisitDuration(com.google.protobuf.Duration value)
Total visit duration for a route or a solution.AggregatedMetrics.Builder
mergeWaitDuration(com.google.protobuf.Duration value)
Total wait duration for a route or a solution.AggregatedMetrics.Builder
putAllCosts(Map<String,Double> values)
Deprecated.AggregatedMetrics.Builder
putAllMaxLoads(Map<String,ShipmentRoute.VehicleLoad> values)
Maximum load achieved over the entire route (resp.AggregatedMetrics.Builder
putCosts(String key, double value)
Deprecated.AggregatedMetrics.Builder
putMaxLoads(String key, ShipmentRoute.VehicleLoad value)
Maximum load achieved over the entire route (resp.AggregatedMetrics.Builder
removeCosts(String key)
Deprecated.AggregatedMetrics.Builder
removeMaxLoads(String key)
Maximum load achieved over the entire route (resp.AggregatedMetrics.Builder
setBreakDuration(com.google.protobuf.Duration value)
Total break duration for a route or a solution.AggregatedMetrics.Builder
setBreakDuration(com.google.protobuf.Duration.Builder builderForValue)
Total break duration for a route or a solution.AggregatedMetrics.Builder
setDelayDuration(com.google.protobuf.Duration value)
Total delay duration for a route or a solution.AggregatedMetrics.Builder
setDelayDuration(com.google.protobuf.Duration.Builder builderForValue)
Total delay duration for a route or a solution.AggregatedMetrics.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AggregatedMetrics.Builder
setPerformedShipmentCount(int value)
Number of shipments performed.AggregatedMetrics.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
AggregatedMetrics.Builder
setTotalCost(double value)
Deprecated.google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated.AggregatedMetrics.Builder
setTotalDuration(com.google.protobuf.Duration value)
The total duration should be equal to the sum of all durations above.AggregatedMetrics.Builder
setTotalDuration(com.google.protobuf.Duration.Builder builderForValue)
The total duration should be equal to the sum of all durations above.AggregatedMetrics.Builder
setTravelDistanceMeters(double value)
Total travel distance for a route or a solution.AggregatedMetrics.Builder
setTravelDuration(com.google.protobuf.Duration value)
Total travel duration for a route or a solution.AggregatedMetrics.Builder
setTravelDuration(com.google.protobuf.Duration.Builder builderForValue)
Total travel duration for a route or a solution.AggregatedMetrics.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AggregatedMetrics.Builder
setVisitDuration(com.google.protobuf.Duration value)
Total visit duration for a route or a solution.AggregatedMetrics.Builder
setVisitDuration(com.google.protobuf.Duration.Builder builderForValue)
Total visit duration for a route or a solution.AggregatedMetrics.Builder
setWaitDuration(com.google.protobuf.Duration value)
Total wait duration for a route or a solution.AggregatedMetrics.Builder
setWaitDuration(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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregatedMetrics.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregatedMetrics.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregatedMetrics.Builder>
-
clear
public AggregatedMetrics.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregatedMetrics.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregatedMetrics.Builder>
-
getDefaultInstanceForType
public AggregatedMetrics getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AggregatedMetrics build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AggregatedMetrics buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AggregatedMetrics.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregatedMetrics.Builder>
-
setField
public AggregatedMetrics.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregatedMetrics.Builder>
-
clearField
public AggregatedMetrics.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregatedMetrics.Builder>
-
clearOneof
public AggregatedMetrics.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregatedMetrics.Builder>
-
setRepeatedField
public AggregatedMetrics.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregatedMetrics.Builder>
-
addRepeatedField
public AggregatedMetrics.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregatedMetrics.Builder>
-
mergeFrom
public AggregatedMetrics.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AggregatedMetrics.Builder>
-
mergeFrom
public AggregatedMetrics.Builder mergeFrom(AggregatedMetrics other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getPerformedShipmentCount
in 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:
hasTravelDuration
in 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:
getTravelDuration
in 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:
getTravelDurationOrBuilder
in interfaceAggregatedMetricsOrBuilder
-
hasWaitDuration
public boolean hasWaitDuration()
Total wait duration for a route or a solution.
.google.protobuf.Duration wait_duration = 3;
- Specified by:
hasWaitDuration
in 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:
getWaitDuration
in 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:
getWaitDurationOrBuilder
in interfaceAggregatedMetricsOrBuilder
-
hasDelayDuration
public boolean hasDelayDuration()
Total delay duration for a route or a solution.
.google.protobuf.Duration delay_duration = 4;
- Specified by:
hasDelayDuration
in 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:
getDelayDuration
in 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:
getDelayDurationOrBuilder
in interfaceAggregatedMetricsOrBuilder
-
hasBreakDuration
public boolean hasBreakDuration()
Total break duration for a route or a solution.
.google.protobuf.Duration break_duration = 5;
- Specified by:
hasBreakDuration
in 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:
getBreakDuration
in 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:
getBreakDurationOrBuilder
in interfaceAggregatedMetricsOrBuilder
-
hasVisitDuration
public boolean hasVisitDuration()
Total visit duration for a route or a solution.
.google.protobuf.Duration visit_duration = 6;
- Specified by:
hasVisitDuration
in 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:
getVisitDuration
in 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:
getVisitDurationOrBuilder
in 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:
hasTotalDuration
in 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:
getTotalDuration
in 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:
getTotalDurationOrBuilder
in interfaceAggregatedMetricsOrBuilder
-
getTravelDistanceMeters
public double getTravelDistanceMeters()
Total travel distance for a route or a solution.
double travel_distance_meters = 8;
- Specified by:
getTravelDistanceMeters
in 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:AggregatedMetricsOrBuilder
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:
getMaxLoadsCount
in 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:
containsMaxLoads
in interfaceAggregatedMetricsOrBuilder
-
getMaxLoads
@Deprecated public Map<String,ShipmentRoute.VehicleLoad> getMaxLoads()
Deprecated.UsegetMaxLoadsMap()
instead.- Specified by:
getMaxLoads
in 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:
getMaxLoadsMap
in 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:
getMaxLoadsOrDefault
in 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:
getMaxLoadsOrThrow
in 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:AggregatedMetricsOrBuilder
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:
getCostsCount
in 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:
containsCosts
in interfaceAggregatedMetricsOrBuilder
-
getCosts
@Deprecated public Map<String,Double> getCosts()
Deprecated.UsegetCostsMap()
instead.- Specified by:
getCosts
in 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:
getCostsMap
in 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:
getCostsOrDefault
in 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:
getCostsOrThrow
in 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:
getTotalCost
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregatedMetrics.Builder>
-
mergeUnknownFields
public final AggregatedMetrics.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregatedMetrics.Builder>
-
-