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.GeneratedMessageV3.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.GeneratedMessageV3.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 typegoogle.cloud.optimization.v1.Vehicle.DurationLimit
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Vehicle.DurationLimit.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Vehicle.DurationLimitbuild()Vehicle.DurationLimitbuildPartial()Vehicle.DurationLimit.Builderclear()Vehicle.DurationLimit.BuilderclearCostPerHourAfterSoftMax()Cost per hour incurred if the `soft_max_duration` threshold is violated.Vehicle.DurationLimit.BuilderclearCostPerSquareHourAfterQuadraticSoftMax()Cost per square hour incurred if the `quadratic_soft_max_duration` threshold is violated.Vehicle.DurationLimit.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Vehicle.DurationLimit.BuilderclearMaxDuration()A hard limit constraining the duration to be at most max_duration.Vehicle.DurationLimit.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Vehicle.DurationLimit.BuilderclearQuadraticSoftMaxDuration()A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost, quadratic in the duration.Vehicle.DurationLimit.BuilderclearSoftMaxDuration()A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost.Vehicle.DurationLimit.Builderclone()doublegetCostPerHourAfterSoftMax()Cost per hour incurred if the `soft_max_duration` threshold is violated.doublegetCostPerSquareHourAfterQuadraticSoftMax()Cost per square hour incurred if the `quadratic_soft_max_duration` threshold is violated.Vehicle.DurationLimitgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.DurationgetMaxDuration()A hard limit constraining the duration to be at most max_duration.com.google.protobuf.Duration.BuildergetMaxDurationBuilder()A hard limit constraining the duration to be at most max_duration.com.google.protobuf.DurationOrBuildergetMaxDurationOrBuilder()A hard limit constraining the duration to be at most max_duration.com.google.protobuf.DurationgetQuadraticSoftMaxDuration()A 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.BuildergetQuadraticSoftMaxDurationBuilder()A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost, quadratic in the duration.com.google.protobuf.DurationOrBuildergetQuadraticSoftMaxDurationOrBuilder()A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost, quadratic in the duration.com.google.protobuf.DurationgetSoftMaxDuration()A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost.com.google.protobuf.Duration.BuildergetSoftMaxDurationBuilder()A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost.com.google.protobuf.DurationOrBuildergetSoftMaxDurationOrBuilder()A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost.booleanhasCostPerHourAfterSoftMax()Cost per hour incurred if the `soft_max_duration` threshold is violated.booleanhasCostPerSquareHourAfterQuadraticSoftMax()Cost per square hour incurred if the `quadratic_soft_max_duration` threshold is violated.booleanhasMaxDuration()A hard limit constraining the duration to be at most max_duration.booleanhasQuadraticSoftMaxDuration()A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost, quadratic in the duration.booleanhasSoftMaxDuration()A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Vehicle.DurationLimit.BuildermergeFrom(Vehicle.DurationLimit other)Vehicle.DurationLimit.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Vehicle.DurationLimit.BuildermergeFrom(com.google.protobuf.Message other)Vehicle.DurationLimit.BuildermergeMaxDuration(com.google.protobuf.Duration value)A hard limit constraining the duration to be at most max_duration.Vehicle.DurationLimit.BuildermergeQuadraticSoftMaxDuration(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.Vehicle.DurationLimit.BuildermergeSoftMaxDuration(com.google.protobuf.Duration value)A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost.Vehicle.DurationLimit.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Vehicle.DurationLimit.BuildersetCostPerHourAfterSoftMax(double value)Cost per hour incurred if the `soft_max_duration` threshold is violated.Vehicle.DurationLimit.BuildersetCostPerSquareHourAfterQuadraticSoftMax(double value)Cost per square hour incurred if the `quadratic_soft_max_duration` threshold is violated.Vehicle.DurationLimit.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Vehicle.DurationLimit.BuildersetMaxDuration(com.google.protobuf.Duration value)A hard limit constraining the duration to be at most max_duration.Vehicle.DurationLimit.BuildersetMaxDuration(com.google.protobuf.Duration.Builder builderForValue)A hard limit constraining the duration to be at most max_duration.Vehicle.DurationLimit.BuildersetQuadraticSoftMaxDuration(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.Vehicle.DurationLimit.BuildersetQuadraticSoftMaxDuration(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.Vehicle.DurationLimit.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Vehicle.DurationLimit.BuildersetSoftMaxDuration(com.google.protobuf.Duration value)A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost.Vehicle.DurationLimit.BuildersetSoftMaxDuration(com.google.protobuf.Duration.Builder builderForValue)A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost.Vehicle.DurationLimit.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Vehicle.DurationLimit.Builder>
-
clear
public 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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Vehicle.DurationLimit.Builder>
-
getDefaultInstanceForType
public Vehicle.DurationLimit getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Vehicle.DurationLimit build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Vehicle.DurationLimit buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Vehicle.DurationLimit.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<Vehicle.DurationLimit.Builder>
-
setField
public Vehicle.DurationLimit.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<Vehicle.DurationLimit.Builder>
-
clearField
public Vehicle.DurationLimit.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Vehicle.DurationLimit.Builder>
-
clearOneof
public Vehicle.DurationLimit.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Vehicle.DurationLimit.Builder>
-
setRepeatedField
public Vehicle.DurationLimit.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<Vehicle.DurationLimit.Builder>
-
addRepeatedField
public Vehicle.DurationLimit.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<Vehicle.DurationLimit.Builder>
-
mergeFrom
public Vehicle.DurationLimit.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Vehicle.DurationLimit.Builder>
-
mergeFrom
public Vehicle.DurationLimit.Builder mergeFrom(Vehicle.DurationLimit other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public Vehicle.DurationLimit.Builder setMaxDuration(com.google.protobuf.Duration value)
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
public Vehicle.DurationLimit.Builder mergeMaxDuration(com.google.protobuf.Duration value)
A hard limit constraining the duration to be at most max_duration.
.google.protobuf.Duration max_duration = 1;
-
clearMaxDuration
public Vehicle.DurationLimit.Builder 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
public Vehicle.DurationLimit.Builder setSoftMaxDuration(com.google.protobuf.Duration value)
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
public Vehicle.DurationLimit.Builder mergeSoftMaxDuration(com.google.protobuf.Duration value)
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
public Vehicle.DurationLimit.Builder 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
public Vehicle.DurationLimit.Builder setCostPerHourAfterSoftMax(double value)
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
public Vehicle.DurationLimit.Builder 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
public Vehicle.DurationLimit.Builder 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
public Vehicle.DurationLimit.Builder setCostPerSquareHourAfterQuadraticSoftMax(double value)
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
public Vehicle.DurationLimit.Builder 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.
-
setUnknownFields
public final Vehicle.DurationLimit.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Vehicle.DurationLimit.Builder>
-
mergeUnknownFields
public final Vehicle.DurationLimit.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Vehicle.DurationLimit.Builder>
-
-