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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Vehicle.DurationLimit
build()
Vehicle.DurationLimit
buildPartial()
Vehicle.DurationLimit.Builder
clear()
Vehicle.DurationLimit.Builder
clearCostPerHourAfterSoftMax()
Cost per hour incurred if the `soft_max_duration` threshold is violated.Vehicle.DurationLimit.Builder
clearCostPerSquareHourAfterQuadraticSoftMax()
Cost per square hour incurred if the `quadratic_soft_max_duration` threshold is violated.Vehicle.DurationLimit.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Vehicle.DurationLimit.Builder
clearMaxDuration()
A hard limit constraining the duration to be at most max_duration.Vehicle.DurationLimit.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
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.Vehicle.DurationLimit.Builder
clearSoftMaxDuration()
A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost.Vehicle.DurationLimit.Builder
clone()
double
getCostPerHourAfterSoftMax()
Cost per hour incurred if the `soft_max_duration` threshold is violated.double
getCostPerSquareHourAfterQuadraticSoftMax()
Cost per square hour incurred if the `quadratic_soft_max_duration` threshold is violated.Vehicle.DurationLimit
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.protobuf.Duration
getMaxDuration()
A hard limit constraining the duration to be at most max_duration.com.google.protobuf.Duration.Builder
getMaxDurationBuilder()
A hard limit constraining the duration to be at most max_duration.com.google.protobuf.DurationOrBuilder
getMaxDurationOrBuilder()
A hard limit constraining the duration to be at most max_duration.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.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.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.com.google.protobuf.Duration
getSoftMaxDuration()
A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost.com.google.protobuf.Duration.Builder
getSoftMaxDurationBuilder()
A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost.com.google.protobuf.DurationOrBuilder
getSoftMaxDurationOrBuilder()
A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost.boolean
hasCostPerHourAfterSoftMax()
Cost per hour incurred if the `soft_max_duration` threshold is violated.boolean
hasCostPerSquareHourAfterQuadraticSoftMax()
Cost per square hour incurred if the `quadratic_soft_max_duration` threshold is violated.boolean
hasMaxDuration()
A hard limit constraining the duration to be at most max_duration.boolean
hasQuadraticSoftMaxDuration()
A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost, quadratic in the duration.boolean
hasSoftMaxDuration()
A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Vehicle.DurationLimit.Builder
mergeFrom(Vehicle.DurationLimit other)
Vehicle.DurationLimit.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Vehicle.DurationLimit.Builder
mergeFrom(com.google.protobuf.Message other)
Vehicle.DurationLimit.Builder
mergeMaxDuration(com.google.protobuf.Duration value)
A hard limit constraining the duration to be at most max_duration.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.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.Vehicle.DurationLimit.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Vehicle.DurationLimit.Builder
setCostPerHourAfterSoftMax(double value)
Cost per hour incurred if the `soft_max_duration` threshold is violated.Vehicle.DurationLimit.Builder
setCostPerSquareHourAfterQuadraticSoftMax(double value)
Cost per square hour incurred if the `quadratic_soft_max_duration` threshold is violated.Vehicle.DurationLimit.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Vehicle.DurationLimit.Builder
setMaxDuration(com.google.protobuf.Duration value)
A hard limit constraining the duration to be at most max_duration.Vehicle.DurationLimit.Builder
setMaxDuration(com.google.protobuf.Duration.Builder builderForValue)
A hard limit constraining the duration to be at most max_duration.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.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.Vehicle.DurationLimit.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
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.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.Vehicle.DurationLimit.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Vehicle.DurationLimit.Builder>
-
clear
public Vehicle.DurationLimit.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<Vehicle.DurationLimit.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<Vehicle.DurationLimit.Builder>
-
getDefaultInstanceForType
public Vehicle.DurationLimit getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Vehicle.DurationLimit build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Vehicle.DurationLimit buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Vehicle.DurationLimit.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<Vehicle.DurationLimit.Builder>
-
setField
public Vehicle.DurationLimit.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<Vehicle.DurationLimit.Builder>
-
clearField
public Vehicle.DurationLimit.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<Vehicle.DurationLimit.Builder>
-
clearOneof
public Vehicle.DurationLimit.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<Vehicle.DurationLimit.Builder>
-
setRepeatedField
public Vehicle.DurationLimit.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<Vehicle.DurationLimit.Builder>
-
addRepeatedField
public Vehicle.DurationLimit.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<Vehicle.DurationLimit.Builder>
-
mergeFrom
public Vehicle.DurationLimit.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Vehicle.DurationLimit.Builder>
-
mergeFrom
public Vehicle.DurationLimit.Builder mergeFrom(Vehicle.DurationLimit other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasMaxDuration
in 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:
getMaxDuration
in 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:
getMaxDurationOrBuilder
in 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:
hasSoftMaxDuration
in 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:
getSoftMaxDuration
in 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:
getSoftMaxDurationOrBuilder
in 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:
hasCostPerHourAfterSoftMax
in 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:
getCostPerHourAfterSoftMax
in 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:
hasQuadraticSoftMaxDuration
in 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:
getQuadraticSoftMaxDuration
in 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:
getQuadraticSoftMaxDurationOrBuilder
in 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:
hasCostPerSquareHourAfterQuadraticSoftMax
in 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:
getCostPerSquareHourAfterQuadraticSoftMax
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Vehicle.DurationLimit.Builder>
-
mergeUnknownFields
public final Vehicle.DurationLimit.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Vehicle.DurationLimit.Builder>
-
-