Java Reference

Java Reference

MPSolverResponseStatus.java
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ortools/linear_solver/linear_solver.proto
3 
4 package com.google.ortools.linearsolver;
5 
21  implements com.google.protobuf.ProtocolMessageEnum {
143  ;
144 
155  public static final int MPSOLVER_OPTIMAL_VALUE = 0;
170  public static final int MPSOLVER_FEASIBLE_VALUE = 1;
181  public static final int MPSOLVER_INFEASIBLE_VALUE = 2;
191  public static final int MPSOLVER_UNBOUNDED_VALUE = 3;
201  public static final int MPSOLVER_ABNORMAL_VALUE = 4;
210  public static final int MPSOLVER_NOT_SOLVED_VALUE = 6;
219  public static final int MPSOLVER_MODEL_IS_VALID_VALUE = 97;
228  public static final int MPSOLVER_UNKNOWN_STATUS_VALUE = 99;
237  public static final int MPSOLVER_MODEL_INVALID_VALUE = 5;
246  public static final int MPSOLVER_MODEL_INVALID_SOLUTION_HINT_VALUE = 84;
254  public static final int MPSOLVER_MODEL_INVALID_SOLVER_PARAMETERS_VALUE = 85;
265  public static final int MPSOLVER_SOLVER_TYPE_UNAVAILABLE_VALUE = 7;
266 
267 
268  public final int getNumber() {
269  return value;
270  }
271 
277  @java.lang.Deprecated
278  public static MPSolverResponseStatus valueOf(int value) {
279  return forNumber(value);
280  }
281 
286  public static MPSolverResponseStatus forNumber(int value) {
287  switch (value) {
288  case 0: return MPSOLVER_OPTIMAL;
289  case 1: return MPSOLVER_FEASIBLE;
290  case 2: return MPSOLVER_INFEASIBLE;
291  case 3: return MPSOLVER_UNBOUNDED;
292  case 4: return MPSOLVER_ABNORMAL;
293  case 6: return MPSOLVER_NOT_SOLVED;
294  case 97: return MPSOLVER_MODEL_IS_VALID;
295  case 99: return MPSOLVER_UNKNOWN_STATUS;
296  case 5: return MPSOLVER_MODEL_INVALID;
297  case 84: return MPSOLVER_MODEL_INVALID_SOLUTION_HINT;
298  case 85: return MPSOLVER_MODEL_INVALID_SOLVER_PARAMETERS;
299  case 7: return MPSOLVER_SOLVER_TYPE_UNAVAILABLE;
300  default: return null;
301  }
302  }
303 
304  public static com.google.protobuf.Internal.EnumLiteMap<MPSolverResponseStatus>
306  return internalValueMap;
307  }
308  private static final com.google.protobuf.Internal.EnumLiteMap<
309  MPSolverResponseStatus> internalValueMap =
310  new com.google.protobuf.Internal.EnumLiteMap<MPSolverResponseStatus>() {
311  public MPSolverResponseStatus findValueByNumber(int number) {
312  return MPSolverResponseStatus.forNumber(number);
313  }
314  };
315 
316  public final com.google.protobuf.Descriptors.EnumValueDescriptor
318  return getDescriptor().getValues().get(ordinal());
319  }
320  public final com.google.protobuf.Descriptors.EnumDescriptor
322  return getDescriptor();
323  }
324  public static final com.google.protobuf.Descriptors.EnumDescriptor
326  return com.google.ortools.linearsolver.LinearSolver.getDescriptor().getEnumTypes().get(0);
327  }
328 
329  private static final MPSolverResponseStatus[] VALUES = values();
330 
332  com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
333  if (desc.getType() != getDescriptor()) {
334  throw new java.lang.IllegalArgumentException(
335  "EnumValueDescriptor is not for this type.");
336  }
337  return VALUES[desc.getIndex()];
338  }
339 
340  private final int value;
341 
342  private MPSolverResponseStatus(int value) {
343  this.value = value;
344  }
345 
346  // @@protoc_insertion_point(enum_scope:operations_research.MPSolverResponseStatus)
347 }
348 
MPSOLVER_MODEL_INVALID_SOLVER_PARAMETERS
MPSOLVER_SOLVER_TYPE_UNAVAILABLE
final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
final int getNumber()
MPSOLVER_UNKNOWN_STATUS
final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap< MPSolverResponseStatus > internalGetValueMap()
MPSOLVER_MODEL_INVALID
MPSOLVER_FEASIBLE
static MPSolverResponseStatus valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
MPSOLVER_OPTIMAL
MPSOLVER_ABNORMAL
static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
.lang.Deprecated static MPSolverResponseStatus valueOf(int value)
MPSOLVER_INFEASIBLE
MPSOLVER_NOT_SOLVED
static com.google.protobuf.Descriptors.FileDescriptor getDescriptor()
static MPSolverResponseStatus forNumber(int value)
MPSOLVER_UNBOUNDED
MPSOLVER_MODEL_IS_VALID
MPSOLVER_MODEL_INVALID_SOLUTION_HINT