15 implements com.google.protobuf.ProtocolMessageEnum {
71 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
72 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
87 public static final int UNKNOWN_VALUE = 0;
96 public static final int MODEL_INVALID_VALUE = 1;
106 public static final int FEASIBLE_VALUE = 2;
114 public static final int INFEASIBLE_VALUE = 3;
129 public static final int OPTIMAL_VALUE = 4;
133 if (
this == UNRECOGNIZED) {
134 throw new java.lang.IllegalArgumentException(
135 "Can't get the number of an unknown enum value.");
145 @java.lang.Deprecated
147 return forNumber(value);
156 case 0:
return UNKNOWN;
157 case 1:
return MODEL_INVALID;
158 case 2:
return FEASIBLE;
159 case 3:
return INFEASIBLE;
160 case 4:
return OPTIMAL;
161 default:
return null;
165 public static com.google.protobuf.Internal.EnumLiteMap<
CpSolverStatus>
167 return internalValueMap;
169 private static final com.google.protobuf.Internal.EnumLiteMap<
177 public final com.google.protobuf.Descriptors.EnumValueDescriptor
179 if (
this == UNRECOGNIZED) {
180 throw new java.lang.IllegalStateException(
181 "Can't get the descriptor of an unrecognized enum value.");
183 return getDescriptor().getValues().get(ordinal());
185 public final com.google.protobuf.Descriptors.EnumDescriptor
187 return getDescriptor();
189 public static final com.google.protobuf.Descriptors.EnumDescriptor
191 return com.google.ortools.sat.CpModelProtobuf.getDescriptor().getEnumTypes().get(0);
197 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
198 if (desc.getType() != getDescriptor()) {
199 throw new java.lang.IllegalArgumentException(
200 "EnumValueDescriptor is not for this type.");
202 if (desc.getIndex() == -1) {
205 return VALUES[desc.getIndex()];
208 private final int value;