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 Details

    • 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 Details

    • DEFAULT_SOLVE_VALUE

      public static final int DEFAULT_SOLVE_VALUE
       Solve the model.
       
      DEFAULT_SOLVE = 0;
      See Also:
    • 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:
    • 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:
  • Method Details

    • values

      public static OptimizeToursRequest.SolvingMode[] 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

      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.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 name
      NullPointerException - 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 interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 name
      NullPointerException - if the argument is null