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 class
AggregatedMetrics.Builder
Aggregated 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 int
BREAK_DURATION_FIELD_NUMBER
static int
COSTS_FIELD_NUMBER
static int
DELAY_DURATION_FIELD_NUMBER
static int
MAX_LOADS_FIELD_NUMBER
static int
PERFORMED_SHIPMENT_COUNT_FIELD_NUMBER
static int
TOTAL_COST_FIELD_NUMBER
static int
TOTAL_DURATION_FIELD_NUMBER
static int
TRAVEL_DISTANCE_METERS_FIELD_NUMBER
static int
TRAVEL_DURATION_FIELD_NUMBER
static int
VISIT_DURATION_FIELD_NUMBER
static int
WAIT_DURATION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsCosts(String key)
Deprecated.boolean
containsMaxLoads(String key)
Maximum load achieved over the entire route (resp.boolean
equals(Object obj)
com.google.protobuf.Duration
getBreakDuration()
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.static AggregatedMetrics
getDefaultInstance()
AggregatedMetrics
getDefaultInstanceForType()
com.google.protobuf.Duration
getDelayDuration()
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()
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.com.google.protobuf.Parser<AggregatedMetrics>
getParserForType()
int
getPerformedShipmentCount()
Number of shipments performed.int
getSerializedSize()
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.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.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.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.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.int
hashCode()
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)
boolean
isInitialized()
static AggregatedMetrics.Builder
newBuilder()
static AggregatedMetrics.Builder
newBuilder(AggregatedMetrics prototype)
AggregatedMetrics.Builder
newBuilderForType()
protected AggregatedMetrics.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static AggregatedMetrics
parseDelimitedFrom(InputStream input)
static AggregatedMetrics
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AggregatedMetrics
parseFrom(byte[] data)
static AggregatedMetrics
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AggregatedMetrics
parseFrom(com.google.protobuf.ByteString data)
static AggregatedMetrics
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AggregatedMetrics
parseFrom(com.google.protobuf.CodedInputStream input)
static AggregatedMetrics
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AggregatedMetrics
parseFrom(InputStream input)
static AggregatedMetrics
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AggregatedMetrics
parseFrom(ByteBuffer data)
static AggregatedMetrics
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<AggregatedMetrics>
parser()
AggregatedMetrics.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
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
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in 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:
getPerformedShipmentCount
in 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:
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
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
-
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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AggregatedMetrics.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AggregatedMetrics getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-