15 implements com.google.protobuf.ProtocolMessageEnum {
78 public static final int UNKNOWN_VALUE = 0;
87 public static final int MODEL_INVALID_VALUE = 1;
97 public static final int FEASIBLE_VALUE = 2;
105 public static final int INFEASIBLE_VALUE = 3;
120 public static final int OPTIMAL_VALUE = 4;
124 if (
this == UNRECOGNIZED) {
125 throw new java.lang.IllegalArgumentException(
126 "Can't get the number of an unknown enum value.");
136 @java.lang.Deprecated
138 return forNumber(value);
147 case 0:
return UNKNOWN;
148 case 1:
return MODEL_INVALID;
149 case 2:
return FEASIBLE;
150 case 3:
return INFEASIBLE;
151 case 4:
return OPTIMAL;
152 default:
return null;
156 public static com.google.protobuf.Internal.EnumLiteMap<
CpSolverStatus>
158 return internalValueMap;
160 private static final com.google.protobuf.Internal.EnumLiteMap<
168 public final com.google.protobuf.Descriptors.EnumValueDescriptor
170 if (
this == UNRECOGNIZED) {
171 throw new java.lang.IllegalStateException(
172 "Can't get the descriptor of an unrecognized enum value.");
174 return getDescriptor().getValues().get(ordinal());
176 public final com.google.protobuf.Descriptors.EnumDescriptor
178 return getDescriptor();
180 public static final com.google.protobuf.Descriptors.EnumDescriptor
182 return com.google.ortools.sat.CpModelProtobuf.getDescriptor().getEnumTypes().get(0);
188 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
189 if (desc.getType() != getDescriptor()) {
190 throw new java.lang.IllegalArgumentException(
191 "EnumValueDescriptor is not for this type.");
193 if (desc.getIndex() == -1) {
196 return VALUES[desc.getIndex()];
199 private final int value;