5package com.google.ortools.linearsolver;
15 com.google.protobuf.GeneratedMessageV3 implements
18private static final long serialVersionUID = 0L;
20 private MPSolutionResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
26 variableValue_ = emptyDoubleList();
27 solverSpecificInfo_ = com.google.protobuf.ByteString.EMPTY;
28 dualValue_ = emptyDoubleList();
29 reducedCost_ = emptyDoubleList();
30 additionalSolutions_ = java.util.Collections.emptyList();
34 @SuppressWarnings({
"unused"})
36 UnusedPrivateParameter unused) {
40 public static final com.google.protobuf.Descriptors.Descriptor
42 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolutionResponse_descriptor;
46 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
48 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolutionResponse_fieldAccessorTable
49 .ensureFieldAccessorsInitialized(
50 com.google.ortools.linearsolver.MPSolutionResponse.class, com.google.ortools.linearsolver.MPSolutionResponse.Builder.class);
53 private int bitField0_;
55 private int status_ = 99;
65 return ((bitField0_ & 0x00000001) != 0);
77 return result ==
null ? com.google.ortools.linearsolver.MPSolverResponseStatus.MPSOLVER_UNKNOWN_STATUS : result;
81 @SuppressWarnings(
"serial")
82 private volatile java.lang.Object statusStr_ = "";
96 return ((bitField0_ & 0x00000002) != 0);
111 java.lang.Object ref = statusStr_;
112 if (ref instanceof java.lang.String) {
113 return (java.lang.String) ref;
115 com.google.protobuf.ByteString bs =
116 (com.google.protobuf.ByteString) ref;
117 java.lang.String s = bs.toStringUtf8();
118 if (bs.isValidUtf8()) {
136 public com.google.protobuf.ByteString
138 java.lang.Object ref = statusStr_;
139 if (ref instanceof java.lang.String) {
140 com.google.protobuf.ByteString b =
141 com.google.protobuf.ByteString.copyFromUtf8(
142 (java.lang.String) ref);
146 return (com.google.protobuf.ByteString) ref;
151 private double objectiveValue_ = 0D;
164 return ((bitField0_ & 0x00000004) != 0);
178 return objectiveValue_;
182 private double bestObjectiveBound_ = 0D;
197 return ((bitField0_ & 0x00000008) != 0);
213 return bestObjectiveBound_;
217 @SuppressWarnings(
"serial")
218 private com.google.protobuf.Internal.DoubleList variableValue_ =
231 public java.util.List<java.lang.Double>
233 return variableValue_;
246 return variableValue_.size();
260 return variableValue_.getDouble(index);
262 private int variableValueMemoizedSerializedSize = -1;
278 return ((bitField0_ & 0x00000010) != 0);
292 return solveInfo_ ==
null ? com.google.ortools.linearsolver.MPSolveInfo.getDefaultInstance() : solveInfo_;
305 return solveInfo_ ==
null ? com.google.ortools.linearsolver.MPSolveInfo.getDefaultInstance() : solveInfo_;
309 private com.google.protobuf.ByteString solverSpecificInfo_ = com.google.protobuf.ByteString.EMPTY;
321 return ((bitField0_ & 0x00000020) != 0);
334 return solverSpecificInfo_;
338 @SuppressWarnings(
"serial")
339 private com.google.protobuf.Internal.DoubleList dualValue_ =
355 public java.util.List<java.lang.Double>
373 return dualValue_.size();
390 return dualValue_.getDouble(index);
392 private int dualValueMemoizedSerializedSize = -1;
395 @SuppressWarnings(
"serial")
396 private com.google.protobuf.Internal.DoubleList reducedCost_ =
412 public java.util.List<java.lang.Double>
430 return reducedCost_.size();
447 return reducedCost_.getDouble(index);
449 private int reducedCostMemoizedSerializedSize = -1;
452 @SuppressWarnings(
"serial")
453 private java.util.List<com.google.ortools.linearsolver.
MPSolution> additionalSolutions_;
467 return additionalSolutions_;
481 public java.util.List<? extends com.google.ortools.linearsolver.MPSolutionOrBuilder>
483 return additionalSolutions_;
498 return additionalSolutions_.size();
513 return additionalSolutions_.get(index);
529 return additionalSolutions_.get(index);
532 private byte memoizedIsInitialized = -1;
539 memoizedIsInitialized = 1;
544 public void writeTo(com.google.protobuf.CodedOutputStream output)
545 throws java.io.IOException {
547 if (((bitField0_ & 0x00000001) != 0)) {
548 output.writeEnum(1, status_);
550 if (((bitField0_ & 0x00000004) != 0)) {
551 output.writeDouble(2, objectiveValue_);
554 output.writeUInt32NoTag(26);
555 output.writeUInt32NoTag(variableValueMemoizedSerializedSize);
557 for (
int i = 0; i < variableValue_.size(); i++) {
558 output.writeDoubleNoTag(variableValue_.getDouble(i));
561 output.writeUInt32NoTag(34);
562 output.writeUInt32NoTag(dualValueMemoizedSerializedSize);
564 for (
int i = 0; i < dualValue_.size(); i++) {
565 output.writeDoubleNoTag(dualValue_.getDouble(i));
567 if (((bitField0_ & 0x00000008) != 0)) {
568 output.writeDouble(5, bestObjectiveBound_);
571 output.writeUInt32NoTag(50);
572 output.writeUInt32NoTag(reducedCostMemoizedSerializedSize);
574 for (
int i = 0; i < reducedCost_.size(); i++) {
575 output.writeDoubleNoTag(reducedCost_.getDouble(i));
577 if (((bitField0_ & 0x00000002) != 0)) {
578 com.google.protobuf.GeneratedMessageV3.writeString(output, 7, statusStr_);
580 for (
int i = 0; i < additionalSolutions_.size(); i++) {
581 output.writeMessage(8, additionalSolutions_.get(i));
583 if (((bitField0_ & 0x00000010) != 0)) {
586 if (((bitField0_ & 0x00000020) != 0)) {
587 output.writeBytes(11, solverSpecificInfo_);
589 getUnknownFields().writeTo(output);
594 int size = memoizedSize;
595 if (size != -1)
return size;
598 if (((bitField0_ & 0x00000001) != 0)) {
599 size += com.google.protobuf.CodedOutputStream
600 .computeEnumSize(1, status_);
602 if (((bitField0_ & 0x00000004) != 0)) {
603 size += com.google.protobuf.CodedOutputStream
604 .computeDoubleSize(2, objectiveValue_);
612 size += com.google.protobuf.CodedOutputStream
613 .computeInt32SizeNoTag(dataSize);
615 variableValueMemoizedSerializedSize = dataSize;
623 size += com.google.protobuf.CodedOutputStream
624 .computeInt32SizeNoTag(dataSize);
626 dualValueMemoizedSerializedSize = dataSize;
628 if (((bitField0_ & 0x00000008) != 0)) {
629 size += com.google.protobuf.CodedOutputStream
630 .computeDoubleSize(5, bestObjectiveBound_);
638 size += com.google.protobuf.CodedOutputStream
639 .computeInt32SizeNoTag(dataSize);
641 reducedCostMemoizedSerializedSize = dataSize;
643 if (((bitField0_ & 0x00000002) != 0)) {
644 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, statusStr_);
646 for (
int i = 0; i < additionalSolutions_.size(); i++) {
647 size += com.google.protobuf.CodedOutputStream
648 .computeMessageSize(8, additionalSolutions_.get(i));
650 if (((bitField0_ & 0x00000010) != 0)) {
651 size += com.google.protobuf.CodedOutputStream
654 if (((bitField0_ & 0x00000020) != 0)) {
655 size += com.google.protobuf.CodedOutputStream
656 .computeBytesSize(11, solverSpecificInfo_);
658 size += getUnknownFields().getSerializedSize();
664 public boolean equals(
final java.lang.Object obj) {
668 if (!(obj instanceof com.google.ortools.linearsolver.MPSolutionResponse)) {
669 return super.equals(obj);
675 if (status_ != other.status_)
return false;
685 != java.lang.Double.doubleToLongBits(
691 != java.lang.Double.doubleToLongBits(
712 if (!getUnknownFields().equals(other.getUnknownFields()))
return false;
718 if (memoizedHashCode != 0) {
719 return memoizedHashCode;
725 hash = (53 * hash) + status_;
733 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
738 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
765 hash = (29 * hash) + getUnknownFields().hashCode();
766 memoizedHashCode = hash;
771 java.nio.ByteBuffer data)
772 throws com.google.protobuf.InvalidProtocolBufferException {
776 java.nio.ByteBuffer data,
777 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
778 throws com.google.protobuf.InvalidProtocolBufferException {
782 com.google.protobuf.ByteString data)
783 throws com.google.protobuf.InvalidProtocolBufferException {
787 com.google.protobuf.ByteString data,
788 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
789 throws com.google.protobuf.InvalidProtocolBufferException {
793 throws com.google.protobuf.InvalidProtocolBufferException {
798 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
799 throws com.google.protobuf.InvalidProtocolBufferException {
803 throws java.io.IOException {
804 return com.google.protobuf.GeneratedMessageV3
805 .parseWithIOException(
PARSER, input);
808 java.io.InputStream input,
809 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
810 throws java.io.IOException {
811 return com.google.protobuf.GeneratedMessageV3
812 .parseWithIOException(
PARSER, input, extensionRegistry);
816 throws java.io.IOException {
817 return com.google.protobuf.GeneratedMessageV3
818 .parseDelimitedWithIOException(
PARSER, input);
822 java.io.InputStream input,
823 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
824 throws java.io.IOException {
825 return com.google.protobuf.GeneratedMessageV3
826 .parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
829 com.google.protobuf.CodedInputStream input)
830 throws java.io.IOException {
831 return com.google.protobuf.GeneratedMessageV3
832 .parseWithIOException(
PARSER, input);
835 com.google.protobuf.CodedInputStream input,
836 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
837 throws java.io.IOException {
838 return com.google.protobuf.GeneratedMessageV3
839 .parseWithIOException(
PARSER, input, extensionRegistry);
847 public static Builder newBuilder(com.google.ortools.linearsolver.MPSolutionResponse prototype) {
852 return this == DEFAULT_INSTANCE
858 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
870 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
873 public static final com.google.protobuf.Descriptors.Descriptor
875 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolutionResponse_descriptor;
879 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
881 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolutionResponse_fieldAccessorTable
882 .ensureFieldAccessorsInitialized(
883 com.google.ortools.linearsolver.MPSolutionResponse.class, com.google.ortools.linearsolver.MPSolutionResponse.Builder.class);
888 maybeForceBuilderInitialization();
892 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
894 maybeForceBuilderInitialization();
896 private void maybeForceBuilderInitialization() {
897 if (com.google.protobuf.GeneratedMessageV3
898 .alwaysUseFieldBuilders) {
899 getSolveInfoFieldBuilder();
900 getAdditionalSolutionsFieldBuilder();
909 objectiveValue_ = 0D;
910 bestObjectiveBound_ = 0D;
911 variableValue_ = emptyDoubleList();
913 if (solveInfoBuilder_ !=
null) {
914 solveInfoBuilder_.dispose();
915 solveInfoBuilder_ =
null;
917 solverSpecificInfo_ = com.google.protobuf.ByteString.EMPTY;
918 dualValue_ = emptyDoubleList();
919 reducedCost_ = emptyDoubleList();
920 if (additionalSolutionsBuilder_ ==
null) {
921 additionalSolutions_ = java.util.Collections.emptyList();
923 additionalSolutions_ =
null;
924 additionalSolutionsBuilder_.clear();
926 bitField0_ = (bitField0_ & ~0x00000200);
931 public com.google.protobuf.Descriptors.Descriptor
933 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolutionResponse_descriptor;
938 return com.google.ortools.linearsolver.MPSolutionResponse.getDefaultInstance();
945 throw newUninitializedMessageException(result);
953 buildPartialRepeatedFields(result);
954 if (bitField0_ != 0) { buildPartial0(result); }
959 private void buildPartialRepeatedFields(com.google.ortools.linearsolver.MPSolutionResponse result) {
960 if (additionalSolutionsBuilder_ ==
null) {
961 if (((bitField0_ & 0x00000200) != 0)) {
962 additionalSolutions_ = java.util.Collections.unmodifiableList(additionalSolutions_);
963 bitField0_ = (bitField0_ & ~0x00000200);
965 result.additionalSolutions_ = additionalSolutions_;
967 result.additionalSolutions_ = additionalSolutionsBuilder_.build();
971 private void buildPartial0(com.google.ortools.linearsolver.MPSolutionResponse result) {
972 int from_bitField0_ = bitField0_;
973 int to_bitField0_ = 0;
974 if (((from_bitField0_ & 0x00000001) != 0)) {
975 result.status_ = status_;
976 to_bitField0_ |= 0x00000001;
978 if (((from_bitField0_ & 0x00000002) != 0)) {
979 result.statusStr_ = statusStr_;
980 to_bitField0_ |= 0x00000002;
982 if (((from_bitField0_ & 0x00000004) != 0)) {
983 result.objectiveValue_ = objectiveValue_;
984 to_bitField0_ |= 0x00000004;
986 if (((from_bitField0_ & 0x00000008) != 0)) {
987 result.bestObjectiveBound_ = bestObjectiveBound_;
988 to_bitField0_ |= 0x00000008;
990 if (((from_bitField0_ & 0x00000010) != 0)) {
991 variableValue_.makeImmutable();
992 result.variableValue_ = variableValue_;
994 if (((from_bitField0_ & 0x00000020) != 0)) {
995 result.solveInfo_ = solveInfoBuilder_ ==
null
997 : solveInfoBuilder_.build();
998 to_bitField0_ |= 0x00000010;
1000 if (((from_bitField0_ & 0x00000040) != 0)) {
1001 result.solverSpecificInfo_ = solverSpecificInfo_;
1002 to_bitField0_ |= 0x00000020;
1004 if (((from_bitField0_ & 0x00000080) != 0)) {
1005 dualValue_.makeImmutable();
1006 result.dualValue_ = dualValue_;
1008 if (((from_bitField0_ & 0x00000100) != 0)) {
1009 reducedCost_.makeImmutable();
1010 result.reducedCost_ = reducedCost_;
1012 result.bitField0_ |= to_bitField0_;
1017 return super.
clone();
1021 com.google.protobuf.Descriptors.FieldDescriptor field,
1022 java.lang.Object value) {
1023 return super.
setField(field, value);
1027 com.google.protobuf.Descriptors.FieldDescriptor field) {
1032 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1037 com.google.protobuf.Descriptors.FieldDescriptor field,
1038 int index, java.lang.Object value) {
1043 com.google.protobuf.Descriptors.FieldDescriptor field,
1044 java.lang.Object value) {
1049 if (other instanceof com.google.ortools.linearsolver.MPSolutionResponse) {
1050 return mergeFrom((com.google.ortools.linearsolver.MPSolutionResponse)other);
1052 super.mergeFrom(other);
1058 if (other == com.google.ortools.linearsolver.MPSolutionResponse.getDefaultInstance())
return this;
1059 if (other.hasStatus()) {
1062 if (other.hasStatusStr()) {
1063 statusStr_ = other.statusStr_;
1064 bitField0_ |= 0x00000002;
1067 if (other.hasObjectiveValue()) {
1070 if (other.hasBestObjectiveBound()) {
1073 if (!other.variableValue_.isEmpty()) {
1074 if (variableValue_.isEmpty()) {
1075 variableValue_ = other.variableValue_;
1076 variableValue_.makeImmutable();
1077 bitField0_ |= 0x00000010;
1079 ensureVariableValueIsMutable();
1080 variableValue_.addAll(other.variableValue_);
1084 if (other.hasSolveInfo()) {
1087 if (other.hasSolverSpecificInfo()) {
1090 if (!other.dualValue_.isEmpty()) {
1091 if (dualValue_.isEmpty()) {
1092 dualValue_ = other.dualValue_;
1093 dualValue_.makeImmutable();
1094 bitField0_ |= 0x00000080;
1096 ensureDualValueIsMutable();
1097 dualValue_.addAll(other.dualValue_);
1101 if (!other.reducedCost_.isEmpty()) {
1102 if (reducedCost_.isEmpty()) {
1103 reducedCost_ = other.reducedCost_;
1104 reducedCost_.makeImmutable();
1105 bitField0_ |= 0x00000100;
1107 ensureReducedCostIsMutable();
1108 reducedCost_.addAll(other.reducedCost_);
1112 if (additionalSolutionsBuilder_ ==
null) {
1113 if (!other.additionalSolutions_.isEmpty()) {
1114 if (additionalSolutions_.isEmpty()) {
1115 additionalSolutions_ = other.additionalSolutions_;
1116 bitField0_ = (bitField0_ & ~0x00000200);
1118 ensureAdditionalSolutionsIsMutable();
1119 additionalSolutions_.addAll(other.additionalSolutions_);
1124 if (!other.additionalSolutions_.isEmpty()) {
1125 if (additionalSolutionsBuilder_.isEmpty()) {
1126 additionalSolutionsBuilder_.dispose();
1127 additionalSolutionsBuilder_ =
null;
1128 additionalSolutions_ = other.additionalSolutions_;
1129 bitField0_ = (bitField0_ & ~0x00000200);
1130 additionalSolutionsBuilder_ =
1131 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1132 getAdditionalSolutionsFieldBuilder() :
null;
1134 additionalSolutionsBuilder_.addAllMessages(other.additionalSolutions_);
1150 com.google.protobuf.CodedInputStream input,
1151 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1152 throws java.io.IOException {
1153 if (extensionRegistry ==
null) {
1154 throw new java.lang.NullPointerException();
1157 boolean done =
false;
1159 int tag = input.readTag();
1165 int tmpRaw = input.readEnum();
1167 com.google.ortools.linearsolver.MPSolverResponseStatus.forNumber(tmpRaw);
1168 if (tmpValue ==
null) {
1169 mergeUnknownVarintField(1, tmpRaw);
1172 bitField0_ |= 0x00000001;
1177 objectiveValue_ = input.readDouble();
1178 bitField0_ |= 0x00000004;
1182 double v = input.readDouble();
1183 ensureVariableValueIsMutable();
1184 variableValue_.addDouble(v);
1188 int length = input.readRawVarint32();
1189 int limit = input.pushLimit(length);
1190 int alloc = length > 4096 ? 4096 : length;
1191 ensureVariableValueIsMutable(alloc / 8);
1192 while (input.getBytesUntilLimit() > 0) {
1193 variableValue_.addDouble(input.readDouble());
1195 input.popLimit(limit);
1199 double v = input.readDouble();
1200 ensureDualValueIsMutable();
1201 dualValue_.addDouble(v);
1205 int length = input.readRawVarint32();
1206 int limit = input.pushLimit(length);
1207 int alloc = length > 4096 ? 4096 : length;
1208 ensureDualValueIsMutable(alloc / 8);
1209 while (input.getBytesUntilLimit() > 0) {
1210 dualValue_.addDouble(input.readDouble());
1212 input.popLimit(limit);
1216 bestObjectiveBound_ = input.readDouble();
1217 bitField0_ |= 0x00000008;
1221 double v = input.readDouble();
1222 ensureReducedCostIsMutable();
1223 reducedCost_.addDouble(v);
1227 int length = input.readRawVarint32();
1228 int limit = input.pushLimit(length);
1229 int alloc = length > 4096 ? 4096 : length;
1230 ensureReducedCostIsMutable(alloc / 8);
1231 while (input.getBytesUntilLimit() > 0) {
1232 reducedCost_.addDouble(input.readDouble());
1234 input.popLimit(limit);
1238 statusStr_ = input.readBytes();
1239 bitField0_ |= 0x00000002;
1245 com.google.ortools.linearsolver.MPSolution.PARSER,
1247 if (additionalSolutionsBuilder_ ==
null) {
1248 ensureAdditionalSolutionsIsMutable();
1249 additionalSolutions_.add(m);
1251 additionalSolutionsBuilder_.addMessage(m);
1257 getSolveInfoFieldBuilder().getBuilder(),
1259 bitField0_ |= 0x00000020;
1263 solverSpecificInfo_ = input.readBytes();
1264 bitField0_ |= 0x00000040;
1268 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1275 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1276 throw e.unwrapIOException();
1282 private int bitField0_;
1284 private int status_ = 99;
1294 return ((bitField0_ & 0x00000001) != 0);
1307 return result ==
null ? com.google.ortools.linearsolver.MPSolverResponseStatus.MPSOLVER_UNKNOWN_STATUS : result;
1319 if (value ==
null) {
1320 throw new NullPointerException();
1322 bitField0_ |= 0x00000001;
1323 status_ = value.getNumber();
1336 bitField0_ = (bitField0_ & ~0x00000001);
1342 private java.lang.Object statusStr_ =
"";
1355 return ((bitField0_ & 0x00000002) != 0);
1369 java.lang.Object ref = statusStr_;
1370 if (!(ref instanceof java.lang.String)) {
1371 com.google.protobuf.ByteString bs =
1372 (com.google.protobuf.ByteString) ref;
1373 java.lang.String s = bs.toStringUtf8();
1374 if (bs.isValidUtf8()) {
1379 return (java.lang.String) ref;
1393 public com.google.protobuf.ByteString
1395 java.lang.Object ref = statusStr_;
1396 if (ref instanceof String) {
1397 com.google.protobuf.ByteString b =
1398 com.google.protobuf.ByteString.copyFromUtf8(
1399 (java.lang.String) ref);
1403 return (com.google.protobuf.ByteString) ref;
1419 java.lang.String value) {
1420 if (value ==
null) {
throw new NullPointerException(); }
1422 bitField0_ |= 0x00000002;
1439 bitField0_ = (bitField0_ & ~0x00000002);
1456 com.google.protobuf.ByteString value) {
1457 if (value ==
null) {
throw new NullPointerException(); }
1459 bitField0_ |= 0x00000002;
1464 private double objectiveValue_ ;
1477 return ((bitField0_ & 0x00000004) != 0);
1491 return objectiveValue_;
1506 objectiveValue_ = value;
1507 bitField0_ |= 0x00000004;
1522 bitField0_ = (bitField0_ & ~0x00000004);
1523 objectiveValue_ = 0D;
1528 private double bestObjectiveBound_ ;
1543 return ((bitField0_ & 0x00000008) != 0);
1559 return bestObjectiveBound_;
1576 bestObjectiveBound_ = value;
1577 bitField0_ |= 0x00000008;
1594 bitField0_ = (bitField0_ & ~0x00000008);
1595 bestObjectiveBound_ = 0D;
1600 private com.google.protobuf.Internal.DoubleList variableValue_ = emptyDoubleList();
1601 private void ensureVariableValueIsMutable() {
1602 if (!variableValue_.isModifiable()) {
1603 variableValue_ = makeMutableCopy(variableValue_);
1605 bitField0_ |= 0x00000010;
1607 private void ensureVariableValueIsMutable(
int capacity) {
1608 if (!variableValue_.isModifiable()) {
1609 variableValue_ = makeMutableCopy(variableValue_, capacity);
1611 bitField0_ |= 0x00000010;
1623 public java.util.List<java.lang.Double>
1625 variableValue_.makeImmutable();
1626 return variableValue_;
1639 return variableValue_.size();
1653 return variableValue_.getDouble(index);
1668 int index,
double value) {
1670 ensureVariableValueIsMutable();
1671 variableValue_.setDouble(index, value);
1672 bitField0_ |= 0x00000010;
1689 ensureVariableValueIsMutable();
1690 variableValue_.addDouble(value);
1691 bitField0_ |= 0x00000010;
1707 java.lang.Iterable<? extends java.lang.Double> values) {
1708 ensureVariableValueIsMutable();
1709 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1710 values, variableValue_);
1711 bitField0_ |= 0x00000010;
1726 variableValue_ = emptyDoubleList();
1727 bitField0_ = (bitField0_ & ~0x00000010);
1733 private com.google.protobuf.SingleFieldBuilderV3<
1734 com.google.ortools.linearsolver.MPSolveInfo, com.google.ortools.linearsolver.MPSolveInfo.Builder, com.google.ortools.linearsolver.MPSolveInfoOrBuilder> solveInfoBuilder_;
1746 return ((bitField0_ & 0x00000020) != 0);
1759 if (solveInfoBuilder_ ==
null) {
1760 return solveInfo_ ==
null ? com.google.ortools.linearsolver.MPSolveInfo.getDefaultInstance() : solveInfo_;
1762 return solveInfoBuilder_.getMessage();
1775 if (solveInfoBuilder_ ==
null) {
1776 if (value ==
null) {
1777 throw new NullPointerException();
1781 solveInfoBuilder_.setMessage(value);
1783 bitField0_ |= 0x00000020;
1797 com.google.ortools.linearsolver.MPSolveInfo.Builder builderForValue) {
1798 if (solveInfoBuilder_ ==
null) {
1799 solveInfo_ = builderForValue.build();
1801 solveInfoBuilder_.setMessage(builderForValue.build());
1803 bitField0_ |= 0x00000020;
1817 if (solveInfoBuilder_ ==
null) {
1818 if (((bitField0_ & 0x00000020) != 0) &&
1819 solveInfo_ !=
null &&
1820 solveInfo_ != com.google.ortools.linearsolver.MPSolveInfo.getDefaultInstance()) {
1826 solveInfoBuilder_.mergeFrom(value);
1828 if (solveInfo_ !=
null) {
1829 bitField0_ |= 0x00000020;
1844 bitField0_ = (bitField0_ & ~0x00000020);
1846 if (solveInfoBuilder_ !=
null) {
1847 solveInfoBuilder_.dispose();
1848 solveInfoBuilder_ =
null;
1863 bitField0_ |= 0x00000020;
1865 return getSolveInfoFieldBuilder().getBuilder();
1877 if (solveInfoBuilder_ !=
null) {
1878 return solveInfoBuilder_.getMessageOrBuilder();
1880 return solveInfo_ ==
null ?
1881 com.google.ortools.linearsolver.MPSolveInfo.getDefaultInstance() : solveInfo_;
1893 private com.google.protobuf.SingleFieldBuilderV3<
1894 com.google.ortools.linearsolver.MPSolveInfo, com.google.ortools.linearsolver.MPSolveInfo.Builder, com.google.ortools.linearsolver.MPSolveInfoOrBuilder>
1895 getSolveInfoFieldBuilder() {
1896 if (solveInfoBuilder_ ==
null) {
1897 solveInfoBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
1898 com.google.ortools.linearsolver.MPSolveInfo, com.google.ortools.linearsolver.MPSolveInfo.Builder, com.google.ortools.linearsolver.MPSolveInfoOrBuilder>(
1900 getParentForChildren(),
1904 return solveInfoBuilder_;
1907 private com.google.protobuf.ByteString solverSpecificInfo_ = com.google.protobuf.ByteString.EMPTY;
1919 return ((bitField0_ & 0x00000040) != 0);
1932 return solverSpecificInfo_;
1945 if (value ==
null) {
throw new NullPointerException(); }
1946 solverSpecificInfo_ = value;
1947 bitField0_ |= 0x00000040;
1961 bitField0_ = (bitField0_ & ~0x00000040);
1967 private com.google.protobuf.Internal.DoubleList dualValue_ = emptyDoubleList();
1968 private void ensureDualValueIsMutable() {
1969 if (!dualValue_.isModifiable()) {
1970 dualValue_ = makeMutableCopy(dualValue_);
1972 bitField0_ |= 0x00000080;
1974 private void ensureDualValueIsMutable(
int capacity) {
1975 if (!dualValue_.isModifiable()) {
1976 dualValue_ = makeMutableCopy(dualValue_, capacity);
1978 bitField0_ |= 0x00000080;
1993 public java.util.List<java.lang.Double>
1995 dualValue_.makeImmutable();
2012 return dualValue_.size();
2029 return dualValue_.getDouble(index);
2047 int index,
double value) {
2049 ensureDualValueIsMutable();
2050 dualValue_.setDouble(index, value);
2051 bitField0_ |= 0x00000080;
2071 ensureDualValueIsMutable();
2072 dualValue_.addDouble(value);
2073 bitField0_ |= 0x00000080;
2092 java.lang.Iterable<? extends java.lang.Double> values) {
2093 ensureDualValueIsMutable();
2094 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2095 values, dualValue_);
2096 bitField0_ |= 0x00000080;
2114 dualValue_ = emptyDoubleList();
2115 bitField0_ = (bitField0_ & ~0x00000080);
2120 private com.google.protobuf.Internal.DoubleList reducedCost_ = emptyDoubleList();
2121 private void ensureReducedCostIsMutable() {
2122 if (!reducedCost_.isModifiable()) {
2123 reducedCost_ = makeMutableCopy(reducedCost_);
2125 bitField0_ |= 0x00000100;
2127 private void ensureReducedCostIsMutable(
int capacity) {
2128 if (!reducedCost_.isModifiable()) {
2129 reducedCost_ = makeMutableCopy(reducedCost_, capacity);
2131 bitField0_ |= 0x00000100;
2146 public java.util.List<java.lang.Double>
2148 reducedCost_.makeImmutable();
2149 return reducedCost_;
2165 return reducedCost_.size();
2182 return reducedCost_.getDouble(index);
2200 int index,
double value) {
2202 ensureReducedCostIsMutable();
2203 reducedCost_.setDouble(index, value);
2204 bitField0_ |= 0x00000100;
2224 ensureReducedCostIsMutable();
2225 reducedCost_.addDouble(value);
2226 bitField0_ |= 0x00000100;
2245 java.lang.Iterable<? extends java.lang.Double> values) {
2246 ensureReducedCostIsMutable();
2247 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2248 values, reducedCost_);
2249 bitField0_ |= 0x00000100;
2267 reducedCost_ = emptyDoubleList();
2268 bitField0_ = (bitField0_ & ~0x00000100);
2273 private java.util.List<com.google.ortools.linearsolver.MPSolution> additionalSolutions_ =
2274 java.util.Collections.emptyList();
2275 private void ensureAdditionalSolutionsIsMutable() {
2276 if (!((bitField0_ & 0x00000200) != 0)) {
2277 additionalSolutions_ =
new java.util.ArrayList<com.google.ortools.linearsolver.MPSolution>(additionalSolutions_);
2278 bitField0_ |= 0x00000200;
2282 private com.google.protobuf.RepeatedFieldBuilderV3<
2283 com.google.ortools.linearsolver.MPSolution, com.google.ortools.linearsolver.MPSolution.Builder, com.google.ortools.linearsolver.MPSolutionOrBuilder> additionalSolutionsBuilder_;
2297 if (additionalSolutionsBuilder_ ==
null) {
2298 return java.util.Collections.unmodifiableList(additionalSolutions_);
2300 return additionalSolutionsBuilder_.getMessageList();
2315 if (additionalSolutionsBuilder_ ==
null) {
2316 return additionalSolutions_.size();
2318 return additionalSolutionsBuilder_.getCount();
2333 if (additionalSolutionsBuilder_ ==
null) {
2334 return additionalSolutions_.get(index);
2336 return additionalSolutionsBuilder_.getMessage(index);
2351 int index, com.google.ortools.linearsolver.MPSolution value) {
2352 if (additionalSolutionsBuilder_ ==
null) {
2353 if (value ==
null) {
2354 throw new NullPointerException();
2356 ensureAdditionalSolutionsIsMutable();
2357 additionalSolutions_.set(index, value);
2360 additionalSolutionsBuilder_.setMessage(index, value);
2376 int index, com.google.ortools.linearsolver.MPSolution.Builder builderForValue) {
2377 if (additionalSolutionsBuilder_ ==
null) {
2378 ensureAdditionalSolutionsIsMutable();
2379 additionalSolutions_.set(index, builderForValue.build());
2382 additionalSolutionsBuilder_.setMessage(index, builderForValue.build());
2398 if (additionalSolutionsBuilder_ ==
null) {
2399 if (value ==
null) {
2400 throw new NullPointerException();
2402 ensureAdditionalSolutionsIsMutable();
2403 additionalSolutions_.add(value);
2406 additionalSolutionsBuilder_.addMessage(value);
2422 int index, com.google.ortools.linearsolver.MPSolution value) {
2423 if (additionalSolutionsBuilder_ ==
null) {
2424 if (value ==
null) {
2425 throw new NullPointerException();
2427 ensureAdditionalSolutionsIsMutable();
2428 additionalSolutions_.add(index, value);
2431 additionalSolutionsBuilder_.addMessage(index, value);
2447 com.google.ortools.linearsolver.MPSolution.Builder builderForValue) {
2448 if (additionalSolutionsBuilder_ ==
null) {
2449 ensureAdditionalSolutionsIsMutable();
2450 additionalSolutions_.add(builderForValue.build());
2453 additionalSolutionsBuilder_.addMessage(builderForValue.build());
2469 int index, com.google.ortools.linearsolver.MPSolution.Builder builderForValue) {
2470 if (additionalSolutionsBuilder_ ==
null) {
2471 ensureAdditionalSolutionsIsMutable();
2472 additionalSolutions_.add(index, builderForValue.build());
2475 additionalSolutionsBuilder_.addMessage(index, builderForValue.build());
2491 java.lang.Iterable<? extends com.google.ortools.linearsolver.MPSolution> values) {
2492 if (additionalSolutionsBuilder_ ==
null) {
2493 ensureAdditionalSolutionsIsMutable();
2494 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2495 values, additionalSolutions_);
2498 additionalSolutionsBuilder_.addAllMessages(values);
2514 if (additionalSolutionsBuilder_ ==
null) {
2515 additionalSolutions_ = java.util.Collections.emptyList();
2516 bitField0_ = (bitField0_ & ~0x00000200);
2519 additionalSolutionsBuilder_.clear();
2535 if (additionalSolutionsBuilder_ ==
null) {
2536 ensureAdditionalSolutionsIsMutable();
2537 additionalSolutions_.remove(index);
2540 additionalSolutionsBuilder_.remove(index);
2557 return getAdditionalSolutionsFieldBuilder().getBuilder(index);
2572 if (additionalSolutionsBuilder_ ==
null) {
2573 return additionalSolutions_.get(index); }
else {
2574 return additionalSolutionsBuilder_.getMessageOrBuilder(index);
2588 public java.util.List<? extends com.google.ortools.linearsolver.MPSolutionOrBuilder>
2590 if (additionalSolutionsBuilder_ !=
null) {
2591 return additionalSolutionsBuilder_.getMessageOrBuilderList();
2593 return java.util.Collections.unmodifiableList(additionalSolutions_);
2608 return getAdditionalSolutionsFieldBuilder().addBuilder(
2609 com.google.ortools.linearsolver.MPSolution.getDefaultInstance());
2624 return getAdditionalSolutionsFieldBuilder().addBuilder(
2625 index, com.google.ortools.linearsolver.MPSolution.getDefaultInstance());
2638 public java.util.List<com.google.ortools.linearsolver.MPSolution.Builder>
2640 return getAdditionalSolutionsFieldBuilder().getBuilderList();
2642 private com.google.protobuf.RepeatedFieldBuilderV3<
2643 com.google.ortools.linearsolver.MPSolution, com.google.ortools.linearsolver.MPSolution.Builder, com.google.ortools.linearsolver.MPSolutionOrBuilder>
2644 getAdditionalSolutionsFieldBuilder() {
2645 if (additionalSolutionsBuilder_ ==
null) {
2646 additionalSolutionsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
2647 com.google.ortools.linearsolver.MPSolution, com.google.ortools.linearsolver.MPSolution.Builder, com.google.ortools.linearsolver.MPSolutionOrBuilder>(
2648 additionalSolutions_,
2649 ((bitField0_ & 0x00000200) != 0),
2650 getParentForChildren(),
2652 additionalSolutions_ =
null;
2654 return additionalSolutionsBuilder_;
2658 final com.google.protobuf.UnknownFieldSet unknownFields) {
2664 final com.google.protobuf.UnknownFieldSet unknownFields) {
2675 DEFAULT_INSTANCE =
new com.google.ortools.linearsolver.MPSolutionResponse();
2679 return DEFAULT_INSTANCE;
2682 @java.lang.Deprecated
public static final com.google.protobuf.Parser<
MPSolutionResponse>
2686 com.google.protobuf.CodedInputStream input,
2687 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2688 throws com.google.protobuf.InvalidProtocolBufferException {
2691 builder.
mergeFrom(input, extensionRegistry);
2692 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
2694 }
catch (com.google.protobuf.UninitializedMessageException e) {
2695 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.
buildPartial());
2696 }
catch (java.io.IOException e) {
2697 throw new com.google.protobuf.InvalidProtocolBufferException(e)
2715 return DEFAULT_INSTANCE;