Package com.google.cloud.optimization.v1
Enum OptimizeToursRequest.SolvingMode
java.lang.Object
java.lang.Enum<OptimizeToursRequest.SolvingMode>
com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<OptimizeToursRequest.SolvingMode>
- Enclosing class:
- OptimizeToursRequest
public static enum OptimizeToursRequest.SolvingMode
extends Enum<OptimizeToursRequest.SolvingMode>
implements com.google.protobuf.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][google.cloud.optimization.v1.OptimizeToursRequest.max_validation_errors] to cap the number of errors returned.Protobuf enum
google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSolve the model.Only populates [OptimizeToursResponse.validation_errors][google.cloud.optimization.v1.OptimizeToursResponse.validation_errors] or [OptimizeToursResponse.skipped_shipments][google.cloud.optimization.v1.OptimizeToursResponse.skipped_shipments], and doesn't actually solve the rest of the request (`status` and `routes` are unset in the response).Only validates the model without solving it: populates as many [OptimizeToursResponse.validation_errors][google.cloud.optimization.v1.OptimizeToursResponse.validation_errors] as possible. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intSolve the model.static final intOnly populates [OptimizeToursResponse.validation_errors][google.cloud.optimization.v1.OptimizeToursResponse.validation_errors] or [OptimizeToursResponse.skipped_shipments][google.cloud.optimization.v1.OptimizeToursResponse.skipped_shipments], and doesn't actually solve the rest of the request (`status` and `routes` are unset in the response).static final intOnly validates the model without solving it: populates as many [OptimizeToursResponse.validation_errors][google.cloud.optimization.v1.OptimizeToursResponse.validation_errors] as possible. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<OptimizeToursRequest.SolvingMode>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.static OptimizeToursRequest.SolvingMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DEFAULT_SOLVE
Solve the model.
DEFAULT_SOLVE = 0; -
VALIDATE_ONLY
Only validates the model without solving it: populates as many [OptimizeToursResponse.validation_errors][google.cloud.optimization.v1.OptimizeToursResponse.validation_errors] as possible.
VALIDATE_ONLY = 1; -
DETECT_SOME_INFEASIBLE_SHIPMENTS
Only populates [OptimizeToursResponse.validation_errors][google.cloud.optimization.v1.OptimizeToursResponse.validation_errors] or [OptimizeToursResponse.skipped_shipments][google.cloud.optimization.v1.OptimizeToursResponse.skipped_shipments], and doesn't actually solve the rest of the request (`status` and `routes` are unset in the response). If infeasibilities in `injected_solution_constraint` routes are detected they are populated in the [OptimizeToursResponse.validation_errors][google.cloud.optimization.v1.OptimizeToursResponse.validation_errors] field and [OptimizeToursResponse.skipped_shipments][google.cloud.optimization.v1.OptimizeToursResponse.skipped_shipments] is left empty. *IMPORTANT*: not all infeasible shipments are returned here, but only the ones that are detected as infeasible during preprocessing.
DETECT_SOME_INFEASIBLE_SHIPMENTS = 2; -
UNRECOGNIZED
-
-
Field Details
-
DEFAULT_SOLVE_VALUE
public static final int DEFAULT_SOLVE_VALUESolve the model.
DEFAULT_SOLVE = 0;- See Also:
-
VALIDATE_ONLY_VALUE
public static final int VALIDATE_ONLY_VALUEOnly validates the model without solving it: populates as many [OptimizeToursResponse.validation_errors][google.cloud.optimization.v1.OptimizeToursResponse.validation_errors] as possible.
VALIDATE_ONLY = 1;- See Also:
-
DETECT_SOME_INFEASIBLE_SHIPMENTS_VALUE
public static final int DETECT_SOME_INFEASIBLE_SHIPMENTS_VALUEOnly populates [OptimizeToursResponse.validation_errors][google.cloud.optimization.v1.OptimizeToursResponse.validation_errors] or [OptimizeToursResponse.skipped_shipments][google.cloud.optimization.v1.OptimizeToursResponse.skipped_shipments], and doesn't actually solve the rest of the request (`status` and `routes` are unset in the response). If infeasibilities in `injected_solution_constraint` routes are detected they are populated in the [OptimizeToursResponse.validation_errors][google.cloud.optimization.v1.OptimizeToursResponse.validation_errors] field and [OptimizeToursResponse.skipped_shipments][google.cloud.optimization.v1.OptimizeToursResponse.skipped_shipments] is left empty. *IMPORTANT*: not all infeasible shipments are returned here, but only the ones that are detected as infeasible during preprocessing.
DETECT_SOME_INFEASIBLE_SHIPMENTS = 2;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<OptimizeToursRequest.SolvingMode> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static OptimizeToursRequest.SolvingMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-