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 enumgoogle.cloud.optimization.v1.OptimizeToursRequest.SolvingMode
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULT_SOLVE
Solve the model.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).UNRECOGNIZED
VALIDATE_ONLY
Only validates the model without solving it: populates as many [OptimizeToursResponse.validation_errors][google.cloud.optimization.v1.OptimizeToursResponse.validation_errors] as possible.
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_SOLVE_VALUE
Solve the model.static int
DETECT_SOME_INFEASIBLE_SHIPMENTS_VALUE
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).static int
VALIDATE_ONLY_VALUE
Only validates the model without solving it: populates as many [OptimizeToursResponse.validation_errors][google.cloud.optimization.v1.OptimizeToursResponse.validation_errors] as possible.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static OptimizeToursRequest.SolvingMode
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<OptimizeToursRequest.SolvingMode>
internalGetValueMap()
static OptimizeToursRequest.SolvingMode
valueOf(int value)
Deprecated.static OptimizeToursRequest.SolvingMode
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static OptimizeToursRequest.SolvingMode
valueOf(String 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 Detail
-
DEFAULT_SOLVE
public static final OptimizeToursRequest.SolvingMode DEFAULT_SOLVE
Solve the model.
DEFAULT_SOLVE = 0;
-
VALIDATE_ONLY
public static final OptimizeToursRequest.SolvingMode 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
public static final OptimizeToursRequest.SolvingMode 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
public static final OptimizeToursRequest.SolvingMode UNRECOGNIZED
-
-
Field Detail
-
DEFAULT_SOLVE_VALUE
public static final int DEFAULT_SOLVE_VALUE
Solve the model.
DEFAULT_SOLVE = 0;
- See Also:
- Constant Field Values
-
VALIDATE_ONLY_VALUE
public static final int VALIDATE_ONLY_VALUE
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;
- See Also:
- Constant Field Values
-
DETECT_SOME_INFEASIBLE_SHIPMENTS_VALUE
public static final int DETECT_SOME_INFEASIBLE_SHIPMENTS_VALUE
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;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static OptimizeToursRequest.SolvingMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (OptimizeToursRequest.SolvingMode c : OptimizeToursRequest.SolvingMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OptimizeToursRequest.SolvingMode valueOf(String name)
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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static OptimizeToursRequest.SolvingMode valueOf(int value)
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
public static OptimizeToursRequest.SolvingMode forNumber(int value)
- 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:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final 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
-
-