Package com.google.cloud.optimization.v1
Class OptimizeToursResponse.Metrics
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics
- All Implemented Interfaces:
OptimizeToursResponse.MetricsOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- OptimizeToursResponse
public static final class OptimizeToursResponse.Metrics
extends com.google.protobuf.GeneratedMessage
implements OptimizeToursResponse.MetricsOrBuilder
Overall metrics, aggregated over all routes.Protobuf type
google.cloud.optimization.v1.OptimizeToursResponse.Metrics- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOverall metrics, aggregated over all routes.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsCosts(String key) Cost of the solution, broken down by cost-related request fields.booleanAggregated over the routes.Aggregated over the routes.getCosts()Deprecated.intCost of the solution, broken down by cost-related request fields.Cost of the solution, broken down by cost-related request fields.doublegetCostsOrDefault(String key, double defaultValue) Cost of the solution, broken down by cost-related request fields.doublegetCostsOrThrow(String key) Cost of the solution, broken down by cost-related request fields.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampThe earliest start time for a used vehicle, computed as the minimum over all used vehicles of [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time].com.google.protobuf.TimestampOrBuilderThe earliest start time for a used vehicle, computed as the minimum over all used vehicles of [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time].com.google.protobuf.TimestampThe latest end time for a used vehicle, computed as the maximum over all used vehicles of [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time].com.google.protobuf.TimestampOrBuilderThe latest end time for a used vehicle, computed as the maximum over all used vehicles of [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time].com.google.protobuf.Parser<OptimizeToursResponse.Metrics>intintNumber of mandatory shipments skipped.doubleTotal cost of the solution.intNumber of vehicles used.booleanAggregated over the routes.booleanThe earliest start time for a used vehicle, computed as the minimum over all used vehicles of [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time].inthashCode()booleanThe latest end time for a used vehicle, computed as the maximum over all used vehicles of [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time].protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleannewBuilder(OptimizeToursResponse.Metrics prototype) protected OptimizeToursResponse.Metrics.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<OptimizeToursResponse.Metrics>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
AGGREGATED_ROUTE_METRICS_FIELD_NUMBER
public static final int AGGREGATED_ROUTE_METRICS_FIELD_NUMBER- See Also:
-
SKIPPED_MANDATORY_SHIPMENT_COUNT_FIELD_NUMBER
public static final int SKIPPED_MANDATORY_SHIPMENT_COUNT_FIELD_NUMBER- See Also:
-
USED_VEHICLE_COUNT_FIELD_NUMBER
public static final int USED_VEHICLE_COUNT_FIELD_NUMBER- See Also:
-
EARLIEST_VEHICLE_START_TIME_FIELD_NUMBER
public static final int EARLIEST_VEHICLE_START_TIME_FIELD_NUMBER- See Also:
-
LATEST_VEHICLE_END_TIME_FIELD_NUMBER
public static final int LATEST_VEHICLE_END_TIME_FIELD_NUMBER- See Also:
-
COSTS_FIELD_NUMBER
public static final int COSTS_FIELD_NUMBER- See Also:
-
TOTAL_COST_FIELD_NUMBER
public static final int TOTAL_COST_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasAggregatedRouteMetrics
public boolean hasAggregatedRouteMetrics()Aggregated over the routes. Each metric is the sum (or max, for loads) over all [ShipmentRoute.metrics][google.cloud.optimization.v1.ShipmentRoute.metrics] fields of the same name.
.google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1;- Specified by:
hasAggregatedRouteMetricsin interfaceOptimizeToursResponse.MetricsOrBuilder- Returns:
- Whether the aggregatedRouteMetrics field is set.
-
getAggregatedRouteMetrics
Aggregated over the routes. Each metric is the sum (or max, for loads) over all [ShipmentRoute.metrics][google.cloud.optimization.v1.ShipmentRoute.metrics] fields of the same name.
.google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1;- Specified by:
getAggregatedRouteMetricsin interfaceOptimizeToursResponse.MetricsOrBuilder- Returns:
- The aggregatedRouteMetrics.
-
getAggregatedRouteMetricsOrBuilder
Aggregated over the routes. Each metric is the sum (or max, for loads) over all [ShipmentRoute.metrics][google.cloud.optimization.v1.ShipmentRoute.metrics] fields of the same name.
.google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1;- Specified by:
getAggregatedRouteMetricsOrBuilderin interfaceOptimizeToursResponse.MetricsOrBuilder
-
getSkippedMandatoryShipmentCount
public int getSkippedMandatoryShipmentCount()Number of mandatory shipments skipped.
int32 skipped_mandatory_shipment_count = 2;- Specified by:
getSkippedMandatoryShipmentCountin interfaceOptimizeToursResponse.MetricsOrBuilder- Returns:
- The skippedMandatoryShipmentCount.
-
getUsedVehicleCount
public int getUsedVehicleCount()Number of vehicles used. Note: if a vehicle route is empty and [Vehicle.used_if_route_is_empty][google.cloud.optimization.v1.Vehicle.used_if_route_is_empty] is true, the vehicle is considered used.
int32 used_vehicle_count = 3;- Specified by:
getUsedVehicleCountin interfaceOptimizeToursResponse.MetricsOrBuilder- Returns:
- The usedVehicleCount.
-
hasEarliestVehicleStartTime
public boolean hasEarliestVehicleStartTime()The earliest start time for a used vehicle, computed as the minimum over all used vehicles of [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time].
.google.protobuf.Timestamp earliest_vehicle_start_time = 4;- Specified by:
hasEarliestVehicleStartTimein interfaceOptimizeToursResponse.MetricsOrBuilder- Returns:
- Whether the earliestVehicleStartTime field is set.
-
getEarliestVehicleStartTime
public com.google.protobuf.Timestamp getEarliestVehicleStartTime()The earliest start time for a used vehicle, computed as the minimum over all used vehicles of [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time].
.google.protobuf.Timestamp earliest_vehicle_start_time = 4;- Specified by:
getEarliestVehicleStartTimein interfaceOptimizeToursResponse.MetricsOrBuilder- Returns:
- The earliestVehicleStartTime.
-
getEarliestVehicleStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEarliestVehicleStartTimeOrBuilder()The earliest start time for a used vehicle, computed as the minimum over all used vehicles of [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time].
.google.protobuf.Timestamp earliest_vehicle_start_time = 4;- Specified by:
getEarliestVehicleStartTimeOrBuilderin interfaceOptimizeToursResponse.MetricsOrBuilder
-
hasLatestVehicleEndTime
public boolean hasLatestVehicleEndTime()The latest end time for a used vehicle, computed as the maximum over all used vehicles of [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time].
.google.protobuf.Timestamp latest_vehicle_end_time = 5;- Specified by:
hasLatestVehicleEndTimein interfaceOptimizeToursResponse.MetricsOrBuilder- Returns:
- Whether the latestVehicleEndTime field is set.
-
getLatestVehicleEndTime
public com.google.protobuf.Timestamp getLatestVehicleEndTime()The latest end time for a used vehicle, computed as the maximum over all used vehicles of [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time].
.google.protobuf.Timestamp latest_vehicle_end_time = 5;- Specified by:
getLatestVehicleEndTimein interfaceOptimizeToursResponse.MetricsOrBuilder- Returns:
- The latestVehicleEndTime.
-
getLatestVehicleEndTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getLatestVehicleEndTimeOrBuilder()The latest end time for a used vehicle, computed as the maximum over all used vehicles of [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time].
.google.protobuf.Timestamp latest_vehicle_end_time = 5;- Specified by:
getLatestVehicleEndTimeOrBuilderin interfaceOptimizeToursResponse.MetricsOrBuilder
-
getCostsCount
public int getCostsCount()Description copied from interface:OptimizeToursResponse.MetricsOrBuilderCost of the solution, broken down by cost-related request fields. The keys are proto paths, relative to the input OptimizeToursRequest, e.g. "model.shipments.pickups.cost", and the values are the total cost generated by the corresponding cost field, aggregated over the whole solution. In other words, costs["model.shipments.pickups.cost"] is the sum of all pickup costs over the solution. All costs defined in the model are reported in detail here with the exception of costs related to TransitionAttributes that are only reported in an aggregated way as of 2022/01.
map<string, double> costs = 10;- Specified by:
getCostsCountin interfaceOptimizeToursResponse.MetricsOrBuilder
-
containsCosts
Cost of the solution, broken down by cost-related request fields. The keys are proto paths, relative to the input OptimizeToursRequest, e.g. "model.shipments.pickups.cost", and the values are the total cost generated by the corresponding cost field, aggregated over the whole solution. In other words, costs["model.shipments.pickups.cost"] is the sum of all pickup costs over the solution. All costs defined in the model are reported in detail here with the exception of costs related to TransitionAttributes that are only reported in an aggregated way as of 2022/01.
map<string, double> costs = 10;- Specified by:
containsCostsin interfaceOptimizeToursResponse.MetricsOrBuilder
-
getCosts
Deprecated.UsegetCostsMap()instead.- Specified by:
getCostsin interfaceOptimizeToursResponse.MetricsOrBuilder
-
getCostsMap
Cost of the solution, broken down by cost-related request fields. The keys are proto paths, relative to the input OptimizeToursRequest, e.g. "model.shipments.pickups.cost", and the values are the total cost generated by the corresponding cost field, aggregated over the whole solution. In other words, costs["model.shipments.pickups.cost"] is the sum of all pickup costs over the solution. All costs defined in the model are reported in detail here with the exception of costs related to TransitionAttributes that are only reported in an aggregated way as of 2022/01.
map<string, double> costs = 10;- Specified by:
getCostsMapin interfaceOptimizeToursResponse.MetricsOrBuilder
-
getCostsOrDefault
Cost of the solution, broken down by cost-related request fields. The keys are proto paths, relative to the input OptimizeToursRequest, e.g. "model.shipments.pickups.cost", and the values are the total cost generated by the corresponding cost field, aggregated over the whole solution. In other words, costs["model.shipments.pickups.cost"] is the sum of all pickup costs over the solution. All costs defined in the model are reported in detail here with the exception of costs related to TransitionAttributes that are only reported in an aggregated way as of 2022/01.
map<string, double> costs = 10;- Specified by:
getCostsOrDefaultin interfaceOptimizeToursResponse.MetricsOrBuilder
-
getCostsOrThrow
Cost of the solution, broken down by cost-related request fields. The keys are proto paths, relative to the input OptimizeToursRequest, e.g. "model.shipments.pickups.cost", and the values are the total cost generated by the corresponding cost field, aggregated over the whole solution. In other words, costs["model.shipments.pickups.cost"] is the sum of all pickup costs over the solution. All costs defined in the model are reported in detail here with the exception of costs related to TransitionAttributes that are only reported in an aggregated way as of 2022/01.
map<string, double> costs = 10;- Specified by:
getCostsOrThrowin interfaceOptimizeToursResponse.MetricsOrBuilder
-
getTotalCost
public double getTotalCost()Total cost of the solution. The sum of all values in the costs map.
double total_cost = 6;- Specified by:
getTotalCostin interfaceOptimizeToursResponse.MetricsOrBuilder- Returns:
- The totalCost.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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 OptimizeToursResponse.Metrics parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OptimizeToursResponse.Metrics parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OptimizeToursResponse.Metrics parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OptimizeToursResponse.Metrics parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OptimizeToursResponse.Metrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OptimizeToursResponse.Metrics parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static OptimizeToursResponse.Metrics parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static OptimizeToursResponse.Metrics parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static OptimizeToursResponse.Metrics parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static OptimizeToursResponse.Metrics parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static OptimizeToursResponse.Metrics parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static OptimizeToursResponse.Metrics.Builder newBuilder(OptimizeToursResponse.Metrics prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected OptimizeToursResponse.Metrics.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-