547 public void writeTo(com.google.protobuf.CodedOutputStream output)
548 throws java.io.IOException {
550 if (((bitField0_ & 0x00000001) != 0)) {
551 output.writeEnum(1, status_);
553 if (((bitField0_ & 0x00000004) != 0)) {
554 output.writeDouble(2, objectiveValue_);
557 output.writeUInt32NoTag(26);
558 output.writeUInt32NoTag(variableValueMemoizedSerializedSize);
560 for (
int i = 0; i < variableValue_.size(); i++) {
561 output.writeDoubleNoTag(variableValue_.getDouble(i));
564 output.writeUInt32NoTag(34);
565 output.writeUInt32NoTag(dualValueMemoizedSerializedSize);
567 for (
int i = 0; i < dualValue_.size(); i++) {
568 output.writeDoubleNoTag(dualValue_.getDouble(i));
570 if (((bitField0_ & 0x00000008) != 0)) {
571 output.writeDouble(5, bestObjectiveBound_);
574 output.writeUInt32NoTag(50);
575 output.writeUInt32NoTag(reducedCostMemoizedSerializedSize);
577 for (
int i = 0; i < reducedCost_.size(); i++) {
578 output.writeDoubleNoTag(reducedCost_.getDouble(i));
580 if (((bitField0_ & 0x00000002) != 0)) {
581 com.google.protobuf.GeneratedMessage.writeString(output, 7, statusStr_);
583 for (
int i = 0; i < additionalSolutions_.size(); i++) {
584 output.writeMessage(8, additionalSolutions_.get(i));
586 if (((bitField0_ & 0x00000010) != 0)) {
589 if (((bitField0_ & 0x00000020) != 0)) {
590 output.writeBytes(11, solverSpecificInfo_);
592 getUnknownFields().writeTo(output);
597 int size = memoizedSize;
598 if (size != -1)
return size;
601 if (((bitField0_ & 0x00000001) != 0)) {
602 size += com.google.protobuf.CodedOutputStream
603 .computeEnumSize(1, status_);
605 if (((bitField0_ & 0x00000004) != 0)) {
606 size += com.google.protobuf.CodedOutputStream
607 .computeDoubleSize(2, objectiveValue_);
615 size += com.google.protobuf.CodedOutputStream
616 .computeInt32SizeNoTag(dataSize);
618 variableValueMemoizedSerializedSize = dataSize;
626 size += com.google.protobuf.CodedOutputStream
627 .computeInt32SizeNoTag(dataSize);
629 dualValueMemoizedSerializedSize = dataSize;
631 if (((bitField0_ & 0x00000008) != 0)) {
632 size += com.google.protobuf.CodedOutputStream
633 .computeDoubleSize(5, bestObjectiveBound_);
641 size += com.google.protobuf.CodedOutputStream
642 .computeInt32SizeNoTag(dataSize);
644 reducedCostMemoizedSerializedSize = dataSize;
646 if (((bitField0_ & 0x00000002) != 0)) {
647 size += com.google.protobuf.GeneratedMessage.computeStringSize(7, statusStr_);
649 for (
int i = 0; i < additionalSolutions_.size(); i++) {
650 size += com.google.protobuf.CodedOutputStream
651 .computeMessageSize(8, additionalSolutions_.get(i));
653 if (((bitField0_ & 0x00000010) != 0)) {
654 size += com.google.protobuf.CodedOutputStream
657 if (((bitField0_ & 0x00000020) != 0)) {
658 size += com.google.protobuf.CodedOutputStream
659 .computeBytesSize(11, solverSpecificInfo_);
661 size += getUnknownFields().getSerializedSize();
872 public static final class Builder
extends
873 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
876 public static final com.google.protobuf.Descriptors.Descriptor
878 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolutionResponse_descriptor;
882 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
884 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolutionResponse_fieldAccessorTable
885 .ensureFieldAccessorsInitialized(
886 com.google.ortools.linearsolver.MPSolutionResponse.class, com.google.ortools.linearsolver.MPSolutionResponse.Builder.class);
891 maybeForceBuilderInitialization();
895 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
897 maybeForceBuilderInitialization();
899 private void maybeForceBuilderInitialization() {
900 if (com.google.protobuf.GeneratedMessage
901 .alwaysUseFieldBuilders) {
902 getSolveInfoFieldBuilder();
903 getAdditionalSolutionsFieldBuilder();
912 objectiveValue_ = 0D;
913 bestObjectiveBound_ = 0D;
914 variableValue_ = emptyDoubleList();
916 if (solveInfoBuilder_ !=
null) {
917 solveInfoBuilder_.dispose();
918 solveInfoBuilder_ =
null;
920 solverSpecificInfo_ = com.google.protobuf.ByteString.EMPTY;
921 dualValue_ = emptyDoubleList();
922 reducedCost_ = emptyDoubleList();
923 if (additionalSolutionsBuilder_ ==
null) {
924 additionalSolutions_ = java.util.Collections.emptyList();
926 additionalSolutions_ =
null;
927 additionalSolutionsBuilder_.clear();
929 bitField0_ = (bitField0_ & ~0x00000200);
934 public com.google.protobuf.Descriptors.Descriptor
936 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolutionResponse_descriptor;
941 return com.google.ortools.linearsolver.MPSolutionResponse.getDefaultInstance();
948 throw newUninitializedMessageException(result);
956 buildPartialRepeatedFields(result);
957 if (bitField0_ != 0) { buildPartial0(result); }
962 private void buildPartialRepeatedFields(com.google.ortools.linearsolver.MPSolutionResponse result) {
963 if (additionalSolutionsBuilder_ ==
null) {
964 if (((bitField0_ & 0x00000200) != 0)) {
965 additionalSolutions_ = java.util.Collections.unmodifiableList(additionalSolutions_);
966 bitField0_ = (bitField0_ & ~0x00000200);
968 result.additionalSolutions_ = additionalSolutions_;
970 result.additionalSolutions_ = additionalSolutionsBuilder_.build();
974 private void buildPartial0(com.google.ortools.linearsolver.MPSolutionResponse result) {
975 int from_bitField0_ = bitField0_;
976 int to_bitField0_ = 0;
977 if (((from_bitField0_ & 0x00000001) != 0)) {
978 result.status_ = status_;
979 to_bitField0_ |= 0x00000001;
981 if (((from_bitField0_ & 0x00000002) != 0)) {
982 result.statusStr_ = statusStr_;
983 to_bitField0_ |= 0x00000002;
985 if (((from_bitField0_ & 0x00000004) != 0)) {
986 result.objectiveValue_ = objectiveValue_;
987 to_bitField0_ |= 0x00000004;
989 if (((from_bitField0_ & 0x00000008) != 0)) {
990 result.bestObjectiveBound_ = bestObjectiveBound_;
991 to_bitField0_ |= 0x00000008;
993 if (((from_bitField0_ & 0x00000010) != 0)) {
994 variableValue_.makeImmutable();
995 result.variableValue_ = variableValue_;
997 if (((from_bitField0_ & 0x00000020) != 0)) {
998 result.solveInfo_ = solveInfoBuilder_ ==
null
1000 : solveInfoBuilder_.build();
1001 to_bitField0_ |= 0x00000010;
1003 if (((from_bitField0_ & 0x00000040) != 0)) {
1004 result.solverSpecificInfo_ = solverSpecificInfo_;
1005 to_bitField0_ |= 0x00000020;
1007 if (((from_bitField0_ & 0x00000080) != 0)) {
1008 dualValue_.makeImmutable();
1009 result.dualValue_ = dualValue_;
1011 if (((from_bitField0_ & 0x00000100) != 0)) {
1012 reducedCost_.makeImmutable();
1013 result.reducedCost_ = reducedCost_;
1015 result.bitField0_ |= to_bitField0_;
1019 public Builder
mergeFrom(com.google.protobuf.Message other) {
1020 if (other instanceof com.google.ortools.linearsolver.MPSolutionResponse) {
1021 return mergeFrom((com.google.ortools.linearsolver.MPSolutionResponse)other);
1023 super.mergeFrom(other);
1028 public Builder
mergeFrom(com.google.ortools.linearsolver.MPSolutionResponse other) {
1029 if (other == com.google.ortools.linearsolver.MPSolutionResponse.getDefaultInstance())
return this;
1030 if (other.hasStatus()) {
1033 if (other.hasStatusStr()) {
1034 statusStr_ = other.statusStr_;
1035 bitField0_ |= 0x00000002;
1038 if (other.hasObjectiveValue()) {
1041 if (other.hasBestObjectiveBound()) {
1044 if (!other.variableValue_.isEmpty()) {
1045 if (variableValue_.isEmpty()) {
1046 variableValue_ = other.variableValue_;
1047 variableValue_.makeImmutable();
1048 bitField0_ |= 0x00000010;
1050 ensureVariableValueIsMutable();
1051 variableValue_.addAll(other.variableValue_);
1055 if (other.hasSolveInfo()) {
1058 if (other.hasSolverSpecificInfo()) {
1061 if (!other.dualValue_.isEmpty()) {
1062 if (dualValue_.isEmpty()) {
1063 dualValue_ = other.dualValue_;
1064 dualValue_.makeImmutable();
1065 bitField0_ |= 0x00000080;
1067 ensureDualValueIsMutable();
1068 dualValue_.addAll(other.dualValue_);
1072 if (!other.reducedCost_.isEmpty()) {
1073 if (reducedCost_.isEmpty()) {
1074 reducedCost_ = other.reducedCost_;
1075 reducedCost_.makeImmutable();
1076 bitField0_ |= 0x00000100;
1078 ensureReducedCostIsMutable();
1079 reducedCost_.addAll(other.reducedCost_);
1083 if (additionalSolutionsBuilder_ ==
null) {
1084 if (!other.additionalSolutions_.isEmpty()) {
1085 if (additionalSolutions_.isEmpty()) {
1086 additionalSolutions_ = other.additionalSolutions_;
1087 bitField0_ = (bitField0_ & ~0x00000200);
1089 ensureAdditionalSolutionsIsMutable();
1090 additionalSolutions_.addAll(other.additionalSolutions_);
1095 if (!other.additionalSolutions_.isEmpty()) {
1096 if (additionalSolutionsBuilder_.isEmpty()) {
1097 additionalSolutionsBuilder_.dispose();
1098 additionalSolutionsBuilder_ =
null;
1099 additionalSolutions_ = other.additionalSolutions_;
1100 bitField0_ = (bitField0_ & ~0x00000200);
1101 additionalSolutionsBuilder_ =
1102 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1103 getAdditionalSolutionsFieldBuilder() :
null;
1105 additionalSolutionsBuilder_.addAllMessages(other.additionalSolutions_);
1109 this.mergeUnknownFields(other.getUnknownFields());
1121 com.google.protobuf.CodedInputStream input,
1122 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1123 throws java.io.IOException {
1124 if (extensionRegistry ==
null) {
1125 throw new java.lang.NullPointerException();
1128 boolean done =
false;
1130 int tag = input.readTag();
1136 int tmpRaw = input.readEnum();
1138 com.google.ortools.linearsolver.MPSolverResponseStatus.forNumber(tmpRaw);
1139 if (tmpValue ==
null) {
1140 mergeUnknownVarintField(1, tmpRaw);
1143 bitField0_ |= 0x00000001;
1148 objectiveValue_ = input.readDouble();
1149 bitField0_ |= 0x00000004;
1153 double v = input.readDouble();
1154 ensureVariableValueIsMutable();
1155 variableValue_.addDouble(v);
1159 int length = input.readRawVarint32();
1160 int limit = input.pushLimit(length);
1161 int alloc = length > 4096 ? 4096 : length;
1162 ensureVariableValueIsMutable(alloc / 8);
1163 while (input.getBytesUntilLimit() > 0) {
1164 variableValue_.addDouble(input.readDouble());
1166 input.popLimit(limit);
1170 double v = input.readDouble();
1171 ensureDualValueIsMutable();
1172 dualValue_.addDouble(v);
1176 int length = input.readRawVarint32();
1177 int limit = input.pushLimit(length);
1178 int alloc = length > 4096 ? 4096 : length;
1179 ensureDualValueIsMutable(alloc / 8);
1180 while (input.getBytesUntilLimit() > 0) {
1181 dualValue_.addDouble(input.readDouble());
1183 input.popLimit(limit);
1187 bestObjectiveBound_ = input.readDouble();
1188 bitField0_ |= 0x00000008;
1192 double v = input.readDouble();
1193 ensureReducedCostIsMutable();
1194 reducedCost_.addDouble(v);
1198 int length = input.readRawVarint32();
1199 int limit = input.pushLimit(length);
1200 int alloc = length > 4096 ? 4096 : length;
1201 ensureReducedCostIsMutable(alloc / 8);
1202 while (input.getBytesUntilLimit() > 0) {
1203 reducedCost_.addDouble(input.readDouble());
1205 input.popLimit(limit);
1209 statusStr_ = input.readBytes();
1210 bitField0_ |= 0x00000002;
1216 com.google.ortools.linearsolver.MPSolution.parser(),
1218 if (additionalSolutionsBuilder_ ==
null) {
1219 ensureAdditionalSolutionsIsMutable();
1220 additionalSolutions_.add(m);
1222 additionalSolutionsBuilder_.addMessage(m);
1228 getSolveInfoFieldBuilder().getBuilder(),
1230 bitField0_ |= 0x00000020;
1234 solverSpecificInfo_ = input.readBytes();
1235 bitField0_ |= 0x00000040;
1239 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1246 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1247 throw e.unwrapIOException();
1253 private int bitField0_;
1255 private int status_ = 99;
1265 return ((bitField0_ & 0x00000001) != 0);
1289 public Builder
setStatus(com.google.ortools.linearsolver.MPSolverResponseStatus value) {
1290 if (value ==
null) {
1291 throw new NullPointerException();
1293 bitField0_ |= 0x00000001;
1294 status_ = value.getNumber();
1307 bitField0_ = (bitField0_ & ~0x00000001);
1313 private java.lang.Object statusStr_ =
"";
1326 return ((bitField0_ & 0x00000002) != 0);
1340 java.lang.Object ref = statusStr_;
1341 if (!(ref instanceof java.lang.String)) {
1342 com.google.protobuf.ByteString bs =
1343 (com.google.protobuf.ByteString) ref;
1344 java.lang.String s = bs.toStringUtf8();
1345 if (bs.isValidUtf8()) {
1350 return (java.lang.String) ref;
1364 public com.google.protobuf.ByteString
1366 java.lang.Object ref = statusStr_;
1367 if (ref instanceof String) {
1368 com.google.protobuf.ByteString b =
1369 com.google.protobuf.ByteString.copyFromUtf8(
1370 (java.lang.String) ref);
1374 return (com.google.protobuf.ByteString) ref;
1390 java.lang.String value) {
1391 if (value ==
null) {
throw new NullPointerException(); }
1393 bitField0_ |= 0x00000002;
1410 bitField0_ = (bitField0_ & ~0x00000002);
1427 com.google.protobuf.ByteString value) {
1428 if (value ==
null) {
throw new NullPointerException(); }
1430 bitField0_ |= 0x00000002;
1435 private double objectiveValue_ ;
1448 return ((bitField0_ & 0x00000004) != 0);
1462 return objectiveValue_;
1477 objectiveValue_ = value;
1478 bitField0_ |= 0x00000004;
1493 bitField0_ = (bitField0_ & ~0x00000004);
1494 objectiveValue_ = 0D;
1499 private double bestObjectiveBound_ ;
1514 return ((bitField0_ & 0x00000008) != 0);
1530 return bestObjectiveBound_;
1547 bestObjectiveBound_ = value;
1548 bitField0_ |= 0x00000008;
1565 bitField0_ = (bitField0_ & ~0x00000008);
1566 bestObjectiveBound_ = 0D;
1571 private com.google.protobuf.Internal.DoubleList variableValue_ = emptyDoubleList();
1572 private void ensureVariableValueIsMutable() {
1573 if (!variableValue_.isModifiable()) {
1574 variableValue_ = makeMutableCopy(variableValue_);
1576 bitField0_ |= 0x00000010;
1578 private void ensureVariableValueIsMutable(
int capacity) {
1579 if (!variableValue_.isModifiable()) {
1580 variableValue_ = makeMutableCopy(variableValue_, capacity);
1582 bitField0_ |= 0x00000010;
1594 public java.util.List<java.lang.Double>
1596 variableValue_.makeImmutable();
1597 return variableValue_;
1610 return variableValue_.size();
1624 return variableValue_.getDouble(index);
1639 int index,
double value) {
1641 ensureVariableValueIsMutable();
1642 variableValue_.setDouble(index, value);
1643 bitField0_ |= 0x00000010;
1660 ensureVariableValueIsMutable();
1661 variableValue_.addDouble(value);
1662 bitField0_ |= 0x00000010;
1678 java.lang.Iterable<? extends java.lang.Double> values) {
1679 ensureVariableValueIsMutable();
1680 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1681 values, variableValue_);
1682 bitField0_ |= 0x00000010;
1697 variableValue_ = emptyDoubleList();
1698 bitField0_ = (bitField0_ & ~0x00000010);
1704 private com.google.protobuf.SingleFieldBuilder<
1705 com.google.ortools.linearsolver.MPSolveInfo, com.google.ortools.linearsolver.MPSolveInfo.Builder, com.google.ortools.linearsolver.MPSolveInfoOrBuilder> solveInfoBuilder_;
1717 return ((bitField0_ & 0x00000020) != 0);
1730 if (solveInfoBuilder_ ==
null) {
1731 return solveInfo_ ==
null ? com.google.ortools.linearsolver.MPSolveInfo.getDefaultInstance() : solveInfo_;
1733 return solveInfoBuilder_.getMessage();
1745 public Builder
setSolveInfo(com.google.ortools.linearsolver.MPSolveInfo value) {
1746 if (solveInfoBuilder_ ==
null) {
1747 if (value ==
null) {
1748 throw new NullPointerException();
1752 solveInfoBuilder_.setMessage(value);
1754 bitField0_ |= 0x00000020;
1768 com.google.ortools.linearsolver.MPSolveInfo.Builder builderForValue) {
1769 if (solveInfoBuilder_ ==
null) {
1770 solveInfo_ = builderForValue.build();
1772 solveInfoBuilder_.setMessage(builderForValue.build());
1774 bitField0_ |= 0x00000020;
1788 if (solveInfoBuilder_ ==
null) {
1789 if (((bitField0_ & 0x00000020) != 0) &&
1790 solveInfo_ !=
null &&
1791 solveInfo_ != com.google.ortools.linearsolver.MPSolveInfo.getDefaultInstance()) {
1797 solveInfoBuilder_.mergeFrom(value);
1799 if (solveInfo_ !=
null) {
1800 bitField0_ |= 0x00000020;
1815 bitField0_ = (bitField0_ & ~0x00000020);
1817 if (solveInfoBuilder_ !=
null) {
1818 solveInfoBuilder_.dispose();
1819 solveInfoBuilder_ =
null;
1834 bitField0_ |= 0x00000020;
1836 return getSolveInfoFieldBuilder().getBuilder();
1848 if (solveInfoBuilder_ !=
null) {
1849 return solveInfoBuilder_.getMessageOrBuilder();
1851 return solveInfo_ ==
null ?
1852 com.google.ortools.linearsolver.MPSolveInfo.getDefaultInstance() : solveInfo_;
1864 private com.google.protobuf.SingleFieldBuilder<
1865 com.google.ortools.linearsolver.MPSolveInfo, com.google.ortools.linearsolver.MPSolveInfo.Builder, com.google.ortools.linearsolver.MPSolveInfoOrBuilder>
1866 getSolveInfoFieldBuilder() {
1867 if (solveInfoBuilder_ ==
null) {
1868 solveInfoBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
1869 com.google.ortools.linearsolver.MPSolveInfo, com.google.ortools.linearsolver.MPSolveInfo.Builder, com.google.ortools.linearsolver.MPSolveInfoOrBuilder>(
1871 getParentForChildren(),
1875 return solveInfoBuilder_;
1878 private com.google.protobuf.ByteString solverSpecificInfo_ = com.google.protobuf.ByteString.EMPTY;
1890 return ((bitField0_ & 0x00000040) != 0);
1903 return solverSpecificInfo_;
1916 if (value ==
null) {
throw new NullPointerException(); }
1917 solverSpecificInfo_ = value;
1918 bitField0_ |= 0x00000040;
1932 bitField0_ = (bitField0_ & ~0x00000040);
1938 private com.google.protobuf.Internal.DoubleList dualValue_ = emptyDoubleList();
1939 private void ensureDualValueIsMutable() {
1940 if (!dualValue_.isModifiable()) {
1941 dualValue_ = makeMutableCopy(dualValue_);
1943 bitField0_ |= 0x00000080;
1945 private void ensureDualValueIsMutable(
int capacity) {
1946 if (!dualValue_.isModifiable()) {
1947 dualValue_ = makeMutableCopy(dualValue_, capacity);
1949 bitField0_ |= 0x00000080;
1964 public java.util.List<java.lang.Double>
1966 dualValue_.makeImmutable();
1983 return dualValue_.size();
2000 return dualValue_.getDouble(index);
2018 int index,
double value) {
2020 ensureDualValueIsMutable();
2021 dualValue_.setDouble(index, value);
2022 bitField0_ |= 0x00000080;
2042 ensureDualValueIsMutable();
2043 dualValue_.addDouble(value);
2044 bitField0_ |= 0x00000080;
2063 java.lang.Iterable<? extends java.lang.Double> values) {
2064 ensureDualValueIsMutable();
2065 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2066 values, dualValue_);
2067 bitField0_ |= 0x00000080;
2085 dualValue_ = emptyDoubleList();
2086 bitField0_ = (bitField0_ & ~0x00000080);
2091 private com.google.protobuf.Internal.DoubleList reducedCost_ = emptyDoubleList();
2092 private void ensureReducedCostIsMutable() {
2093 if (!reducedCost_.isModifiable()) {
2094 reducedCost_ = makeMutableCopy(reducedCost_);
2096 bitField0_ |= 0x00000100;
2098 private void ensureReducedCostIsMutable(
int capacity) {
2099 if (!reducedCost_.isModifiable()) {
2100 reducedCost_ = makeMutableCopy(reducedCost_, capacity);
2102 bitField0_ |= 0x00000100;
2117 public java.util.List<java.lang.Double>
2119 reducedCost_.makeImmutable();
2120 return reducedCost_;
2136 return reducedCost_.size();
2153 return reducedCost_.getDouble(index);
2171 int index,
double value) {
2173 ensureReducedCostIsMutable();
2174 reducedCost_.setDouble(index, value);
2175 bitField0_ |= 0x00000100;
2195 ensureReducedCostIsMutable();
2196 reducedCost_.addDouble(value);
2197 bitField0_ |= 0x00000100;
2216 java.lang.Iterable<? extends java.lang.Double> values) {
2217 ensureReducedCostIsMutable();
2218 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2219 values, reducedCost_);
2220 bitField0_ |= 0x00000100;
2238 reducedCost_ = emptyDoubleList();
2239 bitField0_ = (bitField0_ & ~0x00000100);
2244 private java.util.List<com.google.ortools.linearsolver.MPSolution> additionalSolutions_ =
2245 java.util.Collections.emptyList();
2246 private void ensureAdditionalSolutionsIsMutable() {
2247 if (!((bitField0_ & 0x00000200) != 0)) {
2248 additionalSolutions_ =
new java.util.ArrayList<com.google.ortools.linearsolver.MPSolution>(additionalSolutions_);
2249 bitField0_ |= 0x00000200;
2253 private com.google.protobuf.RepeatedFieldBuilder<
2254 com.google.ortools.linearsolver.MPSolution, com.google.ortools.linearsolver.MPSolution.Builder, com.google.ortools.linearsolver.MPSolutionOrBuilder> additionalSolutionsBuilder_;
2268 if (additionalSolutionsBuilder_ ==
null) {
2269 return java.util.Collections.unmodifiableList(additionalSolutions_);
2271 return additionalSolutionsBuilder_.getMessageList();
2286 if (additionalSolutionsBuilder_ ==
null) {
2287 return additionalSolutions_.size();
2289 return additionalSolutionsBuilder_.getCount();
2304 if (additionalSolutionsBuilder_ ==
null) {
2305 return additionalSolutions_.get(index);
2307 return additionalSolutionsBuilder_.getMessage(index);
2322 int index, com.google.ortools.linearsolver.MPSolution value) {
2323 if (additionalSolutionsBuilder_ ==
null) {
2324 if (value ==
null) {
2325 throw new NullPointerException();
2327 ensureAdditionalSolutionsIsMutable();
2328 additionalSolutions_.set(index, value);
2331 additionalSolutionsBuilder_.setMessage(index, value);
2347 int index, com.google.ortools.linearsolver.MPSolution.Builder builderForValue) {
2348 if (additionalSolutionsBuilder_ ==
null) {
2349 ensureAdditionalSolutionsIsMutable();
2350 additionalSolutions_.set(index, builderForValue.build());
2353 additionalSolutionsBuilder_.setMessage(index, builderForValue.build());
2369 if (additionalSolutionsBuilder_ ==
null) {
2370 if (value ==
null) {
2371 throw new NullPointerException();
2373 ensureAdditionalSolutionsIsMutable();
2374 additionalSolutions_.add(value);
2377 additionalSolutionsBuilder_.addMessage(value);
2393 int index, com.google.ortools.linearsolver.MPSolution value) {
2394 if (additionalSolutionsBuilder_ ==
null) {
2395 if (value ==
null) {
2396 throw new NullPointerException();
2398 ensureAdditionalSolutionsIsMutable();
2399 additionalSolutions_.add(index, value);
2402 additionalSolutionsBuilder_.addMessage(index, value);
2418 com.google.ortools.linearsolver.MPSolution.Builder builderForValue) {
2419 if (additionalSolutionsBuilder_ ==
null) {
2420 ensureAdditionalSolutionsIsMutable();
2421 additionalSolutions_.add(builderForValue.build());
2424 additionalSolutionsBuilder_.addMessage(builderForValue.build());
2440 int index, com.google.ortools.linearsolver.MPSolution.Builder builderForValue) {
2441 if (additionalSolutionsBuilder_ ==
null) {
2442 ensureAdditionalSolutionsIsMutable();
2443 additionalSolutions_.add(index, builderForValue.build());
2446 additionalSolutionsBuilder_.addMessage(index, builderForValue.build());
2462 java.lang.Iterable<? extends com.google.ortools.linearsolver.MPSolution> values) {
2463 if (additionalSolutionsBuilder_ ==
null) {
2464 ensureAdditionalSolutionsIsMutable();
2465 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2466 values, additionalSolutions_);
2469 additionalSolutionsBuilder_.addAllMessages(values);
2485 if (additionalSolutionsBuilder_ ==
null) {
2486 additionalSolutions_ = java.util.Collections.emptyList();
2487 bitField0_ = (bitField0_ & ~0x00000200);
2490 additionalSolutionsBuilder_.clear();
2506 if (additionalSolutionsBuilder_ ==
null) {
2507 ensureAdditionalSolutionsIsMutable();
2508 additionalSolutions_.remove(index);
2511 additionalSolutionsBuilder_.remove(index);
2528 return getAdditionalSolutionsFieldBuilder().getBuilder(index);
2543 if (additionalSolutionsBuilder_ ==
null) {
2544 return additionalSolutions_.get(index); }
else {
2545 return additionalSolutionsBuilder_.getMessageOrBuilder(index);
2559 public java.util.List<? extends com.google.ortools.linearsolver.MPSolutionOrBuilder>
2561 if (additionalSolutionsBuilder_ !=
null) {
2562 return additionalSolutionsBuilder_.getMessageOrBuilderList();
2564 return java.util.Collections.unmodifiableList(additionalSolutions_);
2579 return getAdditionalSolutionsFieldBuilder().addBuilder(
2580 com.google.ortools.linearsolver.MPSolution.getDefaultInstance());
2595 return getAdditionalSolutionsFieldBuilder().addBuilder(
2596 index, com.google.ortools.linearsolver.MPSolution.getDefaultInstance());
2609 public java.util.List<com.google.ortools.linearsolver.MPSolution.Builder>
2611 return getAdditionalSolutionsFieldBuilder().getBuilderList();
2613 private com.google.protobuf.RepeatedFieldBuilder<
2614 com.google.ortools.linearsolver.MPSolution, com.google.ortools.linearsolver.MPSolution.Builder, com.google.ortools.linearsolver.MPSolutionOrBuilder>
2615 getAdditionalSolutionsFieldBuilder() {
2616 if (additionalSolutionsBuilder_ ==
null) {
2617 additionalSolutionsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
2618 com.google.ortools.linearsolver.MPSolution, com.google.ortools.linearsolver.MPSolution.Builder, com.google.ortools.linearsolver.MPSolutionOrBuilder>(
2619 additionalSolutions_,
2620 ((bitField0_ & 0x00000200) != 0),
2621 getParentForChildren(),
2623 additionalSolutions_ =
null;
2625 return additionalSolutionsBuilder_;