5package com.google.ortools.linearsolver;
15 com.google.protobuf.GeneratedMessageV3 implements
18private static final long serialVersionUID = 0L;
20 private MPModelRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
25 solverSpecificParameters_ =
"";
29 @SuppressWarnings({
"unused"})
31 UnusedPrivateParameter unused) {
35 public static final com.google.protobuf.Descriptors.Descriptor
37 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelRequest_descriptor;
41 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
43 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelRequest_fieldAccessorTable
44 .ensureFieldAccessorsInitialized(
45 com.google.ortools.linearsolver.MPModelRequest.class, com.google.ortools.linearsolver.MPModelRequest.Builder.class);
60 implements com.google.protobuf.ProtocolMessageEnum {
183 public static final int CLP_LINEAR_PROGRAMMING_VALUE = 0;
191 public static final int GLOP_LINEAR_PROGRAMMING_VALUE = 2;
195 public static final int GLPK_LINEAR_PROGRAMMING_VALUE = 1;
203 public static final int GUROBI_LINEAR_PROGRAMMING_VALUE = 6;
211 public static final int XPRESS_LINEAR_PROGRAMMING_VALUE = 101;
219 public static final int CPLEX_LINEAR_PROGRAMMING_VALUE = 10;
223 public static final int HIGHS_LINEAR_PROGRAMMING_VALUE = 15;
231 public static final int SCIP_MIXED_INTEGER_PROGRAMMING_VALUE = 3;
235 public static final int GLPK_MIXED_INTEGER_PROGRAMMING_VALUE = 4;
239 public static final int CBC_MIXED_INTEGER_PROGRAMMING_VALUE = 5;
247 public static final int GUROBI_MIXED_INTEGER_PROGRAMMING_VALUE = 7;
255 public static final int XPRESS_MIXED_INTEGER_PROGRAMMING_VALUE = 102;
263 public static final int CPLEX_MIXED_INTEGER_PROGRAMMING_VALUE = 11;
267 public static final int HIGHS_MIXED_INTEGER_PROGRAMMING_VALUE = 16;
271 public static final int BOP_INTEGER_PROGRAMMING_VALUE = 12;
282 public static final int SAT_INTEGER_PROGRAMMING_VALUE = 14;
292 public static final int PDLP_LINEAR_PROGRAMMING_VALUE = 8;
296 public static final int KNAPSACK_MIXED_INTEGER_PROGRAMMING_VALUE = 13;
308 @java.lang.Deprecated
310 return forNumber(value);
319 case 0:
return CLP_LINEAR_PROGRAMMING;
320 case 2:
return GLOP_LINEAR_PROGRAMMING;
321 case 1:
return GLPK_LINEAR_PROGRAMMING;
322 case 6:
return GUROBI_LINEAR_PROGRAMMING;
323 case 101:
return XPRESS_LINEAR_PROGRAMMING;
324 case 10:
return CPLEX_LINEAR_PROGRAMMING;
325 case 15:
return HIGHS_LINEAR_PROGRAMMING;
326 case 3:
return SCIP_MIXED_INTEGER_PROGRAMMING;
327 case 4:
return GLPK_MIXED_INTEGER_PROGRAMMING;
328 case 5:
return CBC_MIXED_INTEGER_PROGRAMMING;
329 case 7:
return GUROBI_MIXED_INTEGER_PROGRAMMING;
330 case 102:
return XPRESS_MIXED_INTEGER_PROGRAMMING;
331 case 11:
return CPLEX_MIXED_INTEGER_PROGRAMMING;
332 case 16:
return HIGHS_MIXED_INTEGER_PROGRAMMING;
333 case 12:
return BOP_INTEGER_PROGRAMMING;
334 case 14:
return SAT_INTEGER_PROGRAMMING;
335 case 8:
return PDLP_LINEAR_PROGRAMMING;
336 case 13:
return KNAPSACK_MIXED_INTEGER_PROGRAMMING;
337 default:
return null;
341 public static com.google.protobuf.Internal.EnumLiteMap<
SolverType>
343 return internalValueMap;
345 private static final com.google.protobuf.Internal.EnumLiteMap<
347 new com.google.protobuf.Internal.EnumLiteMap<
SolverType>() {
348 public SolverType findValueByNumber(
int number) {
353 public final com.google.protobuf.Descriptors.EnumValueDescriptor
357 public final com.google.protobuf.Descriptors.EnumDescriptor
361 public static final com.google.protobuf.Descriptors.EnumDescriptor
363 return com.google.ortools.linearsolver.MPModelRequest.getDescriptor().getEnumTypes().get(0);
366 private static final SolverType[] VALUES = values();
369 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
371 throw new java.lang.IllegalArgumentException(
372 "EnumValueDescriptor is not for this type.");
374 return VALUES[desc.getIndex()];
377 private final int value;
386 private int bitField0_;
399 return ((bitField0_ & 0x00000001) != 0);
411 return model_ ==
null ? com.google.ortools.linearsolver.MPModelProto.getDefaultInstance() : model_;
422 return model_ ==
null ? com.google.ortools.linearsolver.MPModelProto.getDefaultInstance() : model_;
426 private int solverType_ = 2;
432 return ((bitField0_ & 0x00000002) != 0);
440 return result ==
null ? com.google.ortools.linearsolver.MPModelRequest.SolverType.GLOP_LINEAR_PROGRAMMING : result;
444 private double solverTimeLimitSeconds_ = 0D;
463 return ((bitField0_ & 0x00000004) != 0);
483 return solverTimeLimitSeconds_;
487 private boolean enableInternalSolverOutput_ =
false;
501 return ((bitField0_ & 0x00000008) != 0);
516 return enableInternalSolverOutput_;
520 @SuppressWarnings(
"serial")
521 private volatile java.lang.Object solverSpecificParameters_ = "";
545 return ((bitField0_ & 0x00000010) != 0);
570 java.lang.Object ref = solverSpecificParameters_;
571 if (ref instanceof java.lang.String) {
572 return (java.lang.String) ref;
574 com.google.protobuf.ByteString bs =
575 (com.google.protobuf.ByteString) ref;
576 java.lang.String s = bs.toStringUtf8();
577 if (bs.isValidUtf8()) {
578 solverSpecificParameters_ = s;
605 public com.google.protobuf.ByteString
607 java.lang.Object ref = solverSpecificParameters_;
608 if (ref instanceof java.lang.String) {
609 com.google.protobuf.ByteString b =
610 com.google.protobuf.ByteString.copyFromUtf8(
611 (java.lang.String) ref);
612 solverSpecificParameters_ = b;
615 return (com.google.protobuf.ByteString) ref;
620 private boolean ignoreSolverSpecificParametersFailure_ =
false;
627 return ((bitField0_ & 0x00000020) != 0);
635 return ignoreSolverSpecificParametersFailure_;
651 return ((bitField0_ & 0x00000040) != 0);
664 return modelDelta_ ==
null ? com.google.ortools.linearsolver.MPModelDeltaProto.getDefaultInstance() : modelDelta_;
676 return modelDelta_ ==
null ? com.google.ortools.linearsolver.MPModelDeltaProto.getDefaultInstance() : modelDelta_;
680 private int populateAdditionalSolutionsUpTo_ = 0;
697 return ((bitField0_ & 0x00000080) != 0);
715 return populateAdditionalSolutionsUpTo_;
718 private byte memoizedIsInitialized = -1;
725 memoizedIsInitialized = 1;
730 public void writeTo(com.google.protobuf.CodedOutputStream output)
731 throws java.io.IOException {
732 if (((bitField0_ & 0x00000001) != 0)) {
735 if (((bitField0_ & 0x00000002) != 0)) {
736 output.writeEnum(2, solverType_);
738 if (((bitField0_ & 0x00000004) != 0)) {
739 output.writeDouble(3, solverTimeLimitSeconds_);
741 if (((bitField0_ & 0x00000008) != 0)) {
742 output.writeBool(4, enableInternalSolverOutput_);
744 if (((bitField0_ & 0x00000010) != 0)) {
745 com.google.protobuf.GeneratedMessageV3.writeString(output, 5, solverSpecificParameters_);
747 if (((bitField0_ & 0x00000040) != 0)) {
750 if (((bitField0_ & 0x00000020) != 0)) {
751 output.writeBool(9, ignoreSolverSpecificParametersFailure_);
753 if (((bitField0_ & 0x00000080) != 0)) {
754 output.writeInt32(11, populateAdditionalSolutionsUpTo_);
756 getUnknownFields().writeTo(output);
761 int size = memoizedSize;
762 if (size != -1)
return size;
765 if (((bitField0_ & 0x00000001) != 0)) {
766 size += com.google.protobuf.CodedOutputStream
769 if (((bitField0_ & 0x00000002) != 0)) {
770 size += com.google.protobuf.CodedOutputStream
771 .computeEnumSize(2, solverType_);
773 if (((bitField0_ & 0x00000004) != 0)) {
774 size += com.google.protobuf.CodedOutputStream
775 .computeDoubleSize(3, solverTimeLimitSeconds_);
777 if (((bitField0_ & 0x00000008) != 0)) {
778 size += com.google.protobuf.CodedOutputStream
779 .computeBoolSize(4, enableInternalSolverOutput_);
781 if (((bitField0_ & 0x00000010) != 0)) {
782 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, solverSpecificParameters_);
784 if (((bitField0_ & 0x00000040) != 0)) {
785 size += com.google.protobuf.CodedOutputStream
788 if (((bitField0_ & 0x00000020) != 0)) {
789 size += com.google.protobuf.CodedOutputStream
790 .computeBoolSize(9, ignoreSolverSpecificParametersFailure_);
792 if (((bitField0_ & 0x00000080) != 0)) {
793 size += com.google.protobuf.CodedOutputStream
794 .computeInt32Size(11, populateAdditionalSolutionsUpTo_);
796 size += getUnknownFields().getSerializedSize();
802 public boolean equals(
final java.lang.Object obj) {
806 if (!(obj instanceof com.google.ortools.linearsolver.MPModelRequest)) {
807 return super.equals(obj);
818 if (solverType_ != other.solverType_)
return false;
823 != java.lang.Double.doubleToLongBits(
851 if (!getUnknownFields().equals(other.getUnknownFields()))
return false;
857 if (memoizedHashCode != 0) {
858 return memoizedHashCode;
868 hash = (53 * hash) + solverType_;
872 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
877 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
886 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
897 hash = (29 * hash) + getUnknownFields().hashCode();
898 memoizedHashCode = hash;
903 java.nio.ByteBuffer data)
904 throws com.google.protobuf.InvalidProtocolBufferException {
908 java.nio.ByteBuffer data,
909 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
910 throws com.google.protobuf.InvalidProtocolBufferException {
914 com.google.protobuf.ByteString data)
915 throws com.google.protobuf.InvalidProtocolBufferException {
919 com.google.protobuf.ByteString data,
920 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
921 throws com.google.protobuf.InvalidProtocolBufferException {
925 throws com.google.protobuf.InvalidProtocolBufferException {
930 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
931 throws com.google.protobuf.InvalidProtocolBufferException {
935 throws java.io.IOException {
936 return com.google.protobuf.GeneratedMessageV3
937 .parseWithIOException(
PARSER, input);
940 java.io.InputStream input,
941 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
942 throws java.io.IOException {
943 return com.google.protobuf.GeneratedMessageV3
944 .parseWithIOException(
PARSER, input, extensionRegistry);
948 throws java.io.IOException {
949 return com.google.protobuf.GeneratedMessageV3
950 .parseDelimitedWithIOException(
PARSER, input);
954 java.io.InputStream input,
955 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
956 throws java.io.IOException {
957 return com.google.protobuf.GeneratedMessageV3
958 .parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
961 com.google.protobuf.CodedInputStream input)
962 throws java.io.IOException {
963 return com.google.protobuf.GeneratedMessageV3
964 .parseWithIOException(
PARSER, input);
967 com.google.protobuf.CodedInputStream input,
968 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
969 throws java.io.IOException {
970 return com.google.protobuf.GeneratedMessageV3
971 .parseWithIOException(
PARSER, input, extensionRegistry);
984 return this == DEFAULT_INSTANCE
990 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1002 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
1005 public static final com.google.protobuf.Descriptors.Descriptor
1007 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelRequest_descriptor;
1011 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1013 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelRequest_fieldAccessorTable
1014 .ensureFieldAccessorsInitialized(
1015 com.google.ortools.linearsolver.MPModelRequest.class, com.google.ortools.linearsolver.MPModelRequest.Builder.class);
1020 maybeForceBuilderInitialization();
1024 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1026 maybeForceBuilderInitialization();
1028 private void maybeForceBuilderInitialization() {
1029 if (com.google.protobuf.GeneratedMessageV3
1030 .alwaysUseFieldBuilders) {
1031 getModelFieldBuilder();
1032 getModelDeltaFieldBuilder();
1040 if (modelBuilder_ !=
null) {
1041 modelBuilder_.dispose();
1042 modelBuilder_ =
null;
1045 solverTimeLimitSeconds_ = 0D;
1046 enableInternalSolverOutput_ =
false;
1047 solverSpecificParameters_ =
"";
1048 ignoreSolverSpecificParametersFailure_ =
false;
1050 if (modelDeltaBuilder_ !=
null) {
1051 modelDeltaBuilder_.dispose();
1052 modelDeltaBuilder_ =
null;
1054 populateAdditionalSolutionsUpTo_ = 0;
1059 public com.google.protobuf.Descriptors.Descriptor
1061 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelRequest_descriptor;
1066 return com.google.ortools.linearsolver.MPModelRequest.getDefaultInstance();
1073 throw newUninitializedMessageException(result);
1081 if (bitField0_ != 0) { buildPartial0(result); }
1086 private void buildPartial0(com.google.ortools.linearsolver.MPModelRequest result) {
1087 int from_bitField0_ = bitField0_;
1088 int to_bitField0_ = 0;
1089 if (((from_bitField0_ & 0x00000001) != 0)) {
1090 result.model_ = modelBuilder_ ==
null
1092 : modelBuilder_.build();
1093 to_bitField0_ |= 0x00000001;
1095 if (((from_bitField0_ & 0x00000002) != 0)) {
1096 result.solverType_ = solverType_;
1097 to_bitField0_ |= 0x00000002;
1099 if (((from_bitField0_ & 0x00000004) != 0)) {
1100 result.solverTimeLimitSeconds_ = solverTimeLimitSeconds_;
1101 to_bitField0_ |= 0x00000004;
1103 if (((from_bitField0_ & 0x00000008) != 0)) {
1104 result.enableInternalSolverOutput_ = enableInternalSolverOutput_;
1105 to_bitField0_ |= 0x00000008;
1107 if (((from_bitField0_ & 0x00000010) != 0)) {
1108 result.solverSpecificParameters_ = solverSpecificParameters_;
1109 to_bitField0_ |= 0x00000010;
1111 if (((from_bitField0_ & 0x00000020) != 0)) {
1112 result.ignoreSolverSpecificParametersFailure_ = ignoreSolverSpecificParametersFailure_;
1113 to_bitField0_ |= 0x00000020;
1115 if (((from_bitField0_ & 0x00000040) != 0)) {
1116 result.modelDelta_ = modelDeltaBuilder_ ==
null
1118 : modelDeltaBuilder_.build();
1119 to_bitField0_ |= 0x00000040;
1121 if (((from_bitField0_ & 0x00000080) != 0)) {
1122 result.populateAdditionalSolutionsUpTo_ = populateAdditionalSolutionsUpTo_;
1123 to_bitField0_ |= 0x00000080;
1125 result.bitField0_ |= to_bitField0_;
1130 return super.
clone();
1134 com.google.protobuf.Descriptors.FieldDescriptor field,
1135 java.lang.Object value) {
1136 return super.
setField(field, value);
1140 com.google.protobuf.Descriptors.FieldDescriptor field) {
1145 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1150 com.google.protobuf.Descriptors.FieldDescriptor field,
1151 int index, java.lang.Object value) {
1156 com.google.protobuf.Descriptors.FieldDescriptor field,
1157 java.lang.Object value) {
1162 if (other instanceof com.google.ortools.linearsolver.MPModelRequest) {
1163 return mergeFrom((com.google.ortools.linearsolver.MPModelRequest)other);
1165 super.mergeFrom(other);
1171 if (other == com.google.ortools.linearsolver.MPModelRequest.getDefaultInstance())
return this;
1172 if (other.hasModel()) {
1175 if (other.hasSolverType()) {
1178 if (other.hasSolverTimeLimitSeconds()) {
1181 if (other.hasEnableInternalSolverOutput()) {
1184 if (other.hasSolverSpecificParameters()) {
1185 solverSpecificParameters_ = other.solverSpecificParameters_;
1186 bitField0_ |= 0x00000010;
1189 if (other.hasIgnoreSolverSpecificParametersFailure()) {
1192 if (other.hasModelDelta()) {
1195 if (other.hasPopulateAdditionalSolutionsUpTo()) {
1210 com.google.protobuf.CodedInputStream input,
1211 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1212 throws java.io.IOException {
1213 if (extensionRegistry ==
null) {
1214 throw new java.lang.NullPointerException();
1217 boolean done =
false;
1219 int tag = input.readTag();
1226 getModelFieldBuilder().getBuilder(),
1228 bitField0_ |= 0x00000001;
1232 int tmpRaw = input.readEnum();
1234 com.google.ortools.linearsolver.MPModelRequest.SolverType.forNumber(tmpRaw);
1235 if (tmpValue ==
null) {
1236 mergeUnknownVarintField(2, tmpRaw);
1238 solverType_ = tmpRaw;
1239 bitField0_ |= 0x00000002;
1244 solverTimeLimitSeconds_ = input.readDouble();
1245 bitField0_ |= 0x00000004;
1249 enableInternalSolverOutput_ = input.readBool();
1250 bitField0_ |= 0x00000008;
1254 solverSpecificParameters_ = input.readBytes();
1255 bitField0_ |= 0x00000010;
1260 getModelDeltaFieldBuilder().getBuilder(),
1262 bitField0_ |= 0x00000040;
1266 ignoreSolverSpecificParametersFailure_ = input.readBool();
1267 bitField0_ |= 0x00000020;
1271 populateAdditionalSolutionsUpTo_ = input.readInt32();
1272 bitField0_ |= 0x00000080;
1276 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1283 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1284 throw e.unwrapIOException();
1290 private int bitField0_;
1293 private com.google.protobuf.SingleFieldBuilderV3<
1294 com.google.ortools.linearsolver.MPModelProto, com.google.ortools.linearsolver.MPModelProto.Builder, com.google.ortools.linearsolver.MPModelProtoOrBuilder> modelBuilder_;
1304 return ((bitField0_ & 0x00000001) != 0);
1315 if (modelBuilder_ ==
null) {
1316 return model_ ==
null ? com.google.ortools.linearsolver.MPModelProto.getDefaultInstance() : model_;
1318 return modelBuilder_.getMessage();
1329 if (modelBuilder_ ==
null) {
1330 if (value ==
null) {
1331 throw new NullPointerException();
1335 modelBuilder_.setMessage(value);
1337 bitField0_ |= 0x00000001;
1349 com.google.ortools.linearsolver.MPModelProto.Builder builderForValue) {
1350 if (modelBuilder_ ==
null) {
1351 model_ = builderForValue.build();
1353 modelBuilder_.setMessage(builderForValue.build());
1355 bitField0_ |= 0x00000001;
1367 if (modelBuilder_ ==
null) {
1368 if (((bitField0_ & 0x00000001) != 0) &&
1370 model_ != com.google.ortools.linearsolver.MPModelProto.getDefaultInstance()) {
1376 modelBuilder_.mergeFrom(value);
1378 if (model_ !=
null) {
1379 bitField0_ |= 0x00000001;
1392 bitField0_ = (bitField0_ & ~0x00000001);
1394 if (modelBuilder_ !=
null) {
1395 modelBuilder_.dispose();
1396 modelBuilder_ =
null;
1409 bitField0_ |= 0x00000001;
1411 return getModelFieldBuilder().getBuilder();
1421 if (modelBuilder_ !=
null) {
1422 return modelBuilder_.getMessageOrBuilder();
1424 return model_ ==
null ?
1425 com.google.ortools.linearsolver.MPModelProto.getDefaultInstance() : model_;
1435 private com.google.protobuf.SingleFieldBuilderV3<
1436 com.google.ortools.linearsolver.MPModelProto, com.google.ortools.linearsolver.MPModelProto.Builder, com.google.ortools.linearsolver.MPModelProtoOrBuilder>
1437 getModelFieldBuilder() {
1438 if (modelBuilder_ ==
null) {
1439 modelBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
1440 com.google.ortools.linearsolver.MPModelProto, com.google.ortools.linearsolver.MPModelProto.Builder, com.google.ortools.linearsolver.MPModelProtoOrBuilder>(
1442 getParentForChildren(),
1446 return modelBuilder_;
1449 private int solverType_ = 2;
1455 return ((bitField0_ & 0x00000002) != 0);
1464 return result ==
null ? com.google.ortools.linearsolver.MPModelRequest.SolverType.GLOP_LINEAR_PROGRAMMING : result;
1472 if (value ==
null) {
1473 throw new NullPointerException();
1475 bitField0_ |= 0x00000002;
1476 solverType_ = value.getNumber();
1485 bitField0_ = (bitField0_ & ~0x00000002);
1491 private double solverTimeLimitSeconds_ ;
1510 return ((bitField0_ & 0x00000004) != 0);
1530 return solverTimeLimitSeconds_;
1551 solverTimeLimitSeconds_ = value;
1552 bitField0_ |= 0x00000004;
1573 bitField0_ = (bitField0_ & ~0x00000004);
1574 solverTimeLimitSeconds_ = 0D;
1579 private boolean enableInternalSolverOutput_ ;
1593 return ((bitField0_ & 0x00000008) != 0);
1608 return enableInternalSolverOutput_;
1624 enableInternalSolverOutput_ = value;
1625 bitField0_ |= 0x00000008;
1641 bitField0_ = (bitField0_ & ~0x00000008);
1642 enableInternalSolverOutput_ =
false;
1647 private java.lang.Object solverSpecificParameters_ =
"";
1670 return ((bitField0_ & 0x00000010) != 0);
1694 java.lang.Object ref = solverSpecificParameters_;
1695 if (!(ref instanceof java.lang.String)) {
1696 com.google.protobuf.ByteString bs =
1697 (com.google.protobuf.ByteString) ref;
1698 java.lang.String s = bs.toStringUtf8();
1699 if (bs.isValidUtf8()) {
1700 solverSpecificParameters_ = s;
1704 return (java.lang.String) ref;
1728 public com.google.protobuf.ByteString
1730 java.lang.Object ref = solverSpecificParameters_;
1731 if (ref instanceof String) {
1732 com.google.protobuf.ByteString b =
1733 com.google.protobuf.ByteString.copyFromUtf8(
1734 (java.lang.String) ref);
1735 solverSpecificParameters_ = b;
1738 return (com.google.protobuf.ByteString) ref;
1764 java.lang.String value) {
1765 if (value ==
null) {
throw new NullPointerException(); }
1766 solverSpecificParameters_ = value;
1767 bitField0_ |= 0x00000010;
1794 bitField0_ = (bitField0_ & ~0x00000010);
1821 com.google.protobuf.ByteString value) {
1822 if (value ==
null) {
throw new NullPointerException(); }
1823 solverSpecificParameters_ = value;
1824 bitField0_ |= 0x00000010;
1829 private boolean ignoreSolverSpecificParametersFailure_ ;
1836 return ((bitField0_ & 0x00000020) != 0);
1844 return ignoreSolverSpecificParametersFailure_;
1853 ignoreSolverSpecificParametersFailure_ = value;
1854 bitField0_ |= 0x00000020;
1863 bitField0_ = (bitField0_ & ~0x00000020);
1864 ignoreSolverSpecificParametersFailure_ =
false;
1870 private com.google.protobuf.SingleFieldBuilderV3<
1871 com.google.ortools.linearsolver.MPModelDeltaProto, com.google.ortools.linearsolver.MPModelDeltaProto.Builder, com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder> modelDeltaBuilder_;
1882 return ((bitField0_ & 0x00000040) != 0);
1894 if (modelDeltaBuilder_ ==
null) {
1895 return modelDelta_ ==
null ? com.google.ortools.linearsolver.MPModelDeltaProto.getDefaultInstance() : modelDelta_;
1897 return modelDeltaBuilder_.getMessage();
1909 if (modelDeltaBuilder_ ==
null) {
1910 if (value ==
null) {
1911 throw new NullPointerException();
1913 modelDelta_ = value;
1915 modelDeltaBuilder_.setMessage(value);
1917 bitField0_ |= 0x00000040;
1930 com.google.ortools.linearsolver.MPModelDeltaProto.Builder builderForValue) {
1931 if (modelDeltaBuilder_ ==
null) {
1932 modelDelta_ = builderForValue.build();
1934 modelDeltaBuilder_.setMessage(builderForValue.build());
1936 bitField0_ |= 0x00000040;
1949 if (modelDeltaBuilder_ ==
null) {
1950 if (((bitField0_ & 0x00000040) != 0) &&
1951 modelDelta_ !=
null &&
1952 modelDelta_ != com.google.ortools.linearsolver.MPModelDeltaProto.getDefaultInstance()) {
1955 modelDelta_ = value;
1958 modelDeltaBuilder_.mergeFrom(value);
1960 if (modelDelta_ !=
null) {
1961 bitField0_ |= 0x00000040;
1975 bitField0_ = (bitField0_ & ~0x00000040);
1977 if (modelDeltaBuilder_ !=
null) {
1978 modelDeltaBuilder_.dispose();
1979 modelDeltaBuilder_ =
null;
1993 bitField0_ |= 0x00000040;
1995 return getModelDeltaFieldBuilder().getBuilder();
2006 if (modelDeltaBuilder_ !=
null) {
2007 return modelDeltaBuilder_.getMessageOrBuilder();
2009 return modelDelta_ ==
null ?
2010 com.google.ortools.linearsolver.MPModelDeltaProto.getDefaultInstance() : modelDelta_;
2021 private com.google.protobuf.SingleFieldBuilderV3<
2022 com.google.ortools.linearsolver.MPModelDeltaProto, com.google.ortools.linearsolver.MPModelDeltaProto.Builder, com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder>
2023 getModelDeltaFieldBuilder() {
2024 if (modelDeltaBuilder_ ==
null) {
2025 modelDeltaBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
2026 com.google.ortools.linearsolver.MPModelDeltaProto, com.google.ortools.linearsolver.MPModelDeltaProto.Builder, com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder>(
2028 getParentForChildren(),
2032 return modelDeltaBuilder_;
2035 private int populateAdditionalSolutionsUpTo_ ;
2052 return ((bitField0_ & 0x00000080) != 0);
2070 return populateAdditionalSolutionsUpTo_;
2089 populateAdditionalSolutionsUpTo_ = value;
2090 bitField0_ |= 0x00000080;
2109 bitField0_ = (bitField0_ & ~0x00000080);
2110 populateAdditionalSolutionsUpTo_ = 0;
2116 final com.google.protobuf.UnknownFieldSet unknownFields) {
2122 final com.google.protobuf.UnknownFieldSet unknownFields) {
2133 DEFAULT_INSTANCE =
new com.google.ortools.linearsolver.MPModelRequest();
2137 return DEFAULT_INSTANCE;
2140 @java.lang.Deprecated
public static final com.google.protobuf.Parser<
MPModelRequest>
2144 com.google.protobuf.CodedInputStream input,
2145 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2146 throws com.google.protobuf.InvalidProtocolBufferException {
2149 builder.
mergeFrom(input, extensionRegistry);
2150 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
2152 }
catch (com.google.protobuf.UninitializedMessageException e) {
2153 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.
buildPartial());
2154 }
catch (java.io.IOException e) {
2155 throw new com.google.protobuf.InvalidProtocolBufferException(e)
2173 return DEFAULT_INSTANCE;