Package com.google.cloud.optimization.v1
Class OptimizeToursResponse.Metrics.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder>
-
- com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.Builder
-
- All Implemented Interfaces:
OptimizeToursResponse.MetricsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- OptimizeToursResponse.Metrics
public static final class OptimizeToursResponse.Metrics.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder> implements OptimizeToursResponse.MetricsOrBuilder
Overall metrics, aggregated over all routes.
Protobuf typegoogle.cloud.optimization.v1.OptimizeToursResponse.Metrics
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description OptimizeToursResponse.Metrics.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)OptimizeToursResponse.Metricsbuild()OptimizeToursResponse.MetricsbuildPartial()OptimizeToursResponse.Metrics.Builderclear()OptimizeToursResponse.Metrics.BuilderclearAggregatedRouteMetrics()Aggregated over the routes.OptimizeToursResponse.Metrics.BuilderclearCosts()OptimizeToursResponse.Metrics.BuilderclearEarliestVehicleStartTime()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].OptimizeToursResponse.Metrics.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)OptimizeToursResponse.Metrics.BuilderclearLatestVehicleEndTime()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].OptimizeToursResponse.Metrics.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)OptimizeToursResponse.Metrics.BuilderclearSkippedMandatoryShipmentCount()Number of mandatory shipments skipped.OptimizeToursResponse.Metrics.BuilderclearTotalCost()Total cost of the solution.OptimizeToursResponse.Metrics.BuilderclearUsedVehicleCount()Number of vehicles used.OptimizeToursResponse.Metrics.Builderclone()booleancontainsCosts(String key)Cost of the solution, broken down by cost-related request fields.AggregatedMetricsgetAggregatedRouteMetrics()Aggregated over the routes.AggregatedMetrics.BuildergetAggregatedRouteMetricsBuilder()Aggregated over the routes.AggregatedMetricsOrBuildergetAggregatedRouteMetricsOrBuilder()Aggregated over the routes.Map<String,Double>getCosts()Deprecated.intgetCostsCount()Cost of the solution, broken down by cost-related request fields.Map<String,Double>getCostsMap()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.OptimizeToursResponse.MetricsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.TimestampgetEarliestVehicleStartTime()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].com.google.protobuf.Timestamp.BuildergetEarliestVehicleStartTimeBuilder()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].com.google.protobuf.TimestampOrBuildergetEarliestVehicleStartTimeOrBuilder()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].com.google.protobuf.TimestampgetLatestVehicleEndTime()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].com.google.protobuf.Timestamp.BuildergetLatestVehicleEndTimeBuilder()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].com.google.protobuf.TimestampOrBuildergetLatestVehicleEndTimeOrBuilder()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].Map<String,Double>getMutableCosts()Deprecated.intgetSkippedMandatoryShipmentCount()Number of mandatory shipments skipped.doublegetTotalCost()Total cost of the solution.intgetUsedVehicleCount()Number of vehicles used.booleanhasAggregatedRouteMetrics()Aggregated over the routes.booleanhasEarliestVehicleStartTime()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].booleanhasLatestVehicleEndTime()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].protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()OptimizeToursResponse.Metrics.BuildermergeAggregatedRouteMetrics(AggregatedMetrics value)Aggregated over the routes.OptimizeToursResponse.Metrics.BuildermergeEarliestVehicleStartTime(com.google.protobuf.Timestamp value)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].OptimizeToursResponse.Metrics.BuildermergeFrom(OptimizeToursResponse.Metrics other)OptimizeToursResponse.Metrics.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)OptimizeToursResponse.Metrics.BuildermergeFrom(com.google.protobuf.Message other)OptimizeToursResponse.Metrics.BuildermergeLatestVehicleEndTime(com.google.protobuf.Timestamp value)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].OptimizeToursResponse.Metrics.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)OptimizeToursResponse.Metrics.BuilderputAllCosts(Map<String,Double> values)Cost of the solution, broken down by cost-related request fields.OptimizeToursResponse.Metrics.BuilderputCosts(String key, double value)Cost of the solution, broken down by cost-related request fields.OptimizeToursResponse.Metrics.BuilderremoveCosts(String key)Cost of the solution, broken down by cost-related request fields.OptimizeToursResponse.Metrics.BuildersetAggregatedRouteMetrics(AggregatedMetrics value)Aggregated over the routes.OptimizeToursResponse.Metrics.BuildersetAggregatedRouteMetrics(AggregatedMetrics.Builder builderForValue)Aggregated over the routes.OptimizeToursResponse.Metrics.BuildersetEarliestVehicleStartTime(com.google.protobuf.Timestamp value)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].OptimizeToursResponse.Metrics.BuildersetEarliestVehicleStartTime(com.google.protobuf.Timestamp.Builder builderForValue)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].OptimizeToursResponse.Metrics.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)OptimizeToursResponse.Metrics.BuildersetLatestVehicleEndTime(com.google.protobuf.Timestamp value)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].OptimizeToursResponse.Metrics.BuildersetLatestVehicleEndTime(com.google.protobuf.Timestamp.Builder builderForValue)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].OptimizeToursResponse.Metrics.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)OptimizeToursResponse.Metrics.BuildersetSkippedMandatoryShipmentCount(int value)Number of mandatory shipments skipped.OptimizeToursResponse.Metrics.BuildersetTotalCost(double value)Total cost of the solution.OptimizeToursResponse.Metrics.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)OptimizeToursResponse.Metrics.BuildersetUsedVehicleCount(int value)Number of vehicles used.-
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:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder>
-
clear
public OptimizeToursResponse.Metrics.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder>
-
getDefaultInstanceForType
public OptimizeToursResponse.Metrics getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public OptimizeToursResponse.Metrics build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public OptimizeToursResponse.Metrics buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public OptimizeToursResponse.Metrics.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder>
-
setField
public OptimizeToursResponse.Metrics.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder>
-
clearField
public OptimizeToursResponse.Metrics.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder>
-
clearOneof
public OptimizeToursResponse.Metrics.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder>
-
setRepeatedField
public OptimizeToursResponse.Metrics.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder>
-
addRepeatedField
public OptimizeToursResponse.Metrics.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder>
-
mergeFrom
public OptimizeToursResponse.Metrics.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OptimizeToursResponse.Metrics.Builder>
-
mergeFrom
public OptimizeToursResponse.Metrics.Builder mergeFrom(OptimizeToursResponse.Metrics other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder>
-
mergeFrom
public OptimizeToursResponse.Metrics.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OptimizeToursResponse.Metrics.Builder>- Throws:
IOException
-
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
public AggregatedMetrics 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.
-
setAggregatedRouteMetrics
public OptimizeToursResponse.Metrics.Builder setAggregatedRouteMetrics(AggregatedMetrics value)
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;
-
setAggregatedRouteMetrics
public OptimizeToursResponse.Metrics.Builder setAggregatedRouteMetrics(AggregatedMetrics.Builder builderForValue)
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;
-
mergeAggregatedRouteMetrics
public OptimizeToursResponse.Metrics.Builder mergeAggregatedRouteMetrics(AggregatedMetrics value)
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;
-
clearAggregatedRouteMetrics
public OptimizeToursResponse.Metrics.Builder clearAggregatedRouteMetrics()
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;
-
getAggregatedRouteMetricsBuilder
public AggregatedMetrics.Builder getAggregatedRouteMetricsBuilder()
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;
-
getAggregatedRouteMetricsOrBuilder
public AggregatedMetricsOrBuilder 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.
-
setSkippedMandatoryShipmentCount
public OptimizeToursResponse.Metrics.Builder setSkippedMandatoryShipmentCount(int value)
Number of mandatory shipments skipped.
int32 skipped_mandatory_shipment_count = 2;- Parameters:
value- The skippedMandatoryShipmentCount to set.- Returns:
- This builder for chaining.
-
clearSkippedMandatoryShipmentCount
public OptimizeToursResponse.Metrics.Builder clearSkippedMandatoryShipmentCount()
Number of mandatory shipments skipped.
int32 skipped_mandatory_shipment_count = 2;- Returns:
- This builder for chaining.
-
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.
-
setUsedVehicleCount
public OptimizeToursResponse.Metrics.Builder setUsedVehicleCount(int value)
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;- Parameters:
value- The usedVehicleCount to set.- Returns:
- This builder for chaining.
-
clearUsedVehicleCount
public OptimizeToursResponse.Metrics.Builder clearUsedVehicleCount()
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;- Returns:
- This builder for chaining.
-
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.
-
setEarliestVehicleStartTime
public OptimizeToursResponse.Metrics.Builder setEarliestVehicleStartTime(com.google.protobuf.Timestamp value)
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;
-
setEarliestVehicleStartTime
public OptimizeToursResponse.Metrics.Builder setEarliestVehicleStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
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;
-
mergeEarliestVehicleStartTime
public OptimizeToursResponse.Metrics.Builder mergeEarliestVehicleStartTime(com.google.protobuf.Timestamp value)
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;
-
clearEarliestVehicleStartTime
public OptimizeToursResponse.Metrics.Builder clearEarliestVehicleStartTime()
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;
-
getEarliestVehicleStartTimeBuilder
public com.google.protobuf.Timestamp.Builder getEarliestVehicleStartTimeBuilder()
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;
-
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.
-
setLatestVehicleEndTime
public OptimizeToursResponse.Metrics.Builder setLatestVehicleEndTime(com.google.protobuf.Timestamp value)
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;
-
setLatestVehicleEndTime
public OptimizeToursResponse.Metrics.Builder setLatestVehicleEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
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;
-
mergeLatestVehicleEndTime
public OptimizeToursResponse.Metrics.Builder mergeLatestVehicleEndTime(com.google.protobuf.Timestamp value)
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;
-
clearLatestVehicleEndTime
public OptimizeToursResponse.Metrics.Builder clearLatestVehicleEndTime()
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;
-
getLatestVehicleEndTimeBuilder
public com.google.protobuf.Timestamp.Builder getLatestVehicleEndTimeBuilder()
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;
-
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
public boolean containsCosts(String key)
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 public Map<String,Double> getCosts()
Deprecated.UsegetCostsMap()instead.- Specified by:
getCostsin interfaceOptimizeToursResponse.MetricsOrBuilder
-
getCostsMap
public Map<String,Double> 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
public double getCostsOrDefault(String key, double defaultValue)
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
public double getCostsOrThrow(String key)
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
-
clearCosts
public OptimizeToursResponse.Metrics.Builder clearCosts()
-
removeCosts
public OptimizeToursResponse.Metrics.Builder removeCosts(String key)
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;
-
getMutableCosts
@Deprecated public Map<String,Double> getMutableCosts()
Deprecated.Use alternate mutation accessors instead.
-
putCosts
public OptimizeToursResponse.Metrics.Builder putCosts(String key, double value)
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;
-
putAllCosts
public OptimizeToursResponse.Metrics.Builder putAllCosts(Map<String,Double> values)
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;
-
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.
-
setTotalCost
public OptimizeToursResponse.Metrics.Builder setTotalCost(double value)
Total cost of the solution. The sum of all values in the costs map.
double total_cost = 6;- Parameters:
value- The totalCost to set.- Returns:
- This builder for chaining.
-
clearTotalCost
public OptimizeToursResponse.Metrics.Builder clearTotalCost()
Total cost of the solution. The sum of all values in the costs map.
double total_cost = 6;- Returns:
- This builder for chaining.
-
setUnknownFields
public final OptimizeToursResponse.Metrics.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder>
-
mergeUnknownFields
public final OptimizeToursResponse.Metrics.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder>
-
-