5package com.google.ortools.linearsolver;
15 com.google.protobuf.GeneratedMessage implements
18private static final long serialVersionUID = 0L;
20 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
21 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
29 private MPModelRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
34 solverSpecificParameters_ =
"";
37 public static final com.google.protobuf.Descriptors.Descriptor
39 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelRequest_descriptor;
43 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
45 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelRequest_fieldAccessorTable
46 .ensureFieldAccessorsInitialized(
47 com.google.ortools.linearsolver.MPModelRequest.class, com.google.ortools.linearsolver.MPModelRequest.Builder.class);
62 implements com.google.protobuf.ProtocolMessageEnum {
183 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
184 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
194 public static final int CLP_LINEAR_PROGRAMMING_VALUE = 0;
202 public static final int GLOP_LINEAR_PROGRAMMING_VALUE = 2;
206 public static final int GLPK_LINEAR_PROGRAMMING_VALUE = 1;
214 public static final int GUROBI_LINEAR_PROGRAMMING_VALUE = 6;
222 public static final int XPRESS_LINEAR_PROGRAMMING_VALUE = 101;
230 public static final int CPLEX_LINEAR_PROGRAMMING_VALUE = 10;
234 public static final int HIGHS_LINEAR_PROGRAMMING_VALUE = 15;
242 public static final int SCIP_MIXED_INTEGER_PROGRAMMING_VALUE = 3;
246 public static final int GLPK_MIXED_INTEGER_PROGRAMMING_VALUE = 4;
250 public static final int CBC_MIXED_INTEGER_PROGRAMMING_VALUE = 5;
258 public static final int GUROBI_MIXED_INTEGER_PROGRAMMING_VALUE = 7;
266 public static final int XPRESS_MIXED_INTEGER_PROGRAMMING_VALUE = 102;
274 public static final int CPLEX_MIXED_INTEGER_PROGRAMMING_VALUE = 11;
278 public static final int HIGHS_MIXED_INTEGER_PROGRAMMING_VALUE = 16;
282 public static final int BOP_INTEGER_PROGRAMMING_VALUE = 12;
293 public static final int SAT_INTEGER_PROGRAMMING_VALUE = 14;
303 public static final int PDLP_LINEAR_PROGRAMMING_VALUE = 8;
307 public static final int KNAPSACK_MIXED_INTEGER_PROGRAMMING_VALUE = 13;
319 @java.lang.Deprecated
321 return forNumber(value);
330 case 0:
return CLP_LINEAR_PROGRAMMING;
331 case 2:
return GLOP_LINEAR_PROGRAMMING;
332 case 1:
return GLPK_LINEAR_PROGRAMMING;
333 case 6:
return GUROBI_LINEAR_PROGRAMMING;
334 case 101:
return XPRESS_LINEAR_PROGRAMMING;
335 case 10:
return CPLEX_LINEAR_PROGRAMMING;
336 case 15:
return HIGHS_LINEAR_PROGRAMMING;
337 case 3:
return SCIP_MIXED_INTEGER_PROGRAMMING;
338 case 4:
return GLPK_MIXED_INTEGER_PROGRAMMING;
339 case 5:
return CBC_MIXED_INTEGER_PROGRAMMING;
340 case 7:
return GUROBI_MIXED_INTEGER_PROGRAMMING;
341 case 102:
return XPRESS_MIXED_INTEGER_PROGRAMMING;
342 case 11:
return CPLEX_MIXED_INTEGER_PROGRAMMING;
343 case 16:
return HIGHS_MIXED_INTEGER_PROGRAMMING;
344 case 12:
return BOP_INTEGER_PROGRAMMING;
345 case 14:
return SAT_INTEGER_PROGRAMMING;
346 case 8:
return PDLP_LINEAR_PROGRAMMING;
347 case 13:
return KNAPSACK_MIXED_INTEGER_PROGRAMMING;
348 default:
return null;
352 public static com.google.protobuf.Internal.EnumLiteMap<
SolverType>
354 return internalValueMap;
356 private static final com.google.protobuf.Internal.EnumLiteMap<
358 new com.google.protobuf.Internal.EnumLiteMap<
SolverType>() {
359 public SolverType findValueByNumber(
int number) {
364 public final com.google.protobuf.Descriptors.EnumValueDescriptor
368 public final com.google.protobuf.Descriptors.EnumDescriptor
372 public static final com.google.protobuf.Descriptors.EnumDescriptor
374 return com.google.ortools.linearsolver.MPModelRequest.getDescriptor().getEnumTypes().get(0);
377 private static final SolverType[] VALUES = values();
380 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
382 throw new java.lang.IllegalArgumentException(
383 "EnumValueDescriptor is not for this type.");
385 return VALUES[desc.getIndex()];
388 private final int value;
397 private int bitField0_;
410 return ((bitField0_ & 0x00000001) != 0);
422 return model_ ==
null ? com.google.ortools.linearsolver.MPModelProto.getDefaultInstance() : model_;
433 return model_ ==
null ? com.google.ortools.linearsolver.MPModelProto.getDefaultInstance() : model_;
437 private int solverType_ = 2;
443 return ((bitField0_ & 0x00000002) != 0);
451 return result ==
null ? com.google.ortools.linearsolver.MPModelRequest.SolverType.GLOP_LINEAR_PROGRAMMING : result;
455 private double solverTimeLimitSeconds_ = 0D;
474 return ((bitField0_ & 0x00000004) != 0);
494 return solverTimeLimitSeconds_;
498 private boolean enableInternalSolverOutput_ =
false;
512 return ((bitField0_ & 0x00000008) != 0);
527 return enableInternalSolverOutput_;
531 @SuppressWarnings(
"serial")
532 private volatile java.lang.Object solverSpecificParameters_ = "";
556 return ((bitField0_ & 0x00000010) != 0);
581 java.lang.Object ref = solverSpecificParameters_;
582 if (ref instanceof java.lang.String) {
583 return (java.lang.String) ref;
585 com.google.protobuf.ByteString bs =
586 (com.google.protobuf.ByteString) ref;
587 java.lang.String s = bs.toStringUtf8();
588 if (bs.isValidUtf8()) {
589 solverSpecificParameters_ = s;
616 public com.google.protobuf.ByteString
618 java.lang.Object ref = solverSpecificParameters_;
619 if (ref instanceof java.lang.String) {
620 com.google.protobuf.ByteString b =
621 com.google.protobuf.ByteString.copyFromUtf8(
622 (java.lang.String) ref);
623 solverSpecificParameters_ = b;
626 return (com.google.protobuf.ByteString) ref;
631 private boolean ignoreSolverSpecificParametersFailure_ =
false;
638 return ((bitField0_ & 0x00000020) != 0);
646 return ignoreSolverSpecificParametersFailure_;
662 return ((bitField0_ & 0x00000040) != 0);
675 return modelDelta_ ==
null ? com.google.ortools.linearsolver.MPModelDeltaProto.getDefaultInstance() : modelDelta_;
687 return modelDelta_ ==
null ? com.google.ortools.linearsolver.MPModelDeltaProto.getDefaultInstance() : modelDelta_;
691 private int populateAdditionalSolutionsUpTo_ = 0;
708 return ((bitField0_ & 0x00000080) != 0);
726 return populateAdditionalSolutionsUpTo_;
729 private byte memoizedIsInitialized = -1;
736 memoizedIsInitialized = 1;
741 public void writeTo(com.google.protobuf.CodedOutputStream output)
742 throws java.io.IOException {
743 if (((bitField0_ & 0x00000001) != 0)) {
746 if (((bitField0_ & 0x00000002) != 0)) {
747 output.writeEnum(2, solverType_);
749 if (((bitField0_ & 0x00000004) != 0)) {
750 output.writeDouble(3, solverTimeLimitSeconds_);
752 if (((bitField0_ & 0x00000008) != 0)) {
753 output.writeBool(4, enableInternalSolverOutput_);
755 if (((bitField0_ & 0x00000010) != 0)) {
756 com.google.protobuf.GeneratedMessage.writeString(output, 5, solverSpecificParameters_);
758 if (((bitField0_ & 0x00000040) != 0)) {
761 if (((bitField0_ & 0x00000020) != 0)) {
762 output.writeBool(9, ignoreSolverSpecificParametersFailure_);
764 if (((bitField0_ & 0x00000080) != 0)) {
765 output.writeInt32(11, populateAdditionalSolutionsUpTo_);
767 getUnknownFields().writeTo(output);
772 int size = memoizedSize;
773 if (size != -1)
return size;
776 if (((bitField0_ & 0x00000001) != 0)) {
777 size += com.google.protobuf.CodedOutputStream
780 if (((bitField0_ & 0x00000002) != 0)) {
781 size += com.google.protobuf.CodedOutputStream
782 .computeEnumSize(2, solverType_);
784 if (((bitField0_ & 0x00000004) != 0)) {
785 size += com.google.protobuf.CodedOutputStream
786 .computeDoubleSize(3, solverTimeLimitSeconds_);
788 if (((bitField0_ & 0x00000008) != 0)) {
789 size += com.google.protobuf.CodedOutputStream
790 .computeBoolSize(4, enableInternalSolverOutput_);
792 if (((bitField0_ & 0x00000010) != 0)) {
793 size += com.google.protobuf.GeneratedMessage.computeStringSize(5, solverSpecificParameters_);
795 if (((bitField0_ & 0x00000040) != 0)) {
796 size += com.google.protobuf.CodedOutputStream
799 if (((bitField0_ & 0x00000020) != 0)) {
800 size += com.google.protobuf.CodedOutputStream
801 .computeBoolSize(9, ignoreSolverSpecificParametersFailure_);
803 if (((bitField0_ & 0x00000080) != 0)) {
804 size += com.google.protobuf.CodedOutputStream
805 .computeInt32Size(11, populateAdditionalSolutionsUpTo_);
807 size += getUnknownFields().getSerializedSize();
813 public boolean equals(
final java.lang.Object obj) {
817 if (!(obj instanceof com.google.ortools.linearsolver.MPModelRequest)) {
818 return super.equals(obj);
829 if (solverType_ != other.solverType_)
return false;
834 != java.lang.Double.doubleToLongBits(
862 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
868 if (memoizedHashCode != 0) {
869 return memoizedHashCode;
879 hash = (53 * hash) + solverType_;
883 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
888 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
897 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
908 hash = (29 * hash) + getUnknownFields().hashCode();
909 memoizedHashCode = hash;
914 java.nio.ByteBuffer data)
915 throws com.google.protobuf.InvalidProtocolBufferException {
916 return PARSER.parseFrom(data);
919 java.nio.ByteBuffer data,
920 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
921 throws com.google.protobuf.InvalidProtocolBufferException {
922 return PARSER.parseFrom(data, extensionRegistry);
925 com.google.protobuf.ByteString data)
926 throws com.google.protobuf.InvalidProtocolBufferException {
927 return PARSER.parseFrom(data);
930 com.google.protobuf.ByteString data,
931 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
932 throws com.google.protobuf.InvalidProtocolBufferException {
933 return PARSER.parseFrom(data, extensionRegistry);
936 throws com.google.protobuf.InvalidProtocolBufferException {
937 return PARSER.parseFrom(data);
941 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
942 throws com.google.protobuf.InvalidProtocolBufferException {
943 return PARSER.parseFrom(data, extensionRegistry);
946 throws java.io.IOException {
947 return com.google.protobuf.GeneratedMessage
948 .parseWithIOException(PARSER, input);
951 java.io.InputStream input,
952 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
953 throws java.io.IOException {
954 return com.google.protobuf.GeneratedMessage
955 .parseWithIOException(PARSER, input, extensionRegistry);
959 throws java.io.IOException {
960 return com.google.protobuf.GeneratedMessage
961 .parseDelimitedWithIOException(PARSER, input);
965 java.io.InputStream input,
966 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
967 throws java.io.IOException {
968 return com.google.protobuf.GeneratedMessage
969 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
972 com.google.protobuf.CodedInputStream input)
973 throws java.io.IOException {
974 return com.google.protobuf.GeneratedMessage
975 .parseWithIOException(PARSER, input);
978 com.google.protobuf.CodedInputStream input,
979 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
980 throws java.io.IOException {
981 return com.google.protobuf.GeneratedMessage
982 .parseWithIOException(PARSER, input, extensionRegistry);
995 return this == DEFAULT_INSTANCE
1001 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1013 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
1016 public static final com.google.protobuf.Descriptors.Descriptor
1018 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelRequest_descriptor;
1022 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1024 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelRequest_fieldAccessorTable
1025 .ensureFieldAccessorsInitialized(
1026 com.google.ortools.linearsolver.MPModelRequest.class, com.google.ortools.linearsolver.MPModelRequest.Builder.class);
1031 maybeForceBuilderInitialization();
1035 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1037 maybeForceBuilderInitialization();
1039 private void maybeForceBuilderInitialization() {
1040 if (com.google.protobuf.GeneratedMessage
1041 .alwaysUseFieldBuilders) {
1042 getModelFieldBuilder();
1043 getModelDeltaFieldBuilder();
1051 if (modelBuilder_ !=
null) {
1052 modelBuilder_.dispose();
1053 modelBuilder_ =
null;
1056 solverTimeLimitSeconds_ = 0D;
1057 enableInternalSolverOutput_ =
false;
1058 solverSpecificParameters_ =
"";
1059 ignoreSolverSpecificParametersFailure_ =
false;
1061 if (modelDeltaBuilder_ !=
null) {
1062 modelDeltaBuilder_.dispose();
1063 modelDeltaBuilder_ =
null;
1065 populateAdditionalSolutionsUpTo_ = 0;
1070 public com.google.protobuf.Descriptors.Descriptor
1072 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelRequest_descriptor;
1077 return com.google.ortools.linearsolver.MPModelRequest.getDefaultInstance();
1084 throw newUninitializedMessageException(result);
1092 if (bitField0_ != 0) { buildPartial0(result); }
1097 private void buildPartial0(com.google.ortools.linearsolver.MPModelRequest result) {
1098 int from_bitField0_ = bitField0_;
1099 int to_bitField0_ = 0;
1100 if (((from_bitField0_ & 0x00000001) != 0)) {
1101 result.model_ = modelBuilder_ ==
null
1103 : modelBuilder_.build();
1104 to_bitField0_ |= 0x00000001;
1106 if (((from_bitField0_ & 0x00000002) != 0)) {
1107 result.solverType_ = solverType_;
1108 to_bitField0_ |= 0x00000002;
1110 if (((from_bitField0_ & 0x00000004) != 0)) {
1111 result.solverTimeLimitSeconds_ = solverTimeLimitSeconds_;
1112 to_bitField0_ |= 0x00000004;
1114 if (((from_bitField0_ & 0x00000008) != 0)) {
1115 result.enableInternalSolverOutput_ = enableInternalSolverOutput_;
1116 to_bitField0_ |= 0x00000008;
1118 if (((from_bitField0_ & 0x00000010) != 0)) {
1119 result.solverSpecificParameters_ = solverSpecificParameters_;
1120 to_bitField0_ |= 0x00000010;
1122 if (((from_bitField0_ & 0x00000020) != 0)) {
1123 result.ignoreSolverSpecificParametersFailure_ = ignoreSolverSpecificParametersFailure_;
1124 to_bitField0_ |= 0x00000020;
1126 if (((from_bitField0_ & 0x00000040) != 0)) {
1127 result.modelDelta_ = modelDeltaBuilder_ ==
null
1129 : modelDeltaBuilder_.build();
1130 to_bitField0_ |= 0x00000040;
1132 if (((from_bitField0_ & 0x00000080) != 0)) {
1133 result.populateAdditionalSolutionsUpTo_ = populateAdditionalSolutionsUpTo_;
1134 to_bitField0_ |= 0x00000080;
1136 result.bitField0_ |= to_bitField0_;
1141 if (other instanceof com.google.ortools.linearsolver.MPModelRequest) {
1142 return mergeFrom((com.google.ortools.linearsolver.MPModelRequest)other);
1144 super.mergeFrom(other);
1150 if (other == com.google.ortools.linearsolver.MPModelRequest.getDefaultInstance())
return this;
1151 if (other.hasModel()) {
1154 if (other.hasSolverType()) {
1157 if (other.hasSolverTimeLimitSeconds()) {
1160 if (other.hasEnableInternalSolverOutput()) {
1163 if (other.hasSolverSpecificParameters()) {
1164 solverSpecificParameters_ = other.solverSpecificParameters_;
1165 bitField0_ |= 0x00000010;
1168 if (other.hasIgnoreSolverSpecificParametersFailure()) {
1171 if (other.hasModelDelta()) {
1174 if (other.hasPopulateAdditionalSolutionsUpTo()) {
1177 this.mergeUnknownFields(other.getUnknownFields());
1189 com.google.protobuf.CodedInputStream input,
1190 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1191 throws java.io.IOException {
1192 if (extensionRegistry ==
null) {
1193 throw new java.lang.NullPointerException();
1196 boolean done =
false;
1198 int tag = input.readTag();
1205 getModelFieldBuilder().getBuilder(),
1207 bitField0_ |= 0x00000001;
1211 int tmpRaw = input.readEnum();
1213 com.google.ortools.linearsolver.MPModelRequest.SolverType.forNumber(tmpRaw);
1214 if (tmpValue ==
null) {
1215 mergeUnknownVarintField(2, tmpRaw);
1217 solverType_ = tmpRaw;
1218 bitField0_ |= 0x00000002;
1223 solverTimeLimitSeconds_ = input.readDouble();
1224 bitField0_ |= 0x00000004;
1228 enableInternalSolverOutput_ = input.readBool();
1229 bitField0_ |= 0x00000008;
1233 solverSpecificParameters_ = input.readBytes();
1234 bitField0_ |= 0x00000010;
1239 getModelDeltaFieldBuilder().getBuilder(),
1241 bitField0_ |= 0x00000040;
1245 ignoreSolverSpecificParametersFailure_ = input.readBool();
1246 bitField0_ |= 0x00000020;
1250 populateAdditionalSolutionsUpTo_ = input.readInt32();
1251 bitField0_ |= 0x00000080;
1255 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1262 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1263 throw e.unwrapIOException();
1269 private int bitField0_;
1272 private com.google.protobuf.SingleFieldBuilder<
1273 com.google.ortools.linearsolver.MPModelProto, com.google.ortools.linearsolver.MPModelProto.Builder, com.google.ortools.linearsolver.MPModelProtoOrBuilder> modelBuilder_;
1283 return ((bitField0_ & 0x00000001) != 0);
1294 if (modelBuilder_ ==
null) {
1295 return model_ ==
null ? com.google.ortools.linearsolver.MPModelProto.getDefaultInstance() : model_;
1297 return modelBuilder_.getMessage();
1308 if (modelBuilder_ ==
null) {
1309 if (value ==
null) {
1310 throw new NullPointerException();
1314 modelBuilder_.setMessage(value);
1316 bitField0_ |= 0x00000001;
1328 com.google.ortools.linearsolver.MPModelProto.Builder builderForValue) {
1329 if (modelBuilder_ ==
null) {
1330 model_ = builderForValue.build();
1332 modelBuilder_.setMessage(builderForValue.build());
1334 bitField0_ |= 0x00000001;
1346 if (modelBuilder_ ==
null) {
1347 if (((bitField0_ & 0x00000001) != 0) &&
1349 model_ != com.google.ortools.linearsolver.MPModelProto.getDefaultInstance()) {
1355 modelBuilder_.mergeFrom(value);
1357 if (model_ !=
null) {
1358 bitField0_ |= 0x00000001;
1371 bitField0_ = (bitField0_ & ~0x00000001);
1373 if (modelBuilder_ !=
null) {
1374 modelBuilder_.dispose();
1375 modelBuilder_ =
null;
1388 bitField0_ |= 0x00000001;
1390 return getModelFieldBuilder().getBuilder();
1400 if (modelBuilder_ !=
null) {
1401 return modelBuilder_.getMessageOrBuilder();
1403 return model_ ==
null ?
1404 com.google.ortools.linearsolver.MPModelProto.getDefaultInstance() : model_;
1414 private com.google.protobuf.SingleFieldBuilder<
1415 com.google.ortools.linearsolver.MPModelProto, com.google.ortools.linearsolver.MPModelProto.Builder, com.google.ortools.linearsolver.MPModelProtoOrBuilder>
1416 getModelFieldBuilder() {
1417 if (modelBuilder_ ==
null) {
1418 modelBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
1419 com.google.ortools.linearsolver.MPModelProto, com.google.ortools.linearsolver.MPModelProto.Builder, com.google.ortools.linearsolver.MPModelProtoOrBuilder>(
1421 getParentForChildren(),
1425 return modelBuilder_;
1428 private int solverType_ = 2;
1434 return ((bitField0_ & 0x00000002) != 0);
1443 return result ==
null ? com.google.ortools.linearsolver.MPModelRequest.SolverType.GLOP_LINEAR_PROGRAMMING : result;
1451 if (value ==
null) {
1452 throw new NullPointerException();
1454 bitField0_ |= 0x00000002;
1455 solverType_ = value.getNumber();
1464 bitField0_ = (bitField0_ & ~0x00000002);
1470 private double solverTimeLimitSeconds_ ;
1489 return ((bitField0_ & 0x00000004) != 0);
1509 return solverTimeLimitSeconds_;
1530 solverTimeLimitSeconds_ = value;
1531 bitField0_ |= 0x00000004;
1552 bitField0_ = (bitField0_ & ~0x00000004);
1553 solverTimeLimitSeconds_ = 0D;
1558 private boolean enableInternalSolverOutput_ ;
1572 return ((bitField0_ & 0x00000008) != 0);
1587 return enableInternalSolverOutput_;
1603 enableInternalSolverOutput_ = value;
1604 bitField0_ |= 0x00000008;
1620 bitField0_ = (bitField0_ & ~0x00000008);
1621 enableInternalSolverOutput_ =
false;
1626 private java.lang.Object solverSpecificParameters_ =
"";
1649 return ((bitField0_ & 0x00000010) != 0);
1673 java.lang.Object ref = solverSpecificParameters_;
1674 if (!(ref instanceof java.lang.String)) {
1675 com.google.protobuf.ByteString bs =
1676 (com.google.protobuf.ByteString) ref;
1677 java.lang.String s = bs.toStringUtf8();
1678 if (bs.isValidUtf8()) {
1679 solverSpecificParameters_ = s;
1683 return (java.lang.String) ref;
1707 public com.google.protobuf.ByteString
1709 java.lang.Object ref = solverSpecificParameters_;
1710 if (ref instanceof String) {
1711 com.google.protobuf.ByteString b =
1712 com.google.protobuf.ByteString.copyFromUtf8(
1713 (java.lang.String) ref);
1714 solverSpecificParameters_ = b;
1717 return (com.google.protobuf.ByteString) ref;
1743 java.lang.String value) {
1744 if (value ==
null) {
throw new NullPointerException(); }
1745 solverSpecificParameters_ = value;
1746 bitField0_ |= 0x00000010;
1773 bitField0_ = (bitField0_ & ~0x00000010);
1800 com.google.protobuf.ByteString value) {
1801 if (value ==
null) {
throw new NullPointerException(); }
1802 solverSpecificParameters_ = value;
1803 bitField0_ |= 0x00000010;
1808 private boolean ignoreSolverSpecificParametersFailure_ ;
1815 return ((bitField0_ & 0x00000020) != 0);
1823 return ignoreSolverSpecificParametersFailure_;
1832 ignoreSolverSpecificParametersFailure_ = value;
1833 bitField0_ |= 0x00000020;
1842 bitField0_ = (bitField0_ & ~0x00000020);
1843 ignoreSolverSpecificParametersFailure_ =
false;
1849 private com.google.protobuf.SingleFieldBuilder<
1850 com.google.ortools.linearsolver.MPModelDeltaProto, com.google.ortools.linearsolver.MPModelDeltaProto.Builder, com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder> modelDeltaBuilder_;
1861 return ((bitField0_ & 0x00000040) != 0);
1873 if (modelDeltaBuilder_ ==
null) {
1874 return modelDelta_ ==
null ? com.google.ortools.linearsolver.MPModelDeltaProto.getDefaultInstance() : modelDelta_;
1876 return modelDeltaBuilder_.getMessage();
1888 if (modelDeltaBuilder_ ==
null) {
1889 if (value ==
null) {
1890 throw new NullPointerException();
1892 modelDelta_ = value;
1894 modelDeltaBuilder_.setMessage(value);
1896 bitField0_ |= 0x00000040;
1909 com.google.ortools.linearsolver.MPModelDeltaProto.Builder builderForValue) {
1910 if (modelDeltaBuilder_ ==
null) {
1911 modelDelta_ = builderForValue.build();
1913 modelDeltaBuilder_.setMessage(builderForValue.build());
1915 bitField0_ |= 0x00000040;
1928 if (modelDeltaBuilder_ ==
null) {
1929 if (((bitField0_ & 0x00000040) != 0) &&
1930 modelDelta_ !=
null &&
1931 modelDelta_ != com.google.ortools.linearsolver.MPModelDeltaProto.getDefaultInstance()) {
1934 modelDelta_ = value;
1937 modelDeltaBuilder_.mergeFrom(value);
1939 if (modelDelta_ !=
null) {
1940 bitField0_ |= 0x00000040;
1954 bitField0_ = (bitField0_ & ~0x00000040);
1956 if (modelDeltaBuilder_ !=
null) {
1957 modelDeltaBuilder_.dispose();
1958 modelDeltaBuilder_ =
null;
1972 bitField0_ |= 0x00000040;
1974 return getModelDeltaFieldBuilder().getBuilder();
1985 if (modelDeltaBuilder_ !=
null) {
1986 return modelDeltaBuilder_.getMessageOrBuilder();
1988 return modelDelta_ ==
null ?
1989 com.google.ortools.linearsolver.MPModelDeltaProto.getDefaultInstance() : modelDelta_;
2000 private com.google.protobuf.SingleFieldBuilder<
2001 com.google.ortools.linearsolver.MPModelDeltaProto, com.google.ortools.linearsolver.MPModelDeltaProto.Builder, com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder>
2002 getModelDeltaFieldBuilder() {
2003 if (modelDeltaBuilder_ ==
null) {
2004 modelDeltaBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
2005 com.google.ortools.linearsolver.MPModelDeltaProto, com.google.ortools.linearsolver.MPModelDeltaProto.Builder, com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder>(
2007 getParentForChildren(),
2011 return modelDeltaBuilder_;
2014 private int populateAdditionalSolutionsUpTo_ ;
2031 return ((bitField0_ & 0x00000080) != 0);
2049 return populateAdditionalSolutionsUpTo_;
2068 populateAdditionalSolutionsUpTo_ = value;
2069 bitField0_ |= 0x00000080;
2088 bitField0_ = (bitField0_ & ~0x00000080);
2089 populateAdditionalSolutionsUpTo_ = 0;
2100 DEFAULT_INSTANCE =
new com.google.ortools.linearsolver.MPModelRequest();
2104 return DEFAULT_INSTANCE;
2108 PARSER =
new com.google.protobuf.AbstractParser<
MPModelRequest>() {
2111 com.google.protobuf.CodedInputStream input,
2112 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2113 throws com.google.protobuf.InvalidProtocolBufferException {
2116 builder.mergeFrom(input, extensionRegistry);
2117 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
2118 throw e.setUnfinishedMessage(builder.buildPartial());
2119 }
catch (com.google.protobuf.UninitializedMessageException e) {
2120 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2121 }
catch (java.io.IOException e) {
2122 throw new com.google.protobuf.InvalidProtocolBufferException(e)
2123 .setUnfinishedMessage(builder.buildPartial());
2125 return builder.buildPartial();
2140 return DEFAULT_INSTANCE;