546 public void writeTo(com.google.protobuf.CodedOutputStream output)
547 throws java.io.IOException {
549 if (((bitField0_ & 0x00000001) != 0)) {
550 output.writeEnum(1, status_);
552 if (((bitField0_ & 0x00000004) != 0)) {
553 output.writeDouble(2, objectiveValue_);
556 output.writeUInt32NoTag(26);
557 output.writeUInt32NoTag(variableValueMemoizedSerializedSize);
559 for (
int i = 0; i < variableValue_.size(); i++) {
560 output.writeDoubleNoTag(variableValue_.getDouble(i));
563 output.writeUInt32NoTag(34);
564 output.writeUInt32NoTag(dualValueMemoizedSerializedSize);
566 for (
int i = 0; i < dualValue_.size(); i++) {
567 output.writeDoubleNoTag(dualValue_.getDouble(i));
569 if (((bitField0_ & 0x00000008) != 0)) {
570 output.writeDouble(5, bestObjectiveBound_);
573 output.writeUInt32NoTag(50);
574 output.writeUInt32NoTag(reducedCostMemoizedSerializedSize);
576 for (
int i = 0; i < reducedCost_.size(); i++) {
577 output.writeDoubleNoTag(reducedCost_.getDouble(i));
579 if (((bitField0_ & 0x00000002) != 0)) {
580 com.google.protobuf.GeneratedMessage.writeString(output, 7, statusStr_);
582 for (
int i = 0; i < additionalSolutions_.size(); i++) {
583 output.writeMessage(8, additionalSolutions_.get(i));
585 if (((bitField0_ & 0x00000010) != 0)) {
588 if (((bitField0_ & 0x00000020) != 0)) {
589 output.writeBytes(11, solverSpecificInfo_);
591 getUnknownFields().writeTo(output);
596 int size = memoizedSize;
597 if (size != -1)
return size;
600 if (((bitField0_ & 0x00000001) != 0)) {
601 size += com.google.protobuf.CodedOutputStream
602 .computeEnumSize(1, status_);
604 if (((bitField0_ & 0x00000004) != 0)) {
605 size += com.google.protobuf.CodedOutputStream
606 .computeDoubleSize(2, objectiveValue_);
614 size += com.google.protobuf.CodedOutputStream
615 .computeInt32SizeNoTag(dataSize);
617 variableValueMemoizedSerializedSize = dataSize;
625 size += com.google.protobuf.CodedOutputStream
626 .computeInt32SizeNoTag(dataSize);
628 dualValueMemoizedSerializedSize = dataSize;
630 if (((bitField0_ & 0x00000008) != 0)) {
631 size += com.google.protobuf.CodedOutputStream
632 .computeDoubleSize(5, bestObjectiveBound_);
640 size += com.google.protobuf.CodedOutputStream
641 .computeInt32SizeNoTag(dataSize);
643 reducedCostMemoizedSerializedSize = dataSize;
645 if (((bitField0_ & 0x00000002) != 0)) {
646 size += com.google.protobuf.GeneratedMessage.computeStringSize(7, statusStr_);
648 for (
int i = 0; i < additionalSolutions_.size(); i++) {
649 size += com.google.protobuf.CodedOutputStream
650 .computeMessageSize(8, additionalSolutions_.get(i));
652 if (((bitField0_ & 0x00000010) != 0)) {
653 size += com.google.protobuf.CodedOutputStream
656 if (((bitField0_ & 0x00000020) != 0)) {
657 size += com.google.protobuf.CodedOutputStream
658 .computeBytesSize(11, solverSpecificInfo_);
660 size += getUnknownFields().getSerializedSize();
872 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
875 public static final com.google.protobuf.Descriptors.Descriptor
877 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolutionResponse_descriptor;
881 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
883 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolutionResponse_fieldAccessorTable
884 .ensureFieldAccessorsInitialized(
885 com.google.ortools.linearsolver.MPSolutionResponse.class, com.google.ortools.linearsolver.MPSolutionResponse.Builder.class);
890 maybeForceBuilderInitialization();
894 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
896 maybeForceBuilderInitialization();
898 private void maybeForceBuilderInitialization() {
899 if (com.google.protobuf.GeneratedMessage
900 .alwaysUseFieldBuilders) {
901 getSolveInfoFieldBuilder();
902 getAdditionalSolutionsFieldBuilder();
911 objectiveValue_ = 0D;
912 bestObjectiveBound_ = 0D;
913 variableValue_ = emptyDoubleList();
915 if (solveInfoBuilder_ !=
null) {
916 solveInfoBuilder_.dispose();
917 solveInfoBuilder_ =
null;
919 solverSpecificInfo_ = com.google.protobuf.ByteString.EMPTY;
920 dualValue_ = emptyDoubleList();
921 reducedCost_ = emptyDoubleList();
922 if (additionalSolutionsBuilder_ ==
null) {
923 additionalSolutions_ = java.util.Collections.emptyList();
925 additionalSolutions_ =
null;
926 additionalSolutionsBuilder_.clear();
928 bitField0_ = (bitField0_ & ~0x00000200);
933 public com.google.protobuf.Descriptors.Descriptor
935 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolutionResponse_descriptor;
940 return com.google.ortools.linearsolver.MPSolutionResponse.getDefaultInstance();
947 throw newUninitializedMessageException(result);
955 buildPartialRepeatedFields(result);
956 if (bitField0_ != 0) { buildPartial0(result); }
961 private void buildPartialRepeatedFields(com.google.ortools.linearsolver.MPSolutionResponse result) {
962 if (additionalSolutionsBuilder_ ==
null) {
963 if (((bitField0_ & 0x00000200) != 0)) {
964 additionalSolutions_ = java.util.Collections.unmodifiableList(additionalSolutions_);
965 bitField0_ = (bitField0_ & ~0x00000200);
967 result.additionalSolutions_ = additionalSolutions_;
969 result.additionalSolutions_ = additionalSolutionsBuilder_.build();
973 private void buildPartial0(com.google.ortools.linearsolver.MPSolutionResponse result) {
974 int from_bitField0_ = bitField0_;
975 int to_bitField0_ = 0;
976 if (((from_bitField0_ & 0x00000001) != 0)) {
977 result.status_ = status_;
978 to_bitField0_ |= 0x00000001;
980 if (((from_bitField0_ & 0x00000002) != 0)) {
981 result.statusStr_ = statusStr_;
982 to_bitField0_ |= 0x00000002;
984 if (((from_bitField0_ & 0x00000004) != 0)) {
985 result.objectiveValue_ = objectiveValue_;
986 to_bitField0_ |= 0x00000004;
988 if (((from_bitField0_ & 0x00000008) != 0)) {
989 result.bestObjectiveBound_ = bestObjectiveBound_;
990 to_bitField0_ |= 0x00000008;
992 if (((from_bitField0_ & 0x00000010) != 0)) {
993 variableValue_.makeImmutable();
994 result.variableValue_ = variableValue_;
996 if (((from_bitField0_ & 0x00000020) != 0)) {
997 result.solveInfo_ = solveInfoBuilder_ ==
null
999 : solveInfoBuilder_.build();
1000 to_bitField0_ |= 0x00000010;
1002 if (((from_bitField0_ & 0x00000040) != 0)) {
1003 result.solverSpecificInfo_ = solverSpecificInfo_;
1004 to_bitField0_ |= 0x00000020;
1006 if (((from_bitField0_ & 0x00000080) != 0)) {
1007 dualValue_.makeImmutable();
1008 result.dualValue_ = dualValue_;
1010 if (((from_bitField0_ & 0x00000100) != 0)) {
1011 reducedCost_.makeImmutable();
1012 result.reducedCost_ = reducedCost_;
1014 result.bitField0_ |= to_bitField0_;
1019 if (other instanceof com.google.ortools.linearsolver.MPSolutionResponse) {
1020 return mergeFrom((com.google.ortools.linearsolver.MPSolutionResponse)other);
1022 super.mergeFrom(other);
1028 if (other == com.google.ortools.linearsolver.MPSolutionResponse.getDefaultInstance())
return this;
1029 if (other.hasStatus()) {
1032 if (other.hasStatusStr()) {
1033 statusStr_ = other.statusStr_;
1034 bitField0_ |= 0x00000002;
1037 if (other.hasObjectiveValue()) {
1040 if (other.hasBestObjectiveBound()) {
1043 if (!other.variableValue_.isEmpty()) {
1044 if (variableValue_.isEmpty()) {
1045 variableValue_ = other.variableValue_;
1046 variableValue_.makeImmutable();
1047 bitField0_ |= 0x00000010;
1049 ensureVariableValueIsMutable();
1050 variableValue_.addAll(other.variableValue_);
1054 if (other.hasSolveInfo()) {
1057 if (other.hasSolverSpecificInfo()) {
1060 if (!other.dualValue_.isEmpty()) {
1061 if (dualValue_.isEmpty()) {
1062 dualValue_ = other.dualValue_;
1063 dualValue_.makeImmutable();
1064 bitField0_ |= 0x00000080;
1066 ensureDualValueIsMutable();
1067 dualValue_.addAll(other.dualValue_);
1071 if (!other.reducedCost_.isEmpty()) {
1072 if (reducedCost_.isEmpty()) {
1073 reducedCost_ = other.reducedCost_;
1074 reducedCost_.makeImmutable();
1075 bitField0_ |= 0x00000100;
1077 ensureReducedCostIsMutable();
1078 reducedCost_.addAll(other.reducedCost_);
1082 if (additionalSolutionsBuilder_ ==
null) {
1083 if (!other.additionalSolutions_.isEmpty()) {
1084 if (additionalSolutions_.isEmpty()) {
1085 additionalSolutions_ = other.additionalSolutions_;
1086 bitField0_ = (bitField0_ & ~0x00000200);
1088 ensureAdditionalSolutionsIsMutable();
1089 additionalSolutions_.addAll(other.additionalSolutions_);
1094 if (!other.additionalSolutions_.isEmpty()) {
1095 if (additionalSolutionsBuilder_.isEmpty()) {
1096 additionalSolutionsBuilder_.dispose();
1097 additionalSolutionsBuilder_ =
null;
1098 additionalSolutions_ = other.additionalSolutions_;
1099 bitField0_ = (bitField0_ & ~0x00000200);
1100 additionalSolutionsBuilder_ =
1101 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1102 getAdditionalSolutionsFieldBuilder() :
null;
1104 additionalSolutionsBuilder_.addAllMessages(other.additionalSolutions_);
1108 this.mergeUnknownFields(other.getUnknownFields());
1120 com.google.protobuf.CodedInputStream input,
1121 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1122 throws java.io.IOException {
1123 if (extensionRegistry ==
null) {
1124 throw new java.lang.NullPointerException();
1127 boolean done =
false;
1129 int tag = input.readTag();
1135 int tmpRaw = input.readEnum();
1137 com.google.ortools.linearsolver.MPSolverResponseStatus.forNumber(tmpRaw);
1138 if (tmpValue ==
null) {
1139 mergeUnknownVarintField(1, tmpRaw);
1142 bitField0_ |= 0x00000001;
1147 objectiveValue_ = input.readDouble();
1148 bitField0_ |= 0x00000004;
1152 double v = input.readDouble();
1153 ensureVariableValueIsMutable();
1154 variableValue_.addDouble(v);
1158 int length = input.readRawVarint32();
1159 int limit = input.pushLimit(length);
1160 int alloc = length > 4096 ? 4096 : length;
1161 ensureVariableValueIsMutable(alloc / 8);
1162 while (input.getBytesUntilLimit() > 0) {
1163 variableValue_.addDouble(input.readDouble());
1165 input.popLimit(limit);
1169 double v = input.readDouble();
1170 ensureDualValueIsMutable();
1171 dualValue_.addDouble(v);
1175 int length = input.readRawVarint32();
1176 int limit = input.pushLimit(length);
1177 int alloc = length > 4096 ? 4096 : length;
1178 ensureDualValueIsMutable(alloc / 8);
1179 while (input.getBytesUntilLimit() > 0) {
1180 dualValue_.addDouble(input.readDouble());
1182 input.popLimit(limit);
1186 bestObjectiveBound_ = input.readDouble();
1187 bitField0_ |= 0x00000008;
1191 double v = input.readDouble();
1192 ensureReducedCostIsMutable();
1193 reducedCost_.addDouble(v);
1197 int length = input.readRawVarint32();
1198 int limit = input.pushLimit(length);
1199 int alloc = length > 4096 ? 4096 : length;
1200 ensureReducedCostIsMutable(alloc / 8);
1201 while (input.getBytesUntilLimit() > 0) {
1202 reducedCost_.addDouble(input.readDouble());
1204 input.popLimit(limit);
1208 statusStr_ = input.readBytes();
1209 bitField0_ |= 0x00000002;
1215 com.google.ortools.linearsolver.MPSolution.parser(),
1217 if (additionalSolutionsBuilder_ ==
null) {
1218 ensureAdditionalSolutionsIsMutable();
1219 additionalSolutions_.add(m);
1221 additionalSolutionsBuilder_.addMessage(m);
1227 getSolveInfoFieldBuilder().getBuilder(),
1229 bitField0_ |= 0x00000020;
1233 solverSpecificInfo_ = input.readBytes();
1234 bitField0_ |= 0x00000040;
1238 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1245 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1246 throw e.unwrapIOException();
1252 private int bitField0_;
1254 private int status_ = 99;
1264 return ((bitField0_ & 0x00000001) != 0);
1277 return result ==
null ? com.google.ortools.linearsolver.MPSolverResponseStatus.MPSOLVER_UNKNOWN_STATUS : result;
1289 if (value ==
null) {
1290 throw new NullPointerException();
1292 bitField0_ |= 0x00000001;
1293 status_ = value.getNumber();
1306 bitField0_ = (bitField0_ & ~0x00000001);
1312 private java.lang.Object statusStr_ =
"";
1325 return ((bitField0_ & 0x00000002) != 0);
1339 java.lang.Object ref = statusStr_;
1340 if (!(ref instanceof java.lang.String)) {
1341 com.google.protobuf.ByteString bs =
1342 (com.google.protobuf.ByteString) ref;
1343 java.lang.String s = bs.toStringUtf8();
1344 if (bs.isValidUtf8()) {
1349 return (java.lang.String) ref;
1363 public com.google.protobuf.ByteString
1365 java.lang.Object ref = statusStr_;
1366 if (ref instanceof String) {
1367 com.google.protobuf.ByteString b =
1368 com.google.protobuf.ByteString.copyFromUtf8(
1369 (java.lang.String) ref);
1373 return (com.google.protobuf.ByteString) ref;
1389 java.lang.String value) {
1390 if (value ==
null) {
throw new NullPointerException(); }
1392 bitField0_ |= 0x00000002;
1409 bitField0_ = (bitField0_ & ~0x00000002);
1426 com.google.protobuf.ByteString value) {
1427 if (value ==
null) {
throw new NullPointerException(); }
1429 bitField0_ |= 0x00000002;
1434 private double objectiveValue_ ;
1447 return ((bitField0_ & 0x00000004) != 0);
1461 return objectiveValue_;
1476 objectiveValue_ = value;
1477 bitField0_ |= 0x00000004;
1492 bitField0_ = (bitField0_ & ~0x00000004);
1493 objectiveValue_ = 0D;
1498 private double bestObjectiveBound_ ;
1513 return ((bitField0_ & 0x00000008) != 0);
1529 return bestObjectiveBound_;
1546 bestObjectiveBound_ = value;
1547 bitField0_ |= 0x00000008;
1564 bitField0_ = (bitField0_ & ~0x00000008);
1565 bestObjectiveBound_ = 0D;
1570 private com.google.protobuf.Internal.DoubleList variableValue_ = emptyDoubleList();
1571 private void ensureVariableValueIsMutable() {
1572 if (!variableValue_.isModifiable()) {
1573 variableValue_ = makeMutableCopy(variableValue_);
1575 bitField0_ |= 0x00000010;
1577 private void ensureVariableValueIsMutable(
int capacity) {
1578 if (!variableValue_.isModifiable()) {
1579 variableValue_ = makeMutableCopy(variableValue_, capacity);
1581 bitField0_ |= 0x00000010;
1593 public java.util.List<java.lang.Double>
1595 variableValue_.makeImmutable();
1596 return variableValue_;
1609 return variableValue_.size();
1623 return variableValue_.getDouble(index);
1638 int index,
double value) {
1640 ensureVariableValueIsMutable();
1641 variableValue_.setDouble(index, value);
1642 bitField0_ |= 0x00000010;
1659 ensureVariableValueIsMutable();
1660 variableValue_.addDouble(value);
1661 bitField0_ |= 0x00000010;
1677 java.lang.Iterable<? extends java.lang.Double> values) {
1678 ensureVariableValueIsMutable();
1679 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1680 values, variableValue_);
1681 bitField0_ |= 0x00000010;
1696 variableValue_ = emptyDoubleList();
1697 bitField0_ = (bitField0_ & ~0x00000010);
1703 private com.google.protobuf.SingleFieldBuilder<
1704 com.google.ortools.linearsolver.MPSolveInfo, com.google.ortools.linearsolver.MPSolveInfo.Builder, com.google.ortools.linearsolver.MPSolveInfoOrBuilder> solveInfoBuilder_;
1716 return ((bitField0_ & 0x00000020) != 0);
1729 if (solveInfoBuilder_ ==
null) {
1730 return solveInfo_ ==
null ? com.google.ortools.linearsolver.MPSolveInfo.getDefaultInstance() : solveInfo_;
1732 return solveInfoBuilder_.getMessage();
1745 if (solveInfoBuilder_ ==
null) {
1746 if (value ==
null) {
1747 throw new NullPointerException();
1751 solveInfoBuilder_.setMessage(value);
1753 bitField0_ |= 0x00000020;
1767 com.google.ortools.linearsolver.MPSolveInfo.Builder builderForValue) {
1768 if (solveInfoBuilder_ ==
null) {
1769 solveInfo_ = builderForValue.build();
1771 solveInfoBuilder_.setMessage(builderForValue.build());
1773 bitField0_ |= 0x00000020;
1787 if (solveInfoBuilder_ ==
null) {
1788 if (((bitField0_ & 0x00000020) != 0) &&
1789 solveInfo_ !=
null &&
1790 solveInfo_ != com.google.ortools.linearsolver.MPSolveInfo.getDefaultInstance()) {
1796 solveInfoBuilder_.mergeFrom(value);
1798 if (solveInfo_ !=
null) {
1799 bitField0_ |= 0x00000020;
1814 bitField0_ = (bitField0_ & ~0x00000020);
1816 if (solveInfoBuilder_ !=
null) {
1817 solveInfoBuilder_.dispose();
1818 solveInfoBuilder_ =
null;
1833 bitField0_ |= 0x00000020;
1835 return getSolveInfoFieldBuilder().getBuilder();
1847 if (solveInfoBuilder_ !=
null) {
1848 return solveInfoBuilder_.getMessageOrBuilder();
1850 return solveInfo_ ==
null ?
1851 com.google.ortools.linearsolver.MPSolveInfo.getDefaultInstance() : solveInfo_;
1863 private com.google.protobuf.SingleFieldBuilder<
1864 com.google.ortools.linearsolver.MPSolveInfo, com.google.ortools.linearsolver.MPSolveInfo.Builder, com.google.ortools.linearsolver.MPSolveInfoOrBuilder>
1865 getSolveInfoFieldBuilder() {
1866 if (solveInfoBuilder_ ==
null) {
1867 solveInfoBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
1868 com.google.ortools.linearsolver.MPSolveInfo, com.google.ortools.linearsolver.MPSolveInfo.Builder, com.google.ortools.linearsolver.MPSolveInfoOrBuilder>(
1870 getParentForChildren(),
1874 return solveInfoBuilder_;
1877 private com.google.protobuf.ByteString solverSpecificInfo_ = com.google.protobuf.ByteString.EMPTY;
1889 return ((bitField0_ & 0x00000040) != 0);
1902 return solverSpecificInfo_;
1915 if (value ==
null) {
throw new NullPointerException(); }
1916 solverSpecificInfo_ = value;
1917 bitField0_ |= 0x00000040;
1931 bitField0_ = (bitField0_ & ~0x00000040);
1937 private com.google.protobuf.Internal.DoubleList dualValue_ = emptyDoubleList();
1938 private void ensureDualValueIsMutable() {
1939 if (!dualValue_.isModifiable()) {
1940 dualValue_ = makeMutableCopy(dualValue_);
1942 bitField0_ |= 0x00000080;
1944 private void ensureDualValueIsMutable(
int capacity) {
1945 if (!dualValue_.isModifiable()) {
1946 dualValue_ = makeMutableCopy(dualValue_, capacity);
1948 bitField0_ |= 0x00000080;
1963 public java.util.List<java.lang.Double>
1965 dualValue_.makeImmutable();
1982 return dualValue_.size();
1999 return dualValue_.getDouble(index);
2017 int index,
double value) {
2019 ensureDualValueIsMutable();
2020 dualValue_.setDouble(index, value);
2021 bitField0_ |= 0x00000080;
2041 ensureDualValueIsMutable();
2042 dualValue_.addDouble(value);
2043 bitField0_ |= 0x00000080;
2062 java.lang.Iterable<? extends java.lang.Double> values) {
2063 ensureDualValueIsMutable();
2064 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2065 values, dualValue_);
2066 bitField0_ |= 0x00000080;
2084 dualValue_ = emptyDoubleList();
2085 bitField0_ = (bitField0_ & ~0x00000080);
2090 private com.google.protobuf.Internal.DoubleList reducedCost_ = emptyDoubleList();
2091 private void ensureReducedCostIsMutable() {
2092 if (!reducedCost_.isModifiable()) {
2093 reducedCost_ = makeMutableCopy(reducedCost_);
2095 bitField0_ |= 0x00000100;
2097 private void ensureReducedCostIsMutable(
int capacity) {
2098 if (!reducedCost_.isModifiable()) {
2099 reducedCost_ = makeMutableCopy(reducedCost_, capacity);
2101 bitField0_ |= 0x00000100;
2116 public java.util.List<java.lang.Double>
2118 reducedCost_.makeImmutable();
2119 return reducedCost_;
2135 return reducedCost_.size();
2152 return reducedCost_.getDouble(index);
2170 int index,
double value) {
2172 ensureReducedCostIsMutable();
2173 reducedCost_.setDouble(index, value);
2174 bitField0_ |= 0x00000100;
2194 ensureReducedCostIsMutable();
2195 reducedCost_.addDouble(value);
2196 bitField0_ |= 0x00000100;
2215 java.lang.Iterable<? extends java.lang.Double> values) {
2216 ensureReducedCostIsMutable();
2217 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2218 values, reducedCost_);
2219 bitField0_ |= 0x00000100;
2237 reducedCost_ = emptyDoubleList();
2238 bitField0_ = (bitField0_ & ~0x00000100);
2243 private java.util.List<com.google.ortools.linearsolver.MPSolution> additionalSolutions_ =
2244 java.util.Collections.emptyList();
2245 private void ensureAdditionalSolutionsIsMutable() {
2246 if (!((bitField0_ & 0x00000200) != 0)) {
2247 additionalSolutions_ =
new java.util.ArrayList<com.google.ortools.linearsolver.MPSolution>(additionalSolutions_);
2248 bitField0_ |= 0x00000200;
2252 private com.google.protobuf.RepeatedFieldBuilder<
2253 com.google.ortools.linearsolver.MPSolution, com.google.ortools.linearsolver.MPSolution.Builder, com.google.ortools.linearsolver.MPSolutionOrBuilder> additionalSolutionsBuilder_;
2267 if (additionalSolutionsBuilder_ ==
null) {
2268 return java.util.Collections.unmodifiableList(additionalSolutions_);
2270 return additionalSolutionsBuilder_.getMessageList();
2285 if (additionalSolutionsBuilder_ ==
null) {
2286 return additionalSolutions_.size();
2288 return additionalSolutionsBuilder_.getCount();
2303 if (additionalSolutionsBuilder_ ==
null) {
2304 return additionalSolutions_.get(index);
2306 return additionalSolutionsBuilder_.getMessage(index);
2321 int index, com.google.ortools.linearsolver.MPSolution value) {
2322 if (additionalSolutionsBuilder_ ==
null) {
2323 if (value ==
null) {
2324 throw new NullPointerException();
2326 ensureAdditionalSolutionsIsMutable();
2327 additionalSolutions_.set(index, value);
2330 additionalSolutionsBuilder_.setMessage(index, value);
2346 int index, com.google.ortools.linearsolver.MPSolution.Builder builderForValue) {
2347 if (additionalSolutionsBuilder_ ==
null) {
2348 ensureAdditionalSolutionsIsMutable();
2349 additionalSolutions_.set(index, builderForValue.build());
2352 additionalSolutionsBuilder_.setMessage(index, builderForValue.build());
2368 if (additionalSolutionsBuilder_ ==
null) {
2369 if (value ==
null) {
2370 throw new NullPointerException();
2372 ensureAdditionalSolutionsIsMutable();
2373 additionalSolutions_.add(value);
2376 additionalSolutionsBuilder_.addMessage(value);
2392 int index, com.google.ortools.linearsolver.MPSolution value) {
2393 if (additionalSolutionsBuilder_ ==
null) {
2394 if (value ==
null) {
2395 throw new NullPointerException();
2397 ensureAdditionalSolutionsIsMutable();
2398 additionalSolutions_.add(index, value);
2401 additionalSolutionsBuilder_.addMessage(index, value);
2417 com.google.ortools.linearsolver.MPSolution.Builder builderForValue) {
2418 if (additionalSolutionsBuilder_ ==
null) {
2419 ensureAdditionalSolutionsIsMutable();
2420 additionalSolutions_.add(builderForValue.build());
2423 additionalSolutionsBuilder_.addMessage(builderForValue.build());
2439 int index, com.google.ortools.linearsolver.MPSolution.Builder builderForValue) {
2440 if (additionalSolutionsBuilder_ ==
null) {
2441 ensureAdditionalSolutionsIsMutable();
2442 additionalSolutions_.add(index, builderForValue.build());
2445 additionalSolutionsBuilder_.addMessage(index, builderForValue.build());
2461 java.lang.Iterable<? extends com.google.ortools.linearsolver.MPSolution> values) {
2462 if (additionalSolutionsBuilder_ ==
null) {
2463 ensureAdditionalSolutionsIsMutable();
2464 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2465 values, additionalSolutions_);
2468 additionalSolutionsBuilder_.addAllMessages(values);
2484 if (additionalSolutionsBuilder_ ==
null) {
2485 additionalSolutions_ = java.util.Collections.emptyList();
2486 bitField0_ = (bitField0_ & ~0x00000200);
2489 additionalSolutionsBuilder_.clear();
2505 if (additionalSolutionsBuilder_ ==
null) {
2506 ensureAdditionalSolutionsIsMutable();
2507 additionalSolutions_.remove(index);
2510 additionalSolutionsBuilder_.remove(index);
2527 return getAdditionalSolutionsFieldBuilder().getBuilder(index);
2542 if (additionalSolutionsBuilder_ ==
null) {
2543 return additionalSolutions_.get(index); }
else {
2544 return additionalSolutionsBuilder_.getMessageOrBuilder(index);
2558 public java.util.List<? extends com.google.ortools.linearsolver.MPSolutionOrBuilder>
2560 if (additionalSolutionsBuilder_ !=
null) {
2561 return additionalSolutionsBuilder_.getMessageOrBuilderList();
2563 return java.util.Collections.unmodifiableList(additionalSolutions_);
2578 return getAdditionalSolutionsFieldBuilder().addBuilder(
2579 com.google.ortools.linearsolver.MPSolution.getDefaultInstance());
2594 return getAdditionalSolutionsFieldBuilder().addBuilder(
2595 index, com.google.ortools.linearsolver.MPSolution.getDefaultInstance());
2608 public java.util.List<com.google.ortools.linearsolver.MPSolution.Builder>
2610 return getAdditionalSolutionsFieldBuilder().getBuilderList();
2612 private com.google.protobuf.RepeatedFieldBuilder<
2613 com.google.ortools.linearsolver.MPSolution, com.google.ortools.linearsolver.MPSolution.Builder, com.google.ortools.linearsolver.MPSolutionOrBuilder>
2614 getAdditionalSolutionsFieldBuilder() {
2615 if (additionalSolutionsBuilder_ ==
null) {
2616 additionalSolutionsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
2617 com.google.ortools.linearsolver.MPSolution, com.google.ortools.linearsolver.MPSolution.Builder, com.google.ortools.linearsolver.MPSolutionOrBuilder>(
2618 additionalSolutions_,
2619 ((bitField0_ & 0x00000200) != 0),
2620 getParentForChildren(),
2622 additionalSolutions_ =
null;
2624 return additionalSolutionsBuilder_;