publicfinalclass AggregatedMetricsextendsGeneratedMessageV3implementsAggregatedMetricsOrBuilder
Aggregated metrics for
ShipmentRoute (resp. for
OptimizeToursResponse
over all Transition
and/or Visit (resp. over
all ShipmentRoute) elements.
Protobuf type google.cloud.optimization.v1.AggregatedMetrics
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
Static Fields
BREAK_DURATION_FIELD_NUMBER
publicstaticfinalintBREAK_DURATION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
COSTS_FIELD_NUMBER
publicstaticfinalintCOSTS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
DELAY_DURATION_FIELD_NUMBER
publicstaticfinalintDELAY_DURATION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
MAX_LOADS_FIELD_NUMBER
publicstaticfinalintMAX_LOADS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
publicstaticfinalintPERFORMED_SHIPMENT_COUNT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
TOTAL_COST_FIELD_NUMBER
publicstaticfinalintTOTAL_COST_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
TOTAL_DURATION_FIELD_NUMBER
publicstaticfinalintTOTAL_DURATION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
TRAVEL_DISTANCE_METERS_FIELD_NUMBER
publicstaticfinalintTRAVEL_DISTANCE_METERS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
TRAVEL_DURATION_FIELD_NUMBER
publicstaticfinalintTRAVEL_DURATION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
VISIT_DURATION_FIELD_NUMBER
publicstaticfinalintVISIT_DURATION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
WAIT_DURATION_FIELD_NUMBER
publicstaticfinalintWAIT_DURATION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticAggregatedMetricsgetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticAggregatedMetrics.BuildernewBuilder()
newBuilder(AggregatedMetrics prototype)
publicstaticAggregatedMetrics.BuildernewBuilder(AggregatedMetricsprototype)
publicstaticAggregatedMetricsparseDelimitedFrom(InputStreaminput)
publicstaticAggregatedMetricsparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticAggregatedMetricsparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticAggregatedMetricsparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticAggregatedMetricsparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticAggregatedMetricsparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticAggregatedMetricsparseFrom(CodedInputStreaminput)
publicstaticAggregatedMetricsparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticAggregatedMetricsparseFrom(InputStreaminput)
publicstaticAggregatedMetricsparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticAggregatedMetricsparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticAggregatedMetricsparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<AggregatedMetrics>parser()
Methods
containsCosts(String key)
publicbooleancontainsCosts(Stringkey)
Deprecated: Use
ShipmentRoute.route_costs
and
OptimizeToursResponse.Metrics.costs
instead.
map<string, double> costs = 10 [deprecated = true];
| Parameter |
| Name |
Description |
key |
String
|
containsMaxLoads(String key)
publicbooleancontainsMaxLoads(Stringkey)
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
(resp.
ShipmentRoute.metrics.max_loads.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
| Parameter |
| Name |
Description |
key |
String
|
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getBreakDuration()
publicDurationgetBreakDuration()
Total break duration for a route or a solution.
.google.protobuf.Duration break_duration = 5;
| Returns |
| Type |
Description |
Duration |
The breakDuration.
|
getBreakDurationOrBuilder()
publicDurationOrBuildergetBreakDurationOrBuilder()
Total break duration for a route or a solution.
.google.protobuf.Duration break_duration = 5;
getCosts()
publicMap<String,Double>getCosts()
getCostsCount()
Deprecated: Use
ShipmentRoute.route_costs
and
OptimizeToursResponse.Metrics.costs
instead.
map<string, double> costs = 10 [deprecated = true];
| Returns |
| Type |
Description |
int |
getCostsMap()
publicMap<String,Double>getCostsMap()
Deprecated: Use
ShipmentRoute.route_costs
and
OptimizeToursResponse.Metrics.costs
instead.
map<string, double> costs = 10 [deprecated = true];
getCostsOrDefault(String key, double defaultValue)
publicdoublegetCostsOrDefault(Stringkey,doubledefaultValue)
Deprecated: Use
ShipmentRoute.route_costs
and
OptimizeToursResponse.Metrics.costs
instead.
map<string, double> costs = 10 [deprecated = true];
| Returns |
| Type |
Description |
double |
getCostsOrThrow(String key)
publicdoublegetCostsOrThrow(Stringkey)
Deprecated: Use
ShipmentRoute.route_costs
and
OptimizeToursResponse.Metrics.costs
instead.
map<string, double> costs = 10 [deprecated = true];
| Parameter |
| Name |
Description |
key |
String
|
| Returns |
| Type |
Description |
double |
getDefaultInstanceForType()
publicAggregatedMetricsgetDefaultInstanceForType()
getDelayDuration()
publicDurationgetDelayDuration()
Total delay duration for a route or a solution.
.google.protobuf.Duration delay_duration = 4;
| Returns |
| Type |
Description |
Duration |
The delayDuration.
|
getDelayDurationOrBuilder()
publicDurationOrBuildergetDelayDurationOrBuilder()
Total delay duration for a route or a solution.
.google.protobuf.Duration delay_duration = 4;
getMaxLoads()
publicMap<String,ShipmentRoute.VehicleLoad>getMaxLoads()
getMaxLoadsCount()
publicintgetMaxLoadsCount()
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
(resp.
ShipmentRoute.metrics.max_loads.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
| Returns |
| Type |
Description |
int |
getMaxLoadsMap()
publicMap<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
(resp.
ShipmentRoute.metrics.max_loads.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
getMaxLoadsOrDefault(String key, ShipmentRoute.VehicleLoad defaultValue)
publicShipmentRoute.VehicleLoadgetMaxLoadsOrDefault(Stringkey,ShipmentRoute.VehicleLoaddefaultValue)
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
(resp.
ShipmentRoute.metrics.max_loads.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
getMaxLoadsOrThrow(String key)
publicShipmentRoute.VehicleLoadgetMaxLoadsOrThrow(Stringkey)
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
(resp.
ShipmentRoute.metrics.max_loads.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
| Parameter |
| Name |
Description |
key |
String
|
getParserForType()
publicParser<AggregatedMetrics>getParserForType()
Overrides
publicintgetPerformedShipmentCount()
Number of shipments performed. Note that a pickup and delivery pair only
counts once.
int32 performed_shipment_count = 1;
| Returns |
| Type |
Description |
int |
The performedShipmentCount.
|
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
getTotalCost() (deprecated)
publicdoublegetTotalCost()
Deprecated. google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. See
google/cloud/optimization/v1/fleet_routing.proto;l=2351
Deprecated: Use
ShipmentRoute.route_total_cost
and
OptimizeToursResponse.Metrics.total_cost
instead.
double total_cost = 11 [deprecated = true];
| Returns |
| Type |
Description |
double |
The totalCost.
|
getTotalDuration()
publicDurationgetTotalDuration()
The total duration should be equal to the sum of all durations above.
For routes, it also corresponds to:
ShipmentRoute.vehicle_end_time
-
ShipmentRoute.vehicle_start_time
.google.protobuf.Duration total_duration = 7;
| Returns |
| Type |
Description |
Duration |
The totalDuration.
|
getTotalDurationOrBuilder()
publicDurationOrBuildergetTotalDurationOrBuilder()
The total duration should be equal to the sum of all durations above.
For routes, it also corresponds to:
ShipmentRoute.vehicle_end_time
-
ShipmentRoute.vehicle_start_time
.google.protobuf.Duration total_duration = 7;
getTravelDistanceMeters()
publicdoublegetTravelDistanceMeters()
Total travel distance for a route or a solution.
double travel_distance_meters = 8;
| Returns |
| Type |
Description |
double |
The travelDistanceMeters.
|
getTravelDuration()
publicDurationgetTravelDuration()
Total travel duration for a route or a solution.
.google.protobuf.Duration travel_duration = 2;
| Returns |
| Type |
Description |
Duration |
The travelDuration.
|
getTravelDurationOrBuilder()
publicDurationOrBuildergetTravelDurationOrBuilder()
Total travel duration for a route or a solution.
.google.protobuf.Duration travel_duration = 2;
getVisitDuration()
publicDurationgetVisitDuration()
Total visit duration for a route or a solution.
.google.protobuf.Duration visit_duration = 6;
| Returns |
| Type |
Description |
Duration |
The visitDuration.
|
getVisitDurationOrBuilder()
publicDurationOrBuildergetVisitDurationOrBuilder()
Total visit duration for a route or a solution.
.google.protobuf.Duration visit_duration = 6;
getWaitDuration()
publicDurationgetWaitDuration()
Total wait duration for a route or a solution.
.google.protobuf.Duration wait_duration = 3;
| Returns |
| Type |
Description |
Duration |
The waitDuration.
|
getWaitDurationOrBuilder()
publicDurationOrBuildergetWaitDurationOrBuilder()
Total wait duration for a route or a solution.
.google.protobuf.Duration wait_duration = 3;
hasBreakDuration()
publicbooleanhasBreakDuration()
Total break duration for a route or a solution.
.google.protobuf.Duration break_duration = 5;
| Returns |
| Type |
Description |
boolean |
Whether the breakDuration field is set.
|
hasDelayDuration()
publicbooleanhasDelayDuration()
Total delay duration for a route or a solution.
.google.protobuf.Duration delay_duration = 4;
| Returns |
| Type |
Description |
boolean |
Whether the delayDuration field is set.
|
hasTotalDuration()
publicbooleanhasTotalDuration()
The total duration should be equal to the sum of all durations above.
For routes, it also corresponds to:
ShipmentRoute.vehicle_end_time
-
ShipmentRoute.vehicle_start_time
.google.protobuf.Duration total_duration = 7;
| Returns |
| Type |
Description |
boolean |
Whether the totalDuration field is set.
|
hasTravelDuration()
publicbooleanhasTravelDuration()
Total travel duration for a route or a solution.
.google.protobuf.Duration travel_duration = 2;
| Returns |
| Type |
Description |
boolean |
Whether the travelDuration field is set.
|
hasVisitDuration()
publicbooleanhasVisitDuration()
Total visit duration for a route or a solution.
.google.protobuf.Duration visit_duration = 6;
| Returns |
| Type |
Description |
boolean |
Whether the visitDuration field is set.
|
hasWaitDuration()
publicbooleanhasWaitDuration()
Total wait duration for a route or a solution.
.google.protobuf.Duration wait_duration = 3;
| Returns |
| Type |
Description |
boolean |
Whether the waitDuration field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protectedMapFieldinternalGetMapField(intnumber)
| Parameter |
| Name |
Description |
number |
int
|
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicAggregatedMetrics.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedAggregatedMetrics.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicAggregatedMetrics.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides