4 package com.google.ortools.sat;
14 implements
com.
google.protobuf.ProtocolMessageEnum {
71 public static final int UNKNOWN_VALUE = 0;
80 public static final int MODEL_INVALID_VALUE = 1;
89 public static final int FEASIBLE_VALUE = 2;
97 public static final int INFEASIBLE_VALUE = 3;
107 public static final int OPTIMAL_VALUE = 4;
111 if (
this == UNRECOGNIZED) {
112 throw new java.lang.IllegalArgumentException(
113 "Can't get the number of an unknown enum value.");
121 @java.lang.Deprecated
123 return forNumber(value);
128 case 0:
return UNKNOWN;
129 case 1:
return MODEL_INVALID;
130 case 2:
return FEASIBLE;
131 case 3:
return INFEASIBLE;
132 case 4:
return OPTIMAL;
133 default:
return null;
139 return internalValueMap;
141 private static final com.
google.protobuf.Internal.EnumLiteMap<
149 public final com.
google.protobuf.Descriptors.EnumValueDescriptor
151 return getDescriptor().getValues().get(ordinal());
153 public final com.
google.protobuf.Descriptors.EnumDescriptor
155 return getDescriptor();
157 public static final com.
google.protobuf.Descriptors.EnumDescriptor
165 com.
google.protobuf.Descriptors.EnumValueDescriptor desc) {
166 if (desc.getType() != getDescriptor()) {
167 throw new java.lang.IllegalArgumentException(
168 "EnumValueDescriptor is not for this type.");
170 if (desc.getIndex() == -1) {
173 return VALUES[desc.getIndex()];
176 private final int value;