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
4package com.google.ortools.linearsolver;
5
21 implements com.google.protobuf.ProtocolMessageEnum {
163 ;
164
175 public static final int MPSOLVER_OPTIMAL_VALUE = 0;
190 public static final int MPSOLVER_FEASIBLE_VALUE = 1;
201 public static final int MPSOLVER_INFEASIBLE_VALUE = 2;
211 public static final int MPSOLVER_UNBOUNDED_VALUE = 3;
221 public static final int MPSOLVER_ABNORMAL_VALUE = 4;
230 public static final int MPSOLVER_NOT_SOLVED_VALUE = 6;
239 public static final int MPSOLVER_MODEL_IS_VALID_VALUE = 97;
248 public static final int MPSOLVER_CANCELLED_BY_USER_VALUE = 98;
257 public static final int MPSOLVER_UNKNOWN_STATUS_VALUE = 99;
266 public static final int MPSOLVER_MODEL_INVALID_VALUE = 5;
275 public static final int MPSOLVER_MODEL_INVALID_SOLUTION_HINT_VALUE = 84;
283 public static final int MPSOLVER_MODEL_INVALID_SOLVER_PARAMETERS_VALUE = 85;
294 public static final int MPSOLVER_SOLVER_TYPE_UNAVAILABLE_VALUE = 7;
305 public static final int MPSOLVER_INCOMPATIBLE_OPTIONS_VALUE = 113;
306
307
308 public final int getNumber() {
309 return value;
310 }
311
317 @java.lang.Deprecated
318 public static MPSolverResponseStatus valueOf(int value) {
319 return forNumber(value);
320 }
321
326 public static MPSolverResponseStatus forNumber(int value) {
327 switch (value) {
328 case 0: return MPSOLVER_OPTIMAL;
329 case 1: return MPSOLVER_FEASIBLE;
330 case 2: return MPSOLVER_INFEASIBLE;
331 case 3: return MPSOLVER_UNBOUNDED;
332 case 4: return MPSOLVER_ABNORMAL;
333 case 6: return MPSOLVER_NOT_SOLVED;
334 case 97: return MPSOLVER_MODEL_IS_VALID;
335 case 98: return MPSOLVER_CANCELLED_BY_USER;
336 case 99: return MPSOLVER_UNKNOWN_STATUS;
337 case 5: return MPSOLVER_MODEL_INVALID;
338 case 84: return MPSOLVER_MODEL_INVALID_SOLUTION_HINT;
339 case 85: return MPSOLVER_MODEL_INVALID_SOLVER_PARAMETERS;
340 case 7: return MPSOLVER_SOLVER_TYPE_UNAVAILABLE;
341 case 113: return MPSOLVER_INCOMPATIBLE_OPTIONS;
342 default: return null;
343 }
344 }
345
346 public static com.google.protobuf.Internal.EnumLiteMap<MPSolverResponseStatus>
348 return internalValueMap;
349 }
350 private static final com.google.protobuf.Internal.EnumLiteMap<
351 MPSolverResponseStatus> internalValueMap =
352 new com.google.protobuf.Internal.EnumLiteMap<MPSolverResponseStatus>() {
353 public MPSolverResponseStatus findValueByNumber(int number) {
354 return MPSolverResponseStatus.forNumber(number);
355 }
356 };
357
358 public final com.google.protobuf.Descriptors.EnumValueDescriptor
360 return getDescriptor().getValues().get(ordinal());
361 }
362 public final com.google.protobuf.Descriptors.EnumDescriptor
364 return getDescriptor();
365 }
366 public static final com.google.protobuf.Descriptors.EnumDescriptor
368 return com.google.ortools.linearsolver.LinearSolver.getDescriptor().getEnumTypes().get(0);
369 }
370
371 private static final MPSolverResponseStatus[] VALUES = values();
372
374 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
375 if (desc.getType() != getDescriptor()) {
376 throw new java.lang.IllegalArgumentException(
377 "EnumValueDescriptor is not for this type.");
378 }
379 return VALUES[desc.getIndex()];
380 }
381
382 private final int value;
383
384 private MPSolverResponseStatus(int value) {
385 this.value = value;
386 }
387
388 // @@protoc_insertion_point(enum_scope:operations_research.MPSolverResponseStatus)
389}
390
static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
static MPSolverResponseStatus valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
.lang.Deprecated static MPSolverResponseStatus valueOf(int value)
final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
static com.google.protobuf.Internal.EnumLiteMap< MPSolverResponseStatus > internalGetValueMap()