Interface InjectedSolutionConstraint.ConstraintRelaxation.RelaxationOrBuilder (1.66.0)

publicstaticinterface InjectedSolutionConstraint.ConstraintRelaxation.RelaxationOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getLevel()

publicabstractInjectedSolutionConstraint.ConstraintRelaxation.Relaxation.LevelgetLevel()

The constraint relaxation level that applies when the conditions at or after threshold_time AND at least threshold_visit_count are satisfied.

.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1;

Returns
Type Description
InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level

The level.

getLevelValue()

publicabstractintgetLevelValue()

The constraint relaxation level that applies when the conditions at or after threshold_time AND at least threshold_visit_count are satisfied.

.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1;

Returns
Type Description
int

The enum numeric value on the wire for level.

getThresholdTime()

publicabstractTimestampgetThresholdTime()

The time at or after which the relaxation level may be applied.

.google.protobuf.Timestamp threshold_time = 2;

Returns
Type Description
Timestamp

The thresholdTime.

getThresholdTimeOrBuilder()

publicabstractTimestampOrBuildergetThresholdTimeOrBuilder()

The time at or after which the relaxation level may be applied.

.google.protobuf.Timestamp threshold_time = 2;

Returns
Type Description
TimestampOrBuilder

getThresholdVisitCount()

publicabstractintgetThresholdVisitCount()

The number of visits at or after which the relaxation level may be applied. If threshold_visit_count is 0 (or unset), the level may be applied directly at the vehicle start.

If it is route.visits_size() + 1, the level may only be applied to the vehicle end. If it is more than route.visits_size() + 1, level is not applied at all for that route.

int32 threshold_visit_count = 3;

Returns
Type Description
int

The thresholdVisitCount.

hasThresholdTime()

publicabstractbooleanhasThresholdTime()

The time at or after which the relaxation level may be applied.

.google.protobuf.Timestamp threshold_time = 2;

Returns
Type Description
boolean

Whether the thresholdTime field is set.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.