Package com.google.cloud.optimization.v1
Class AggregatedMetrics
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.optimization.v1.AggregatedMetrics
-
- All Implemented Interfaces:
AggregatedMetricsOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class AggregatedMetrics extends com.google.protobuf.GeneratedMessageV3 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- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAggregatedMetrics.BuilderAggregated metrics for [ShipmentRoute][google.cloud.optimization.v1.ShipmentRoute] (resp.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intBREAK_DURATION_FIELD_NUMBERstatic intCOSTS_FIELD_NUMBERstatic intDELAY_DURATION_FIELD_NUMBERstatic intMAX_LOADS_FIELD_NUMBERstatic intPERFORMED_SHIPMENT_COUNT_FIELD_NUMBERstatic intTOTAL_COST_FIELD_NUMBERstatic intTOTAL_DURATION_FIELD_NUMBERstatic intTRAVEL_DISTANCE_METERS_FIELD_NUMBERstatic intTRAVEL_DURATION_FIELD_NUMBERstatic intVISIT_DURATION_FIELD_NUMBERstatic intWAIT_DURATION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsCosts(String key)Deprecated.booleancontainsMaxLoads(String key)Maximum load achieved over the entire route (resp.booleanequals(Object obj)com.google.protobuf.DurationgetBreakDuration()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.static AggregatedMetricsgetDefaultInstance()AggregatedMetricsgetDefaultInstanceForType()com.google.protobuf.DurationgetDelayDuration()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()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.com.google.protobuf.Parser<AggregatedMetrics>getParserForType()intgetPerformedShipmentCount()Number of shipments performed.intgetSerializedSize()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.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.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.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.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.inthashCode()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)booleanisInitialized()static AggregatedMetrics.BuildernewBuilder()static AggregatedMetrics.BuildernewBuilder(AggregatedMetrics prototype)AggregatedMetrics.BuildernewBuilderForType()protected AggregatedMetrics.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static AggregatedMetricsparseDelimitedFrom(InputStream input)static AggregatedMetricsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AggregatedMetricsparseFrom(byte[] data)static AggregatedMetricsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AggregatedMetricsparseFrom(com.google.protobuf.ByteString data)static AggregatedMetricsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AggregatedMetricsparseFrom(com.google.protobuf.CodedInputStream input)static AggregatedMetricsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AggregatedMetricsparseFrom(InputStream input)static AggregatedMetricsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AggregatedMetricsparseFrom(ByteBuffer data)static AggregatedMetricsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<AggregatedMetrics>parser()AggregatedMetrics.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
PERFORMED_SHIPMENT_COUNT_FIELD_NUMBER
public static final int PERFORMED_SHIPMENT_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRAVEL_DURATION_FIELD_NUMBER
public static final int TRAVEL_DURATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WAIT_DURATION_FIELD_NUMBER
public static final int WAIT_DURATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DELAY_DURATION_FIELD_NUMBER
public static final int DELAY_DURATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BREAK_DURATION_FIELD_NUMBER
public static final int BREAK_DURATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VISIT_DURATION_FIELD_NUMBER
public static final int VISIT_DURATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TOTAL_DURATION_FIELD_NUMBER
public static final int TOTAL_DURATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRAVEL_DISTANCE_METERS_FIELD_NUMBER
public static final int TRAVEL_DISTANCE_METERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_LOADS_FIELD_NUMBER
public static final int MAX_LOADS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COSTS_FIELD_NUMBER
public static final int COSTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TOTAL_COST_FIELD_NUMBER
public static final int TOTAL_COST_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
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
-
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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AggregatedMetrics parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AggregatedMetrics parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AggregatedMetrics parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AggregatedMetrics parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AggregatedMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AggregatedMetrics parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AggregatedMetrics parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AggregatedMetrics parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AggregatedMetrics parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AggregatedMetrics parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static AggregatedMetrics parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AggregatedMetrics parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public AggregatedMetrics.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AggregatedMetrics.Builder newBuilder()
-
newBuilder
public static AggregatedMetrics.Builder newBuilder(AggregatedMetrics prototype)
-
toBuilder
public AggregatedMetrics.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AggregatedMetrics.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AggregatedMetrics getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<AggregatedMetrics> parser()
-
getParserForType
public com.google.protobuf.Parser<AggregatedMetrics> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AggregatedMetrics getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-