Enum OptimizeToursRequest.SolvingMode (1.1.3)

public enum OptimizeToursRequest.SolvingMode extends Enum<OptimizeToursRequest.SolvingMode> implements ProtocolMessageEnum

Defines how the solver should handle the request. In all modes but VALIDATE_ONLY, if the request is invalid, you will receive an INVALID_REQUEST error. See max_validation_errors to cap the number of errors returned.

Protobuf enum google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode

Implements

ProtocolMessageEnum

Static Fields

NameDescription
DEFAULT_SOLVE

Solve the model.

DEFAULT_SOLVE = 0;

DEFAULT_SOLVE_VALUE

Solve the model.

DEFAULT_SOLVE = 0;

DETECT_SOME_INFEASIBLE_SHIPMENTS

Only populates OptimizeToursResponse.skipped_shipments, and doesn't actually solve the rest of the request (status and routes are unset in the response). IMPORTANT: not all infeasible shipments are returned here, but only the ones that are detected as infeasible as a preprocessing.

DETECT_SOME_INFEASIBLE_SHIPMENTS = 2;

DETECT_SOME_INFEASIBLE_SHIPMENTS_VALUE

Only populates OptimizeToursResponse.skipped_shipments, and doesn't actually solve the rest of the request (status and routes are unset in the response). IMPORTANT: not all infeasible shipments are returned here, but only the ones that are detected as infeasible as a preprocessing.

DETECT_SOME_INFEASIBLE_SHIPMENTS = 2;

UNRECOGNIZED
VALIDATE_ONLY

Only validates the model without solving it: populates as many OptimizeToursResponse.validation_errors as possible.

VALIDATE_ONLY = 1;

VALIDATE_ONLY_VALUE

Only validates the model without solving it: populates as many OptimizeToursResponse.validation_errors as possible.

VALIDATE_ONLY = 1;

Static Methods

NameDescription
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

NameDescription
getDescriptorForType()
getNumber()
getValueDescriptor()