Package com.google.cloud.optimization.v1
Class Vehicle.DurationLimit.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Vehicle.DurationLimit.Builder>
com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder
- All Implemented Interfaces:
Vehicle.DurationLimitOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Vehicle.DurationLimit
public static final class Vehicle.DurationLimit.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Vehicle.DurationLimit.Builder>
implements Vehicle.DurationLimitOrBuilder
A limit defining a maximum duration of the route of a vehicle. It can be either hard or soft. When a soft limit field is defined, both the soft max threshold and its associated cost must be defined together.Protobuf type
google.cloud.optimization.v1.Vehicle.DurationLimit-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Cost per hour incurred if the `soft_max_duration` threshold is violated.Cost per square hour incurred if the `quadratic_soft_max_duration` threshold is violated.A hard limit constraining the duration to be at most max_duration.A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost, quadratic in the duration.A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost.doubleCost per hour incurred if the `soft_max_duration` threshold is violated.doubleCost per square hour incurred if the `quadratic_soft_max_duration` threshold is violated.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.DurationA hard limit constraining the duration to be at most max_duration.com.google.protobuf.Duration.BuilderA hard limit constraining the duration to be at most max_duration.com.google.protobuf.DurationOrBuilderA hard limit constraining the duration to be at most max_duration.com.google.protobuf.DurationA soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost, quadratic in the duration.com.google.protobuf.Duration.BuilderA soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost, quadratic in the duration.com.google.protobuf.DurationOrBuilderA soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost, quadratic in the duration.com.google.protobuf.DurationA soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost.com.google.protobuf.Duration.BuilderA soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost.com.google.protobuf.DurationOrBuilderA soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost.booleanCost per hour incurred if the `soft_max_duration` threshold is violated.booleanCost per square hour incurred if the `quadratic_soft_max_duration` threshold is violated.booleanA hard limit constraining the duration to be at most max_duration.booleanA soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost, quadratic in the duration.booleanA soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Vehicle.DurationLimit other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMaxDuration(com.google.protobuf.Duration value) A hard limit constraining the duration to be at most max_duration.mergeQuadraticSoftMaxDuration(com.google.protobuf.Duration value) A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost, quadratic in the duration.mergeSoftMaxDuration(com.google.protobuf.Duration value) A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost.setCostPerHourAfterSoftMax(double value) Cost per hour incurred if the `soft_max_duration` threshold is violated.setCostPerSquareHourAfterQuadraticSoftMax(double value) Cost per square hour incurred if the `quadratic_soft_max_duration` threshold is violated.setMaxDuration(com.google.protobuf.Duration value) A hard limit constraining the duration to be at most max_duration.setMaxDuration(com.google.protobuf.Duration.Builder builderForValue) A hard limit constraining the duration to be at most max_duration.setQuadraticSoftMaxDuration(com.google.protobuf.Duration value) A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost, quadratic in the duration.setQuadraticSoftMaxDuration(com.google.protobuf.Duration.Builder builderForValue) A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost, quadratic in the duration.setSoftMaxDuration(com.google.protobuf.Duration value) A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost.setSoftMaxDuration(com.google.protobuf.Duration.Builder builderForValue) A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Vehicle.DurationLimit.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Vehicle.DurationLimit.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.GeneratedMessage.Builder<Vehicle.DurationLimit.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Vehicle.DurationLimit.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Vehicle.DurationLimit.Builder>
-
mergeFrom
public Vehicle.DurationLimit.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<Vehicle.DurationLimit.Builder>- Throws:
IOException
-
hasMaxDuration
public boolean hasMaxDuration()A hard limit constraining the duration to be at most max_duration.
.google.protobuf.Duration max_duration = 1;- Specified by:
hasMaxDurationin interfaceVehicle.DurationLimitOrBuilder- Returns:
- Whether the maxDuration field is set.
-
getMaxDuration
public com.google.protobuf.Duration getMaxDuration()A hard limit constraining the duration to be at most max_duration.
.google.protobuf.Duration max_duration = 1;- Specified by:
getMaxDurationin interfaceVehicle.DurationLimitOrBuilder- Returns:
- The maxDuration.
-
setMaxDuration
A hard limit constraining the duration to be at most max_duration.
.google.protobuf.Duration max_duration = 1; -
setMaxDuration
public Vehicle.DurationLimit.Builder setMaxDuration(com.google.protobuf.Duration.Builder builderForValue) A hard limit constraining the duration to be at most max_duration.
.google.protobuf.Duration max_duration = 1; -
mergeMaxDuration
A hard limit constraining the duration to be at most max_duration.
.google.protobuf.Duration max_duration = 1; -
clearMaxDuration
A hard limit constraining the duration to be at most max_duration.
.google.protobuf.Duration max_duration = 1; -
getMaxDurationBuilder
public com.google.protobuf.Duration.Builder getMaxDurationBuilder()A hard limit constraining the duration to be at most max_duration.
.google.protobuf.Duration max_duration = 1; -
getMaxDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder()A hard limit constraining the duration to be at most max_duration.
.google.protobuf.Duration max_duration = 1;- Specified by:
getMaxDurationOrBuilderin interfaceVehicle.DurationLimitOrBuilder
-
hasSoftMaxDuration
public boolean hasSoftMaxDuration()A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost. This cost adds up to other costs defined in the model, with the same unit. If defined, `soft_max_duration` must be nonnegative. If max_duration is also defined, `soft_max_duration` must be less than max_duration.
.google.protobuf.Duration soft_max_duration = 2;- Specified by:
hasSoftMaxDurationin interfaceVehicle.DurationLimitOrBuilder- Returns:
- Whether the softMaxDuration field is set.
-
getSoftMaxDuration
public com.google.protobuf.Duration getSoftMaxDuration()A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost. This cost adds up to other costs defined in the model, with the same unit. If defined, `soft_max_duration` must be nonnegative. If max_duration is also defined, `soft_max_duration` must be less than max_duration.
.google.protobuf.Duration soft_max_duration = 2;- Specified by:
getSoftMaxDurationin interfaceVehicle.DurationLimitOrBuilder- Returns:
- The softMaxDuration.
-
setSoftMaxDuration
A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost. This cost adds up to other costs defined in the model, with the same unit. If defined, `soft_max_duration` must be nonnegative. If max_duration is also defined, `soft_max_duration` must be less than max_duration.
.google.protobuf.Duration soft_max_duration = 2; -
setSoftMaxDuration
public Vehicle.DurationLimit.Builder setSoftMaxDuration(com.google.protobuf.Duration.Builder builderForValue) A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost. This cost adds up to other costs defined in the model, with the same unit. If defined, `soft_max_duration` must be nonnegative. If max_duration is also defined, `soft_max_duration` must be less than max_duration.
.google.protobuf.Duration soft_max_duration = 2; -
mergeSoftMaxDuration
A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost. This cost adds up to other costs defined in the model, with the same unit. If defined, `soft_max_duration` must be nonnegative. If max_duration is also defined, `soft_max_duration` must be less than max_duration.
.google.protobuf.Duration soft_max_duration = 2; -
clearSoftMaxDuration
A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost. This cost adds up to other costs defined in the model, with the same unit. If defined, `soft_max_duration` must be nonnegative. If max_duration is also defined, `soft_max_duration` must be less than max_duration.
.google.protobuf.Duration soft_max_duration = 2; -
getSoftMaxDurationBuilder
public com.google.protobuf.Duration.Builder getSoftMaxDurationBuilder()A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost. This cost adds up to other costs defined in the model, with the same unit. If defined, `soft_max_duration` must be nonnegative. If max_duration is also defined, `soft_max_duration` must be less than max_duration.
.google.protobuf.Duration soft_max_duration = 2; -
getSoftMaxDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getSoftMaxDurationOrBuilder()A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost. This cost adds up to other costs defined in the model, with the same unit. If defined, `soft_max_duration` must be nonnegative. If max_duration is also defined, `soft_max_duration` must be less than max_duration.
.google.protobuf.Duration soft_max_duration = 2;- Specified by:
getSoftMaxDurationOrBuilderin interfaceVehicle.DurationLimitOrBuilder
-
hasCostPerHourAfterSoftMax
public boolean hasCostPerHourAfterSoftMax()Cost per hour incurred if the `soft_max_duration` threshold is violated. The additional cost is 0 if the duration is under the threshold, otherwise the cost depends on the duration as follows: ``` cost_per_hour_after_soft_max * (duration - soft_max_duration) ``` The cost must be nonnegative.
optional double cost_per_hour_after_soft_max = 3;- Specified by:
hasCostPerHourAfterSoftMaxin interfaceVehicle.DurationLimitOrBuilder- Returns:
- Whether the costPerHourAfterSoftMax field is set.
-
getCostPerHourAfterSoftMax
public double getCostPerHourAfterSoftMax()Cost per hour incurred if the `soft_max_duration` threshold is violated. The additional cost is 0 if the duration is under the threshold, otherwise the cost depends on the duration as follows: ``` cost_per_hour_after_soft_max * (duration - soft_max_duration) ``` The cost must be nonnegative.
optional double cost_per_hour_after_soft_max = 3;- Specified by:
getCostPerHourAfterSoftMaxin interfaceVehicle.DurationLimitOrBuilder- Returns:
- The costPerHourAfterSoftMax.
-
setCostPerHourAfterSoftMax
Cost per hour incurred if the `soft_max_duration` threshold is violated. The additional cost is 0 if the duration is under the threshold, otherwise the cost depends on the duration as follows: ``` cost_per_hour_after_soft_max * (duration - soft_max_duration) ``` The cost must be nonnegative.
optional double cost_per_hour_after_soft_max = 3;- Parameters:
value- The costPerHourAfterSoftMax to set.- Returns:
- This builder for chaining.
-
clearCostPerHourAfterSoftMax
Cost per hour incurred if the `soft_max_duration` threshold is violated. The additional cost is 0 if the duration is under the threshold, otherwise the cost depends on the duration as follows: ``` cost_per_hour_after_soft_max * (duration - soft_max_duration) ``` The cost must be nonnegative.
optional double cost_per_hour_after_soft_max = 3;- Returns:
- This builder for chaining.
-
hasQuadraticSoftMaxDuration
public boolean hasQuadraticSoftMaxDuration()A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost, quadratic in the duration. This cost adds up to other costs defined in the model, with the same unit. If defined, `quadratic_soft_max_duration` must be nonnegative. If `max_duration` is also defined, `quadratic_soft_max_duration` must be less than `max_duration`, and the difference must be no larger than one day: `max_duration - quadratic_soft_max_duration <= 86400 seconds`
.google.protobuf.Duration quadratic_soft_max_duration = 4;- Specified by:
hasQuadraticSoftMaxDurationin interfaceVehicle.DurationLimitOrBuilder- Returns:
- Whether the quadraticSoftMaxDuration field is set.
-
getQuadraticSoftMaxDuration
public com.google.protobuf.Duration getQuadraticSoftMaxDuration()A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost, quadratic in the duration. This cost adds up to other costs defined in the model, with the same unit. If defined, `quadratic_soft_max_duration` must be nonnegative. If `max_duration` is also defined, `quadratic_soft_max_duration` must be less than `max_duration`, and the difference must be no larger than one day: `max_duration - quadratic_soft_max_duration <= 86400 seconds`
.google.protobuf.Duration quadratic_soft_max_duration = 4;- Specified by:
getQuadraticSoftMaxDurationin interfaceVehicle.DurationLimitOrBuilder- Returns:
- The quadraticSoftMaxDuration.
-
setQuadraticSoftMaxDuration
public Vehicle.DurationLimit.Builder setQuadraticSoftMaxDuration(com.google.protobuf.Duration value) A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost, quadratic in the duration. This cost adds up to other costs defined in the model, with the same unit. If defined, `quadratic_soft_max_duration` must be nonnegative. If `max_duration` is also defined, `quadratic_soft_max_duration` must be less than `max_duration`, and the difference must be no larger than one day: `max_duration - quadratic_soft_max_duration <= 86400 seconds`
.google.protobuf.Duration quadratic_soft_max_duration = 4; -
setQuadraticSoftMaxDuration
public Vehicle.DurationLimit.Builder setQuadraticSoftMaxDuration(com.google.protobuf.Duration.Builder builderForValue) A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost, quadratic in the duration. This cost adds up to other costs defined in the model, with the same unit. If defined, `quadratic_soft_max_duration` must be nonnegative. If `max_duration` is also defined, `quadratic_soft_max_duration` must be less than `max_duration`, and the difference must be no larger than one day: `max_duration - quadratic_soft_max_duration <= 86400 seconds`
.google.protobuf.Duration quadratic_soft_max_duration = 4; -
mergeQuadraticSoftMaxDuration
public Vehicle.DurationLimit.Builder mergeQuadraticSoftMaxDuration(com.google.protobuf.Duration value) A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost, quadratic in the duration. This cost adds up to other costs defined in the model, with the same unit. If defined, `quadratic_soft_max_duration` must be nonnegative. If `max_duration` is also defined, `quadratic_soft_max_duration` must be less than `max_duration`, and the difference must be no larger than one day: `max_duration - quadratic_soft_max_duration <= 86400 seconds`
.google.protobuf.Duration quadratic_soft_max_duration = 4; -
clearQuadraticSoftMaxDuration
A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost, quadratic in the duration. This cost adds up to other costs defined in the model, with the same unit. If defined, `quadratic_soft_max_duration` must be nonnegative. If `max_duration` is also defined, `quadratic_soft_max_duration` must be less than `max_duration`, and the difference must be no larger than one day: `max_duration - quadratic_soft_max_duration <= 86400 seconds`
.google.protobuf.Duration quadratic_soft_max_duration = 4; -
getQuadraticSoftMaxDurationBuilder
public com.google.protobuf.Duration.Builder getQuadraticSoftMaxDurationBuilder()A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost, quadratic in the duration. This cost adds up to other costs defined in the model, with the same unit. If defined, `quadratic_soft_max_duration` must be nonnegative. If `max_duration` is also defined, `quadratic_soft_max_duration` must be less than `max_duration`, and the difference must be no larger than one day: `max_duration - quadratic_soft_max_duration <= 86400 seconds`
.google.protobuf.Duration quadratic_soft_max_duration = 4; -
getQuadraticSoftMaxDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getQuadraticSoftMaxDurationOrBuilder()A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost, quadratic in the duration. This cost adds up to other costs defined in the model, with the same unit. If defined, `quadratic_soft_max_duration` must be nonnegative. If `max_duration` is also defined, `quadratic_soft_max_duration` must be less than `max_duration`, and the difference must be no larger than one day: `max_duration - quadratic_soft_max_duration <= 86400 seconds`
.google.protobuf.Duration quadratic_soft_max_duration = 4;- Specified by:
getQuadraticSoftMaxDurationOrBuilderin interfaceVehicle.DurationLimitOrBuilder
-
hasCostPerSquareHourAfterQuadraticSoftMax
public boolean hasCostPerSquareHourAfterQuadraticSoftMax()Cost per square hour incurred if the `quadratic_soft_max_duration` threshold is violated. The additional cost is 0 if the duration is under the threshold, otherwise the cost depends on the duration as follows: ``` cost_per_square_hour_after_quadratic_soft_max * (duration - quadratic_soft_max_duration)^2 ``` The cost must be nonnegative.
optional double cost_per_square_hour_after_quadratic_soft_max = 5;- Specified by:
hasCostPerSquareHourAfterQuadraticSoftMaxin interfaceVehicle.DurationLimitOrBuilder- Returns:
- Whether the costPerSquareHourAfterQuadraticSoftMax field is set.
-
getCostPerSquareHourAfterQuadraticSoftMax
public double getCostPerSquareHourAfterQuadraticSoftMax()Cost per square hour incurred if the `quadratic_soft_max_duration` threshold is violated. The additional cost is 0 if the duration is under the threshold, otherwise the cost depends on the duration as follows: ``` cost_per_square_hour_after_quadratic_soft_max * (duration - quadratic_soft_max_duration)^2 ``` The cost must be nonnegative.
optional double cost_per_square_hour_after_quadratic_soft_max = 5;- Specified by:
getCostPerSquareHourAfterQuadraticSoftMaxin interfaceVehicle.DurationLimitOrBuilder- Returns:
- The costPerSquareHourAfterQuadraticSoftMax.
-
setCostPerSquareHourAfterQuadraticSoftMax
Cost per square hour incurred if the `quadratic_soft_max_duration` threshold is violated. The additional cost is 0 if the duration is under the threshold, otherwise the cost depends on the duration as follows: ``` cost_per_square_hour_after_quadratic_soft_max * (duration - quadratic_soft_max_duration)^2 ``` The cost must be nonnegative.
optional double cost_per_square_hour_after_quadratic_soft_max = 5;- Parameters:
value- The costPerSquareHourAfterQuadraticSoftMax to set.- Returns:
- This builder for chaining.
-
clearCostPerSquareHourAfterQuadraticSoftMax
Cost per square hour incurred if the `quadratic_soft_max_duration` threshold is violated. The additional cost is 0 if the duration is under the threshold, otherwise the cost depends on the duration as follows: ``` cost_per_square_hour_after_quadratic_soft_max * (duration - quadratic_soft_max_duration)^2 ``` The cost must be nonnegative.
optional double cost_per_square_hour_after_quadratic_soft_max = 5;- Returns:
- This builder for chaining.
-