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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
OptimizeToursResponse.Metrics
build()
OptimizeToursResponse.Metrics
buildPartial()
OptimizeToursResponse.Metrics.Builder
clear()
OptimizeToursResponse.Metrics.Builder
clearAggregatedRouteMetrics()
Aggregated over the routes.OptimizeToursResponse.Metrics.Builder
clearCosts()
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].OptimizeToursResponse.Metrics.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
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].OptimizeToursResponse.Metrics.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
OptimizeToursResponse.Metrics.Builder
clearSkippedMandatoryShipmentCount()
Number of mandatory shipments skipped.OptimizeToursResponse.Metrics.Builder
clearTotalCost()
Total cost of the solution.OptimizeToursResponse.Metrics.Builder
clearUsedVehicleCount()
Number of vehicles used.OptimizeToursResponse.Metrics.Builder
clone()
boolean
containsCosts(String key)
Cost of the solution, broken down by cost-related request fields.AggregatedMetrics
getAggregatedRouteMetrics()
Aggregated over the routes.AggregatedMetrics.Builder
getAggregatedRouteMetricsBuilder()
Aggregated over the routes.AggregatedMetricsOrBuilder
getAggregatedRouteMetricsOrBuilder()
Aggregated over the routes.Map<String,Double>
getCosts()
Deprecated.int
getCostsCount()
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.double
getCostsOrDefault(String key, double defaultValue)
Cost of the solution, broken down by cost-related request fields.double
getCostsOrThrow(String key)
Cost of the solution, broken down by cost-related request fields.OptimizeToursResponse.Metrics
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
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].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].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].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].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].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].Map<String,Double>
getMutableCosts()
Deprecated.int
getSkippedMandatoryShipmentCount()
Number of mandatory shipments skipped.double
getTotalCost()
Total cost of the solution.int
getUsedVehicleCount()
Number of vehicles used.boolean
hasAggregatedRouteMetrics()
Aggregated over the routes.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].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].protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
OptimizeToursResponse.Metrics.Builder
mergeAggregatedRouteMetrics(AggregatedMetrics value)
Aggregated over the routes.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].OptimizeToursResponse.Metrics.Builder
mergeFrom(OptimizeToursResponse.Metrics other)
OptimizeToursResponse.Metrics.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
OptimizeToursResponse.Metrics.Builder
mergeFrom(com.google.protobuf.Message other)
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].OptimizeToursResponse.Metrics.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
OptimizeToursResponse.Metrics.Builder
putAllCosts(Map<String,Double> values)
Cost of the solution, broken down by cost-related request fields.OptimizeToursResponse.Metrics.Builder
putCosts(String key, double value)
Cost of the solution, broken down by cost-related request fields.OptimizeToursResponse.Metrics.Builder
removeCosts(String key)
Cost of the solution, broken down by cost-related request fields.OptimizeToursResponse.Metrics.Builder
setAggregatedRouteMetrics(AggregatedMetrics value)
Aggregated over the routes.OptimizeToursResponse.Metrics.Builder
setAggregatedRouteMetrics(AggregatedMetrics.Builder builderForValue)
Aggregated over the routes.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].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].OptimizeToursResponse.Metrics.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
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].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].OptimizeToursResponse.Metrics.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
OptimizeToursResponse.Metrics.Builder
setSkippedMandatoryShipmentCount(int value)
Number of mandatory shipments skipped.OptimizeToursResponse.Metrics.Builder
setTotalCost(double value)
Total cost of the solution.OptimizeToursResponse.Metrics.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
OptimizeToursResponse.Metrics.Builder
setUsedVehicleCount(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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder>
-
clear
public OptimizeToursResponse.Metrics.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder>
-
getDefaultInstanceForType
public OptimizeToursResponse.Metrics getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public OptimizeToursResponse.Metrics build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public OptimizeToursResponse.Metrics buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public OptimizeToursResponse.Metrics.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder>
-
setField
public OptimizeToursResponse.Metrics.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder>
-
clearField
public OptimizeToursResponse.Metrics.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder>
-
clearOneof
public OptimizeToursResponse.Metrics.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder>
-
addRepeatedField
public OptimizeToursResponse.Metrics.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder>
-
mergeFrom
public OptimizeToursResponse.Metrics.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<OptimizeToursResponse.Metrics.Builder>
-
mergeFrom
public OptimizeToursResponse.Metrics.Builder mergeFrom(OptimizeToursResponse.Metrics other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasAggregatedRouteMetrics
in 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:
getAggregatedRouteMetrics
in 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:
getAggregatedRouteMetricsOrBuilder
in interfaceOptimizeToursResponse.MetricsOrBuilder
-
getSkippedMandatoryShipmentCount
public int getSkippedMandatoryShipmentCount()
Number of mandatory shipments skipped.
int32 skipped_mandatory_shipment_count = 2;
- Specified by:
getSkippedMandatoryShipmentCount
in 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:
getUsedVehicleCount
in 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:
hasEarliestVehicleStartTime
in 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:
getEarliestVehicleStartTime
in 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:
getEarliestVehicleStartTimeOrBuilder
in 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:
hasLatestVehicleEndTime
in 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:
getLatestVehicleEndTime
in 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:
getLatestVehicleEndTimeOrBuilder
in interfaceOptimizeToursResponse.MetricsOrBuilder
-
getCostsCount
public int getCostsCount()
Description copied from interface:OptimizeToursResponse.MetricsOrBuilder
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:
getCostsCount
in 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:
containsCosts
in interfaceOptimizeToursResponse.MetricsOrBuilder
-
getCosts
@Deprecated public Map<String,Double> getCosts()
Deprecated.UsegetCostsMap()
instead.- Specified by:
getCosts
in 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:
getCostsMap
in 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:
getCostsOrDefault
in 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:
getCostsOrThrow
in 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:
getTotalCost
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder>
-
mergeUnknownFields
public final OptimizeToursResponse.Metrics.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Metrics.Builder>
-
-