548 public void writeTo(com.google.protobuf.CodedOutputStream output)
549 throws java.io.IOException {
551 if (((bitField0_ & 0x00000001) != 0)) {
552 output.writeEnum(1, status_);
554 if (((bitField0_ & 0x00000004) != 0)) {
555 output.writeDouble(2, objectiveValue_);
558 output.writeUInt32NoTag(26);
559 output.writeUInt32NoTag(variableValueMemoizedSerializedSize);
561 for (
int i = 0; i < variableValue_.size(); i++) {
562 output.writeDoubleNoTag(variableValue_.getDouble(i));
565 output.writeUInt32NoTag(34);
566 output.writeUInt32NoTag(dualValueMemoizedSerializedSize);
568 for (
int i = 0; i < dualValue_.size(); i++) {
569 output.writeDoubleNoTag(dualValue_.getDouble(i));
571 if (((bitField0_ & 0x00000008) != 0)) {
572 output.writeDouble(5, bestObjectiveBound_);
575 output.writeUInt32NoTag(50);
576 output.writeUInt32NoTag(reducedCostMemoizedSerializedSize);
578 for (
int i = 0; i < reducedCost_.size(); i++) {
579 output.writeDoubleNoTag(reducedCost_.getDouble(i));
581 if (((bitField0_ & 0x00000002) != 0)) {
582 com.google.protobuf.GeneratedMessage.writeString(output, 7, statusStr_);
584 for (
int i = 0; i < additionalSolutions_.size(); i++) {
585 output.writeMessage(8, additionalSolutions_.get(i));
587 if (((bitField0_ & 0x00000010) != 0)) {
590 if (((bitField0_ & 0x00000020) != 0)) {
591 output.writeBytes(11, solverSpecificInfo_);
593 getUnknownFields().writeTo(output);
598 int size = memoizedSize;
599 if (size != -1)
return size;
602 if (((bitField0_ & 0x00000001) != 0)) {
603 size += com.google.protobuf.CodedOutputStream
604 .computeEnumSize(1, status_);
606 if (((bitField0_ & 0x00000004) != 0)) {
607 size += com.google.protobuf.CodedOutputStream
608 .computeDoubleSize(2, objectiveValue_);
616 size += com.google.protobuf.CodedOutputStream
617 .computeInt32SizeNoTag(dataSize);
619 variableValueMemoizedSerializedSize = dataSize;
627 size += com.google.protobuf.CodedOutputStream
628 .computeInt32SizeNoTag(dataSize);
630 dualValueMemoizedSerializedSize = dataSize;
632 if (((bitField0_ & 0x00000008) != 0)) {
633 size += com.google.protobuf.CodedOutputStream
634 .computeDoubleSize(5, bestObjectiveBound_);
642 size += com.google.protobuf.CodedOutputStream
643 .computeInt32SizeNoTag(dataSize);
645 reducedCostMemoizedSerializedSize = dataSize;
647 if (((bitField0_ & 0x00000002) != 0)) {
648 size += com.google.protobuf.GeneratedMessage.computeStringSize(7, statusStr_);
650 for (
int i = 0; i < additionalSolutions_.size(); i++) {
651 size += com.google.protobuf.CodedOutputStream
652 .computeMessageSize(8, additionalSolutions_.get(i));
654 if (((bitField0_ & 0x00000010) != 0)) {
655 size += com.google.protobuf.CodedOutputStream
658 if (((bitField0_ & 0x00000020) != 0)) {
659 size += com.google.protobuf.CodedOutputStream
660 .computeBytesSize(11, solverSpecificInfo_);
662 size += getUnknownFields().getSerializedSize();
873 public static final class Builder
extends
874 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
877 public static final com.google.protobuf.Descriptors.Descriptor
879 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolutionResponse_descriptor;
883 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
885 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolutionResponse_fieldAccessorTable
886 .ensureFieldAccessorsInitialized(
887 com.google.ortools.linearsolver.MPSolutionResponse.class, com.google.ortools.linearsolver.MPSolutionResponse.Builder.class);
892 maybeForceBuilderInitialization();
896 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
898 maybeForceBuilderInitialization();
900 private void maybeForceBuilderInitialization() {
901 if (com.google.protobuf.GeneratedMessage
902 .alwaysUseFieldBuilders) {
903 internalGetSolveInfoFieldBuilder();
904 internalGetAdditionalSolutionsFieldBuilder();
913 objectiveValue_ = 0D;
914 bestObjectiveBound_ = 0D;
915 variableValue_ = emptyDoubleList();
917 if (solveInfoBuilder_ !=
null) {
918 solveInfoBuilder_.dispose();
919 solveInfoBuilder_ =
null;
921 solverSpecificInfo_ = com.google.protobuf.ByteString.EMPTY;
922 dualValue_ = emptyDoubleList();
923 reducedCost_ = emptyDoubleList();
924 if (additionalSolutionsBuilder_ ==
null) {
925 additionalSolutions_ = java.util.Collections.emptyList();
927 additionalSolutions_ =
null;
928 additionalSolutionsBuilder_.clear();
930 bitField0_ = (bitField0_ & ~0x00000200);
935 public com.google.protobuf.Descriptors.Descriptor
937 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolutionResponse_descriptor;
942 return com.google.ortools.linearsolver.MPSolutionResponse.getDefaultInstance();
949 throw newUninitializedMessageException(result);
957 buildPartialRepeatedFields(result);
958 if (bitField0_ != 0) { buildPartial0(result); }
963 private void buildPartialRepeatedFields(com.google.ortools.linearsolver.MPSolutionResponse result) {
964 if (additionalSolutionsBuilder_ ==
null) {
965 if (((bitField0_ & 0x00000200) != 0)) {
966 additionalSolutions_ = java.util.Collections.unmodifiableList(additionalSolutions_);
967 bitField0_ = (bitField0_ & ~0x00000200);
969 result.additionalSolutions_ = additionalSolutions_;
971 result.additionalSolutions_ = additionalSolutionsBuilder_.build();
975 private void buildPartial0(com.google.ortools.linearsolver.MPSolutionResponse result) {
976 int from_bitField0_ = bitField0_;
977 int to_bitField0_ = 0;
978 if (((from_bitField0_ & 0x00000001) != 0)) {
979 result.status_ = status_;
980 to_bitField0_ |= 0x00000001;
982 if (((from_bitField0_ & 0x00000002) != 0)) {
983 result.statusStr_ = statusStr_;
984 to_bitField0_ |= 0x00000002;
986 if (((from_bitField0_ & 0x00000004) != 0)) {
987 result.objectiveValue_ = objectiveValue_;
988 to_bitField0_ |= 0x00000004;
990 if (((from_bitField0_ & 0x00000008) != 0)) {
991 result.bestObjectiveBound_ = bestObjectiveBound_;
992 to_bitField0_ |= 0x00000008;
994 if (((from_bitField0_ & 0x00000010) != 0)) {
995 variableValue_.makeImmutable();
996 result.variableValue_ = variableValue_;
998 if (((from_bitField0_ & 0x00000020) != 0)) {
999 result.solveInfo_ = solveInfoBuilder_ ==
null
1001 : solveInfoBuilder_.build();
1002 to_bitField0_ |= 0x00000010;
1004 if (((from_bitField0_ & 0x00000040) != 0)) {
1005 result.solverSpecificInfo_ = solverSpecificInfo_;
1006 to_bitField0_ |= 0x00000020;
1008 if (((from_bitField0_ & 0x00000080) != 0)) {
1009 dualValue_.makeImmutable();
1010 result.dualValue_ = dualValue_;
1012 if (((from_bitField0_ & 0x00000100) != 0)) {
1013 reducedCost_.makeImmutable();
1014 result.reducedCost_ = reducedCost_;
1016 result.bitField0_ |= to_bitField0_;
1020 public Builder
mergeFrom(com.google.protobuf.Message other) {
1021 if (other instanceof com.google.ortools.linearsolver.MPSolutionResponse) {
1022 return mergeFrom((com.google.ortools.linearsolver.MPSolutionResponse)other);
1024 super.mergeFrom(other);
1029 public Builder
mergeFrom(com.google.ortools.linearsolver.MPSolutionResponse other) {
1030 if (other == com.google.ortools.linearsolver.MPSolutionResponse.getDefaultInstance())
return this;
1031 if (other.hasStatus()) {
1034 if (other.hasStatusStr()) {
1035 statusStr_ = other.statusStr_;
1036 bitField0_ |= 0x00000002;
1039 if (other.hasObjectiveValue()) {
1042 if (other.hasBestObjectiveBound()) {
1045 if (!other.variableValue_.isEmpty()) {
1046 if (variableValue_.isEmpty()) {
1047 variableValue_ = other.variableValue_;
1048 variableValue_.makeImmutable();
1049 bitField0_ |= 0x00000010;
1051 ensureVariableValueIsMutable();
1052 variableValue_.addAll(other.variableValue_);
1056 if (other.hasSolveInfo()) {
1059 if (other.hasSolverSpecificInfo()) {
1062 if (!other.dualValue_.isEmpty()) {
1063 if (dualValue_.isEmpty()) {
1064 dualValue_ = other.dualValue_;
1065 dualValue_.makeImmutable();
1066 bitField0_ |= 0x00000080;
1068 ensureDualValueIsMutable();
1069 dualValue_.addAll(other.dualValue_);
1073 if (!other.reducedCost_.isEmpty()) {
1074 if (reducedCost_.isEmpty()) {
1075 reducedCost_ = other.reducedCost_;
1076 reducedCost_.makeImmutable();
1077 bitField0_ |= 0x00000100;
1079 ensureReducedCostIsMutable();
1080 reducedCost_.addAll(other.reducedCost_);
1084 if (additionalSolutionsBuilder_ ==
null) {
1085 if (!other.additionalSolutions_.isEmpty()) {
1086 if (additionalSolutions_.isEmpty()) {
1087 additionalSolutions_ = other.additionalSolutions_;
1088 bitField0_ = (bitField0_ & ~0x00000200);
1090 ensureAdditionalSolutionsIsMutable();
1091 additionalSolutions_.addAll(other.additionalSolutions_);
1096 if (!other.additionalSolutions_.isEmpty()) {
1097 if (additionalSolutionsBuilder_.isEmpty()) {
1098 additionalSolutionsBuilder_.dispose();
1099 additionalSolutionsBuilder_ =
null;
1100 additionalSolutions_ = other.additionalSolutions_;
1101 bitField0_ = (bitField0_ & ~0x00000200);
1102 additionalSolutionsBuilder_ =
1103 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1104 internalGetAdditionalSolutionsFieldBuilder() :
null;
1106 additionalSolutionsBuilder_.addAllMessages(other.additionalSolutions_);
1110 this.mergeUnknownFields(other.getUnknownFields());
1122 com.google.protobuf.CodedInputStream input,
1123 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1124 throws java.io.IOException {
1125 if (extensionRegistry ==
null) {
1126 throw new java.lang.NullPointerException();
1129 boolean done =
false;
1131 int tag = input.readTag();
1137 int tmpRaw = input.readEnum();
1139 com.google.ortools.linearsolver.MPSolverResponseStatus.forNumber(tmpRaw);
1140 if (tmpValue ==
null) {
1141 mergeUnknownVarintField(1, tmpRaw);
1144 bitField0_ |= 0x00000001;
1149 objectiveValue_ = input.readDouble();
1150 bitField0_ |= 0x00000004;
1154 double v = input.readDouble();
1155 ensureVariableValueIsMutable();
1156 variableValue_.addDouble(v);
1160 int length = input.readRawVarint32();
1161 int limit = input.pushLimit(length);
1162 int alloc = length > 4096 ? 4096 : length;
1163 ensureVariableValueIsMutable(alloc / 8);
1164 while (input.getBytesUntilLimit() > 0) {
1165 variableValue_.addDouble(input.readDouble());
1167 input.popLimit(limit);
1171 double v = input.readDouble();
1172 ensureDualValueIsMutable();
1173 dualValue_.addDouble(v);
1177 int length = input.readRawVarint32();
1178 int limit = input.pushLimit(length);
1179 int alloc = length > 4096 ? 4096 : length;
1180 ensureDualValueIsMutable(alloc / 8);
1181 while (input.getBytesUntilLimit() > 0) {
1182 dualValue_.addDouble(input.readDouble());
1184 input.popLimit(limit);
1188 bestObjectiveBound_ = input.readDouble();
1189 bitField0_ |= 0x00000008;
1193 double v = input.readDouble();
1194 ensureReducedCostIsMutable();
1195 reducedCost_.addDouble(v);
1199 int length = input.readRawVarint32();
1200 int limit = input.pushLimit(length);
1201 int alloc = length > 4096 ? 4096 : length;
1202 ensureReducedCostIsMutable(alloc / 8);
1203 while (input.getBytesUntilLimit() > 0) {
1204 reducedCost_.addDouble(input.readDouble());
1206 input.popLimit(limit);
1210 statusStr_ = input.readBytes();
1211 bitField0_ |= 0x00000002;
1217 com.google.ortools.linearsolver.MPSolution.parser(),
1219 if (additionalSolutionsBuilder_ ==
null) {
1220 ensureAdditionalSolutionsIsMutable();
1221 additionalSolutions_.add(m);
1223 additionalSolutionsBuilder_.addMessage(m);
1229 internalGetSolveInfoFieldBuilder().getBuilder(),
1231 bitField0_ |= 0x00000020;
1235 solverSpecificInfo_ = input.readBytes();
1236 bitField0_ |= 0x00000040;
1240 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1247 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1248 throw e.unwrapIOException();
1254 private int bitField0_;
1256 private int status_ = 99;
1266 return ((bitField0_ & 0x00000001) != 0);
1290 public Builder
setStatus(com.google.ortools.linearsolver.MPSolverResponseStatus value) {
1291 if (value ==
null) {
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();
1744 public Builder
setSolveInfo(com.google.ortools.linearsolver.MPSolveInfo value) {
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 internalGetSolveInfoFieldBuilder().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 internalGetSolveInfoFieldBuilder() {
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 internalGetAdditionalSolutionsFieldBuilder().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 internalGetAdditionalSolutionsFieldBuilder().addBuilder(
2579 com.google.ortools.linearsolver.MPSolution.getDefaultInstance());
2594 return internalGetAdditionalSolutionsFieldBuilder().addBuilder(
2595 index, com.google.ortools.linearsolver.MPSolution.getDefaultInstance());
2608 public java.util.List<com.google.ortools.linearsolver.MPSolution.Builder>
2610 return internalGetAdditionalSolutionsFieldBuilder().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 internalGetAdditionalSolutionsFieldBuilder() {
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_;